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
The plant mushroom function finds a random number between 0 and 200, and if that number is less than the birth rate of the snake it selects a number between 0 and 5 and plants a mushroom accordingly. It has a higher chance of planting a green mushroom than any other color, as those are the only ones that are 'good' for the player to eat, and so some balancing was necessary.
private void plantMushroom(){ if (rand.nextInt(200) < this.BIRTH_RATE){ int plant = rand.nextInt(5); Mushroom mush = null; switch (plant){ case 0: mush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); for (int count = 0; count < mySnake.getList().size(); count++){ if (count < shrooms.size()){ /* * These while functions make sure that the mushrooms are not spawned on top of any * other mushroom or on top of the snake itself. */ while (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){ mush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } else { while (mush.contains(mySnake.getList().get(count))){ mush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } } break; case 1: mush = new RedMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); for (int count = 0; count < mySnake.getList().size(); count++){ if (count < shrooms.size()){ while (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){ mush = new RedMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } else { while (mush.contains(mySnake.getList().get(count))){ mush = new RedMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } } break; case 2: mush = new PurpleMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); for (int count = 0; count < mySnake.getList().size(); count++){ if (count < shrooms.size()){ while (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){ mush = new PurpleMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } else { while (mush.contains(mySnake.getList().get(count))){ mush = new PurpleMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } } break; case 3: mush = new BlueMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); for (int count = 0; count < mySnake.getList().size(); count++){ if (count < shrooms.size()){ while (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){ mush = new BlueMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } else { while (mush.contains(mySnake.getList().get(count))){ mush = new BlueMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } } break; default: mush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); for (int count = 0; count < mySnake.getList().size(); count++){ if (count < shrooms.size()){ while (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){ mush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } else { while (mush.contains(mySnake.getList().get(count))){ mush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); } } } break; } shrooms.add(mush); //it adds the crated mushroom to the list of mushrooms } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void reproduce (Species [][] map, int sheepHealth, int wolfHealth, int plantHealth) {\n \n // Place the baby\n int babyY, babyX;\n \n // Check if the baby has been placed\n int spawned = 0;\n \n for (int y = 0; y < map[0].length; y++){\n for (int x = 0; x < map.length; x++){\n \n boolean [][] breeding = breedChoice (map, x, y, plantHealth);\n \n // Sheep upwards to breed with\n if (breeding[0][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y-1][x]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep downwards to breed with\n } else if (breeding[1][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y+1][x]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep to the left to breed with\n } else if (breeding[2][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y][x-1]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep to the right to breed with\n } else if (breeding[3][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y][x+1]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Wolf upwards to breed with\n } else if (breeding[0][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y-1][x]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf downwards to breed with\n } else if (breeding[1][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y+1][x]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf to the left to breed with\n } else if (breeding[2][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y][x-1]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf to the right to breed with\n } else if (breeding[3][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y][x+1]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n }\n \n }\n }\n \n }", "private void initMushrooms() {\n\t\tRandom r = new Random();\n\t\tint numMushrooms = 600;\n\t\tint topDist = 48;\n\t\tint leftDist = 80;\n\t\tint xCoord = 0;\n\t\tint yCoord = 0;\n\n\t\tfor (int i = 0; i < 14; i++) {//goes through each row 1-15\n\n\t\t\tint numShrooms = r.nextInt(6);\n\t\t\tfor (int j = 0; j < numShrooms; j++) {//goes through each column 1 - 15\n\t\t\t\tyCoord = i * 32 + topDist;\n\t\t\t\t//int k = 0;\n\t\t\t\tdo {\n\t\t\t\t\t//finds a new point and checks for good placement via a HashMap\n\t\t\t\t\txCoord = r.nextInt(15) * 32 + leftDist;\n\t\t\t\t\t//System.out.printf(\"%d x and %d y for %d line %d\\n\", xCoord, yCoord, k++, i);\n\t\t\t\t} while (!checkValidMushroom(xCoord, yCoord));\n\t\t\t\tmushrooms.add(new Mushroom(xCoord, yCoord));\n\t\t\t\tif (--numMushrooms == 0) {//breaks when max number of mushrooms has been reached\n\t\t\t\t\ti = 15;\n\t\t\t\t\tj = 6;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static MushroomType getRandomMushroomType(RandomSource random) {\n if (random.nextInt(100) < 5) {\n MushroomType[] specialTypes = MushroomType.getSpecialTypes();\n return specialTypes[random.nextInt(specialTypes.length)];\n } else {\n if (random.nextBoolean()) {\n return MushroomType.BROWN_MUSHROOM;\n } else {\n return MushroomType.RED_MUSHROOM;\n }\n }\n }", "public int NewMonster(){\n int r = (int) (Math.random() * (9 - 2 + 1) + 2);\n return r;\n }", "public Critter1() {\r\n\t\tnumberSpawned = 0;\r\n\t\twhile (fearfullness < 50) {//at minimum fearfullness is 50%\r\n\t\t\tfearfullness = getRandomInt(100);\r\n\t\t}\r\n\t}", "private void newPowerUp() {\r\n int row = 0;\r\n int column = 0;\r\n do {\r\n row = Numbers.random(0,maxRows-1);\r\n column = Numbers.random(0,maxColumns-1);\r\n } while(isInSnake(row,column,false));\r\n powerUp = new Location(row,column,STOP);\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }", "public String flee() {\r\n currentRoom = player.getCurrentRoom();\r\n Random random = new Random();\r\n int rooms;\r\n String res;\r\n if (currentRoom.getAmountOfMonsters() > 0) {\r\n if (random.nextInt(100) > 90) {\r\n res = \"In your attempt to flee a \" + currentRoom.getMonster(0) + \" blocks the path and you start to fight.\";\r\n res += attack();\r\n } else {\r\n res = \"In panic you scramble to a nearby room \";\r\n boolean flee = false;\r\n while (flee == false) {\r\n rooms = random.nextInt(3);\r\n switch (rooms) {\r\n case 0:\r\n if (currentRoom.getNorth() != -1) {\r\n for (int i = 0; i < dungeon.size(); i++) {\r\n if (dungeon.getRoom(i).getId() == currentRoom.getNorth()) {\r\n player.setCurrentRoom(dungeon.getRoom(i));\r\n flee = true;\r\n }\r\n }\r\n }\r\n break;\r\n\r\n case 1:\r\n if (currentRoom.getSouth() != -1) {\r\n for (int i = 0; i < dungeon.size(); i++) {\r\n if (dungeon.getRoom(i).getId() == currentRoom.getSouth()) {\r\n player.setCurrentRoom(dungeon.getRoom(i));\r\n flee = true;\r\n }\r\n }\r\n }\r\n break;\r\n case 2:\r\n if (currentRoom.getEast() != -1) {\r\n for (int i = 0; i < dungeon.size(); i++) {\r\n if (dungeon.getRoom(i).getId() == currentRoom.getEast()) {\r\n player.setCurrentRoom(dungeon.getRoom(i));\r\n flee = true;\r\n }\r\n }\r\n }\r\n break;\r\n case 3:\r\n if (currentRoom.getWest() != -1) {\r\n for (int i = 0; i < dungeon.size(); i++) {\r\n if (dungeon.getRoom(i).getId() == currentRoom.getWest()) {\r\n player.setCurrentRoom(dungeon.getRoom(i));\r\n flee = true;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n } else {\r\n res = \"There is nothing to flee from...\";\r\n }\r\n return res;\r\n }", "private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }", "static void red_fight() {\n monsterchoices_y_r = arenafight_r.nextInt(4);\n if(monsterchoices_y_r == 0){\n System.out.println(\"You encountered a gigantic ape...\");\n gigantic_ape();\n System.out.println(\"\\n\");\n }else if(monsterchoices_y_r == 1) {\n System.out.println(\"You encountered a hungry gorilla...\");\n gorilla();\n System.out.println(\"\\n\");\n }else if(monsterchoices_y_r == 2) {\n System.out.println(\"You encountered a bloodthristy pack of wolves...\");\n pack_of_wolves();\n System.out.println(\"\\n\");\n }else if (monsterchoices_y_r == 3) {\n System.out.println(\"You encountered a King Snake...\");\n rattle_snake();\n System.out.println(\"\\n\");\n }\n }", "public int getRandomBreed() {\n Random r = new Random();\n// displayToast(Integer.toString(getRandomBreed())); // not needed. generates another random number\n return r.nextInt(6);\n }", "public PunchingMonster(int health, Random random) {\r\n\t\tsuper(75);\r\n\t\tif (random == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid random number\");\r\n\t\t}\t\t\r\n\r\n\t\tthis.randomObject = random;\r\n\t}", "public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }", "private void genRandomMonsters() {\n int numMonsters;\n Random rand = new Random();\n numMonstersByType = new HashMap<>();\n\n //Randomly select the amount of monsters based on the type of room this is.\n if (contents.contains(roomContents.MONSTERS)) {\n numMonsters = rand.nextInt(5) + 4;\n } else {\n numMonsters = rand.nextInt(4);\n }\n\n //For each monster, randomly select a type\n for (int i = 0; i < numMonsters; i++) {\n int type = rand.nextInt(3) + 1;\n if (numMonstersByType.containsKey(type)) {\n numMonstersByType.put(type, numMonstersByType.get(type) + 1);\n } else {\n numMonstersByType.put(type, 1);\n }\n }\n }", "public void generateNewBoardAfterWin() {\n if(appleCount % 15 == 0) {\n System.out.println(\"CONGRATULATIONS YOU HAVE PASSED THE MAGICAL NUMBER OF: \" + appleCount);\n System.out.println(\"THIS MEANS YOU GET TO GO TO A NEW BOARD AND CONTINUE YOUR GAME - ENJOY!\");\n snakePartList.clear();\n snakeEnemyPartList.clear();\n SnakePartMaxID = 0;\n startSnake();\n }\n }", "static void tryPlantSquare() throws GameActionException{\n\t\tint num = 0;\n\t\tDirection dir = Direction.getEast();\n\t\tboolean planted = tryPlantTree(dir, 2, 10);\n\t\twhile (num <= 1 && !planted){\n\t\t\tdir = dir.rotateLeftDegrees(90);\n\t\t\tplanted = tryPlantTree(dir, 2, 10);\n\t\t\tif (planted) return;\n\t\t\tnum++;\n\t\t}\n\t}", "public void growLiving(){\n living += Math.round(Math.random());\n living -= Math.round(Math.random());\n \n if(living > 100){\n living = 100;\n }\n \n if(living < 0){\n living = 0;\n }\n }", "public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}", "private void setMines(){\n Random random = new Random();\r\n int counter = mines;\r\n while(counter>0){\r\n int rx = random.nextInt(this.x); //without +1 because it can be 0\r\n int ry = random.nextInt(this.y);\r\n if( ! this.grid[rx][ry].isMine() ){\r\n this.grid[rx][ry].setMine();\r\n counter--; \r\n }\r\n }\r\n \r\n }", "public static void spawnPlant (Species map[][], int plantSpawnRate, int plantHealth) {\n \n // Declare random coordinates\n int y, x; \n \n // Declare new plant\n Plant plant;\n \n // Spawn plants randomly until spawn rate is reached per turn\n for (int i = 0; i < plantSpawnRate; i++) {\n \n // Generate random coordinates\n y = (int)(Math.random() * map[0].length);\n x = (int)(Math.random() * map.length);\n \n // Check if space is empty and available to spawn\n if (map[y][x] == null) { \n \n // Get plant choice\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Spawn different types of plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant location\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else {\n i -= 1;\n }\n }\n \n }", "public int labyrinth (int points, int difficulty, int life)\n {\n\tint mines = (4 * difficulty);\n\n\tfor (int i = 0 ; i < 5 ; i++)\n\t{\n\t for (int j = 0 ; j < 5 ; j++)\n\t\tminefield [i] [j] = 's';\n\t}\n\n\n\tfor (int s = 0 ; s < mines ; s++)\n\t{\n\t int k = (int) (Math.random () * 5);\n\t int t = (int) (Math.random () * 5);\n\t while (minefield [k] [t] == 'm')\n\t {\n\t\tk = (int) (Math.random () * 5);\n\t\tt = (int) (Math.random () * 5);\n\t }\n\t minefield [k] [t] = 'm';\n\t}\n\n\n\tint minenum = 0;\n\tint safenum = 0;\n\tint square;\n\twhile (safenum < 5 && minenum != 3)\n\t{\n\t grid ();\n\t do\n\t {\n\t\tSystem.out.println (\" The Trapped Room\");\n\t\tsquare = IBIO.inputInt (\"\\nEnter the square you want to pick: \");\n\t }\n\t while (square >= 25);\n\t int x = (square / 5);\n\t int y = (square % 5);\n\t if (minefield [x] [y] == 'm')\n\t {\n\t\tminenum++;\n\t\tpoints += 5;\n\t\tprintSlow (\"Ouch, you hit a jinx! Be careful, you only have \" + (3 - minenum) + \" before you perish!\\n\");\n\t\tminefield [x] [y] = 'b';\n\t }\n\t else if (minefield [x] [y] == 'b' || minefield [x] [y] == 'v')\n\t {\n\t\tprintSlow (\"Nice try Harry, but you can't pick the same square twice!\");\n\t }\n\t else\n\t {\n\t\tsafenum++;\n\t\tminefield [x] [y] = 'v';\n\t\tprintSlow (\"Good job, only \" + (5 - safenum) + \" until you're safe!\\n\");\n\t }\n\t if (minenum == 3)\n\t\treturn 3;\n\n\n\t}\n\n\tprintSlow (\"Good job, you defeated Voldemort and his graveyard puzzle!\");\n\n\n\treturn 1;\n }", "public void goAdventuring() {\n\n game.createRandomMonster(4);\n if(RandomClass.getRandomTenPercent() == 5) {\n System.out.println(\"Your are walking down the road... Everything looks peaceful and calm.. Hit enter to continue!\");\n sc.nextLine();\n\n } else {\n game.battle();\n p.checkXp();\n }\n }", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "static void yellow_fight () {\n monsterchoices_y_r = arenafight_y.nextInt(4);\n if (monsterchoices_y_r == 0) {//if integer is zero, you will fight a spider\n System.out.println(\"You encountered a giant spider.\");//#enemyobject-enemy that player tries to defeat\n spider_fight();\n }else if(monsterchoices_y_r == 1) {//if integer is 1 you would fight a goblin\n System.out.println(\"You encountered a goblin.\");//#enemyobject-enemy that player tries to defeat\n goblin_fights(); \n }else if(monsterchoices_y_r == 2) { //if integer is 2, you would fight a golbat\n System.out.println(\"You encountered a golbat.\");//#enemyobject-enemy that player tries to defeat\n golbat_fights();\n }else if(monsterchoices_y_r == 3) { //if the integer is 3, you would fight a witch\n System.out.println(\"You encountered a witch.\");//#enemyobject-enemy that player tries to defeat\n witch_fights();\n }\n \n }", "public void randomize()\n {\n a = (int)(Math.random()*(1110/15))*15 + 150; \n b = (int)(Math.random()*(480/15))*15 + 150; \n \n if(!specials || difficult.equals(\"GHOST\"))\n {\n dotColor = \"RED\";\n }\n else\n { \n double c = Math.random(); \n if(c < .65 || powerupTimer > 0 || hasItem)\n {\n dotColor = \"RED\";\n }\n else if(c>=.65 && c<.70 )\n \n {\n //dotColor = \"RED SHELL\";\n dotColor = \"RED\";\n }\n else if(c>=.70 && c<.75)\n {\n dotColor = \"TROLL\";\n }\n else if(c>=.75 && c <=.8)\n {\n dotColor = \"DOUBLE\";\n }\n else if(c>.8 && c<=.85 && powerupTimer <= 0)\n {\n dotColor = \"BLUE\"; \n }\n else if(c>.85 && c<=.90 && powerupTimer <= 0)\n {\n if(!difficult.equalsIgnoreCase(\"YOU WILL NOT SURVIVE\"))\n { \n if(modeT)\n dotColor = \"CRYSTAL\";\n else\n dotColor = \"BLACK\";\n }\n else\n dotColor = \"RED\";\n }\n else if(c>.90 && c<=.93 && powerupTimer <= 0)\n {\n dotColor = \"RAINBOW\"; \n }\n else if(c>.93 && c<=.97 && powerupTimer <= 0)\n {\n dotColor = \"YELLOW\"; \n }\n else if(c>.97 && c<=1.0 && powerupTimer <= 0)\n {\n dotColor = \"WHITE\"; \n } \n else if(c>1.0 && c<=1.0 && powerupTimer <= 0)\n {\n dotColor = \"PURPLE\";\n } \n }\n }", "public static Room newRoom(int random){\n String nameRoom = \"\";\n int monsterAmount = 0;\n\t\tMonster monster;\n MonsterFactory monsterFac = new MonsterFactory();\n\t\tmonster= monsterFac.buildMonster((int)(Math.random() * 3) + 1);\n boolean createHealingPot = false;\n boolean createPitRoom = false;\n boolean createPillar = false;\n boolean createEntrance = false;\n boolean createExit = false;\n boolean createVisionPot = false;\n\n switch (random){\n case 1:\n \tnameRoom = \"The Entrance room\";\n \tmonsterAmount = 0;\n createEntrance = true;\n break;\n\n case 2:\n \tnameRoom = \"The Exit room\";\n \tmonsterAmount = 0;\n createExit = true;\n break;\n\n case 3:\n \tnameRoom = \"The room\";\n \tmonsterAmount = 1; //THIS ROOM WILL HAVE 1 MONSTER\n break;\n \n case 4:\n \tnameRoom = \"The Healing Potion room\";\n \tmonsterAmount=(int)(Math.random() * 1) + 0;\n createHealingPot = true;\n break;\n \n case 5:\n \tnameRoom = \"The Pit room\";\n \tmonsterAmount = 0;\n createPitRoom = true;\n break;\n\n case 6:\n \tnameRoom = \"The Pillar room\";\n \tmonsterAmount=(int)(Math.random() * 1) + 0;\n \tcreatePillar = true;\n break;\n \n case 7:\n \tnameRoom = \"The Vision Potion room\";\n \tmonsterAmount=0;\n createVisionPot=true;\n break;\n }\n \n if(monsterAmount <= 0 ) \n return new Room(nameRoom,createHealingPot, createPitRoom, createEntrance, createExit, createPillar, monsterAmount,createVisionPot);\n else\n return new Room(nameRoom,createHealingPot, createPitRoom, createEntrance, createExit, createPillar, monster, monsterAmount,createVisionPot);\n\n }", "void mining() {\n //COMPUTE ALL DATA HERE\n if (random.nextBoolean()) {\n black_toner = black_toner + random.nextInt(variation);\n black_drum = black_drum + random.nextInt(variation / 2);\n total_printed_black = total_printed_black + random.nextInt(variation);\n } else {\n black_toner = black_toner - random.nextInt(variation);\n black_drum = black_drum - random.nextInt(variation / 2);\n total_printed_black = total_printed_black - random.nextInt(variation);\n }\n\n if (black_toner <= 0) {\n black_toner = 100;\n }\n if (black_drum <= 0) {\n black_drum = 100;\n }\n if (total_printed_black <= 0) {\n total_printed_black = 100;\n }\n }", "static void Dungeonforgotten() {\n\t\t\n\t\tint[] lvldata;\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Fate has chosen...\");\n\t\tSystem.out.println(\"|| The Forgotten dungeon ||\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"The Forgotten dungeon is an EASY dungeon in which every book you find contains sacred text of a civilization,\\n whose language is long forgotten, but their magical powers have anything but dwindled.\");\n\t\tSystem.out.println(\"By completing this dungeon you will increase your ability to read their language,\\n and thus, understand their arcane arts.\");\n\t\t\n\t\tdungeonsize = (int) (Math.random() * 12) + 5;\n\t\tdungeondiff = 0.6;\n\t\thubcount = (int) (Math.random() * 3) + 1;\t\n\t\tlvldata = LevelGen();\n\t\tfor(int i = 1; i < dungeonsize - 1; i++) {\n\t\t\tEngine.roomaction(lvldata[i]);\n\t\t\t// TODO Forgotten progression\n\t\t}\n\t\tSystem.out.println(\"\tDebug: DungeonForgotten passed\");\n\t}", "private void spawnSomeGold() {\n if (goldSpawned.size() >= goldSpawnPoints.size()) {\n return;\n }\n Location loc = goldSpawnPoints.get(random.nextInt(goldSpawnPoints.size()));\n Item item = loc.getWorld().dropItem(loc, new ItemStack(Material.GOLD_INGOT, 1));\n goldSpawned.add(item);\n }", "public void speckle() {\n\t\tint r = (height / res) - 1;\n\t\tint c = (width / res);\n\t\tfor (int i = 0; i < c; i++)\t\t{\n\t\t\tint x = rng.nextInt(25);\t\t\t\n\t\t\tif (x == 0) { // 1/25 chance of changing bottom row pixel to black\t \n\t\t\t\tvalues[r][i] = color1;\t\t\t\t\n\t\t\t}\n\t\t\telse if (x == 1) { // 1/25 chance of changing bottom row pixel to white\n\t\t\t\tvalues[r][i] = color2;\n\t\t\t}\n\t\t\t// 23/25 chance of leaving bottom pixel alone\n\t\t}\n\t}", "private void layMineField ( int n , int pct)\n { \n Random generator = new Random( n );\n \n for ( int r = 0 ; r < rows ; r++ )\n {\n for ( int c = 0; c < cols ; c++ ) \n {\n if ( generator.nextInt( 100 ) < pct )\n theMines[ r ][ c ] = 1; \n else\n theMines[ r ][ c ] = 0;\n }\n }\n }", "public void reproduce() {\n if (getSelfCount() >= getMinMates() && getLocation()\n .getEmptyCount() >= getMinEmpty()\n && getFoodCount() >= getMinFood() && dayCountDown != 0) {\n int index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n Cell selectedCell = getLocation().getEmptyArray().get(index);\n createLife(selectedCell).init();\n \n }\n \n }", "static boolean getMauled(){\n\t\t\tif (Person.player.inventory.contains(Item.repellent)) //if you have the goose repellent...\n\t\t\t\treturn (MainFile.getRandomNumber(240) == 12); //drastically lowers your chance of being mauled.\n\t\t\treturn (MainFile.getRandomNumber(20) == 12);//generates a random number for if you don't have it, and if it's 12 you get mauled\n\t\t}", "public synchronized int setLuggageWeight(){\n return random.nextInt((30-0)+1)+0;\n }", "public Location spread()\n {\n // plant needs to be alive, ready to reproduce (# of turns) \n // square needs to have fewer than 10 plants, BUT a tree can kill \n // a grass plant\n }", "public void createWall() { // make case statement?\n\t\tRandom ran = new Random();\n\t\tint range = 6 - 1 + 1; // max - min + min\n\t\tint random = ran.nextInt(range) + 1; // add min\n\n\t\t//each wall is a 64 by 32 chunk \n\t\t//which stack to create different structures.\n\t\t\n\t\tWall w; \n\t\tPoint[] points = new Point[11];\n\t\tpoints[0] = new Point(640, -32);\n\t\tpoints[1] = new Point(640, 0);\n\t\tpoints[2] = new Point(640, 32); // top\n\t\tpoints[3] = new Point(640, 384);\n\t\tpoints[4] = new Point(640, 416);\n\n\t\tif (random == 1) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 2) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96); // top\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 3) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192); // top\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 4) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192);\n\t\t\tpoints[10] = new Point(640, 224); // top\n\t\t} else if (random == 5) {\n\t\t\tpoints[5] = new Point(640, 64); // top\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 6) {\n\t\t\tpoints[5] = new Point(640, 192);\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256); // bottom\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t}\n\n\t\tfor (int i = 0; i < points.length; i++) { // adds walls\n\t\t\tw = new Wall();\n\t\t\tw.setBounds(new Rectangle(points[i].x, points[i].y, 64, 32));\n\t\t\twalls.add(w);\n\t\t}\n\t\tWall c; // adds a single checkpoint\n\t\tc = new Wall();\n\t\tcheckPoints.add(c);\n\t\tc.setBounds(new Rectangle(640, 320, 32, 32));\n\t}", "public void step()\n\t{\n\t\t// Reservoir sampling by generating ordered list of numbers\n\t\t// randomly pick a number within length and use that as index\n\t\tRandom rand = new Random();\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < listOfCells.size(); i++) { numbers.add(i); }\n\t\t\n\t\t// Randomly sample from reservoir until empty\n\t\twhile(numbers.size() > 0)\n\t\t{\n\t\t\tint picked_index = rand.nextInt(numbers.size());\n\t\t\tint picked_val = numbers.get(picked_index);\n\t\t\t\n\t\t\t//TODO: Maybe call a function on cell of random action that might occur\n\t\t\t//\tConsider only returning object when necessary, (how it is now)\n\t\t\tPlantCell newObject = listOfCells.get(picked_val).doAction();\n\t\t\tif(newObject != null)\n\t\t\t{\n//\t\t\t\tSystem.out.println(\"New cell generated!\");\n\t\t\t\tlistOfCells.add(newObject);\n\t\t\t}\n\t\t\t\n\t\t\t//Kill spawning cell if its health drops <= 0\n\t\t\t//should die right away to make room for other cell\n\t\t\tif(listOfCells.get(picked_val).getHealth() <= 0)\n\t\t\t{\n\t\t\t\tenvironmentPointer.map[listOfCells.get(picked_val).getX()][listOfCells.get(picked_val).getY()] = null;\n\t\t\t\tlistOfCells.set(picked_val, null); //Set to null as to preserve list integrity for reservoir sampling, will be removed later\n\t\t\t}\n\t\t\t\n\t\t\tnumbers.remove(picked_index);\n\t\t}\n\t\t\n\t\t// All recently dead cells are now null in our cell list, so we are removing them from the list now\n\t\tfor(int i = 0; i < listOfCells.size(); i++)\n\t\t{\n\t\t\tif(listOfCells.get(i) == null)\n\t\t\t{\n\t\t\t\tlistOfCells.remove(i);\n\t\t\t\ti--; //Adjust for changing size\n\t\t\t}\n\t\t}\n\t}", "public void step()\n { \n //Remember, you need to access both row and column to specify a spot in the array\n //The scalar refers to how big the value could be\n //int someRandom = (int) (Math.random() * scalar)\n //remember that you need to watch for the edges of the array\n\t int randomRow = (int)(Math.random() * grid.length - 1);\n\t int randomCol = (int)(Math.random() * grid[0].length - 1);\n\t int randomDirection = (int)(Math.random() * 3);\n\t int randomDirectionFire = (int)(Math.random() * 4);\n\t int randomSpread = (int)(Math.random() * 100);\n\t int randomTelRow = (int)(Math.random() * grid.length);\n\t int randomTelCol = (int)(Math.random() * grid[0].length);\n\t \n\t //Sand\n\t if(grid[randomRow][randomCol] == SAND && (grid[randomRow + 1][randomCol] == EMPTY || grid[randomRow + 1][randomCol] == WATER))\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == WATER)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = WATER;\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\n\t }\n\t //Water\n\t if(grid[randomRow][randomCol] == WATER && randomCol - 1 >= 0)\n\t {\n\t\t if(randomDirection == 1 && grid[randomRow + 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(randomDirection == 2 && grid[randomRow][randomCol - 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(grid[randomRow][randomCol + 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t //Helium\n\t if(grid[randomRow][randomCol] == HELIUM && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow - 1][randomCol] == WATER)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = WATER;\n\t\t }\n\t\t else if(randomDirection == 1 && grid[randomRow - 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(randomDirection == 2 && grid[randomRow][randomCol - 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(grid[randomRow][randomCol + 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t \n\t //Bounce\n\t if(grid[randomRow][randomCol] == BOUNCE)\n\t { \t\n\t\t if(randomRow + 1 >= grid[0].length - 1 || randomRow + 1 == METAL)\n\t\t {\n\t\t\t hitEdge[randomCol] = true;\n\t\t }\n\t\t else if(randomRow - 1 < 0 || randomRow - 1 == METAL)\n\t\t {\n\t\t\t hitEdge[randomCol] = false;\n\t\t }\n\t\t \n\t\t if(hitEdge[randomCol] == true)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = BOUNCE;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = BOUNCE;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t \n\t //Virus\n\t if(grid[randomRow][randomCol] == VIRUS && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = VIRUS;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t \n\t\t\t int temp = grid[randomRow + 1][randomCol];\n\t\t\t //VIRUS takeover\n\t\t\t if(grid[randomRow - 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow - 1][randomCol] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow + 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol - 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol - 1] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol + 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol + 1] = VIRUS;\n\t\t\t }\n\t\t\t //TEMP takeover\n\t\t\t grid[randomRow][randomCol] = temp;\n\t\t\t if(grid[randomRow - 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow - 1][randomCol] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow + 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol - 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol - 1] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol + 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol + 1] = temp;\n\t\t\t }\n\t }\n\t \n\t //Fire\n\t if(grid[randomRow][randomCol] == FIRE && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t { \n\t\t if(randomDirectionFire == 1)\n\t\t {\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t else if(randomDirectionFire == 2)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol - 1] = FIRE;\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t else if(randomDirectionFire == 3)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol + 1] = FIRE;\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t \n\t\t //Fire Eats Vine\n\t\t if(grid[randomRow - 1][randomCol] == VINE)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = FIRE;\n\t\t }\n\t\t if(grid[randomRow + 1][randomCol] == VINE)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = FIRE;\n\t\t }\n\t\t if(grid[randomRow][randomCol - 1] == VINE)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = FIRE;\n\t\t }\n\t\t if(grid[randomRow][randomCol + 1] == VINE)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = FIRE;\n\t\t }\n\t\t \n\t\t //Fire Blows Up Helium\n\t\t if(grid[randomRow - 1][randomCol] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t //Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow + 1][randomCol] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow][randomCol - 1] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow][randomCol + 1] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t }\n\t \n\t //Vine\n\t if(grid[randomRow][randomCol] == VINE && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == EMPTY)\n\t\t { \n\t\t\t if(randomSpread == 1)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VINE;\n\t\t\t }\n\t\t }\n\t\t else if(grid[randomRow + 1][randomCol] == WATER)\n\t\t {\n\t\t\t if(randomSpread >= 90)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VINE;\n\t\t\t\t grid[randomRow][randomCol + 1] = VINE;\n\t\t\t\t grid[randomRow][randomCol - 1] = VINE;\n\t\t\t }\n\t\t }\n\t }\n\t \n\t //Teleport\n\t if(grid[randomRow][randomCol] == TELEPORT && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t grid[randomTelRow][randomTelCol] = TELEPORT;\n\t\t grid[randomRow][randomCol] = EMPTY;\n\t }\n\t \n\t //Laser\n\t if(grid[randomRow][randomCol] == LASER && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(randomDirectionLaser == 1 && randomRow - 4 >= 0)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = LASER;\n\t\t\t grid[randomRow - 4][randomCol] = EMPTY;\n\t\t\t if(randomRow + 1 == grid.length - 1)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 2][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 3][randomCol] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else if(randomDirectionLaser == 2)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = LASER;\n\t\t\t grid[randomRow + 4][randomCol] = EMPTY;\n\t\t\t if(randomRow - 1 == 0)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 2][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 3][randomCol] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else if(randomDirectionLaser == 3 && randomCol - 4 >= 0)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = LASER;\n\t\t\t grid[randomRow][randomCol - 4] = EMPTY;\n\t\t\t if(randomCol + 1 == grid[0].length - 1)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 2] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 3] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = LASER;\n\t\t\t grid[randomRow][randomCol + 4] = EMPTY;\n\t\t\t if(randomCol - 1 == 0)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 2] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 3] = EMPTY;\n\t\t\t }\n\t\t }\n\t }\n }", "public Monster(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t\thealth = rnd.nextInt(MAX_MONSTER_HEALTH - MIN_MONSTER_HEALTH + 1)\r\n\t\t\t\t+ MIN_MONSTER_HEALTH;\r\n\t}", "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}", "@Override\n public int attack() {\n return new Random().nextInt(5);\n }", "private void randomBuildings(int numB)\n\t{\n\t\t/* Create buildings of a reasonable size for this map */\n\t\tint bldgMaxSize = width/6;\n\t\tint bldgMinSize = width/50;\n\n\t\t/* Produce a bunch of random rectangles and fill in the walls array */\n\t\tfor(int i=0; i < numB; i++)\n\t\t{\n\t\t\tint tx, ty, tw, th;\n\t\t\ttx = Helper.nextInt(width);\n\t\t\tty = Helper.nextInt(height);\n\t\t\ttw = Helper.nextInt(bldgMaxSize) + bldgMinSize;\n\t\t\tth = Helper.nextInt(bldgMaxSize) + bldgMinSize;\n\n\t\t\tfor(int r = ty; r < ty + th; r++)\n\t\t\t{\n\t\t\t\tif(r >= height)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor(int c = tx; c < tx + tw; c++)\n\t\t\t\t{\n\t\t\t\t\tif(c >= width)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\twalls[c][r] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private Integer randomHemoglobina(){\n\t\t\tint Min = 9, Max = 23;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}", "public int chasePlayer(Room room)\n {\n if(stunCountdown > 0) \n return stunCountdown;\n if(getCurrentRoom().equals(Game.getInstance().getPlayer().getCurrentRoom()))\n {\n return(5 + (int) Math.floor(Math.random() * 6));\n }\n if(chasingPlayer)\n {\n setRoom(room);\n chanceOfSabotage += CHANCE_OF_SABOTAGE_GROWTH;\n \n if(Game.getInstance().getPlayer().getCurrentRoom().isControlRoom())\n {\n chasingPlayer = false;\n }\n \n return(5 + (int) Math.floor(Math.random() * 6));\n }\n else\n {\n return(checkChasingPlayer());\n }\n }", "private Color randomColor()\r\n {\r\n \tint randomNum = random.nextInt(5);\r\n \t\r\n \tif (randomNum == RED)\r\n \t\treturn Color.RED;\r\n \telse if (randomNum == GREEN)\r\n \t\treturn Color.GREEN;\r\n \telse if (randomNum == BLUE)\r\n \t\treturn Color.BLUE;\r\n \telse if (randomNum == BLACK)\r\n \t\treturn Color.BLACK;\r\n \telse \r\n \t\treturn Color.CYAN;\r\n \t\r\n\t\t\r\n }", "public abstract int getRandomDamage();", "public void assignmines() {\n\n for(int row = 0; row < mineBoard.length; row++) {\n for(int col = 0; col < mineBoard[0].length; col++) {\n mineBoard[row][col] = 0;\n }\n }\n\n int minesPlaced = 0;\n Random t = new Random();\n while(minesPlaced < nummines) {\n int row = t.nextInt(10);\n int col = t.nextInt(10);\n if(mineBoard[row][col] == Empty) {\n setmine(true);\n mineBoard[row][col] = Mine;\n minesPlaced++;\n }\n }\n }", "abstract public RandomRange getPlunderRange(Unit attacker);", "public synchronized int setPassengerWeight(){\n return random.nextInt((100-40)+1)+40;\n }", "private void addNewRandomRabbit() {\n int countLimit = 10 * gridSize ^ 2;\n boolean foundFreeCell = false;\n int count = 0;\n while (!foundFreeCell && count < countLimit) {\n int x = (int) (Math.random() * gridSize);\n int y = (int) (Math.random() * gridSize);\n if (addNewRabbit(x, y)) {\n foundFreeCell = true;\n }\n count++;\n }\n }", "public static boolean [][] breedChoice (Species [][] map, int x, int y, int plantHealth) {\n // First int: direction\n // Second int: sheep or wolf\n boolean [][] breeding = {\n {false, false},\n {false, false},\n {false, false},\n {false, false},\n };\n \n // Check null pointer exceptions\n if (map[y][x] != null) {\n\n // Breed sheep\n if ((map[y][x] instanceof Sheep) && (y > 0) && (map[y-1][x] instanceof Sheep)) {\n if ((((Sheep)map[y][x]).getGender() != ((Sheep)map[y-1][x]).getGender()) && (map[y][x].getHealth() > 20) && (map[y-1][x].getHealth() > 20) && (((Sheep)map[y][x]).getAge() > 5) && (((Sheep)map[y-1][x]).getAge() > 5)) {\n breeding[0][0] = true;\n }\n } else if ((map[y][x] instanceof Sheep) && (y < map[0].length - 2) && (map[y+1][x] instanceof Sheep)) {\n if ((((Sheep)map[y][x]).getGender() != ((Sheep)map[y+1][x]).getGender()) && (map[y][x].getHealth() > 20) && (map[y+1][x].getHealth() > 20) && (((Sheep)map[y][x]).getAge() > 5) && (((Sheep)map[y+1][x]).getAge() > 5)) {\n breeding[1][0] = true;\n }\n } else if ((map[y][x] instanceof Sheep) && (x > 0) && (map[y][x-1] instanceof Sheep)) {\n if ((((Sheep)map[y][x]).getGender() != ((Sheep)map[y][x-1]).getGender()) && (map[y][x].getHealth() > 20) && (map[y][x-1].getHealth() > 20) && (((Sheep)map[y][x]).getAge() > 5) && (((Sheep)map[y][x-1]).getAge() > 5)) {\n breeding[2][0] = true;\n }\n } else if ((map[y][x] instanceof Sheep) && (x < map.length - 2) && (map[y][x+1] instanceof Sheep)) {\n if ((((Sheep)map[y][x]).getGender() != ((Sheep)map[y][x+1]).getGender()) && (map[y][x].getHealth() > 20) && (map[y][x+1].getHealth() > 20) && (((Sheep)map[y][x]).getAge() > 5) && (((Sheep)map[y][x+1]).getAge() > 5)) {\n breeding[3][0] = true;\n }\n \n // Breed wolves\n } else if ((map[y][x] instanceof Wolf) && (y > 0) && (map[y-1][x] instanceof Wolf)) {\n if ((((Wolf)map[y][x]).getGender() != ((Wolf)map[y-1][x]).getGender()) && (map[y][x].getHealth() > 20) && (map[y-1][x].getHealth() > 20) && (((Wolf)map[y][x]).getAge() > 5) && (((Wolf)map[y-1][x]).getAge() > 5)) {\n breeding[0][1] = true;\n }\n } else if ((map[y][x] instanceof Wolf) && (y < map[0].length - 2) && (map[y+1][x] instanceof Wolf)) {\n if ((((Wolf)map[y][x]).getGender() != ((Wolf)map[y+1][x]).getGender()) && (map[y][x].getHealth() > 20) && (map[y+1][x].getHealth() > 20) && (((Wolf)map[y][x]).getAge() > 5) && (((Wolf)map[y+1][x]).getAge() > 5)) {\n breeding[1][1] = true;\n }\n } else if ((map[y][x] instanceof Wolf) && (x > 0) && (map[y][x-1] instanceof Wolf)) {\n if ((((Wolf)map[y][x]).getGender() != ((Wolf)map[y][x-1]).getGender()) && (map[y][x].getHealth() > 20) && (map[y][x-1].getHealth() > 20) && (((Wolf)map[y][x]).getAge() > 5) && (((Wolf)map[y][x-1]).getAge() > 5)) {\n breeding[2][1] = true;\n }\n } else if ((map[y][x] instanceof Wolf) && (x < map.length - 2) && (map[y][x+1] instanceof Wolf)) {\n if ((((Wolf)map[y][x]).getGender() != ((Wolf)map[y][x+1]).getGender()) && (map[y][x].getHealth() > 20) && (map[y][x+1].getHealth() > 20) && (((Wolf)map[y][x]).getAge() > 5) && (((Wolf)map[y][x+1]).getAge() > 5)) {\n breeding[3][1] = true;\n }\n }\n \n }\n return breeding;\n }", "int random(int m)\n {\n return (int) (1 + Math.random()%m);\n }", "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 BlockType randomBlock(){\n // Check whether a powerup should be chosen or not\n if(random.nextInt(9) == 0){\n // Return a random powerup\n return allPowerUps.get(random.nextInt(allPowerUps.size()));\n\t}\n\treturn BlockType.PLATTFORM;\n }", "public void placeBombs(int difficulty){\r\n int randomRow;\r\n int randomCol;\r\n int maxBombs;\r\n if(difficulty == 1){\r\n maxBombs = 12;\r\n bombDifficulty(maxBombs);\r\n\r\n }\r\n if(difficulty == 2){\r\n maxBombs = 41;\r\n bombDifficulty(maxBombs);\r\n }\r\n if(difficulty == 3){\r\n maxBombs = 102;\r\n bombDifficulty(maxBombs);\r\n }\r\n\r\n }", "private static Gremblin getRandomGrem(DMPlayer p){\n\t\tdouble ran = Math.random();\n\t\t//red\n\t\tif(ran<=.333){\n\t\t\treturn new Gremblin('r',p);\n\t\t}\n\t\t//blue\n\t\tif(ran<.667){\n\t\t\treturn new Gremblin('b',p);\n\t\t}\n\t\t//yellow\n\t\treturn new Gremblin('y',p);\n\t}", "public int monsterAttack(){\n Random ran = new Random();\n return ran.nextInt(4);\n }", "public void newGame() {\n\t\ttheNumber = (int)(Math.random()* 100 + 1);\r\n\t\t\r\n\t}", "public void drawMushroom(int x, int y, Color r) {\n\n\t\tPixelController px = PixelController.getInstance(Screen.MEDEA_3);\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(3000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t/* Colors in the array */ \n\t\tColor b = Color.BLACK;\n\t\tColor w = Color.WHITE;\n\t\tColor n = null;\n\t\t\n\t\tColor[][] superMushroom = {\n\t\t\t\t{n,n,n,n,n,b,b,b,b,b,b,n,n,n,n,n},\n\t\t\t\t{n,n,n,b,b,r,r,r,r,w,w,b,b,n,n,n},\n\t\t\t\t{n,n,b,w,w,r,r,r,r,w,w,w,w,b,n,n},\n\t\t\t\t{n,b,w,w,r,r,r,r,r,r,w,w,w,w,b,n},\n\t\t\t\t{n,b,w,r,r,w,w,w,w,r,r,w,w,w,b,n},\n\t\t\t\t{b,r,r,r,w,w,w,w,w,w,r,r,r,r,r,b},\n\t\t\t\t{b,r,r,r,w,w,w,w,w,w,r,r,w,w,r,b},\n\t\t\t\t{b,w,r,r,w,w,w,w,w,w,r,w,w,w,w,b},\n\t\t\t\t{b,w,w,r,r,w,w,w,w,r,r,w,w,w,w,b},\n\t\t\t\t{b,w,w,r,r,r,r,r,r,r,r,r,w,w,r,b},\n\t\t\t\t{b,w,r,r,b,b,b,b,b,b,b,b,r,r,r,b},\n\t\t\t\t{n,b,b,b,w,w,b,w,w,b,w,w,b,b,b,n},\n\t\t\t\t{n,n,b,w,w,w,b,w,w,b,w,w,w,b,n,n},\n\t\t\t\t{n,n,b,w,w,w,w,w,w,w,w,w,w,b,n,n},\n\t\t\t\t{n,n,n,b,w,w,w,w,w,w,w,w,b,n,n,n},\n\t\t\t\t{n,n,n,n,b,b,b,b,b,b,b,b,n,n,n,n}\n\t\t}; \n\t\t/* loops out the color of the mushroom from the array */\n\t\tfor(int i = 15; i >= 0; i --) {\n\t\t\tfor(int j = 0; j < 16; j ++) {\n\t\t\t\tif(superMushroom[i][j] != null ){\n\t\t\t\t\tpx.setPixel(x + i, y + j, superMushroom[i][j]);\n\t\t\t\t\t//System.out.print(superMushroom[y][x].toString());\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\t\n\t\t\n\t}", "private void deliverBomb(Player me, Location location) \n {\n for (int i = 0; i < NUMBER_OF_BOMBS; i++) \n {\n double plusX = Math.random() * 5;\n if ((Math.random() * 10) < 6) \n {\n \t plusX = (0 - plusX);\n }\t\t\t\n double plusZ = Math.random() * 5;\n if ((Math.random() * 10) < 6) \n {\n plusZ = (0 - plusZ);\n }\n Location newLocation = new Location(location.getWorld(),\n location.getX() + plusX, \n location.getY() + (Math.random() + 20),\n location.getZ() + plusZ);\n // This spawns the creeper at the location provided\n me.getWorld().spawn(newLocation, Creeper.class);\n } \n }", "public void spawnNpcOnChance(Location location) {\r\n\t\t\tif(location.isOutdoors() && Math.random() < 0.20) {\r\n\t\t\t\tthis.spawnEnemy(location);\r\n\t\t\t}\r\n\t\t}", "private int getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }", "public static boolean chance() {\r\n Random rand = new Random();\r\n int chance = rand.nextInt(10);\r\n return chance > 5;\r\n }", "void makeMoreRooms() {\n\t\twhile(rooms.size() < size.maxRooms) {\n\t\t\t\tRoom made;\n\t\t\t\tint height = baseHeight;\n\t\t\t\tint x = random.nextInt(size.width);\n\t\t\t\tint z = random.nextInt(size.width);\n\t\t\t\tint xdim = random.nextInt(size.maxRoomSize - 5) + 6;\n\t\t\t\tint zdim = random.nextInt(size.maxRoomSize - 5) + 6;\n\t\t\t\tif(bigRooms.use(random)) {\n\t\t\t\t\txdim += random.nextInt((size.maxRoomSize / 2)) + (size.maxRoomSize / 2);\n\t\t\t\t\tzdim += random.nextInt((size.maxRoomSize / 2)) + (size.maxRoomSize / 2);\n\t\t\t\t}\n\t\t\t\tint ymod = (xdim <= zdim) ? (int) Math.sqrt(xdim) : (int) Math.sqrt(zdim);\n\t\t\t\tint roomHeight = random.nextInt((verticle.value / 2) + ymod + 1) + 2;\n\t\t\t\tmade = new PlaceSeed(x, height, z).growRoom(xdim, zdim, roomHeight, this, null, null);\n\t\t\t}\t\t\n\t\t//DoomlikeDungeons.profiler.endTask(\"Adding Extra Rooms (old)\");\n\t\t}", "public Monster() {\n\t super();\n\t _hitPts = 150;\n\t _strength = 20 + (int)( Math.random() * 45 ); // [20,65)\n _defense = 40;\n\t _attack = .4;\n }", "private void moveRandomly()\r\n {\r\n if (Greenfoot.getRandomNumber (100) == 50)\r\n turn(Greenfoot.getRandomNumber(360));\r\n else\r\n move(speed);\r\n }", "@Override\n public ColorRow breakerGuess(int pegs, int colors) {\n if (turnBlacks.size() == 0 && turnWhites.size() == 0) {\n ColorRow initialGuess = breakerInitialGuess(pegs, colors);\n gameGuesses.add(initialGuess);\n return initialGuess;\n }\n int generation = 0;\n boolean feasibleNotFull = true;\n initPopulation(pegs, colors);\n calculateFitness();\n sortFeasibleByFitness(fitness, population);\n while (feasibleCodes.isEmpty()) {\n generation = 0;\n while (feasibleNotFull && generation <= GENERATION_SIZE) {\n evolvePopulation(pegs, colors);\n calculateFitness();\n sortFeasibleByFitness(fitness, population);\n feasibleNotFull = addToFeasibleCodes();\n generation += 1;\n }\n\n }\n ColorRow guess = feasibleCodes.get((int) (Math.random() * feasibleCodes.size()));\n gameGuesses.add(guess);\n return guess;\n }", "void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=false;\r\n boolean down=false;\r\n boolean right=false;\r\n boolean left=false;\r\n boolean baby=false;\r\n boolean turn=map[x][y].getMovement(); //Check to see if it moved before in the array\r\n \r\n double random=Math.random();\r\n \r\n \r\n \r\n \r\n //Checks to see if it is possible to even see to the left first\r\n if(y-1>=0){\r\n left=true;\r\n \r\n if(turn && (map[x][y-1] instanceof Plant) ){ //Check to see if there is plants and goes to plants\r\n map[x][y].gainHealth((map[x][y-1].getHealth()));\r\n map[x][y].setMovement(false); \r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n if(turn && (map[x][y-1] instanceof Sheep) && (age==map[x][y-1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y-1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y-1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){ \r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null)&& !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null)&& !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if((y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){\r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y-1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n //If it can move to the left need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y-2>=0){\r\n checkLeft=true;\r\n }\r\n }\r\n \r\n //Checks to see if it is possible to even see to the right first \r\n if(y+1<gridWidth){\r\n right=true;\r\n \r\n //Check to move on towards plants\r\n if(turn && (map[x][y+1] instanceof Plant)){\r\n map[x][y].gainHealth(map[x][y+1].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n \r\n if(turn && (map[x][y+1] instanceof Sheep && age==map[x][y+1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y+1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y+1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheeps will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y+1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y+1].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to the right need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y+2<gridWidth){ \r\n checkRight=true;\r\n }\r\n } \r\n \r\n //Check to see if it can go up\r\n if(x-1>=0){\r\n up=true;\r\n \r\n //Check for plant to go on to upwards \r\n if(turn && (map[x-1][y] instanceof Plant) ){\r\n map[x][y].gainHealth(map[x-1][y].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n }\r\n \r\n if(turn && (map[x-1][y] instanceof Sheep) && (age==map[x-1][y].getAge()) ){ \r\n //If the ages match age must be false to be adults and both be opposite genders and have more then 19 health\r\n if(turn && !age && !(gender==map[x-1][y].getGender()) &&map[x][y].getHealth()>19 &&map[x-1][y].getHealth()>19){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x-1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x-1][y].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to upwards need to check if it can foresee more incase there wasn't any place for it to go\r\n if(x-2>=0){\r\n checkUp=true; \r\n }\r\n } \r\n //Check to see where to go downwards\r\n if(x+1<gridLength){\r\n down=true; \r\n \r\n //Check to see if any plants are downwards\r\n if(turn && (map[x+1][y] instanceof Plant) ){\r\n map[x][y].gainHealth( (map[x+1][y].getHealth()));\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n } \r\n \r\n if(turn && (map[x+1][y] instanceof Sheep) && (age==map[x+1][y].getAge()) ){ \r\n \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x+1][y].getGender()) && (map[x][y].getHealth()>=20) && (map[x+1][y].getHealth()>=20) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (x-1>=0) && (map[x+1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x+1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n } \r\n if(x+2<gridLength){\r\n checkDown=true;\r\n }\r\n } \r\n \r\n //Movement towards plant only if no immediate sheep/plants are there to move to\r\n if(turn && checkRight && (map[x][y+2] instanceof Plant) ){\r\n if(map[x][y+1]==null){\r\n \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y+1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n if(turn && checkDown && (map[x+2][y] instanceof Plant) ){\r\n if(map[x+1][y]==null){\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n }\r\n } \r\n if(turn && checkUp && (map[x-2][y] instanceof Plant) ){\r\n if(map[x-1][y]==null){\r\n \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x-1][y].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n if(turn && checkLeft && (map[x][y-2] instanceof Plant) ){\r\n if(map[x][y-1]==null){\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n //Random Movement if there are no plants to move towards \r\n if(turn && right && (random<=0.2) ){\r\n if(map[x][y+1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null; \r\n }\r\n }\r\n if(turn && left && (random>0.2) && (random<=0.4) ){\r\n if(map[x][y-1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && up && (random>0.4) && (random<=0.6) ){\r\n if(map[x-1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && down && (random>0.6) && (random<=0.8) ){\r\n if(map[x+1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n }", "void mosaic(int seed);", "protected void putMonsters() {\n\t\tRandom rand = new Random();\n\t\tfor (int monsterCount = 0; monsterCount < 4; monsterCount++){\n\t\t\tint x, y;\n\t\t\tdo {\n\t\t\t\tx = rand.nextInt(xSize);\n\t\t\t\ty = rand.nextInt(ySize);\n\t\t\t} while((levelSetup[x][y] instanceof SimpleRoom) && (x == 0 & y == 0) && !levelSetup[x][y].hasItem());\n\t\t\tlevelSetup[x][y].putMonster(new BasicMonster());\n\t\t}\n\t}", "public int dmg(){\r\n dmg = rand.nextInt(att);\r\n if(att == 1)\r\n dmg = 1;\r\n return dmg;\r\n }", "public static int [] moveDecision (Species [][] map, int x , int y, int plantHealth) {\n \n // Directions: Up = 1, Down = 2, Left = 3, Right = 4\n // Last choice is random movement\n // Animals: sheep = 0, wolves = 1\n int [] directionChoice = new int [] {1 + (int)(Math.random() * 4), 1 + (int)(Math.random() * 4)};\n \n // Find any animals\n if ((map[y][x] != null) && (!(map[y][x] instanceof Plant))) {\n \n // Sheep decisions (sheep cannot decide whether or not to move away from wolves)\n if (map[y][x] instanceof Sheep) {\n \n // First choice is to eat\n if ((y > 0) && (map[y-1][x] instanceof Plant)) {\n directionChoice[0] = 1;\n } else if ((y < map[0].length - 2) && (map[y+1][x] instanceof Plant)) {\n directionChoice[0] = 2;\n } else if ((x > 0) &&(map[y][x-1] instanceof Plant)) {\n directionChoice[0] = 3;\n } else if ((x < map.length - 2) && (map[y][x+1] instanceof Plant)) {\n directionChoice[0] = 4;\n \n // Wolf decisions\n } else if (map[y][x] instanceof Wolf) {\n \n // First choice is to eat\n if ((y > 0) && (map[y-1][x] instanceof Sheep)) {\n directionChoice[1] = 1;\n } else if ((y < map[0].length - 2) && (map[y+1][x] instanceof Sheep)) {\n directionChoice[1] = 2;\n } else if ((x > 0) && (map[y][x-1] instanceof Sheep)) {\n directionChoice[1] = 3;\n } else if ((x < map.length - 2) && (map[y][x+1] instanceof Sheep)) {\n directionChoice[1] = 4;\n \n // Second choice is to fight a weaker wolf\n } else if ((y > 0) && (map[y-1][x] instanceof Wolf)) {\n directionChoice[1] = 1;\n } else if ((y < map[0].length - 2) && (map[y+1][x] instanceof Wolf)) {\n directionChoice[1] = 2;\n } else if ((x > 0) && (map[y][x-1] instanceof Wolf)) {\n directionChoice[1] = 3;\n } else if ((x < map.length - 2) && (map[y][x+1] instanceof Wolf)) {\n directionChoice[1] = 4;\n }\n }\n \n }\n }\n return directionChoice; // Return choice to allow animals to move\n }", "private static ResourceLocation getRandomMonster(Random rand)\n\t{\n\t\tRandomCollection<ResourceLocation> monsters = new RandomCollection<ResourceLocation>();\n\t\t\n\t\tmonsters.add(10, EntityList.getKey(EntityZombie.class));\n\t\tmonsters.add(10, EntityList.getKey(EntitySkeleton.class));\n\t\tmonsters.add(10, EntityList.getKey(EntitySpider.class));\n\t\tmonsters.add(7, EntityList.getKey(EntityGhost.class));\n\t\tmonsters.add(7, EntityList.getKey(EntityBarbarian.class));\n\t\t//monsters.add(4, EntityList.getKey(EntityBandit.class));\n\t\tmonsters.add(3, EntityList.getKey(EntityBanshee.class));\n\t\tmonsters.add(1, EntityList.getKey(EntityGolem.class));\n\t\t\n\t\treturn monsters.next(rand);\n\t}", "private Level produce() {\n\t\tint[][]grid = new int[row][column];\n\t\tArrayList<Point> goals = new ArrayList<Point>();\n\t\tint newRand = 0;\n\t\tfor (int x = 0; x < row; x++)\t{\n\t\t\tfor (int y = 0; y < column; y++)\t{\n\t\t\t\tnewRand = rand.nextInt(TOTAL);\n\t\t\t\tif (newRand < CAT_1)\t{\n\t\t\t\t\tgrid[x][y] = 1;\n\t\t\t\t} else if (newRand < CAT_2)\t{\n\t\t\t\t\tgrid[x][y] = 2;\n\t\t\t\t} else if (newRand < CAT_3)\t{\n\t\t\t\t\tgrid[x][y] = 3;\n\t\t\t\t} else if (newRand < CAT_4)\t{\n\t\t\t\t\tgrid[x][y] = 4;\n\t\t\t\t} else if (newRand < CAT_5)\t{\n\t\t\t\t\tgoals.add(new Point(x,y));\n\t\t\t\t} else if (newRand < TOTAL)\t{\n\t\t\t\t\tgrid[x][y] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Level(grid, row, column, goals);\n\t}", "public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}", "public void recover(){\n\tint hp = (int)((Math.random() * health)*.5);\n\n\thealth += hp;\n\t\t\n\tSystem.out.print(\"You catch your breath and pick yourself up. Recover : \");\n\tSystem.out.print(hp);\n\tSystem.out.println(\" health.\\n\"); \n }", "public void onMushroomTimerTick() {\r\n\t\tgame.tryToPlantMushroom();\r\n\t}", "public void addMines() {\n int xs=0;\n int ys=0;\n\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n if(difficulty==0) {\n for(int x=0;x<15;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n\n board[xs][ys].setMine(true);\n }\n\n spotsx.clear();\n spotsy.clear();\n }\n else if(difficulty==INSANE) {\n System.out.println(\"HELLO AGAIN OBIWAN\");\n for(int x=0;x<97;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n\n board[xs][ys].setMine(true);\n }\n\n spotsx.clear();\n spotsy.clear();\n }\n else if(difficulty==EZPZ) {\n for(int x=0;x<5;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n\n board[xs][ys].setMine(true);\n }\n\n spotsx.clear();\n spotsy.clear();\n }\n else if(difficulty==1) {\n for(int x=0;x<40;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n board[xs][ys].setMine(true);\n }\n\n\n spotsx.clear();\n spotsy.clear();\n }\n else if(difficulty==2) {\n for(int x=0;x<100;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n board[xs][ys].setMine(true);\n }\n\n spotsx.clear();\n spotsy.clear();\n }\n }", "public int quantityDropped(EaglercraftRandom par1Random) {\n\t\treturn 3 + par1Random.nextInt(5);\n\t}", "private void swellMountains(Square[][]Squares, int rows, int columns, int[][] terrainLoc)\n {\n int swellRand = (int) Math.sqrt(grid);\n int swellRand2 = (int) Math.sqrt(grid);\n int swellTolerance;\n \n // make sure that the mountains are swelled in proportion to the grid shape\n if(columns>rows)\n {\n swellTolerance = rows/25+1;\n }\n else\n {\n swellTolerance = columns/25+1;\n }\n \n // creating new mountains around the seeds\n \n // going through every second row \n for (int a = 1; a < rows-2 ; a=a+2)\n {\n // going through every column\n for (int b = 1 ; b < columns-2 ; b++)\n { \n if (terrainLoc[a][b] == 1)\n {\n // if a mountain seed is found, start making a bigger mountain on it by creating\n // three differently shaped rectangles out of mountain tiles\n int scRand;\n \n // loop for going through each rectangle\n for(int c=0;c<3;c++)\n {\n // loop for randoming mountain tiles 20 times around the seed\n for(int d = 0;d<20;d++)\n {\n // create a vertical rectangle\n if(c==0)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/20)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/40)+1;\n }\n // create a horizontal rectangle\n if (c == 1)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/40)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/20)+1;\n }\n // create a square\n if (c==2)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/30)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/30)+1;\n }\n \n // randoming the actual place for a tile and making sure it does not go over the array\n scRand = (int) (Math.random() * 8) + 1;\n \n switch (scRand)\n {\n case 1:\n if(a+swellRand < rows && b+swellRand2 < columns)\n Squares[a+swellRand][b+swellRand2].setTerrain(1);\n \n case 2:\n if(a-swellRand >= 0 && b-swellRand2 >=0)\n Squares[a-swellRand][b-swellRand2].setTerrain(1);\n \n case 3: \n if(a+swellRand < rows && b-swellRand2 >=0)\n Squares[a+swellRand][b-swellRand2].setTerrain(1);\n \n case 4:\n if(a-swellRand > 0 && b+swellRand2 < columns)\n Squares[a-swellRand][b+swellRand2].setTerrain(1);\n \n case 5:\n if(a<rows && a>=0 && b+swellRand < columns)\n Squares[a][b+swellRand].setTerrain(1);\n \n case 6:\n if(a<rows && a>=0 && b-swellRand >= 0)\n Squares[a][b-swellRand].setTerrain(1);\n\n case 7:\n if(a+swellRand < rows && b>=0 && b<columns)\n Squares[a+swellRand][b].setTerrain(1);\n\n case 8:\n if(a-swellRand >= 0 && b>=0 && b<columns)\n Squares[a-swellRand][b].setTerrain(1);\n }\n }\n }\n }\n }\n }\n }", "private static void mating() {\n\t\tint getRand = 0;\n\t\tint parentA = 0;\n\t\tint parentB = 0;\n\t\tint newIndex1 = 0;\n\t\tint newIndex2 = 0;\n\t\tChromosome newChromo1 = null;\n\t\tChromosome newChromo2 = null;\n\n\t\tfor (int i = 0; i < OFFSPRING_PER_GENERATION; i++) {\n\t\t\tparentA = chooseParent();\n\t\t\t// Test probability of mating.\n\t\t\tgetRand = getRandomNumber(0, 100);\n\t\t\tif (getRand <= MATING_PROBABILITY * 100) {\n\t\t\t\tparentB = chooseParent(parentA);\n\t\t\t\tnewChromo1 = new Chromosome();\n\t\t\t\tnewChromo2 = new Chromosome();\n\t\t\t\tpopulation.add(newChromo1);\n\t\t\t\tnewIndex1 = population.indexOf(newChromo1);\n\t\t\t\tpopulation.add(newChromo2);\n\t\t\t\tnewIndex2 = population.indexOf(newChromo2);\n\n\t\t\t\t// Choose either, or both of these:\n\t\t\t\tpartiallyMappedCrossover(parentA, parentB, newIndex1, newIndex2);\n\t\t\t\t// positionBasedCrossover(parentA, parentB, newIndex1, newIndex2);\n\n\t\t\t\tif (childCount - 1 == nextMutation) {\n\t\t\t\t\texchangeMutation(newIndex1, 1);\n\t\t\t\t} else if (childCount == nextMutation) {\n\t\t\t\t\texchangeMutation(newIndex2, 1);\n\t\t\t\t}\n\n\t\t\t\tpopulation.get(newIndex1).computeConflicts();\n\t\t\t\tpopulation.get(newIndex2).computeConflicts();\n\n\t\t\t\tchildCount += 2;\n\n\t\t\t\t// Schedule next mutation.\n\t\t\t\tif (childCount % (int) Math.round(1.0 / MUTATION_RATE) == 0) {\n\t\t\t\t\tnextMutation = childCount + getRandomNumber(0, (int) Math.round(1.0 / MUTATION_RATE));\n\t\t\t\t}\n\t\t\t}\n\t\t} // i\n\t\treturn;\n\t}", "private void spawnZombie(int choose) {\n\t\tswitch (choose) {\n\t\tcase (0):\n\t\t// spawn one zombie at once.\n\t\t\tint r = (new Random()).nextInt(5);\n\t\t\tint r1 = (new Random()).nextInt(2);\n\t\t\tArrayList<AbstractZombie> z = new ArrayList();\n\t\t\tConeHeadZombie cz = new ConeHeadZombie();\n\t\t\tFastZombie fz = new FastZombie();\n\t\t\tz.add(cz);\n\t\t\tz.add(fz);\n\t\t\tAbstractZombie a = z.get(r1);\n\t\t\tthis.board.addModel(a, r, this.board.getLength() - 1);\n\t\t\tbreak;\n\n\t\tcase (1):\n\t\t// spawn two zombies at once.\n\t\t\tint r2 = (new Random()).nextInt(5);\n\t\t\tint r3 = (new Random()).nextInt(5);\n\t\t\tConeHeadZombie cr = new ConeHeadZombie();\n\t\t\tFastZombie fr = new FastZombie();\n\t\t\tif (r2 != r3) {\n\t\t\t\tthis.board.addModel(fr, r2, this.board.getLength() - 1);\n\t\t\t\tthis.board.addModel(cr, r3, this.board.getLength() - 1);\n\t\t\t} \n\t\t\tif (r2==r3){\n\t\t\twhile(r3==r2) {\n\t\t\t\tr2 = (new Random()).nextInt(5);\n\t\t\t\tr3 = (new Random()).nextInt(5);\n\t\t\t\t}\n\t\t\tthis.board.addModel(fr, r2, this.board.getLength() - 1);\n\t\t\tthis.board.addModel(cr, r3, this.board.getLength() - 1);\n\t\t\t}\n\t\t break;\n\t\t\n\t\tcase (2):\n\t\t// spawn three zombies at once\n\t\t\tint r4 = (new Random()).nextInt(5);\n\t\t int r5 = (new Random()).nextInt(5);\n\t\t int r6 = (new Random()).nextInt(5);\n\t\t ConeHeadZombie cq = new ConeHeadZombie();\n\t\t\tFastZombie fq = new FastZombie();\n\t\t\tConeHeadZombie cqq = new ConeHeadZombie();\n\t\t\tif (r4 != r5 && r4 !=r6 && r5 != r6 ) {\n\t\t\t\tthis.board.addModel(cqq, r4, this.board.getLength() - 1);\n\t\t\t\tthis.board.addModel(cq, r5, this.board.getLength() - 1);\n\t\t\t\tthis.board.addModel(fq, r6, this.board.getLength() - 1);\n\t\t\t} \n\t\t\telse {\n\t\t\t\twhile(r4==r5 || r5==r6 || r4==r6) {\n\t\t\t\tr4 = (new Random()).nextInt(5);\n\t\t\t\tr5 = (new Random()).nextInt(5);\n\t\t\t\tr6 = (new Random()).nextInt(5);\n\t\t\t }\n\t\t\t this.board.addModel(cqq,r5, this.board.getLength() - 1);\n\t\t\t this.board.addModel(cq, r4, this.board.getLength() - 1);\n\t\t\t this.board.addModel(fq, r6, this.board.getLength() - 1);\n\t\t break;\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Guppy> spawn() {\n if (!this.isFemale) { return null; }\n if (this.ageInWeeks < MINIMUM_SPAWNING_AGE) { return null; }\n if (Double.compare(this.randomNumberGenerator.nextDouble(), SPAWN_CHANCE) > 0) { return null; }\n\n ArrayList<Guppy> babyGuppies = new ArrayList<>();\n int babiesAmount = this.randomNumberGenerator.nextInt(MAX_BABIES_SPAWN_AMOUNT + 1);\n for (int i = 0; i < babiesAmount; i++) {\n babyGuppies.add(new Guppy(this.genus,\n this.species,\n 0,\n this.randomNumberGenerator.nextBoolean(),\n this.generationNumber + 1,\n (this.healthCoefficient + 1) / 2));\n }\n return babyGuppies;\n }", "public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }", "private static TETile randomTile() {\n int tileNum = RANDOM.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.TREE;\n case 1: return Tileset.FLOWER;\n case 2: return Tileset.GRASS;\n case 3: return Tileset.SAND;\n case 4: return Tileset.MOUNTAIN;\n default: return Tileset.NOTHING;\n }\n }", "@Override\n protected void generateMonsters()\n {\n generateWeakEnemies(2);\n generateStrongEnemies(12);\n generateElites(10);\n }", "public LeveledMonster pickRandomMonster(List<LeveledMonster> availableMonsters){\n List<Entry> entries = new ArrayList<>();\n double accumulatedWeight = 0.0;\n\n for (LeveledMonster m : availableMonsters){\n accumulatedWeight += m.getSpawnWeight();\n Entry e = new Entry();\n e.object = m;\n e.accumulatedWeight = accumulatedWeight;\n entries.add(e);\n }\n\n double r = Utils.getRandom().nextDouble() * accumulatedWeight;\n\n for (Entry e : entries){\n if (e.accumulatedWeight >= r){\n return e.object;\n }\n }\n return null;\n }", "public void randomMove(){\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n int holeIndex = (int)(Math.random() * (((availableHoles.size()-1) - 0) + 1)) + 0;\n ArrayList<Korgool> korgools = availableHoles.get(holeIndex).getKoorgools();\n while(korgools.size() == 0){\n holeIndex = (int)(Math.random() * (((availableHoles.size()-1) - 0) + 1)) + 0;\n korgools = availableHoles.get(holeIndex).getKoorgools();\n }\n redistribute(availableHoles.get(holeIndex).getHoleIndex());\n }", "public int getMarbles(int remainingMarbles) {\n\n Random gen = new Random();//New Random Generator, Used to get Random Int\n return ((gen.nextInt(remainingMarbles / 2)) + 1) ;\n\n }", "private void plant(int l) {\n if (l >= empties.size()) {\n if (currentMines > bestMines) {\n copyField(current, best);\n bestMines = currentMines;\n }\n //geval 2: we zijn nog niet alle lege vakjes afgegaan, en we kunnen misschien nog beter doen dan de huidige oplossing\n } else if(currentMines + (empties.size() - l) > bestMines ) {\n //recursief verder uitwerken, met eerst de berekening van welk vakje we na (i,j) zullen behandelen\n int i = empties.get(l).getI();\n int j = empties.get(l).getJ();\n\n //probeer een mijn te leggen op positie i,j\n if (canPlace(i,j)) {\n placeMine(i, j);\n currentMines++;\n\n\n //recursie\n plant(l + 1);\n\n //hersteloperatie\n removeMine(i, j);\n currentMines--;\n\n }\n //recursief verder werken zonder mijn op positie i,j\n plant(l +1);\n }\n }", "@Override\n public String execute(Actor actor, GameMap map) {\n // Set the bound for use in generating a random integer within the range [0-bound)\n // There will be 5 possible integers\n int bound = 5;\n // Pick up fruit by chance\n // To yield 1 or 2 when there are 5 possible integers = 40% chance\n Random random = new Random();\n int number = random.nextInt(bound);\n if (number == 1 || number == 2) {\n String result = \"\\n- Your eco points increases from \" + ((Player) actor).getEcoPoints();\n // Increment eco points of Player\n ((Player) actor).setEcoPoints(((Player) actor).getEcoPoints() + 10);\n result += \" to \" + ((Player) actor).getEcoPoints();\n return super.execute(actor, map) + result;\n }\n return \"You search the tree or bush for fruit, but you can't find any ripe ones\";\n }", "private void addEnemyPowerUps() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tint x = (int) (Math.random() * 10);\n\t\t\tint y = (int) (Math.random() * 10);\n\n\t\t\twhile (egrid[x][y] != 0) { // prevents overlaps\n\t\t\t\tx = (int) (Math.random() * 10);\n\t\t\t\ty = (int) (Math.random() * 10);\n\t\t\t}\n\n\t\t\tegrid[x][y] = 2;\n\t\t}\n\t}", "public void createGoldReward() {\n try {\n int gold = RandomBenefitModel.getGoldReward(encounter, characterVM.getDistance());\n if (gold > 0) characterVM.goldChange(gold);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public void generateTerrain()\n\t{\n\t\tint rand;\n\t\tint starting=(int)(blocksWide*0.45);//Choose the first grass block\n\t\tblocksTall=(int)(blocksWide*0.6);\n\t\tfor(int i=0;i<blocksWide;i++)\n\t\t{\n\t\t\t//Determine whether the next block will go up a level, down a level or stay the same (55% chance of staying the same)\n\t\t\trand=ThreadLocalRandom.current().nextInt(0,3);\t\n\t\t\tif(rand!=0)\n\t\t\t{\n\t\t\t\trand=ThreadLocalRandom.current().nextInt(-1,2);\n\t\t\t}\n\t\t\tif(starting+rand<blocksTall-2 && starting+rand>4)\t//Make sure new position isn't too close to the top or bottom\n\t\t\t{\n\t\t\t\tstarting+=rand;\n\t\t\t}\n\t\t\tgrassy[i]=starting;\n\t\t\tgrassT[i]=ThreadLocalRandom.current().nextInt(0,3);\n\t\t\t//Generate a platform to allow for collision detection\n\t\t\tplatforms.add(new Platform((double)i/blocksWide,(double)starting/blocksTall,1.0/blocksWide,1.0/blocksWide));\n\t\t}\n\t\tplatforms.add(new Platform(0.0,0.0,0.0,0.0));\n\t}", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "private void addPowerUps() {\n\t\tfor (int i = 0; i < 4; i++) {\n\n\t\t\tint x = (int) (Math.random() * 10);\n\t\t\tint y = (int) (Math.random() * 10);\n\n\t\t\twhile (pgrid[x][y] != 0) { // prevents overlaps\n\t\t\t\tx = (int) (Math.random() * 10);\n\t\t\t\ty = (int) (Math.random() * 10);\n\t\t\t}\n\n\t\t\tpgrid[x][y] = 2;\n\t\t}\n\t}", "private static TETile getRandomTile() {\n Random r = new Random();\n int tileNum = r.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.FLOWER;\n case 1: return Tileset.MOUNTAIN;\n case 2: return Tileset.TREE;\n case 3: return Tileset.GRASS;\n case 4: return Tileset.SAND;\n default: return Tileset.SAND;\n }\n }", "public void gossipGirl(){\n\t\tfor(Point p: currentPiece){\n\t\t\twell[p.x + pieceOrigin.x][p.y + pieceOrigin.y] = currentColor;\n\t\t}\n\t\trowChecked();\n\n\t\tsetNewPiece();\n\t\tgetNewPiece();\n\t}", "public void addRandomTile()\n {\n int count = 0;\n //runs through row first, column second\n for ( int i=0; i < this.grid.length; i++) {\n for ( int j=0; j < this.grid[i].length; j++) {\n // checks to see if the value at the point in the grid is zero\n if ( this.grid[i][j] == 0 ) {\n //increases count to check how many of your tiles equal zero\n count++;\n }\n }\n } \n if ( count == 0 ) {\n // exits method if count is zero because there is nowhere to add a tile\n return;\n }\n int location = random.nextInt(count);\n int percent = 100;\n int value = random.nextInt(percent);\n int mostLikely = 2;\n int lessLikely = 4;\n count = -1;\n // runs through row first, column second\n for ( int i=0; i< this.grid.length; i++ ) {\n for ( int j=0; j< this.grid[i].length; j++ ) {\n if ( this.grid[i][j] == 0 ) {\n count++;\n // checks to see if your value for count is the same as the random\n // integer location\n if ( count == location ) {\n // 90% of the time, the random tile placed will be a two\n if ( value < TWO_PROBABILITY && value >=0 ) {\n this.grid[i][j] = mostLikely;\n }\n else {\n this.grid[i][j] = lessLikely;\n }\n }\n } \n }\n } \n }", "public boolean DoBlackMagic()\n{\n\tRandom generator=new Random();\n\tint result=generator.nextInt(4);\n\tif(result==0)\n\t{\n\t\treturn false;\n\t}\n\telse\n\t{\n\t\treturn true;\n\t}\n\n}", "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 }" ]
[ "0.624156", "0.62112117", "0.6166865", "0.6011663", "0.6004758", "0.5988859", "0.59443176", "0.59115374", "0.58762306", "0.5826937", "0.57901025", "0.57803684", "0.5740435", "0.5736152", "0.5709967", "0.57082707", "0.5697375", "0.5691881", "0.5679413", "0.56775653", "0.56745124", "0.566961", "0.56547105", "0.56487596", "0.5622249", "0.55815125", "0.55776703", "0.55469805", "0.55374455", "0.55369556", "0.5528062", "0.55211246", "0.55204827", "0.5514712", "0.551084", "0.5492995", "0.5490408", "0.54734623", "0.54711837", "0.5468342", "0.54656655", "0.5461585", "0.5461543", "0.5458363", "0.54570764", "0.5454184", "0.5451045", "0.544986", "0.5449226", "0.5447125", "0.5433106", "0.5430165", "0.54217005", "0.54043305", "0.54010934", "0.5400864", "0.53886414", "0.53880227", "0.5385057", "0.5382364", "0.53807575", "0.5360151", "0.5354164", "0.5353118", "0.5349257", "0.5348503", "0.53475124", "0.5344783", "0.53395253", "0.53378266", "0.5337146", "0.5323885", "0.53180045", "0.53063166", "0.5296477", "0.52961415", "0.5295504", "0.52953595", "0.52925533", "0.5287969", "0.52729607", "0.5255357", "0.5248385", "0.52480316", "0.5244691", "0.5243195", "0.5239172", "0.52056074", "0.519714", "0.5195553", "0.51887745", "0.51860356", "0.51843584", "0.5180809", "0.51766753", "0.51615334", "0.51598835", "0.51572776", "0.51568705", "0.51538694" ]
0.81493604
0
The end game function opens up an input dialog with the list of high scores on it and asks the player to input their initials. It then calls the checkIfHighScore function to see if the player has a high score, and whether they do or not it writes the new list of high scores to the file.
public void endGame(){ String inits = JOptionPane.showInputDialog( "High Scores:\n" +scores[9].toString() +scores[8].toString() +scores[7].toString() +scores[6].toString() +scores[5].toString() +scores[4].toString() +scores[3].toString() +scores[2].toString() +scores[1].toString() +scores[0].toString() , ""); checkIfHighScore(inits); try{ this.writeScoresToFile(file); } catch (Exception e){ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gameEnd(boolean win) {\n timer.stop();\n playing = false;\n if (win) {\n status.setText(\"You win!\");\n int score = (int) (Math.pow(boardWidth, 2) * Math.pow(boardHeight, 2) \n + Math.pow(mines, 3)) / timeElapsed;\n String nickname = JOptionPane\n .showInputDialog(\"Score: \" + Integer.toString(score) \n + \" Please input your nickname: \");\n try {\n BufferedWriter bw = new BufferedWriter(\n new FileWriter(\"files/highscores.txt\", true));\n bw.append(nickname + \",\" + Integer.toString(score) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n System.out.println(\"An error has occurred\");\n }\n } else {\n status.setText(\"You lost.\");\n }\n }", "private void endGame(){\n AlertDialog.Builder builder= new AlertDialog.Builder(this);\n String howGoodItWent;\n int howManyQuestions = questions.size();\n //with the percentage calculations, the app is able to display a different finishing message based on the percentage of the allquestions/correct answers\n float percentage = 0;\n //test if there are any questions. this will prevent dividing with 0\n if (howManyQuestions != 0){\n percentage = (100*score)/howManyQuestions;\n }\n //different title message on 0 correct answers, between 1-50, and 51-100\n if (score == 0) {\n howGoodItWent = \"Well, you tried\";\n } else if (percentage > 0 && percentage <= 50) {\n howGoodItWent = \"Thanks for participating\" ;\n }else if (percentage > 50 && percentage <= 99) {\n howGoodItWent = \"Congratulations\";\n }else if (percentage ==100) {\n howGoodItWent = \"Perfect Score!\";\n }else{\n howGoodItWent = \"Error\";\n }\n\n builder.setTitle(howGoodItWent);//displaying the message set earlier based on score\n final EditText input = new EditText(this);\n builder.setView(input);\n builder.setMessage(\"You scored \" + score + \" point(s) this round.\\nPlease enter your name:\");\n builder.setCancelable(false); //if this is not set, the user may click outside the alert, cancelling it. no cheating this way\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n playerName = input.getText().toString();\n //remove empty spaces\n playerName = playerName.trim();\n if (playerName.length() == 0){ //when the player doesn't enter anything for name, he will be called anonymous\n playerName = \"Anonymous\";\n }\n HighScoreObject highScore = new HighScoreObject(playerName, score, new Date().getTime());\n //get user prefs\n List<HighScoreObject> highScores = Paper.book().read(\"high scores\", new ArrayList<HighScoreObject>());\n\n //add item\n highScores.add(highScore);\n\n //save into paper\n Paper.book().write(\"high scores\", highScores);\n\n //return to the intro screen\n finish();\n }\n })\n .create();\n builder.show();\n }", "private void endGame() {\n\t\tPlatform.runLater(() -> {\n\t\t\t// sets up gameOverDialog\n\t\t\tAlert gameOverDialog = new Alert(AlertType.CONFIRMATION);\n\t\t\tgameOverDialog.setTitle(\"Game Over\");\n\n\t\t\tgameOverDialog.setHeaderText(\"Score: \" + score + \"\\n\"\n\t\t\t\t\t+ \"Mastery : \" + (int)MASTER_SCORES[difficulty] + \" points\\n\"\n\t\t\t\t\t+ \"Try Again?\");\n\n\t\t\tOptional<ButtonType> result = gameOverDialog.showAndWait();\n\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t\t\t// updates the file with current date, score, and difficulty\n\t\t\ttry {\n\t\t\t\tsc.getCurrentUser().updateFile(GAME_CODE, dateFormat.format(new Date()), score, difficulty);\n\t\t\t}\n\t\t\t// catches IOException and informs the user\n\t\t\tcatch (IOException ex) {\n\t\t\t\tAlert errorDialog = new Alert(AlertType.ERROR);\n\t\t\t\terrorDialog.setTitle(\"Error\");\n\t\t\t\terrorDialog.setHeaderText(\"Error\");\n\t\t\t\terrorDialog.setContentText(\"File could not be saved\");\n\t\t\t\terrorDialog.showAndWait();\n\t\t\t}\n\n\t\t\t// resets if OK button is selected\n\t\t\tif (result.get() == ButtonType.OK) {\n\t\t\t\treset();\n\t\t\t}\n\n\t\t\t// quits in CANCEL button is selected\n\t\t\tif(result.get() == ButtonType.CANCEL) {\n\t\t\t\tquitBtn.fire();\n\t\t\t}\n\t\t});\n\t}", "public void endGame(){\r\n\t\tupdateRecord();\r\n\t\tgameStats.writeToFile();\r\n\t\tstatisticsList = gameStats.makeArrayList();\r\n\t\tgameStats.writeListToFile(statisticsList);\r\n\t}", "@Override\n\tpublic boolean gameEnd(ArrayList<Button> list) {\n\t\tif(super.gameEnd(list)==true&& playerTwoScore >= playerOneScore) {\n\t\t\ttry {\n\t\t\t\tbw.write(String.valueOf(highScore));\n\t\t\t\tSystem.out.println(String.valueOf(highScore));\n\t\t\t\tbw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn super.gameEnd(list);\n\t}", "public void endGame(){\n updateHighscore();\n reset();\n }", "public void checkHighScore() {\n\t\t//start only if inserting highscore is needed\n\t\tlevel.animal.gamePaused = true;\n\t\tlevel.createTimer();\n\t\tlevel.timer.start();\n\t\t\t\t\n\t\tlevel.setWord(\"hiscores\", 7, 175, 130);\n\t\t\n\t\treadFile();\n\t}", "private void persistHighScore() {\n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) {\n PrintWriter writer = null;\n try {\n writer = new PrintWriter(higheScoreFilePath.toString());\n writer.print(\"\");\n writer.close();\n \n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n writer = new PrintWriter(higheScoreFilePath.toString());\n writer.print(Integer.toString(this.myHighScoreInt));\n writer.close();\n \n } catch (final IOException e) {\n emptyFunc();\n } \n \n if (writer != null) {\n writer.close();\n } \n }\n }", "public void displayhs()\n {\n FileReader filereader;\n //System.out.println(dateFormat.format(date));\n try{\n filereader = new FileReader(getLevel());\n BufferedReader bufferedreader = new BufferedReader(filereader);\n \n String str = \"High Scores\\n\";\n int hscount = 1;\n String line = bufferedreader.readLine();\n while(line!=null)\n {\n str += hscount +\". \" + line.split(\":\")[0] + \", \" + line.split(\":\")[1] + \", \" + line.split(\":\")[2] + \"\\n\";\n hscount++;\n line = bufferedreader.readLine();\n }\n //JOptionPane.showMessageDialog(null,str);\n String[] options = {\"OK\",\"Reset\"};\n \n int choice = JOptionPane.showOptionDialog(null,str,\"High Scores\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,null,options,options[0]);\n if(choice == 0)\n {\n //JOptionPane.showMessageDialog(null,\"Game will resume\");\n }\n else\n { //Reset was chosen\n int n = JOptionPane.showConfirmDialog(null,\"Are you sure you would like to reset all high scores?\",\"Are you sure?\",JOptionPane.YES_NO_OPTION);\n if(n == 0)\n {\n JOptionPane.showMessageDialog(null,\"Scores will reset\");\n PrintWriter writer;\n writer = new PrintWriter(new File(getLevel()));\n for(int i=0;i<5;i++)\n writer.println(\"null:0:n/a\");\n writer.close();\n }\n else\n JOptionPane.showMessageDialog(null,\"Scores will NOT reset\");\n }\n }\n catch(IOException e)\n {\n System.out.println(\"There is an error\");\n }\n }", "public static void save()\r\n\t{\r\n\r\n\t\ttry {\r\n\t\t\tObjectOutputStream fileOut = new ObjectOutputStream(new FileOutputStream(\"highscores.txt\"));\r\n\t\t\tfileOut.writeObject(hsd);\r\n\t\t\tfileOut.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Save File not found\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Unable to save data\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\te.printStackTrace();\r\n\t\t\r\n\t\t}\r\n\r\n\t}", "public static boolean checkAndWriteHighScore() {\n\t\tString file = \"file:highScore.txt\";\n\t int highScore = 0;\n\t try {\n\t BufferedReader reader = new BufferedReader(new FileReader(file));\n\t String line = reader.readLine();\n\t while (line != null) // read the score file line by line\n\t {\n\t try {\n\t int oldScore = Integer.parseInt(line.trim()); // parse each line as an int\n\t if (oldScore > highScore){ \n\t highScore = oldScore; \n\t }\n\t } catch (NumberFormatException e1) {\n\t // ignore invalid scores\n\t //System.err.println(\"ignoring invalid score: \" + line);\n\t }\n\t line = reader.readLine();\n\t }\n\t reader.close();\n\n\t } catch (IOException ex) {\n\t System.err.println(\"ERROR reading scores from file\");\n\t }\n\t \n\t \n\t FileWriter myWriter;\n\t\ttry {\n\t\t\tmyWriter = new FileWriter(file);\n\t\t\tmyWriter.write(\"\" + points.get());\n\t\t\tmyWriter.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (points.get() > highScore) {\n\t\t\treturn true;\n\t\t}\n\t return false;\n\t}", "public void triggerEndGame()\n\t{\n\t\tif(livesRemaining <= 0)\n\t\t{\n\t\t\tmP[0].stop();\n\t\t\tmP[1].stop();\n\t\t\tmP[2].stop();\n\t\t\tendGame = new Alert(AlertType.CONFIRMATION);\n\t\t\tendGame.setTitle(\"1942\");\n\t\t\tendGame.setHeaderText(null);\n\t\t\tendGame.getButtonTypes().clear();\n\t\t\tendGame.setContentText(\"You're dead! \\nYou finished with \" + p1Score + \" points. \\nWould you like to play again?\");\n\t\t\tendGame.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\t\tendGame.setGraphic(new ImageView(new Image(\"file:images/gameOver.png\")));\n\t\t\tspawnTimerTL.stop();\n\t\t\tmainTimer.stop();\n\t\t\tp1.getNode().setImage(null); //Removes player from screen\n\t\t\tOptional<ButtonType> result = endGame.showAndWait();\n\n\t\t\tif(result.get() == ButtonType.YES)\n\t\t\t{\n\t\t\t\tlivesRemaining = 3;\n\t\t\t\thealthRemaining = 10;\n\t\t\t\tivHealthBar.setImage(imgHealth[healthRemaining]);\n\t\t\t\tivLives.setImage(imgLives[livesRemaining]);\t\n\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\t\n\t\t\t\tlblHighScore.setText(Integer.toString(highScore));\n\t\t\t\tp1Score = 0;\n\t\t\t\tlblp1score.setText(Integer.toString(p1Score));\n\n\t\t\t\tp1.setDead(false);\n\t\t\t\tmainTimer.start();\n\t\t\t\tspawnTimerTL.play();\n\t\t\t\t\n\t\t\t\tfor(int k = 0; k < enemyPlanes.length; k++)\n\t\t\t\t{\n\t\t\t\t\tenemyPlanes[k].toggleIsDead(true);\n\t\t\t\t\tenemyPlanes[k].setY(2000);\n\t\t\t\t\tenemyPlanes[k].getNode().setLayoutY(enemyPlanes[k].getY());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\tthankYou = new Alert(AlertType.INFORMATION);\n\t\t\t\tthankYou.setTitle(\"1942\");\n\t\t\t\tthankYou.setHeaderText(null);\n\t\t\t\tthankYou.setGraphic(new ImageView(new Image(\"file:images/plane.png\")));\n\t\t\t\tthankYou.setContentText(\"Thank you for playing.\\nGoodbye!\");\n\t\t\t\tthankYou.show();\n\t\t\t\tPlatform.exit();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n\tpublic boolean endGame() {\t\n\t\tif (playerScore[0] == MAX_SCORE || playerScore[1] == MAX_SCORE) return true;\n\t\treturn false;\n\t}", "private void gameEnded() {\n\t\ttimer.stop();\n\t\tlevelStartTimer.stop();\n\n\t\tfinal String name = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Please enter you name: \", \"The game has ended.\", 1);\n\t\tif (name != null) {\n\t\t\tThread thread = new Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tHighScoreDAO highScoreDAO = HighScoreDAOImpl.getInstance();\n\t\t\t\t\tList<HighScore> highScores = highScoreDAO.getAllHighScore();\n\t\t\t\t\thighScore.setName(name);\n\t\t\t\t\thighScore.setDate(new Date());\n\t\t\t\t\thighScores.add(highScore);\n\t\t\t\t\tCollections.sort(highScores);\n\t\t\t\t\thighScoreDAO.deleteAllHighScore();\n\t\t\t\t\tif (highScores.size() > 10)\n\t\t\t\t\t\tfor (int i = 0; i < 10; ++i)\n\t\t\t\t\t\t\thighScoreDAO.addHighScore(highScores.get(i));\n\t\t\t\t\telse\n\t\t\t\t\t\tfor (HighScore hs : highScores)\n\t\t\t\t\t\t\thighScoreDAO.addHighScore(hs);\n\t\t\t\t}\n\t\t\t};\n\t\t\tthread.start();\n\t\t}\n\n\t\t// fires a new ActionEvent indicating that the game has ended\n\t\tlistener.actionPerformed(new ActionEvent(this,\n\t\t\t\tActionEvent.RESERVED_ID_MAX + 1, \"endgame\"));\n\t}", "public void saveScores(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(topScores.get(0) + \"-\" + topScores.get(1) + \"-\" + topScores.get(2) + \"-\" + topScores.get(3) + \"-\" + topScores.get(4));\n writer.newLine();\n writer.write(topName.get(0) + \"-\" + topName.get(1) + \"-\" + topName.get(2) + \"-\" + topName.get(3) + \"-\" + topName.get(4));\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void highScore(int score){\r\n\t\tString newName =\"\";\r\n\t\tif( score <11){\r\n\t\t\tScanner keyboard = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"Congratulations! You got a high score!\");\r\n\t\t\tSystem.out.println(\"Enter your Name!\");\r\n\t\t\tnewName = keyboard.nextLine();\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tString line = \"\";\r\n\t\t\t\tPrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(\"scoreList.temp\")));\r\n\t\t\t\tBufferedReader in = new BufferedReader(new FileReader(new File(\"scoreList.txt\")));\r\n\t\t\t\tint lineNum = 1;\r\n\t\t\t\tString temp = \"\";\r\n\t\t\t\twhile((line = in.readLine()) != null && lineNum <11){\r\n\t\t\t\t\t//replace the line with the new high score\r\n\t\t\t\t\t if (lineNum == score) {\r\n\t\t\t\t\t\t temp = line;\r\n\t\t\t\t\t\t line = newName;\r\n\t\t\t\t\t\t writer.println(line);\r\n\t\t\t\t\t\t lineNum++;\r\n\t\t\t\t\t\t //push the rest of the names down one\r\n\t\t\t\t\t\t while((line = in.readLine()) != null && lineNum <11){\r\n\t\t\t\t\t\t writer.println(temp);\r\n\t\t\t\t\t\t temp=line;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t writer.println(line);\r\n\t\t\t\t\t lineNum++;\r\n\t\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t\twriter.close();\r\n\t\t\t\t\tin.close();\r\n\t\t\t\t\t// ... and finally ...\r\n\t\t\t\t\tFile realName = new File(\"scoreList.txt\");\r\n\t\t\t\t\trealName.delete(); // remove the old file\r\n\t\t\t\t\t// Rename temp file\r\n\t\t\t\t\tnew File(\"scoreList.temp\").renameTo(realName); // Rename temp file\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry{\r\n\t\t BufferedReader in = new BufferedReader(new FileReader(new File(\"scoreList.txt\")));\r\n\t\t System.out.println(\"The High Scores are: \");\r\n\t\t for(int i = 1; i < 11; i++){\r\n\t\t\t String data = in.readLine();\r\n\t\t\t System.out.println(\"#\" +i+\" \" + data);\r\n\t\t }\r\n\t\t in.close();\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void saveHighScore() {\n\n\t\tFileOutputStream os;\n\t\n\t\ttry {\n\t\t boolean exists = (new File(this.getFilesDir() + filename).exists());\n\t\t // Create the file and directories if they do not exist\n\t\t if (!exists) {\n\t\t\tnew File(this.getFilesDir() + \"\").mkdirs();\n\t\t\tnew File(this.getFilesDir() + filename);\n\t\t }\n\t\t // Saving the file\n\t\t os = new FileOutputStream(this.getFilesDir() + filename, false);\n\t\t ObjectOutputStream oos = new ObjectOutputStream(os);\n\t\t oos.writeObject(localScores);\n\t\t oos.close();\n\t\t os.close();\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "public void writeScores(){\r\n // TODO: Write the high scores data to the file name indicated\r\n // TODO: by Settings.highScoresFileName.\r\n \tFile outFile=new File(Settings.highScoresFileName);\r\n \tPrintWriter out=null;\r\n \ttry{\r\n \t\tout=new PrintWriter(outFile);\r\n \t\tfor(int i=0; i<Settings.numScores; i++){\r\n \t\t\tout.println(scores[i]+\" \"+names[i]);\r\n \t\t}\r\n \t}catch(Exception e){} \t\r\n \tfinally{\r\n \t\tif(out!=null) out.close();\r\n }\r\n }", "private void writeHighscore(int highscore) {\n EditText eTName = findViewById(R.id.eTName);\n String name = eTName.getText().toString().trim();\n String name1 = preferences.getString(KEY_NAME+\"1\",\"\");\n String name2 = preferences.getString(KEY_NAME+\"2\",\"\");\n String name3 = preferences.getString(KEY_NAME+\"3\",\"\");\n int topscore1 = preferences.getInt(KEY+\"1\",0);\n int topscore2 = preferences.getInt(KEY+\"2\",0);\n int topscore3 = preferences.getInt(KEY+\"3\",0);\n if (highscore >= topscore1) {\n preferencesEditor.putInt(KEY+\"1\",highscore);\n preferencesEditor.putString(KEY_NAME+\"1\", name);\n preferencesEditor.putInt(KEY+\"2\",topscore1);\n preferencesEditor.putString(KEY_NAME+\"2\", name1);\n preferencesEditor.putInt(KEY+\"3\",topscore2);\n preferencesEditor.putString(KEY_NAME+\"3\", name2);\n } else if (highscore >= topscore2) {\n preferencesEditor.putInt(KEY+\"1\", topscore1);\n preferencesEditor.putString(KEY_NAME+\"1\", name1);\n preferencesEditor.putInt(KEY+\"2\", highscore);\n preferencesEditor.putString(KEY_NAME+\"2\", name);\n preferencesEditor.putInt(KEY+\"3\", topscore2);\n preferencesEditor.putString(KEY_NAME+\"3\", name2);\n } else {\n preferencesEditor.putInt(KEY+\"1\", topscore1);\n preferencesEditor.putString(KEY_NAME+\"1\", name1);\n preferencesEditor.putInt(KEY+\"2\", topscore2);\n preferencesEditor.putString(KEY_NAME+\"2\", name2);\n preferencesEditor.putInt(KEY+\"3\", highscore);\n preferencesEditor.putString(KEY_NAME+\"3\", name);\n }\n preferencesEditor.commit();\n }", "public void highscore()\n {\n FileReader filereader;\n \n PrintWriter writer;\n ArrayList<PersonDate> hsp = new ArrayList<PersonDate>();\n \n\n try{\n if(totalScore>lowestHighscore() || (int)timer3>lowestHighscore())\n {\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yy\");\n Date date = new Date();\n String r = dateFormat.format(date);\n \n \n JOptionPane.showMessageDialog(null,\"New high score!\");\n String name = JOptionPane.showInputDialog(\"Please enter name\");\n while(name == null)\n {\n name = JOptionPane.showInputDialog(\"Please enter name\");\n }\n while(name.length() > 18)\n name = JOptionPane.showInputDialog(null,\"Name too long\\nPlease enter your name\");\n while(name.length()==0)\n name = JOptionPane.showInputDialog(\"Please enter name\");\n //if(name == null)\n //{\n //resetSettings();\n //System.exit(0);\n \n //}\n String[] invalidchar = {\"~\",\"`\",\"!\",\"@\",\"#\",\"$\",\"%\",\"^\",\"&\",\"*\",\"=\",\"+\",\"-\",\"_\",\":\",\";\",\"|\",\"?\",\"<\",\">\",\"/\",\"'\",\"[\",\"]\",\"{\",\"}\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\",\".\",\",\"};\n String[] bannedWords ={\"fuck\",\"shit\",\"asshole\",\"bitch\",\"nigger\",\"nigga\",\"cunt\",\"cock\",\"douche\",\"fag\",\"penis\",\"pussy\",\"whore\"};\n for(int i =0; i<invalidchar.length;i++)\n {\n if(name.contains(invalidchar[i]))\n {\n name = JOptionPane.showInputDialog(\"Invalid name, please only use letters\\nPlease enter name\");\n i = -1;\n }\n }\n for(int i =0; i<bannedWords.length;i++)\n {\n \n if(name.replaceAll(\"\\\\s+\",\"\").toLowerCase().contains(bannedWords[i]))\n {\n name = JOptionPane.showInputDialog(\"No potty mouth\\nPlease enter name\");\n i = -1;\n }\n }\n PersonDate p1;\n if(!modeT)\n p1 = new PersonDate(name,totalScore,r);\n else\n p1 = new PersonDate(name,(int)timer3,r);\n filereader = new FileReader(getLevel());\n BufferedReader bufferedreader = new BufferedReader(filereader);\n \n \n \n String line = bufferedreader.readLine();\n \n while(line!=null)\n {\n //hslist.add(Integer.parseInt(line.split(\":\")[1]));\n hsp.add(new PersonDate(line.split(\":\")[0],Integer.parseInt(line.split(\":\")[1]),line.split(\":\")[2]));\n line = bufferedreader.readLine();\n }\n hsp.add(p1);\n \n //sort it\n sort(hsp);\n \n \n //delete last thing\n hsp.remove(hsp.size()-1);\n \n //rewrite doc\n writer = new PrintWriter(new File(getLevel()));\n for(PersonDate p:hsp)\n {\n writer.println(p);\n }\n writer.close();\n \n //displayhs();\n \n }\n }\n catch(IOException e)\n {\n }\n }", "private void endGame(){\n synchronized (lock){\n out.println(\"\\r\\n###GAME OVER###\\r\\n\");\n out.println(\"The winner(s) are:\");\n updatePlayersWorth();\n Collections.sort(playerList);\n out.println(playerList.get(0).getName() + \": £\" + playerList.get(0).getPlayerWorth());\n for (int i = 1; i < playerList.size(); i++) {\n if(playerList.get(0).getPlayerWorth() == playerList.get(i).getPlayerWorth()){\n out.println(playerList.get(i).getName() + \": £\" + playerList.get(i).getPlayerWorth());\n }\n }\n }\n }", "public void CheckScore(){\n \tif(killed > highScore) {\n \t\tname = JOptionPane.showInputDialog(\"You set a HighScore!\\n What is your Name?\");\n \t\thighScore = killed;\n \t}\n }", "public void drawEndScreen() {\n\t\tint highScore = getHighScore();\n\t\tif (highScore <= score) {\n\t\t\thighScore = score;\n\t\t\tsetHighScore(highScore);\n\t\t}\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Score\" + String.valueOf(score), 0, -100, false);\n\t}", "public boolean loadHighscores() {\n this.fileName = \"HS\" + this.gameMode + this.difficultyLevel + \".txt\";\n File file = new File(context.getFilesDir(), fileName);\n Scanner input;\n try{\n if(!file.exists()) {\n return false;\n }\n input = new Scanner(file);\n String line;\n highScoreList.clear();\n while(input.hasNextLine()) {\n line = input.nextLine();\n String[] parts = line.split(\"\\\\~\\\\$\\\\~\");\n if(parts.length != 2) {\n //File is corrupt.\n System.out.println (\"File \" + this.fileName + \" is corrupt\");\n return false;\n }\n String name = parts[0];\n int score = Integer.parseInt(parts[1]);\n User user = new User(name, score);\n highScoreList.add(user);\n }\n input.close();\n }catch (IOException ex) {\n System.out.println(ex.toString());\n return false;\n }\n\n return true;\n }", "private GameResponse endGame() {\n if(gameResponse.getScore() > 0) {\n gameResponse.getPlayer().setHighScore(gameResponse.getScore());\n playerService.save(gameResponse.getPlayer());\n }\n gameResponse.setNewGame(true);\n return gameResponse;\n }", "public static void gameOver() {\n ScoreBoard.write(ScoreController.getScoresPath());\n populate();\n }", "public void endGame() {\n \t\tisOver = true;\n \t\ttimeGameEnded = System.nanoTime();\n \t\tremoveAll();\n \t\trequestFocusInWindow();\n \t}", "void endGame(String message, int player) {\n //changes the colour of the buttons back to the winner's colour (red or blue)\n if (player == 0) {\n changeColourButton(new Color(255, 0, 0));\n } else {\n changeColourButton(new Color(0, 0, 255));\n }\n //stops the game from continuing\n disableButtons();\n //saves the winner to the leaderboards\n saveGame(message, player);\n //Determmines if the message is \"It's a Tie!\". If it is the pop up has the \n //message \"It's a Tie!\". Otherwise the pop up has the message \"The winner is: \" \n //plus the winner.\n if (message.equals(\"It's a Tie!\")) {\n EndPopUp.showMessageDialog(this, message);\n } else {\n EndPopUp.showMessageDialog(this, \"The winner is: \" + message);\n }\n\n //updates leaderboard (garbage String argument)\n changeTopScores.setName(\"asdf\");\n }", "public boolean checkHighscore() {\n String[][] oldHighscores = highscore.getHighscoreList();\n int oldScore;\n int position;\n boolean newHighscore = false;\n\n //Decides position in the list by comparing to the old scores\n for (int i = 0; i < oldHighscores.length; i++) {\n oldScore = Integer.parseInt(oldHighscores[i][1]);\n if (player.getScore() > oldScore) {\n position = i;\n highscore.writeHighscore(player.getName(), player.getScore(), position);\n newHighscore = true;\n break;\n }\n }\n return newHighscore;\n }", "private void endGame() {\n\t\tPlayRound.endGame();\n\t\tint score1 = users.get(0).getPoints();\n\t\tint score2 = users.get(1).getPoints();\n\t\tString winnerString;\n\t\tif(score1 > score2){\n\t\t\twinnerString = users.get(0).getName() + \" \" + \"won!\";\n\t\t}\n\t\telse if (score2 > score1) {\n\t\t\twinnerString = users.get(1).getName() + \" \" + \"won!\";;\n\t\t}\n\t\telse {\n\t\t\twinnerString = \"there was a tie!\";\n\t\t}\n\t\tJFrame frame = new JFrame();\n\t\tImageIcon icon = new ImageIcon(Game.class.getResource(\"/resources/cup.png\"));\n\t\tJOptionPane.showMessageDialog(null, winnerString, \"Congratulations\", JOptionPane.OK_OPTION, icon);\n\t}", "private void readFile() {\n\t\tint newPlayerScore = level.animal.getPoints();\n\t\t\n\t\tlevel.worDim = 30;\n\t\tlevel.wordShift = 25;\n\t\tlevel.digDim = 30;\n\t\tlevel.digShift = 25;\n\t\t\n\t\tfor( int y =0; y<10; y++ ) { //display placeholder numbers\n\t\t\tfor( int x=0; x<4; x++ ) {\n\t\t\t\tbackground.add(new Digit( 0, 30, 470 - (25*x), 200 + (35*y) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry { //display highscores from highscores.txt\n\t\t\tScanner fileReader = new Scanner(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tint loopCount = 0;\n\t\t\twhile( loopCount < 10 ) {\n\t\t\t\tString playerName = fileReader.next() ;\n\t\t\t\tString playerScore = fileReader.next() ;\n\t\t\t\tint score=Integer.parseInt(playerScore);\n\t\t\t\t\n\t\t\t\tif( newPlayerScore >= score && newHighScore == false ) {\n\t\t\t\t\tstopAt = loopCount;\n\t\t\t\t\tnewHighScore = true;\n\t\t\t\t\tlevel.wordY = 200 + (35*loopCount);\n\t\t\t\t\t\n\t\t\t\t\tpointer = new Icon(\"pointer.png\", 30, 75, 200 + (35*loopCount) );// add pointer indicator\n\t\t\t\t\tbackground.add( pointer ); \n\t\t\t\t\tlevel.setNumber(newPlayerScore, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}else {\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}\n\t\t\t}//end while\n\t\t\tfileReader.close();\n\t\t\tif( newHighScore ) {\n\t\t\t\tnewHighScoreAlert();\n\t\t\t}else {\n\t\t\t\tgameOverAlert();\n\t\t\t}\n } catch (Exception e) {\n \tSystem.out.print(\"ERROR: Line 168: Unable to read file\");\n //e.printStackTrace();\n }\n\t}", "public void writeFile(){\n try{\n FileWriter writer = new FileWriter(\"Highscores.txt\");\n for (int i = 0; i<10; i++){\n if (i >= this.highscores.size()){\n break;\n }\n writer.write(String.valueOf(this.highscores.get(i)) + \"\\n\");\n }\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void end() {\n\t\tSystem.out.print(\"Game ends - \");\n\t\tif (player1.getPoints() > player2.getPoints()) {\n\t\t\tSystem.out.printf(\"%s wins by %d points\\n\", player1.getName(), player1.getPoints()-player2.getPoints());\n\t\t} else if (player1.getPoints() < player2.getPoints()) {\n\t\t\tSystem.out.printf(\"%s wins by %d points\\n\", player2.getName(), player2.getPoints()-player1.getPoints());\n\t\t} else {\n\t\t\tSystem.out.println(\"Game tied\");\n\t\t}\n\t}", "public void endGame() {\n dispose();\n System.out.println(\"Thank you for playing\");\n System.exit(0);\n }", "static void endgame() {\n System.out.println(\"MARK MY WORDS... THIS ISN'T THE END YET!\");\n System.out.println(\"Don't listen to her, she's just mad that she'll have to spend her eternal life in that black cell.\");\n enter = next.nextLine();\n System.out.println(\"The black portal gradually closes...lasting for only minutes until it exploded.\");\n System.out.println(\"The portal was gone and so was that evil witch...WAIT\");\n System.out.println(\"How about you Naga?\");\n enter = next.nextLine();\n System.out.println(\"My duty is done and I'm free from your grasp. Farewell...\");\n enter = next.nextLine();\n System.out.println(\"The black dragon creates a big black vortex that consumed Naga, his recent friend.\");\n enter = next.nextLine();\n System.out.println(\"The black dragon bids his farewell and the black portal too exploded out of sight.\");\n System.out.println(\"He was sent to accompany \" + username + \" to defeat his enemy, the witch.\");\n System.out.println(\"His job is done and he must return back to the dragon world...or whatever dimension he lived in\");\n enter = next.nextLine();\n System.out.println(\"I guess this is a lesson. Don't read wierd books...they don't end so well.\");\n System.out.println(\"/n\");\n System.out.println(\"/n\");\n System.out.println(\"Well, congratulations again \" + username + \" for defeating the boss.\");\n enter = next.nextLine();\n System.out.println(username + \" casts a purple portal and teleports to his hometown...everything looks fine\");\n enter = next.nextLine();\n System.out.println(\"OR IS IT? / 'I'm back. DID YOU MISS ME?'\");\n System.out.println(\"/n\");\n System.out.println(\"THANKS FOR PLAYING \" + username + \".\");\n gameplay = false;//end the main while loop\n }", "public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }", "private void checkForGameEnd() {\n\t\tint checkWin = controller.checkForWinner();\n\t\tif(playerType == null && checkWin == 1 || (playerType != null && playerType == checkWin)) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"VICTORY\");\n\t\t\talert.setHeaderText(\"VICTORY\");\n\t\t\talert.setContentText(\"CONGRATULATIONS! YOU WIN!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t\t\n\t\t}else if (playerType == null && checkWin == 2 || (playerType != null && playerType%2 + 1 == checkWin)) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"DEFEAT\");\n\t\t\talert.setHeaderText(\"DEFEAT\");\n\t\t\talert.setContentText(\"SHAME! YOU LOSE!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t\t\n\t\t}else if (controller.checkForTie()) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"STALEMATE\");\n\t\t\talert.setHeaderText(\"STALEMATE\");\n\t\t\talert.setContentText(\"ALAS! TIE GAME!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t}\n\t\t\n\t\tif(playerType != null && gameFinished) {\n\t\t\tSystem.out.println(\"closing connection\");\n\t\t\ttry {\n\t\t\t\tconnection.close();\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"ERROR CLOSING\");\n\t\t\t}\n\t\t}\n\t}", "public void endGameFrame() {\r\n\t\tcreateWarning(3000, \"Time Out!\"); //show warning message\r\n\t\t\r\n\t\ttry {\t\t\t\t\t\t\t //creates a file when the game is over\r\n\t\t\tString ExitFilename = \"EXIT.txt\";\r\n\t\t\tFileWriter ExitFile = new FileWriter(\"src/Signals./\"+ExitFilename);\r\n\t\t\tExitFile.write(\"EXIT\");\r\n\t\t\tExitFile.close();\r\n\t\t} \r\n\t\t catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t//close all interface\r\n\t\tframe.setVisible(false);\r\n\t\tframe.dispose();\r\n\t\tSystem.exit(0);\r\n\t\t\r\n\t\t\r\n\t}", "private void endGame() {\r\n\r\n m_state.setState(State.ENDING_GAME);\r\n\r\n /* find winner */\r\n for(KimTeam team : m_survivingTeams) {\r\n if(team != null) {\r\n if(!team.isOut()) {\r\n m_winner = team;\r\n }\r\n\r\n //remove survivors from m_teams so not to duplicate stats\r\n m_teams[team.m_freq] = null;\r\n }\r\n }\r\n\r\n /* end poll */\r\n if(m_poll != null) {\r\n m_poll.endPoll(m_winner, m_connectionName);\r\n m_poll = null;\r\n }\r\n\r\n /* display scoresheet */\r\n m_botAction.sendArenaMessage(\"--------Base1--------W--L --------Base2--------W--L --------Base3--------W--L --------Base4--------W--L\");\r\n\r\n if(!m_skipFirstRound) {\r\n printFormattedTeams(m_teams, m_numTeams);\r\n m_botAction.sendArenaMessage(\"------------------------- ------------------------- ------------------------- -------------------------\");\r\n }\r\n\r\n printFormattedTeams(m_survivingTeams, 4);\r\n m_botAction.sendArenaMessage(\"-------------------------------------------------------------------------------------------------------\");\r\n\r\n if(m_winner != null) {\r\n m_botAction.sendArenaMessage(\"Winner: \" + m_winner.toString(), 5);\r\n\r\n for(KimPlayer kp : m_winner) {\r\n Player p = m_botAction.getPlayer(kp.m_name);\r\n\r\n if(p != null && p.isPlaying()) {\r\n m_botAction.warpTo(p.getPlayerID(), 512, 277);\r\n }\r\n }\r\n } else {\r\n m_botAction.sendArenaMessage(\"No winner.\");\r\n }\r\n\r\n updateDB();\r\n\r\n /* announce mvp and clean up */\r\n m_botAction.scheduleTask(new TimerTask() {\r\n public void run() {\r\n m_botAction.sendArenaMessage(\"MVP: \" + m_mvp.m_name, 7);\r\n //refreshScoreboard();\r\n cleanUp();\r\n resetArena();\r\n m_state.setState(State.STOPPED);\r\n }\r\n }, 4000);\r\n }", "public void endGame(){\n\t\tString gameSummary = thisGame.getGameSummary(humanType);\n\t\tSystem.out.println(gameSummary);\n\t}", "void win() {\n String name = score.getName();\n if (Time.getSecondsPassed() < 1) {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / 1);\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + 1 + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n } else {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / Time.getSecondsPassed());\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + Time.getSecondsPassed() + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n }\n }", "public boolean gameOver(){\n\n\t\tif (score > highScore) {\n\t\t\thighScore = score;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void checkIfHighScore(String inits){\r\n\t\tfor(int count = 0; count < scores.length; count++){\r\n\t\t\tif (count == 9 && points > scores[count].getScore()){\t//If the player has a score higher than the highest score\r\n\t\t\t\tfor (int counter = 0; counter < 8; counter++){\r\n\t\t\t\t\tscores[counter] = scores[counter++];\t//bumps down the other scores\r\n\t\t\t\t}\r\n\t\t\t\tscores[9] = new HighScore(inits, points);\t//creates a new high score for the player on the lsit\r\n\t\t\t} else if (points > scores[count].getScore() && points <= scores[1+count].getScore()){\t//if the playe rhas a score that is higher than one score but lower than or equal to the next score\r\n\t\t\t\tfor (int counter = 0; counter < count-1; counter++){\r\n\t\t\t\t\tscores[counter] = scores[counter++];\t//bumps down the other scores\r\n\t\t\t\t}\r\n\t\t\t\tscores[count] = new HighScore(inits, points);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}", "public static void saveHighScore(HighScores hs){\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream(highScoresFilename);\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t\t\toos.writeObject(hs);\r\n\t\t\toos.close();\r\n\t\t} catch (Exception e){\r\n\t\t\tSystem.out.println(\"Error in writing high scores.\\n\");\r\n\t\t}\t\t\r\n\t}", "public void exit() {\n\tif (hasPlayed) {\n\t hasPlayed = false;\n\t lastExit = System.currentTimeMillis(); // note the time of exit\n\t}\n }", "public void updateScoreFile() {\n try {\n outputStream = new ObjectOutputStream(new FileOutputStream(HIGHSCORE_FILE));\n outputStream.writeObject(scores);\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } finally {\n try {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }", "private void loadHighScore() {\n this.myHighScoreInt = 0;\n \n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) { \n FileReader in = null;\n BufferedReader br = null;\n try {\n in = new FileReader(higheScoreFilePath.toString());\n br = new BufferedReader(in);\n String scoreAsString = br.readLine();\n if (scoreAsString != null) {\n scoreAsString = scoreAsString.trim();\n this.myHighScoreInt = Integer.parseInt(scoreAsString);\n }\n } catch (final FileNotFoundException e) {\n emptyFunc();\n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n if (in != null) {\n in.close();\n }\n if (br != null) {\n br.close();\n }\n } catch (final IOException e) { \n emptyFunc();\n } \n } else {\n try {\n f.createNewFile();\n } catch (final IOException e) {\n return;\n }\n }\n }", "public void endGame() {\r\n if (state[0]) {\r\n if (state[1]) {\r\n frame.remove(pause);\r\n state[1] = false;\r\n }\r\n records.newRecord(game.map, game.end());\r\n frame.remove(game);\r\n records.saveRecords();\r\n state[0] = false;\r\n menu.setVisible(true);\r\n }\r\n }", "public void endGame() {\n for (Player player : this.players.values()) {\n if (player.getBankroll() == this.playerAmount * DEFAULT_BANKROLL) {\n this.doPokerEnds = true;\n break;\n }\n }\n this.startingGamePlayer = ++this.startingGamePlayer % this.playerAmount;\n }", "public void setUpTheGame() throws UserCancelsException{\n played = true;\n ui.printToUser(\"Close the game at any time by inputting letters instead of numbers.\");\n currentOcean = new OceanImpl();\n currentOcean.placeAllShipsRandomly();\n \n currentScore = 0;\n playTheGame();\n if(currentScore<highestScore\n ||highestScore == 0){\n highestScore = currentScore;\n ui.printToUser(\"New High Score! : \" + highestScore);\n }\n }", "private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void display() {\n Game game = PiggysRevenge.getCurrentGame();\n int bricks = 0;\n House house = game.getHouse();\n if (game.getHouse().isCompleted()) {\n try {\n bricks = GameControl.calcNumberOfBricks(house.getLength(), house.getWidth(), house.getHeight(), house.getStories());\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n } else {\n bricks = 0;\n }\n int turns = game.getTurns();\n boolean hasEaten = game.getPlayer().isHasEaten();\n boolean wolfKilled = game.isWolfKilled();\n int result = 0;\n try {\n result = GameControl.calcScore(bricks, turns, hasEaten, wolfKilled);\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n if (result>0) {\n this.console.println(\"+\" + (bricks*10) + \" Points for building the house.\");\n this.console.println(\"-\" + (turns*10) + \" Points for the number of turns taken (\" + turns + \" turns).\");\n } else {\n this.console.println(\"You get no points if you do not build a house,\"\n + \"\\neat the roast beef, or kill the wolf.\");\n }\n if (hasEaten) {\n this.console.println(\"+1000 Points for eating roast beef.\");\n }\n if (wolfKilled) {\n this.console.println(\"+2000 Points for killing the wolf.\");\n }\n this.console.println(\"\\nYOUR SCORE IS: \" + result);\n\n if (gameOver) {\n HighScore[] highScores;\n\n File varTmpDir = new File(\"highscores.txt\");\n\n if (varTmpDir.exists()) {\n try (FileInputStream fips = new FileInputStream(\"highscores.txt\");\n ObjectInputStream input = new ObjectInputStream(fips);) {\n \n\n highScores = (HighScore[]) input.readObject();\n highScores[10] = new HighScore(game.getPlayer().getName(), result, house);\n\n for (int n = 0; n < highScores.length; n++) {\n for (int m = 0; m < highScores.length - 1 - n; m++) {\n if (highScores[m].getScore() < highScores[m + 1].getScore()\n || \"---\".equals(highScores[m].getName())) {\n HighScore swapHighScore = highScores[m];\n highScores[m] = highScores[m + 1];\n highScores[m + 1] = swapHighScore;\n }\n }\n }\n\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n output.writeObject(highScores);\n this.console.println(\"Score saved successfully\");\n \n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n } else {\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n\n highScores = new HighScore[11];\n for (int i = 0; i < highScores.length; i++){\n highScores[i] = new HighScore(\"---\", 0, new House(5, 5, 6, 1));\n \n }\n\n highScores[0] = new HighScore(game.getPlayer().getName(), result, house);\n output.writeObject(highScores);\n this.console.println(\"New highscore file created. Score saved successfully\");\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n }\n }\n }", "public void gameEnd(){\r\n Stage gameEnd = new Stage();\r\n gameEnd.initModality(Modality.APPLICATION_MODAL);\r\n gameEnd.initStyle(StageStyle.UNDECORATED);\r\n\r\n //text\r\n Text endMessage = new Text(\"Game over. Your final score was: \" + score);\r\n endMessage.setTranslateX(180);\r\n endMessage.setTranslateY(100);\r\n endMessage.setFont(Font.font(25));\r\n\r\n Text options = new Text(\"Press 'Enter' to go on without timer. Press 'Esc' to exit game.\");\r\n options.setTranslateX(15);\r\n options.setTranslateY(220);\r\n options.setFont(Font.font(25));\r\n\r\n Pane endPane = new Pane();\r\n endPane.getChildren().addAll(endMessage, options);\r\n Scene gameEndScene = new Scene(endPane, 700, 300);\r\n\r\n gameEndScene.setOnKeyPressed(e -> keyPressed(e.getCode().toString(), gameEnd)); //handle user input\r\n gameEnd.setScene(gameEndScene);\r\n gameEnd.show();\r\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public boolean addToHighScores(Player player) {\n\n try {\n int i, j, temp = 0;\n String tempName;\n String[][] newHighScores = new String[11][2];\n boolean isHighScore = false;\n String[][] highScores;\n highScores = new String[10][2];\n if (isValidScore(player.getScore())) {\n switch (player.getDifficulty()) {\n //Easy difficulty sort\n case EASY:\n for (int k = 0; k < easyHighScores.length; k++) {\n highScores[k][0] = easyHighScores[k][0];\n highScores[k][1] = easyHighScores[k][1];\n }\n break;\n //Medium difficulty sort\n case MEDIUM:\n for (int k = 0; k < mediumHighScores.length; k++) {\n highScores[k][0] = mediumHighScores[k][0];\n highScores[k][1] = mediumHighScores[k][1];\n }\n break;\n //Hard difficulty sort\n case HARD:\n for (int k = 0; k < hardHighScores.length; k++) {\n highScores[k][0] = hardHighScores[k][0];\n highScores[k][1] = hardHighScores[k][1];\n }\n break;\n default:\n System.out.println(\"No difficulty\");\n return false;\n }\n\n isHighScore = isHighScore(highScores, player.getScore());\n\n if (!isHighScore) {\n System.out.println(\"Not a high score.\");\n return false;\n }\n \n for (int k = 0; k < highScores.length; k++) {\n newHighScores[k][0] = highScores[k][0];\n newHighScores[k][1] = highScores[k][1];\n }\n newHighScores[10][0] = player.getName();\n newHighScores[10][1] = Integer.toString(player.getScore());\n for (j = 1; j < newHighScores.length; j++) {\n temp = parseInt(newHighScores[j][1]);\n\n tempName = newHighScores[j][0];\n for (i = j - 1; (i >= 0) && (parseInt(newHighScores[i][1]) < temp); i--) {\n newHighScores[i + 1][1] = newHighScores[i][1];\n newHighScores[i + 1][0] = newHighScores[i][0];\n }\n newHighScores[i + 1][1] = Integer.toString(temp);\n newHighScores[i + 1][0] = tempName;\n }\n\n switch (player.getDifficulty()) {\n case EASY:\n for (int k = 0; k < (newHighScores.length - 1); k++) {\n this.easyHighScores[k][0] = newHighScores[k][0];\n this.easyHighScores[k][1] = newHighScores[k][1];\n }\n return true;\n case MEDIUM:\n for (int k = 0; k < (newHighScores.length - 1); k++) {\n this.mediumHighScores[k][0] = newHighScores[k][0];\n this.mediumHighScores[k][1] = newHighScores[k][1];\n }\n return true;\n case HARD:\n for (int k = 0; k < (newHighScores.length - 1); k++) {\n this.hardHighScores[k][0] = newHighScores[k][0];\n this.hardHighScores[k][1] = newHighScores[k][1];\n }\n return true;\n default:\n System.out.println(\"Invalid difficulty\");\n return false;\n }\n } else {\n System.out.println(\"Not a valid score.\");\n return false;\n }\n\n //This next part is to test the displayHighScoreWithName() function\n// Scanner input = SnakeWithPartner.getInFile();\n// System.out.println(\"Do you want to view the high score's with your name? (\\'y\\' or \\'n\\'): \");\n// if (input.hasNext(\"y\")) {\n// displayHighScoreWithName(player);\n// } else {\n// System.out.println(\"Thanks anyways!\");\n// }\n } catch (NumberFormatException numEx) {\n System.out.println(\"Error adding score to High Scores.\\n\"\n + numEx.getMessage());\n }\n return false;\n }", "public void addToTable() {\n\n\n if (this.highScoresTable.getRank(this.scoreBoard.getScoreCounter().getValue()) <= this.highScoresTable.size()) {\n DialogManager dialog = this.animationRunner.getGui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\");\n\n this.highScoresTable.add(new ScoreInfo(name, this.scoreBoard.getScoreCounter().getValue()));\n File highScoresFile = new File(\"highscores.txt\");\n try {\n this.highScoresTable.save(highScoresFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n }", "public void endGame() {\n\t\tSystem.out.println(\"New game (Y/N)?\");\n\t\tString buffer = scanner.next();\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tif(buffer.equals(\"Y\") || buffer.equals(\"y\")) {\n\t\t\t\tSystem.out.println(\"\"); // Empty line\n\t\t\t\tnewGame = new Start();\n\t\t\t\tnewGame.begin();\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\telse if(buffer.equals(\"N\") || buffer.equals(\"n\")) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "public void endGame()\r\n {\r\n for (Cell c : gameBoard.bombList)\r\n {\r\n if (c.isBomb())\r\n {\r\n if (c.getText() == \"X\")\r\n {\r\n c.setId(\"correctFlag\");\r\n }\r\n else\r\n {\r\n c.setId(\"bombClicked\");\r\n }\r\n }\r\n else if (c.getText() == \"X\")\r\n {\r\n c.setId(\"incorrectFlag\");\r\n }\r\n c.setDisable(true);\r\n }\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n win();\r\n }\r\n else\r\n {\r\n lose();\r\n }\r\n System.out.println(\"Game Over...\");\r\n scoreBoard.resetBtn.setDisable(false);\r\n }", "public void endGame(boolean emptyEnd){\n\t\t\n\t\tif(emptyEnd){\n\t\t\tArrayList<Integer> opponentStones = new ArrayList<Integer>();\n\t\t\tboolean done = false;\n\t\t\tint turnID = DBCommunicator.requestInt(\"SELECT id from beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + opponent + \"' ORDER BY id DESC\");\n\t\t\tString restQuery = \"\";\n\t\t\tString query = \"SELECT letter_id FROM letterbakjeletter WHERE spel_id = \" + id + \" AND beurt_id = \" + turnID + \" \" + restQuery + \" ORDER BY beurt_id DESC\";\n\t\t\twhile(!done){\n\t\t\t\tint newCharachter = DBCommunicator.requestInt(query);\n\t\t\t\tif(!(newCharachter == 0)){\n\t\t\t\t\topponentStones.add(newCharachter);\n\t\t\t\t\trestQuery += \" AND letter_id <> \" + newCharachter;\n\t\t\t\t\tquery = \"SELECT letter_id FROM letterbakjeletter WHERE spel_id = \" + id + \" AND beurt_id = \" + turnID + \" \" + restQuery + \" ORDER BY beurt_id DESC\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdone = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint totalValue = 0;\n\t\t\tfor(int e : opponentStones){\n\t\t\t\tString letterChar = DBCommunicator.requestData(\"SELECT letterType_karakter FROM letter WHERE id = \" + e + \" AND spel_id = \" + id + \" AND lettertype_letterset_code = 'EN'\");\n\t\t\t\tint letterValue = DBCommunicator.requestInt(\"SELECT waarde FROM lettertype WHERE letterset_code = 'EN' AND karakter = '\" + letterChar + \"'\");\n\t\t\t\ttotalValue += letterValue;\n\t\t\t}\n\t\t\t\n\t\t\tint opTurn = turnID + 2;\n\t\t\tint myTurn = opTurn + 1;\n\t\t\tint opValue = totalValue * -1;\n\t\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES \"\n\t\t\t\t\t+ \"(\" + opTurn + \", \" + id + \", '\" + opponent + \"', \" + opValue + \", 'End'),\"\n\t\t\t\t\t+ \"(\" + myTurn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + totalValue + \", 'End')\");\n\t\t}\n\t\telse{\n\t\t\tint turnID = DBCommunicator.requestInt(\"SELECT id from beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"' ORDER BY id DESC\");\n\t\n\t\t\tint totalValue = 0;\n\t\t\tfor(int e : gameStones){\n\t\t\t\tString letterChar = DBCommunicator.requestData(\"SELECT letterType_karakter FROM letter WHERE id = \" + e + \" AND spel_id = \" + id + \" AND lettertype_letterset_code = 'EN'\");\n\t\t\t\tint letterValue = DBCommunicator.requestInt(\"SELECT waarde FROM lettertype WHERE letterset_code = 'EN' AND karakter = '\" + letterChar + \"'\");\n\t\t\t\ttotalValue += letterValue;\n\t\t\t}\n\t\t\t\n\t\t\tint opTurn = turnID + 1;\n\t\t\tint myTurn = opTurn + 1;\n\t\t\tint myValue = totalValue * -1;\n\t\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES \"\n\t\t\t\t\t+ \"(\" + opTurn + \", \" + id + \", '\" + opponent + \"', \" + totalValue + \", 'End'),\"\n\t\t\t\t\t+ \"(\" + myTurn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + myValue + \", 'End')\");\n\t\t}\n\t}", "public static void SaveBestScore(int new_score)\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(score_file_name, \"UTF-8\");\n writer.print(new_score);\n writer.close();\n currentBestScore = new_score;\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + score_file_name + \".\"); }\n }", "public void writeScoreToFile(){\n\t\ttry{\n\t\t\tFile file = new File(\"conversation_file.txt\");\n\t\t\tFileWriter f = new FileWriter(file.getAbsoluteFile());\n\t\t\tBufferedWriter b = new BufferedWriter(f);\n\t\t\tif(score > highScore)\n\t\t\t\tb.write(String.valueOf(score));\n\t\t\telse\n\t\t\t\tb.write(String.valueOf(highScore));\n\t\t\tb.close();\n\t\t} catch (IOException e){}\n\t\tSystem.out.println(\"File written, highScore \" + highScore + \" or Score \" + score + \" saved to file.\");\n\t}", "private void endGame() {\n pauseTimer();\n if (!myGameOver && !myWelcome) {\n final int result = JOptionPane.showOptionDialog(null, \n \"Are you sure you want to end this game?\",\n \"End Current Game\", JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE, null, null,\n JOptionPane.NO_OPTION);\n if (result == JOptionPane.YES_OPTION) {\n myGameOver = true;\n repaint();\n } else {\n startTimer();\n }\n }\n }", "public void gameOver() {\n\t\tgameResult = new GameResult(writer);\n\n\t\tString winnersName = \"\";\n\t\tString resultList = \"\";\n\n\t\tGamePlayer[] tempList = new GamePlayer[playerList.size()];\n\t\tfor (int i = 0; i < tempList.length; i++) {\n\t\t\ttempList[i] = playerList.get(i);\n\t\t}\n\n\t\tArrays.sort(tempList); // Sort the players according to the scores\n\n\t\tint max = tempList[tempList.length - 1].getPlayerScore();\n\t\tint position = 0;\n\n\t\tfor (int i = tempList.length - 1; i >= 0; i--) {\n\t\t\tif (max == tempList[i].getPlayerScore()) {\n\t\t\t\twinnersName += tempList[i].getPlayerName() + \"\\t\";\n\t\t\t}\n\t\t\tresultList += \"No.\" + (++position) + \"\\t\" + tempList[i].getPlayerName() + \"\\t\"\n\t\t\t\t\t+ tempList[i].getPlayerScore() + \"\\n\";\n\t\t}\n\t\tgameResult.initialize(winnersName, resultList, roomNumber, gameRoom);\n\t\tframe.dispose();\n\t}", "public void SaveBestScore(int BestScore) {\r\n\t\ttry {\r\n\t\t\t// Comprobamos el nivel que ha seleccionado el jugador y guardamos el score\r\n\t\t\tif (cheater == false) {\r\n\t\t\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\EasyScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\NormalScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\HardScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\InvertidoScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t// Pasa el cheater a false\r\n\t\t\t\t\tcheater = false;\r\n\t\t\t\t}\r\n\t\t\t\t// Cierra el Buffered Writer\r\n\t\t\t\tbw.close();\r\n\t\t\t}\r\n\t\t// Captura las diferentes exceptions\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"File can't open\");\r\n\t\t} \r\n\t}", "private void finaliseGame() {\r\n gameOn = false;\r\n if(bestAnswer==null) {\r\n target.reply(\"Nobody got an answer. The best answer was: \" + CountdownSolver.Solve( sourceNumbers, targetNumber ));\r\n return;\r\n }\r\n if( bestAnswer.getAnswer() == bestPossibleAnswer ) {\r\n String reply = Constants.BOLD + bestAnswer.getUsername() + Constants.BOLD\r\n + \" has won with \" + bestAnswer.getAnswer() + \"!\";\r\n if( bestPossibleAnswer!=targetNumber)\r\n reply+=\" This was the best possible answer.\";\r\n target.reply(reply);\r\n } else {\r\n target.reply( \"The best answer was \" + bestAnswer.getAnswer() + \" by \" + bestAnswer.getUsername() + \".\"\r\n + \" But the best possible answer was: \" + CountdownSolver.Solve( sourceNumbers, targetNumber ));\r\n }\r\n bestAnswer=null;\r\n runner.stop();\r\n }", "@Test(priority = 3)\n\tpublic void testHandScoreForExitTestWithOutAnswer(){\n\t\tSystem.out.println(\"************************************************\");\n\t\tSystem.out.println(\"******** logging as the created teacher ********\");\n\t\tdashBoardPage = loginPage.loginSuccess(unitytestdata.getProperty(\"testDomainTeacher\"),\n\t\t\t\tunitytestdata.getProperty(\"genericPassword\"));\n\t\twaitTime();\n\t\thandScoringPage = dashBoardPage.goToHandScoring();\n\t\thandScoringPage.startHandScoring(testName3);\n\t\thandScoringPage.backToDashboard();\n\t\treportPage = dashBoardPage.goToReports();\n\t\treportPage.viewReport();\n\t\twaitTime();\n\t\treportPage.filterReportByClassRoster(testrosterName);\n\t\twaitTime();\n\t\treportPage.filterReportByContentArea(\"N/A\");\n\t\twaitTime();\n\t\treportPage.openTestEventDetail(testName3);\n\t\tcustomeWaitTime(5);\n\t\tsoftAssert.assertEquals(\"scored\", reportPage.getScoreStatusinTestDetail(\"urostudent1\"));\n\t\treportPage.verifyStudentHandScore(\"urostudent1\", 10, \"1\");\n\t\treportPage.logOut();\n\n\t}", "public static void maybeAddNewHighScore(String name, double score) throws FileNotFoundException, IOException {\n ArrayList<String> scoresAsStrings = getAllScores();\n ArrayList<HighScore> scoresAsScores = new ArrayList<>();\n \n //if there aren't enough scores, something is wrong - replace the score file with the example scores\n if (scoresAsStrings.size() < NUMBER_OF_SCORES_TO_SAVE) {\n for (String s : EXAMPLE_SCORES) {\n scoresAsStrings.add(s);\n }\n }\n \n //Parse the strings into high score objects\n for (String s : scoresAsStrings) {\n HighScore hs = new HighScore(s);\n scoresAsScores.add(hs);\n }\n \n HighScore userScore = new HighScore(name, score);\n \n //Add the user's score, sort the list of scores, then take the first 10\n scoresAsScores.add(userScore);\n Collections.sort(scoresAsScores);\n \n //Take the first 10 and write them to the file\n HighScore[] listOfScoresToSave = new HighScore[NUMBER_OF_SCORES_TO_SAVE];\n for (int i = 0; i < NUMBER_OF_SCORES_TO_SAVE; i++) {\n listOfScoresToSave[i] = scoresAsScores.get(i);\n }\n \n writeToFile(listOfScoresToSave);\n }", "@Override\n public void endGameAsWin()\n {\n // UPDATE THE GAME STATE USING THE INHERITED FUNCTIONALITY\n super.endGameAsWin();\n \n // RECORD THE TIME IT TOOK TO COMPLETE THE GAME\n long gameTime = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n \n // RECORD IT AS A WIN\n ((MahjongSolitaireMiniGame)miniGame).getPlayerRecord().addWin(currentLevel, gameTime);\n ((MahjongSolitaireMiniGame)miniGame).savePlayerRecord();\n \n // DISPLAY THE WIN DIALOG\n miniGame.getGUIDialogs().get(WIN_DIALOG_TYPE).setState(VISIBLE_STATE); \n\n // AND PLAY THE WIN ANIMATION\n playWinAnimation();\n \n // AND PLAY THE WIN AUDIO\n miniGame.getAudio().stop(MahjongSolitairePropertyType.SPLASH_SCREEN_SONG_CUE.toString()); \n miniGame.getAudio().stop(MahjongSolitairePropertyType.GAMEPLAY_SONG_CUE.toString());\n miniGame.getAudio().play(MahjongSolitairePropertyType.WIN_AUDIO_CUE.toString(), false);\n }", "public void saveScore() {\r\n FileDialog fd = new FileDialog(this, \"Save as a MIDI file...\", FileDialog.SAVE);\r\n fd.setFile(\"FileName.mid\");\r\n fd.show();\r\n //write a MIDI file to disk\r\n if ( fd.getFile() != null) {\r\n Write.midi(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }", "public void exitProgram() {\n System.out.println(\"Closing Ranking....\");\n ScannerInputs.closeScanner();\n System.exit(0);\n }", "public static void endingOutput(int totalTurns, int totalGames, int largestNum, String playerName) {\n double turnAvg = totalTurns/totalGames;\n double optimalGuesses = Math.log(largestNum - 1) / Math.log(2);\n if(turnAvg < optimalGuesses - 2){\n System.out.println(\"Wow, you really rocked it!!\");\n System.out.printf(\"An optimal game would have taken %.1f guesses and you averaged\\n\", optimalGuesses);\n System.out.printf(\"%.1f guesses over your %d games.\\n\", turnAvg, totalGames);\n } else if(turnAvg < optimalGuesses){\n System.out.println(\"Great job! You definitely know what you're doing.\");\n System.out.printf(\"An optimal game would have taken %.1f guesses and you averaged\\n\", optimalGuesses);\n System.out.printf(\"%.1f guesses over your %d games.\\n\", turnAvg, totalGames);\n } else if(turnAvg > optimalGuesses + 2) {\n System.out.println(\"Jeez, the goal of the game is to find the number in as few guesses as possible.\");\n System.out.println(\"You know that right?\");\n System.out.printf(\"An optimal game would have taken %.1f guesses and you averaged\\n\", optimalGuesses);\n System.out.printf(\"%.1f guesses over your %d games.\\n\", turnAvg, totalGames);\n } else {\n System.out.println(\"It's clear you understand how to play the game, now work on your luck a bit.\");\n System.out.printf(\"An optimal game would have taken %.1f guesses and you averaged\\n\", optimalGuesses);\n System.out.printf(\"%.1f guesses over your %d games.\\n\", turnAvg, totalGames);\n }\n System.out.printf(\"Thanks for playing %s, see you next time!\\n\", playerName);\n }", "public static void main(String[] args) {\n //Calculate the optimal number of guesses\n int OPTIMALGUESSCNT = getlog(UPPERBOUND,10);\n\n //Begin game\n System.out.println(\"This is the High Low Game. You WILL have fun.\");\n\n //Print Name\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter your name or be annihilated: \");\n\n String name = validateInputStr();\n if (name.isEmpty()) {\n System.out.println(\"You didn't enter a name. You must be Nobody. Glad I'm not a cyclops, haha jk, unless...\\nHello Player 1.\");\n }\n System.out.printf(\"Hello %s\\n\", name);\n\n boolean playAgain = false;\n int total_guesses = 0;\n short num_games = 0;\n do { //setup each game\n int game_guesses = 0;\n int secretNum = getSecretNum(Integer.parseInt(\"BEEF\",16));\n int guess = -1;\n int prev_guess = -1;\n while (guess != secretNum) { //A single game seshion\n Scanner scanGuess = new Scanner(System.in);\n System.out.println(\"Guess a number between 0 and 100: \");\n guess = validateInput();\n ++game_guesses;\n if (guess > UPPERBOUND || guess <= 0) {\n System.out.println(\"Your guess wasn't even in the range given!\");\n }\n if (guess > secretNum) {\n if (prev_guess != -1 && guess >= prev_guess && prev_guess >= secretNum) {\n System.out.println(\"You incorrectly guessed even higher this time! Lower your angle of attack!\");\n }\n System.out.println(\"You guessed too high.\");\n prev_guess = guess;\n }\n else if (guess < secretNum) {\n if (prev_guess != -1 && guess <= prev_guess && prev_guess <= secretNum) {\n System.out.println(\"You incorrectly guessed even lower this time! Aim high airman!\");\n }\n System.out.println(\"You guessed too low.\");\n prev_guess = guess;\n }\n else {\n //The game has effectively ended -> List Win Possibilities\n selectWinOption(game_guesses, OPTIMALGUESSCNT);\n //Check whether to play again\n boolean goodInput = false;\n while (!goodInput) {\n System.out.println(\"Would you like to play again? Enter yes (y) or no (n): \");\n Scanner clearBuff = new Scanner(System.in);\n String raw_playAgain = \"\";\n raw_playAgain = validateInputStr();\n //check input (I didn't feel like using Patterns\n if (raw_playAgain.equalsIgnoreCase(\"yes\") || raw_playAgain.equalsIgnoreCase(\"y\")) {\n playAgain = true;\n goodInput = true;\n }\n else if (raw_playAgain.equalsIgnoreCase(\"no\") || raw_playAgain.equalsIgnoreCase(\"n\")) {\n playAgain = false;\n goodInput = true;\n }\n else {\n System.out.println(\"Enter valid input! Ahhhh.\");\n }\n } //end check play again input\n }\n }\n System.out.println(\"You had \" + game_guesses + \" guesses during this game.\\n\\n\");\n total_guesses += game_guesses;\n ++num_games;\n }while(playAgain);\n\n printEndDialogue(total_guesses, num_games, OPTIMALGUESSCNT);\n }", "public void endGame() {\n\t\t// If Avengers lose and Loki wins\n\t\tif (!avengersAlive()) {\n\t\t\tca_attack.setEnabled(false);\n\t\t\the_attack.setEnabled(false);\n\t\t\tbw_attack.setEnabled(false);\n\t\t\thulk_attack.setEnabled(false);\n\t\t\tthor_attack.setEnabled(false);\n\t\t\tloki_attack.setEnabled(false);\n\t\t\ttextArea.append(\"\\n G A M E O V E R \\n\");\n\t\t\ttextArea.append(\"Oh no! Avengers lost... Loki conquered earth...\");\n\t\t}\n\t\t\n\t\t// If Loki loses and Avengers win\n\t\telse if (!lokiAlive()) {\n\t\t\tca_attack.setEnabled(false);\n\t\t\the_attack.setEnabled(false);\n\t\t\tbw_attack.setEnabled(false);\n\t\t\thulk_attack.setEnabled(false);\n\t\t\tthor_attack.setEnabled(false);\n\t\t\tloki_attack.setEnabled(false);\n\t\t\ttextArea.append(\"\\n Y O U W O N \\n\");\n\t\t\ttextArea.append(\"Yay! Avengers saved the world from Loki! Nice work!\");\n\t\t}\n\t}", "private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }", "@Override\n public void endGame(){\n gameOver = true;\n }", "private void saveScore() {\n try {\n PrintWriter writer = new PrintWriter(new FileOutputStream(new File(Const.SCORE_FILE), true));\n writer.println(this.player.getName() + \":\" + this.player.getGold() + \":\" + this.player.getStrength());\n writer.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static void createNewHighScoreFile() throws IOException {\n File f = new File(SCORE_FILE_NAME);\n f.createNewFile();\n \n HighScore[] toWrite = new HighScore[NUMBER_OF_SCORES_TO_SAVE];\n for (int i = 0; i < toWrite.length; i++) {\n toWrite[i] = new HighScore(EXAMPLE_SCORES[i]);\n }\n \n writeToFile(toWrite);\n }", "public void handleQuit() {\n closeFile();\n savePrefs();\n System.exit(0);\n }", "public void gameOver ()\n {\n Greenfoot.delay (50);\n if (gameOver)\n {\n fader = new Fader (); // create a new fader\n addObject (fader, 400, 300); // add the fader object to the world\n if (UserInfo.isStorageAvailable()) {\n HighScore highScore = new HighScore (score);\n addObject (highScore, 300, 170);\n }\n Greenfoot.stop();\n }\n }", "@Override\r\n public void onBackPressed() {\r\n super.onBackPressed();\r\n while (timer != null) {\r\n timer.cancel();\r\n timer = null;\r\n }\r\n\r\n start_flg = false;\r\n if (score > highScore) {\r\n highScore = score;\r\n String a = \"High Score : \" + highScore;\r\n highScoreLabel.setText(a);\r\n\r\n SharedPreferences.Editor editor = settings.edit();\r\n editor.putInt(\"HIGH_SCORE\", highScore);\r\n editor.commit();\r\n }\r\n myDb.close();\r\n finish();\r\n\r\n }", "private void exitGame(){\n out.println(\"\\r\\nPress ENTER to finish\");\n in.nextLine();\n// game.playersConnected--;\n login = false;\n }", "public void endGame(Player[] players) { \n int[] ret = calculateScore(players);\n int playerWinnerIdx = 0;\n \n int maxScore = 0;\n for(int i = 0; i < ret.length; i++){\n if(ret[i] > maxScore){\n playerWinnerIdx = i;\n maxScore = ret[i];\n }\n }\n board.setWinningIdx(playerWinnerIdx);\n board.setIsGameEnd(true);\n }", "public void findH()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] > high)\n high = scores[i][j];\n }\n }\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] == high)\n System.out.println(names[i] + \" had the highest score of \" + high);\n break;\n \n }\n \n }\n }", "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "@Override\n public void endGameAsLoss()\n {\n // UPDATE THE GAME STATE USING THE INHERITED FUNCTIONALITY\n super.endGameAsLoss();\n \n // RECORD IT AS A loss\n ((MahjongSolitaireMiniGame)miniGame).getPlayerRecord().addLoss(currentLevel);\n ((MahjongSolitaireMiniGame)miniGame).savePlayerRecord();\n \n // DISPLAY THE loss DIALOG\n miniGame.getGUIDialogs().get(LOSS_DIALOG_TYPE).setState(VISIBLE_STATE); \n\n // AND PLAY THE LOSS AUDIO\n miniGame.getAudio().stop(MahjongSolitairePropertyType.SPLASH_SCREEN_SONG_CUE.toString()); \n miniGame.getAudio().stop(MahjongSolitairePropertyType.GAMEPLAY_SONG_CUE.toString());\n miniGame.getAudio().play(MahjongSolitairePropertyType.LOSS_AUDIO_CUE.toString(), false);\n }", "public static void saveBoxScore(){\n Engine engine = Utility.getEngine();\n ArrayList<Player> homePlayers = engine.getHomePlayers();\n ArrayList<Player> awayPlayers = engine.getAwayPlayers();\n ArrayList<String> output = new ArrayList<String>();\n output.add(\"Home team\");\n for(Player player : homePlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n output.add(\"Away team\");\n for(Player player : awayPlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n try {\n Path path = Paths.get(Constants.OUTPUT_FILE_PATH);\n Files.write(path,output,StandardCharsets.UTF_8);\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n\n System.exit(0);\n }", "@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}", "public void Stop(Player player){\r\n \r\n if (Players.size()==1)\r\n {\r\n enddate=new Date();\r\n //write the result in a file \r\n //read the last game id and plus it with 1\r\n int gameID=0;\r\n String result=\"\";\r\n boolean playerwin=false;\r\n File f = new File(new File(\"\").getAbsolutePath() + \"\\\\src\\\\projectafterupdatev1\\\\pkg2\\\\GameRecords\");\r\n ObjectInputStream obj=null;\r\n try {\r\n obj = new ObjectInputStream(new FileInputStream(f));\r\n } catch (IOException ex) {System.out.println(\"exeption for newing the obj in game id initllize\");}\r\n while (true) {\r\n try {\r\n\r\n FinishedGameRecord temp = (FinishedGameRecord) obj.readObject();\r\n gameID=temp.gameID;\r\n } catch (EOFException e) {\r\n try {\r\n obj.close();\r\n } catch (IOException ex) {}\r\n break;\r\n } catch (IOException ex) {System.out.println(\"gameID initlizing IOE error\"); \r\n } catch (ClassNotFoundException ex) {System.out.println(\"gameID initlizing Class not found error\");\r\n }\r\n }\r\n \r\n gameID++;\r\n if (Objects.equals(Players.get(0).name, new String(\"Random PC\")))\r\n {\r\n result=\"PC Win\";\r\n \r\n }else\r\n {\r\n playerwin=true;\r\n result=Players.get(0).name+\" Win\";\r\n }\r\n //insert the new game record \r\n FinishedGameRecord lastscore=new FinishedGameRecord(playername,\"Random PC\",startdate,enddate,gameID,result);\r\n try {\r\n FileOutputStream os=new FileOutputStream(new File(new File(\"\").getAbsoluteFile()+\"\\\\src\\\\projectafterupdatev1\\\\pkg2\\\\GameRecords\"),true);\r\n AppendingObjectOutputStream obj2=new AppendingObjectOutputStream(os);\r\n \r\n obj2.writeObject(lastscore);\r\n \r\n obj2.close();\r\n os.close();\r\n } catch (FileNotFoundException ex) {System.out.println(\"writeing finished game record 111a\");} \r\n catch (IOException ex){System.out.println(\"111b\");}\r\n \r\n //writing to the score board \r\n \r\n File f3 = new File(new File(\"\").getAbsolutePath() + \"\\\\src\\\\projectafterupdatev1\\\\pkg2\\\\ScoreBoard\");\r\n try {\r\n AppendingObjectOutputStream obj4sore=new AppendingObjectOutputStream(new FileOutputStream(f3,true));\r\n \r\n obj4sore.writeObject(new ScoreRecord(playername, playerwin));\r\n \r\n obj4sore.close();\r\n } catch (FileNotFoundException ex) {System.out.println(\"File not Found obj 4 score\");\r\n } catch (IOException ex) {System.out.println(\"IOEexception obj4score\");\r\n }\r\n \r\n \r\n //insert the toturial records\r\n File f2 = new File(new File(\"\").getAbsolutePath() + \"\\\\src\\\\projectafterupdatev1\\\\pkg2\\\\ToturialFile\");\r\n try {\r\n \r\n AppendingObjectOutputStream obj3=new AppendingObjectOutputStream(new FileOutputStream(f2,true));\r\n WritableToturialClass temp=new WritableToturialClass();\r\n temp.Initlize(moves.size());\r\n temp.gameID=gameID;\r\n temp.grid=boarddata;\r\n temp.note=notedata;\r\n temp.header=boardsheader;\r\n for(int i=0;i<moves.size();i++){\r\n temp.add(moves.get(i).nameoftheattacker, moves.get(i).xaxis, moves.get(i).xaxis,moves.get(i).date);\r\n moves.get(i);\r\n }\r\n obj3.writeObject(temp);\r\n obj3.close();\r\n } catch (FileNotFoundException ex) {System.out.println(\"File not Found obj 3 \");\r\n } catch (IOException ex) {System.out.println(\"IOEexception obj3\");\r\n }\r\n //end of the adding operations\r\n \r\n WinnerDisplay win=new WinnerDisplay();\r\n win.setWinner(Players.get(0).name);\r\n //make the list disappear before the saving shit happen\r\n playerboard.repaintafterupdate();\r\n playerboard.setVisible(false);\r\n win.setLocation(500,300);\r\n win.setVisible(true);\r\n music.StopTheMusic();\r\n music.PlayWinner();\r\n \r\n \r\n }\r\n }", "public void gameOver() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Game is over. Calculating points\");\r\n\t\tstatus = \"over\";\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\tupdateEvents(false);\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(\"Game Results\");\r\n\t\tMap<Integer, Integer> scores = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tscores.put(i,players.get(i).calculatePoints());\r\n\t\t\t// Utils.getName(players.get(i).getPlayerID(),guild)\r\n\t\t}\r\n\t\t\r\n\t\tList<Entry<Integer, Integer>> sortedList = sortScores(scores);\r\n\t\t\r\n\t\t// If tied, add highest artifact values\r\n\t\tif ((playerCount > 1) && (sortedList.get(0).getValue().equals(sortedList.get(1).getValue()))) {\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Scores were tied\");\r\n\t\t\tint highestScore = sortedList.get(0).getValue();\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : sortedList) {\r\n\t\t\t\t// Only add artifacts to highest scores\r\n\t\t\t\tif (entry.getValue().equals(highestScore)) {\r\n\t\t\t\t\tscores.put(entry.getKey(),entry.getValue()+players.get(entry.getKey()).getHighestArtifactValue());\r\n\t\t\t\t\tplayers.get(entry.getKey()).setAddedArtifactValue(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Sort with added artifact values\r\n\t\tsortedList = sortScores(scores);\r\n\t\t\r\n\t\t// Assigns 1st, 2nd, 3rd\r\n\t\tfor (int i = 0; i < sortedList.size(); i++) {\r\n\t\t\tMap.Entry<Integer, Integer> entry = sortedList.get(i);\r\n\t\t\t// If tie, include artifact\r\n\t\t\tString name = Utils.getName(players.get(entry.getKey()).getPlayerID(),guild);\r\n\t\t\tif (players.get(entry.getKey()).getAddedArtifactValue()) {\r\n\t\t\t\tint artifactValue = players.get(entry.getKey()).getHighestArtifactValue();\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+(entry.getValue()-artifactValue)+\" (\"+artifactValue+\")``\",true);\r\n\t\t\t} else {\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+entry.getValue()+\"``\",true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tembed.setFooter(\"Credit to Renegade Game Studios\", null);\r\n\t\tgameChannel.sendMessage(embed.build()).queueAfter(dragonAttackingDelay+3000,TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\tGlobalVars.remove(this);\r\n\t}", "private static void gameOver() {\n\t\tSystem.out.println(\"Would you like to play again?\");\n\t\tinput.nextLine();\n\t\tuserInput = input.nextLine();\n\t\tif(userInput.contains(\"yes\")||userInput.equals(\"y\"))\n\t\t{\n\t\t\tgame();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Stay golden.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Override\n public synchronized void end() {\n System.out.println(\"Wins: \" + wins + \" Ties: \" + ties + \" Losses: \" + losses + \" Name: \" + brainLocation + \" Heat:\" + heat);\n saveMemory();\n }", "private void saveAndExit() {\n if (yesNoQuestion(\"Would you like to save the current active courses to the saved list before saving?\")) {\n addActiveCourseListToCourseList();\n }\n try {\n JsonWriter writer = new JsonWriter(\"./data/ScheduleList.json\",\n \"./data/CourseList.json\");\n writer.open(true);\n writer.writeScheduleList(scheduleList);\n writer.close(true);\n\n writer.open(false);\n writer.writeCourseList(courseList);\n writer.close(false);\n } catch (IOException ioe) {\n System.out.println(\"File Not Found, failed to save\");\n } catch (Exception e) {\n System.out.println(\"Unexpected Error, failed to save\");\n }\n\n }", "void displayScores(int pts)\n\t{\n\t\tString[][] scs = new String[10][2];\n\t\ttry\n\t\t{\n\t\t\tScanner str = new Scanner(new File(\"./scores.log\"));\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t{\n\t\t\t\tscs[i] = str.nextLine().split(\"\\t\");\n\t\t\t}\n\t\t\tstr.close();\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString scores = \"\";\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tscores += scs[i][0] + \"\\t\" + scs[i][1] + \"\\n\";\n\t\t\n\t\tint place = 10; // > 9; remains if the new score below the scoreboard\n\t\t\n\t\t// if new highscore\n\t\tif (pts > Integer.parseInt(scs[9][1]))\n\t\t{\n\t\t\t// determine the place\n\t\t\tplace = 9;\n\t\t\twhile (pts > Integer.parseInt(scs[place-1][1])) // place is too low\n\t\t\t{\n\t\t\t\tplace--; // move the \"pointer\" to higher place\n\t\t\t\tif (place == 0) break; // 1st place!\n\t\t\t}\n\t\t\t\n\t\t\t// insert where it should be\n\t\t\tfor (int i = 8; i >= place; i--)\n\t\t\t{\n\t\t\t\tscs[i+1][0] = new String(scs[i][0]); // drop place to lower\n\t\t\t\tscs[i+1][1] = new String(scs[i][1]);\n\t\t\t}\n\t\t\tscs[place][0] = parent.getUsername();\n\t\t\tscs[place][1] = \"\" + pts;\n\t\t}\n\t\t\n\t\t// prepare text for writing to file\n\t\tString textToWrite = \"\";\n\t\tfor (int i = 0; i < 10; i++) // for every place\n\t\t\ttextToWrite += scs[i][0] + \"\\t\" + scs[i][1] + \"\\n\";\n\t\t\n\t\t// write to scores.log\n\t\ttry\n\t\t{\n\t\t\tFileWriter str = new FileWriter(new File(\"./scores.log\"), false);\n\t\t\tstr.write(textToWrite);\n\t\t\tstr.close();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// prepare text for displaying in the scoreboard\n\t\tString textDisplayed = \"<html><style>p{font-size:40px; font-family:\\\"Lucida Console\\\"}</style>\";\n\t\tfor (int i = 0; i < 10; i++) // for every place\n\t\t{\n\t\t\tif (i == place) textDisplayed += \"<font color=\\\"red\\\">\";\n\t\t\ttextDisplayed += \"<p>\" + scs[i][0] + \" \";\n\t\t\t// add dots to fill places up to 30\n\t\t\tfor (int j = 30; j > scs[i][0].length(); j--)\n\t\t\t\ttextDisplayed += \".\";\n\t\t\ttextDisplayed += \" \" + scs[i][1] + \"</p>\";\n\t\t\tif (i == place) textDisplayed += \"</font>\";\n\t\t}\n\t\t\n\t\tscoreboard.setText(textDisplayed);\n\t}", "public void endGame() {\n\t\twaitingPlayers.addAll(players);\n\t\tplayers.clear();\n\t\tfor(ClientThread player: waitingPlayers) {\n\t\t\tplayer.points = 0;\n\t\t\tplayer.clientCards.clear();\n\t\t}\n\t\twinners = 0;\n\t\tlosers = 0;\n\t\tpassCounter = 0;\n\t\tdeck.init();\n\t\tview.changeInAndWait(players.size(), waitingPlayers.size());\n\t\tview.writeLog(\"-------------GAME END--------------\");\n\t\tstatus = \"waiting\";\n\t\tstatusCheck();\n\t}", "public static void RPSLS()throws IOException\n\t{\n\n\n\t\tString AiChoice=\"\";\n\t\tint points=0;\n\t\tint life=4;\n\t\tint XP=0;\n\t\txPerience=\"\";\n\t\tString filename=loginDetails.get(0)+\".txt\";\n \n String userinput=\"\";\n int randomselector;\n boolean playAgian=true;\n String message=\"Rock Paper Scissors Lizard Spock(RPSLS), is a game that was first introduced by Big bang theory's Sheldon Cooper, \\n As an ellabouration of the classic RPS \\n \\n Rules: Scissors cuts paper, \\n paper covers rock, \\n rock smashes lizard, \\n lizard poisons spock, \\n spock smashes scissors, \\n scissors decapacitae Lizard, \\n lizard eats paper, \\n paper disproves spock, \\n spock vaporizes rock, \\n ...and as it always have Rock crushes scissors. \\n \\t\\tEnjoy\";\n Scanner sc=new Scanner(System.in);\n JOptionPane.showMessageDialog(null,message,\"About The Game.\",1);\n \t \n System.out.println(\"User Entered: \"+ userinput);\n String pattern =\"rock|paper|scissors|lizard|spock\";\n boolean validinput=true;\n try{ \n while(validinput==true&&playAgian==true)\n {AiChoice=AI(AiChoice);\n \t\t\tuserinput=JOptionPane.showInputDialog(null,\"Enter either Rock,Paper,Scissors,Lizard or spock.\",\"RPSLS\",3);\n \t\t\t userinput =userinput.toLowerCase(); \n \t\t\t String result=\"You picked \"+userinput+\" AI choose \"+AiChoice;\n \t \tif(userinput !=null&&userinput==\"\")\n \t\t{\n \t\t\tJOptionPane.showMessageDialog(null,\"Empty input\",\"Invalid input\",0);\n \t\t\tvalidinput=true;\n \t\t\tplayAgian=true;\n \t\t}\n \t\telse if (!(userinput.matches(pattern)))\n \t\t\t{\n \t\t\t\tJOptionPane.showMessageDialog(null,\"The only acceptable inputs are either Rock,paper,scissors,spock,lizard\",\"Invalid input\",0);\n \t\t\t\tvalidinput=true;\n \t\t\t\tplayAgian=true;\n \t\t\t}\n \t\telse if (userinput==null)\n \t\t{displaygame();\n \t\t\tvalidinput=true;\n \t\t\tplayAgian=false;\n\n \t\t}\n \t\telse\n \t\t {\n \t\t\tif (userinput.equals(\"rock\"))\n \t\t\t{\n \t\t\t\tif (AiChoice.equals(userinput)){JOptionPane.showMessageDialog(null,result+\"\\n Draw\",\"Result\",1);XP=XP+10;points=points+50;}\n \t\t\t\telse if (AiChoice.equals(\"paper\")) {JOptionPane.showMessageDialog(null,result+\"\\n Paper covers Rock \\n >> You Lose!!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\telse if (AiChoice.equals(\"scissors\")){ JOptionPane.showMessageDialog(null,result+\"\\n Roc5crushes Scissors \\n >> You Win!!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\telse if (AiChoice.equals(\"spock\")) {JOptionPane.showMessageDialog(null,result+\"\\n Spock vaporizes Rock \\n >> You Lose!!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\telse {JOptionPane.showMessageDialog(null,result+\"\\n Rock crushes lizard \\n >> You Win!!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\n \t\t\t\t\n \t\t\t}\n \t\t\telse if (userinput.equals(\"paper\"))\n \t\t\t{\n \t\t\t\tif (AiChoice.equals(userinput)){JOptionPane.showMessageDialog(null,result+\"\\n Draw\",\"Result\",1);XP=XP+10;points=points+50;}\n \t\t\t\telse if (AiChoice.equals(\"rock\")) {JOptionPane.showMessageDialog(null,result+\"\\n Paper covers Rock \\n >> You Win!!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\telse if (AiChoice.equals(\"scissors\")){ JOptionPane.showMessageDialog(null,result+\"\\n Scissors cuts paper \\n >> You Lose !!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\telse if (AiChoice.equals(\"spock\")) {JOptionPane.showMessageDialog(null,result+\"\\n Paper disproves spock \\n >> You Win !!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\telse {JOptionPane.showMessageDialog(null,result+\"\\n lizard eats paper \\n >> You Lose !!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\n \t\t\t\n \t\t\t}\n\n \t \t\telse if (userinput.equals(\"scissors\"))\n \t\t\t{\n \t\t\t\tif (AiChoice.equals(userinput)){JOptionPane.showMessageDialog(null,result+\"\\n Draw\",\"Result\",1);XP=XP+10;points=points+50;}\n \t\t\t\telse if (AiChoice.equals(\"paper\")) {JOptionPane.showMessageDialog(null,result+\"\\n Scissors cuts paper \\n >> You Win !!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\telse if (AiChoice.equals(\"rock\")) {JOptionPane.showMessageDialog(null,result+\"\\n Rock crushes Scissors \\n >> You Lose!!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\telse if (AiChoice.equals(\"spock\")) {JOptionPane.showMessageDialog(null,result+\"\\n Spock smashes Scissors \\n >> You Lose !!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\telse {JOptionPane.showMessageDialog(null,result+\"\\n Scissors decapacitae lizard \\n >> You Win !!! <<\",\"Result\",1);XP=XP+50;;points=points+100;}\n \t\t\t\n \t\t\t\n \t\t\t}\t\t\n\n \t\t\telse if (userinput.equals(\"spock\"))\n \t\t\t{\n \t\t\t\tif (AiChoice.equals(userinput)){JOptionPane.showMessageDialog(null,result+\"\\n Draw\",\"Result\",1);XP=XP+10;;points=points+50;}\n \t\t\t\telse if (AiChoice.equals(\"paper\")){ JOptionPane.showMessageDialog(null,result+\"\\n paper disproves spock \\n >> You Lose !!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\telse if (AiChoice.equals(\"scissors\")) {JOptionPane.showMessageDialog(null,result+\"\\n spock Smashes scissors \\n >> You Win !!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\telse if (AiChoice.equals(\"rock\")) {JOptionPane.showMessageDialog(null,result+\"\\n Spock vaporizes Rock \\n >> You Win!!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\telse {JOptionPane.showMessageDialog(null,result+\"\\n lizard poisons spock \\n >> You Lose !!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\n \t\t\t\n \t\t\t}\n\n \t\t\telse if (userinput.equals(\"lizard\"))\n \t\t\t{\n \t\t\t\tif (AiChoice.equals(userinput)){JOptionPane.showMessageDialog(null,result+\"\\n Draw\",\"Result\",1);XP=XP+10;points=points+50;}\n \t\t\t\telse if (AiChoice.equals(\"paper\")){ JOptionPane.showMessageDialog(null,result+\"\\n Lizard eats paper \\n >> You Win !!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\telse if (AiChoice.equals(\"scissors\")){ JOptionPane.showMessageDialog(null,result+\"\\n Scissors decapacitae lizard \\n >> You Lose !!! <<\",\"Result\",1);XP=XP+5;points=points+0;}\n \t\t\t\telse if (AiChoice.equals(\"spock\")) {JOptionPane.showMessageDialog(null,result+\"\\n lizard poisons spock \\n >> You Win !!! <<\",\"Result\",1);XP=XP+50;points=points+100;}\n \t\t\t\telse {JOptionPane.showMessageDialog(null,result+\"\\n Rock crushes lizard \\n >> You Lose!!! <<\",\"Result\",1);XP=XP+5;points=points+100;}\n \t\t\t\n \t\t\t\t\n \t\t\t}\n \t\t\tJOptionPane.showMessageDialog(null,\"Your XP: \"+ XP+\"\\n Your Points Accumelated: \"+ points,\" RPSLS\",1);\n \t\t\t//xp=Integer.toString(XP);\n \t\t\tvalidinput=true;\n \t\t\tplayAgian=true;\n\n \t\t\txPerience=Integer.toString(XP);\n\n \t\t\t//saveXP(username.getText(),xp);userXpLog(username.getText(),xp);\n\n \t\t}\n }\n\n } catch(NullPointerException e){displaygame();}\n\t}", "public void endGame(){\n\t\tgameRunning = false;\t// set gameRunning to false\n\t\tfinal SnakeGame thisGame = this;\t// store reference to the current game\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \t// remove our board and scoreboard\n \tgetContentPane().remove(board);\n \tgetContentPane().remove(scoreboard);\n \t// create a game over page\n \tgameOverPage = new GameOver(thisGame, scoreboard.getScore());\n \t// set our board and scoreboard to null\n \tboard = null;\n \tscoreboard = null;\n \t// add the game over page\n \tadd(gameOverPage);\n \t// validate and repaint\n \tvalidate();\n \trepaint();\n }\n\t\t});\t\n\t}", "public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }", "public void endGame()\n\t{\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tstopThreads();\n\t\tsendScore();\n\t}", "public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }" ]
[ "0.68767697", "0.6762906", "0.67462337", "0.67257756", "0.6674244", "0.66508025", "0.66173744", "0.65706635", "0.6567629", "0.65510845", "0.64617664", "0.644673", "0.62780124", "0.6276377", "0.62022054", "0.6155768", "0.6135575", "0.61146885", "0.60876864", "0.6056645", "0.60558474", "0.6041476", "0.60359603", "0.60072047", "0.5984818", "0.59501475", "0.5946931", "0.59241676", "0.59083647", "0.58942914", "0.58723676", "0.5849896", "0.5844412", "0.5842428", "0.5838468", "0.5821919", "0.58159405", "0.5804768", "0.5798924", "0.57741636", "0.5769696", "0.5768916", "0.57686496", "0.5760904", "0.57545346", "0.574674", "0.57425714", "0.57347286", "0.5717326", "0.5697843", "0.56930774", "0.5687281", "0.5683165", "0.5668349", "0.5665373", "0.56638277", "0.56611234", "0.5642952", "0.5630491", "0.5627279", "0.56190133", "0.5615712", "0.56121534", "0.56113654", "0.55939364", "0.55904424", "0.55800927", "0.5570529", "0.5544987", "0.55447143", "0.5533756", "0.55286777", "0.5525817", "0.5522518", "0.5518374", "0.55180126", "0.5514022", "0.550513", "0.5499866", "0.5499424", "0.5492534", "0.5466504", "0.546641", "0.5463106", "0.54588723", "0.54565376", "0.54545903", "0.5450449", "0.54368776", "0.5428308", "0.54257405", "0.5421499", "0.54211617", "0.541715", "0.5409755", "0.54050255", "0.54007834", "0.5391544", "0.5384882", "0.53652585" ]
0.8501986
0
The check if high score function takes in the initials of the player so that it can create a new high score object if necessary, then it goes through the list of high scores the game has a handle on, and if the player has a score that is high enough to be on the list it fits it into the list in the proper place and bumps the other high scores down a notch, dropping the bottom one.
private void checkIfHighScore(String inits){ for(int count = 0; count < scores.length; count++){ if (count == 9 && points > scores[count].getScore()){ //If the player has a score higher than the highest score for (int counter = 0; counter < 8; counter++){ scores[counter] = scores[counter++]; //bumps down the other scores } scores[9] = new HighScore(inits, points); //creates a new high score for the player on the lsit } else if (points > scores[count].getScore() && points <= scores[1+count].getScore()){ //if the playe rhas a score that is higher than one score but lower than or equal to the next score for (int counter = 0; counter < count-1; counter++){ scores[counter] = scores[counter++]; //bumps down the other scores } scores[count] = new HighScore(inits, points); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkHighScore(){\n if(highScoreList.isEmpty() || highScoreList.size() < 5){\n return true;\n }\n //Any other case, we have to start comparing\n for(User user : highScoreList) {\n //We found a place to put their score!\n if(getScore() > user.score) {\n return true;\n }\n }\n return false;\n }", "public boolean checkHighscore() {\n String[][] oldHighscores = highscore.getHighscoreList();\n int oldScore;\n int position;\n boolean newHighscore = false;\n\n //Decides position in the list by comparing to the old scores\n for (int i = 0; i < oldHighscores.length; i++) {\n oldScore = Integer.parseInt(oldHighscores[i][1]);\n if (player.getScore() > oldScore) {\n position = i;\n highscore.writeHighscore(player.getName(), player.getScore(), position);\n newHighscore = true;\n break;\n }\n }\n return newHighscore;\n }", "public void checkHighScore() {\n\t\t//start only if inserting highscore is needed\n\t\tlevel.animal.gamePaused = true;\n\t\tlevel.createTimer();\n\t\tlevel.timer.start();\n\t\t\t\t\n\t\tlevel.setWord(\"hiscores\", 7, 175, 130);\n\t\t\n\t\treadFile();\n\t}", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public boolean highScore(int score, String name) {\n //If the list is empty or has less than 5 users, add them in!\n if(highScoreList.isEmpty() || highScoreList.size() < 5){\n User newUser = new User(name, score);\n highScoreList.add(newUser);\n saveHighscores();\n return true;\n }\n //Any other case, we have to start comparing\n for(User user : highScoreList) {\n //We found a place to put their score!\n if(score > user.score) {\n User newUser = new User(name, score);\n highScoreList.add(newUser); //Add in the new User and sort\n Collections.sort(highScoreList); //Sort the list\n //Check if there's more than 5 Users, if so, remove one\n if(highScoreList.size() > 5) {\n highScoreList.remove(0);\n //Check if the user is still there, if not, they didn't belong anyway\n if(highScoreList.contains(newUser)){\n saveHighscores();\n return true;\n }else\n return false;\n }\n }\n }\n return false;\n }", "public void CheckScore(){\n \tif(killed > highScore) {\n \t\tname = JOptionPane.showInputDialog(\"You set a HighScore!\\n What is your Name?\");\n \t\thighScore = killed;\n \t}\n }", "public void checkHighScore(){\n if(timeElapsed >= highMinutes){\n highMinutes = timeElapsed;\n highSeconds = timeCounter / 60;\n }\n }", "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "public void findH()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] > high)\n high = scores[i][j];\n }\n }\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] == high)\n System.out.println(names[i] + \" had the highest score of \" + high);\n break;\n \n }\n \n }\n }", "private void checkHighCard(Player player) {\n\t\tplayer.setHandRank(HandRank.HIGH_CARD);\n\n\t\tfor (int i = 0, j = 6; i < hand.length; i++, j--)\n\t\t\thand[i] = player.getSevenCardsTempHand().get(j);\n\n\t\tplayer.setFiveCardsHand(hand);\n\t}", "public boolean isHighScore(long score){\n return score > highScores[MAX_SCORES - 1];\n }", "boolean haveHigh(char suit){\n for (int i=0; i<6; i++)\n if ((hand.get(i).suit == suit) && (hand.get(i).rank > (6 + pitchTable.getNumPlayers())))\n return true;\n return false;\n }", "public boolean addToHighScores(Player player) {\n\n try {\n int i, j, temp = 0;\n String tempName;\n String[][] newHighScores = new String[11][2];\n boolean isHighScore = false;\n String[][] highScores;\n highScores = new String[10][2];\n if (isValidScore(player.getScore())) {\n switch (player.getDifficulty()) {\n //Easy difficulty sort\n case EASY:\n for (int k = 0; k < easyHighScores.length; k++) {\n highScores[k][0] = easyHighScores[k][0];\n highScores[k][1] = easyHighScores[k][1];\n }\n break;\n //Medium difficulty sort\n case MEDIUM:\n for (int k = 0; k < mediumHighScores.length; k++) {\n highScores[k][0] = mediumHighScores[k][0];\n highScores[k][1] = mediumHighScores[k][1];\n }\n break;\n //Hard difficulty sort\n case HARD:\n for (int k = 0; k < hardHighScores.length; k++) {\n highScores[k][0] = hardHighScores[k][0];\n highScores[k][1] = hardHighScores[k][1];\n }\n break;\n default:\n System.out.println(\"No difficulty\");\n return false;\n }\n\n isHighScore = isHighScore(highScores, player.getScore());\n\n if (!isHighScore) {\n System.out.println(\"Not a high score.\");\n return false;\n }\n \n for (int k = 0; k < highScores.length; k++) {\n newHighScores[k][0] = highScores[k][0];\n newHighScores[k][1] = highScores[k][1];\n }\n newHighScores[10][0] = player.getName();\n newHighScores[10][1] = Integer.toString(player.getScore());\n for (j = 1; j < newHighScores.length; j++) {\n temp = parseInt(newHighScores[j][1]);\n\n tempName = newHighScores[j][0];\n for (i = j - 1; (i >= 0) && (parseInt(newHighScores[i][1]) < temp); i--) {\n newHighScores[i + 1][1] = newHighScores[i][1];\n newHighScores[i + 1][0] = newHighScores[i][0];\n }\n newHighScores[i + 1][1] = Integer.toString(temp);\n newHighScores[i + 1][0] = tempName;\n }\n\n switch (player.getDifficulty()) {\n case EASY:\n for (int k = 0; k < (newHighScores.length - 1); k++) {\n this.easyHighScores[k][0] = newHighScores[k][0];\n this.easyHighScores[k][1] = newHighScores[k][1];\n }\n return true;\n case MEDIUM:\n for (int k = 0; k < (newHighScores.length - 1); k++) {\n this.mediumHighScores[k][0] = newHighScores[k][0];\n this.mediumHighScores[k][1] = newHighScores[k][1];\n }\n return true;\n case HARD:\n for (int k = 0; k < (newHighScores.length - 1); k++) {\n this.hardHighScores[k][0] = newHighScores[k][0];\n this.hardHighScores[k][1] = newHighScores[k][1];\n }\n return true;\n default:\n System.out.println(\"Invalid difficulty\");\n return false;\n }\n } else {\n System.out.println(\"Not a valid score.\");\n return false;\n }\n\n //This next part is to test the displayHighScoreWithName() function\n// Scanner input = SnakeWithPartner.getInFile();\n// System.out.println(\"Do you want to view the high score's with your name? (\\'y\\' or \\'n\\'): \");\n// if (input.hasNext(\"y\")) {\n// displayHighScoreWithName(player);\n// } else {\n// System.out.println(\"Thanks anyways!\");\n// }\n } catch (NumberFormatException numEx) {\n System.out.println(\"Error adding score to High Scores.\\n\"\n + numEx.getMessage());\n }\n return false;\n }", "public boolean gameOver(){\n\n\t\tif (score > highScore) {\n\t\t\thighScore = score;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isThereNewHighScore() {\n\t\tif (score > highScore) {\n\t\t\thighScore = score;\n\t\t\tnewHighScore = true;\n\t\t}\n\t\treturn newHighScore;\n\t}", "public boolean insertNewScore(Score score){\r\n\t\tboolean isInserted = false;\r\n\t\tScore aux;\r\n\t\t\r\n\t\tfor (int i = 0; i < scoreNumber; i++){\r\n\t\t\tif (score.getPoints() > highScores[i].getPoints()){\r\n\t\t\t\taux = highScores[i];\r\n\t\t\t\thighScores[i] = score;\r\n\t\t\t\tscore = aux;\r\n\t\t\t\t\r\n\t\t\t\tisInserted = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\treturn isInserted;\r\n\t}", "public void makeHigh() {\n Collections.sort(this.cards, Card.COMPARE_BY_VALUE);\n ArrayList<String> validHand = new ArrayList<>();\n for(int i = this.cards.size() - 5; i < this.cards.size(); i++)\n validHand.add(this.cards.get(i).toString());\n this.cardHand = new CardHand(validHand.toArray(new String[0]));\n }", "public static Player whoLostGame() {\r\n\t\tint lowest = Main.loseScoreNumb;\r\n\t\tPlayer loser = null;\r\n\t\t\r\n\t\t\r\n\t\t//Three handed play.\r\n\t\tif (Main.isThreeHanded){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Four handed play with no teams.\r\n\t\tif (Main.isFourHandedSingle){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player4Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player4Score);\r\n\t\t\t\tloser = Main.playerFour;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn loser;\r\n\t}", "public static boolean checkAndWriteHighScore() {\n\t\tString file = \"file:highScore.txt\";\n\t int highScore = 0;\n\t try {\n\t BufferedReader reader = new BufferedReader(new FileReader(file));\n\t String line = reader.readLine();\n\t while (line != null) // read the score file line by line\n\t {\n\t try {\n\t int oldScore = Integer.parseInt(line.trim()); // parse each line as an int\n\t if (oldScore > highScore){ \n\t highScore = oldScore; \n\t }\n\t } catch (NumberFormatException e1) {\n\t // ignore invalid scores\n\t //System.err.println(\"ignoring invalid score: \" + line);\n\t }\n\t line = reader.readLine();\n\t }\n\t reader.close();\n\n\t } catch (IOException ex) {\n\t System.err.println(\"ERROR reading scores from file\");\n\t }\n\t \n\t \n\t FileWriter myWriter;\n\t\ttry {\n\t\t\tmyWriter = new FileWriter(file);\n\t\t\tmyWriter.write(\"\" + points.get());\n\t\t\tmyWriter.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (points.get() > highScore) {\n\t\t\treturn true;\n\t\t}\n\t return false;\n\t}", "public static boolean isHandHighCard(Hand h, HandScore hs) {\t\t\t//Always returns true because there is always a high card\r\n\t\ths.setHandStrength(eHandStrength.HighCard.getHandStrength());\r\n\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\ths.setLoHand(0);\r\n\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()));\r\n\t\ths.setKickers(kickers);\t\r\n\t\treturn true;\r\n\t\t\r\n\t}", "private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}", "public abstract boolean higherScoresAreBetter();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasMaxHP();", "public boolean checkScore() {\r\n return !(this.scoreTable.getRank(this.score.getValue()) > this.scoreTable.size());\r\n }", "void win() {\n String name = score.getName();\n if (Time.getSecondsPassed() < 1) {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / 1);\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + 1 + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n } else {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / Time.getSecondsPassed());\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + Time.getSecondsPassed() + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n }\n }", "public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}", "public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }", "public void setHighscore(int score)\n {\n this.highscore = score;\n }", "public int getPlayerScoreFromHighscoreList(String name) {\n\t\t//if the name isn't found in the list\n\t\tif(highscore.containsKey(name))\n\t\t\treturn 0;\n\t\t\n\t\treturn highscore.get(name);\n\t}", "public void CheckHands(){\n HashMap<CardRank, Integer> CardMap = getCardMap(ranks);\n ArrayList<Integer> MapValues = new ArrayList<>(CardMap.values());\n //sort MapValues in descending order, so that we can use\n // MapValues.get(0) to get the largest appear time and so on\n Collections.sort(MapValues, Collections.reverseOrder());\n System.out.print(\"Player 1: \");\n\n\n //Straight flush\n if (flush(suits) && straight(ranks)){\n System.out.println(ranks.get(ranks.size()-1).getName()\n + \"-high straight flush\");\n return;\n }\n\n //Four of a kind\n if (MapValues.get(0) == 4){\n CardRank rank4 = getKeysByValue(CardMap, 4).get(0);\n System.out.println(\"Four \" + rank4.getName() + \"s\");\n return;\n }\n\n //full house\n if (MapValues.get(0) == 3 && MapValues.get(1) == 2){\n CardRank rank3 = getKeysByValue(CardMap, 3).get(0);\n CardRank rank2 = getKeysByValue(CardMap,2).get(0);\n System.out.println(rank3.getName() + \"s full of \"\n + rank2.getName()+\"s\");\n return;\n }\n\n //Flush (not straight)\n if (flush(suits) && !straight(ranks)) {\n System.out.println(ranks.get(ranks.size() - 1).getName()\n + \"-high flush\");\n return;\n }\n\n //Straight (not flush)\n if (straight(ranks) && !flush(suits)){\n System.out.println(ranks.get(ranks.size() - 1).getName()\n + \"-high straight\");\n return;\n }\n\n //Three of a kind (not full house)\n if (MapValues.get(0) == 3 && MapValues.get(1) != 2){\n CardRank rank3 = getKeysByValue(CardMap, 3).get(0);\n System.out.println(\"Three \" + rank3.getName() + \"s\");\n return;\n }\n\n //Two Pair\n if (MapValues.get(0) == 2 && MapValues.get(1) == 2){\n CardRank rank21 = getKeysByValue(CardMap,2).get(0);\n CardRank rank22 = getKeysByValue(CardMap, 2).get(1);\n System.out.println(rank22.getName() + \"s over \"\n + rank21.getName() + \"s\" );\n return;\n\n }\n\n //One pair (only one)\n if (MapValues.get(0) == 2 && MapValues.get(1) == 1){\n CardRank rank2 = getKeysByValue(CardMap, 2).get(0);\n System.out.println(\"Pair of \" + rank2.getName()+ \"s\");\n return;\n }\n\n //High Card (not flush)\n if (MapValues.get(0) == 1 && !flush(suits)){\n System.out.println(ranks.get(ranks.size() - 1).getName() + \"-high\");\n return;\n }\n }", "private void checkScore() {\n // Score is made\n if ((this.ball.getX() < 0) || (this.ball.getX() > getWidth())) {\n // Play R.raw.bleep\n soundPool.play(soundIds[1], 1, 1, 1, 0, 1);\n\n this.touchEnabled = false;\n this.pongThread = new GameThread(this, getHolder(), true);\n\n // Right scores\n if (this.ball.getX() < 0) {\n this.scoreR.update();\n // Left scores\n } else if (this.ball.getX() > getWidth()) {\n this.scoreL.update();\n }\n\n // Reset positions of sprites\n this.paddleL.setX(PADDLE_WALL_DIST);\n this.paddleL.setY(getHeight()/2 - PADDLE_HEIGHT);\n this.paddleR.setX(getWidth() - PADDLE_WALL_DIST - PADDLE_WIDTH);\n this.paddleR.setY(getHeight()/2 - PADDLE_HEIGHT);\n this.ball.setX(getWidth()/2 - 16 - BALL_DIAMETER/2);\n this.ball.setY(getHeight()/2 - BALL_DIAMETER /2);\n this.ball.setEnabled(false);\n this.fakeBall.setX(getWidth()/2 - 16 - BALL_DIAMETER/2);\n this.fakeBall.setY(getHeight()/2 - BALL_DIAMETER /2);\n this.fakeBall.setEnabled(false);\n\n checkWin();\n }\n }", "private void checkPlayerScoreboard(Player player) {\n\t\tScoreboard known = knownScoreboards.get(player);\n\t\t\n\t\tif (player.hasPermission(\"pandora.movement.nopush\")) {\n\t\t\tif (known == null || known != player.getScoreboard()) {\n\t\t\t\tknown = player.getScoreboard();\n\t\t\t\tknownScoreboards.put(player, known);\n\t\t\t\tsendFakeTeam(player);\n\t\t\t}\n\t\t} else {\n\t\t\tif (known != null) {\n\t\t\t\tdeleteFakeTeam(player);\n\t\t\t\tknownScoreboards.put(player, null);\n\t\t\t}\n\t\t}\n\t}", "private void checkLoosePLayer(){\n if (hero.getHp()<=0){\n loose();\n }\n\n }", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }", "public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }", "public boolean meWin(){\n return whitePieces.size() > blackPieces.size() && isWhitePlayer;\n }", "@Override\n\tpublic void buttonPress(Button button) {\n\t\tsuper.buttonPress(button);\n\t\tif(playerOneScore > highScore) {\n\t\t\thighScore = playerOneScore;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "static int getComputerCard(Card playerCard) {\n //The computer will iterate through different possible cards it might choose to play.\n //This represents a chosen card at any given time.\n Card possibleCard = null;\n //The position in the computer's hand where the possibleCard is stored.\n int cardPosition = 0;\n //True if the computer has a card of higher value than the player's.\n boolean hasHigherCard = false;\n //Iterate through the computer's hand, trying to find a card higher than the player's\n for (int i = 0; i < highCardGame.getHand(0).getNumCards(); i++) {\n if (playerCard.compareTo(highCardGame.getHand(0).inspectCard(i)) < 0) {\n //The computer has a higher card.\n if (possibleCard != null) {\n //If this card is lower than the possible card, but can still beat the player, then replace possible card.\n if (possibleCard.compareTo(highCardGame.getHand(0).inspectCard(i)) > 0) {\n possibleCard = new Card(highCardGame.getHand(0).inspectCard(i));\n cardPosition = i;\n }\n } else {\n //If the computer has not yet chosen a possible card, choose this one.\n possibleCard = new Card(highCardGame.getHand(0).inspectCard(i));\n hasHigherCard = true;\n cardPosition = i;\n }\n }\n }\n if (!hasHigherCard) {\n //If the computer does not have a card that can beat the player, then feed the lowest card\n //that the computer has to the player.\n for (int i = 0; i < highCardGame.getHand(0).getNumCards(); i++)\n if (playerCard.compareTo(highCardGame.getHand(0).inspectCard(i)) >= 0) {\n if (possibleCard != null) {\n if (possibleCard.compareTo(highCardGame.getHand(0).inspectCard(i)) > 0) {\n possibleCard = new Card(highCardGame.getHand(0).inspectCard(i));\n cardPosition = i;\n }\n } else {\n possibleCard = highCardGame.getHand(0).inspectCard(i);\n cardPosition = i;\n }\n }\n }\n return cardPosition;\n }", "public static Player whoWonGame() {\r\n\t\tint highest = Main.winScoreNumb;\r\n\t\tPlayer winner = null;\r\n\t\t\r\n\t\t//Three handed play.\r\n\t\tif (Main.isThreeHanded){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) >= highest) {\r\n\t\t\t\thighest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\twinner = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) >= highest) {\r\n\t\t\t\thighest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\twinner = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) >= highest) {\r\n\t\t\t\thighest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\twinner = Main.playerThree;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Four handed play with no teams.\r\n\t\tif (Main.isFourHandedSingle){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) >= highest) {\r\n\t\t\t\thighest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\twinner = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) >= highest) {\r\n\t\t\t\thighest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\twinner = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) >= highest) {\r\n\t\t\t\thighest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\twinner = Main.playerThree;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player4Score) >= highest) {\r\n\t\t\t\thighest = Utils.stringToInt(Main.player4Score);\r\n\t\t\t\twinner = Main.playerFour;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn winner;\r\n\t}", "private int highCard() {\n\t\tint highCard = 0;\n\t\tfor (int counter = 0; counter < Constants.HAND_SIZE; counter++) {\n\t\t\tif (hand[counter].getValueIndex() > highCard) {\n\t\t\t\thighCard = hand[counter].getValueIndex();\n\t\t\t}\n\t\t}\n\t\tresult.setPrimaryValuePos(highCard);\n\t\treturn highCard;\n\t}", "public static int calculateHighScorePosition(int score){\n\n /*One Way\n if(score >= 1000)\n return 1;\n else if (score >= 500)\n return 2;\n else if (score >= 100)\n return 3;\n\n return 4;\n */\n\n //Other way\n return (score >= 1000) ? 1 : ((score >= 500) ? 2 : ((score >=100) ? 3 : 4));\n }", "public void checkEndGame() {\n\t\t\n\t\tboolean gameFinished = false;\n\t\t//boolean playerOne = false;\n\t\t//boolean playerTwo = false;\n\t\t\n\t\t\n\t\tif (bucket[13].getnumOfRocks() == 0 && bucket[12].getnumOfRocks() == 0 && bucket[11].getnumOfRocks() == 0\n\t\t\t\t&& bucket[10].getnumOfRocks() == 0 && bucket[9].getnumOfRocks() == 0\n\t\t\t\t&& bucket[8].getnumOfRocks() == 0) {\n\n\t\t\tint left = bucket[6].getnumOfRocks() + bucket[5].getnumOfRocks() + bucket[4].getnumOfRocks()\n\t\t\t\t\t+ bucket[3].getnumOfRocks() + bucket[2].getnumOfRocks() + bucket[1].getnumOfRocks()\n\t\t\t\t\t+ bucket[0].getnumOfRocks();\n\n\t\t\tbucket[0].setnumOfRocks(left, c);\n\t\t\tbucket[6].setnumOfRocks(0, c);\n\t\t\tbucket[5].setnumOfRocks(0, c);\n\t\t\tbucket[4].setnumOfRocks(0, c);\n\t\t\tbucket[3].setnumOfRocks(0, c);\n\t\t\tbucket[2].setnumOfRocks(0, c);\n\t\t\tbucket[1].setnumOfRocks(0, c);\n\t\t\t\n\t\t\tgameFinished = true;\n\t\t}\n\n\t\tif (bucket[1].getnumOfRocks() == 0 && bucket[2].getnumOfRocks() == 0 && bucket[3].getnumOfRocks() == 0\n\t\t\t\t&& bucket[4].getnumOfRocks() == 0 && bucket[5].getnumOfRocks() == 0 && bucket[6].getnumOfRocks() == 0) {\n\n\t\t\tint right = bucket[13].getnumOfRocks() + bucket[12].getnumOfRocks() + bucket[11].getnumOfRocks();\n\t\t\tright = right + bucket[10].getnumOfRocks() + bucket[9].getnumOfRocks() + bucket[8].getnumOfRocks()\n\t\t\t\t\t+ bucket[7].getnumOfRocks();\n\n\t\t\tbucket[7].setnumOfRocks(right, c);\n\t\t\tbucket[13].setnumOfRocks(0, c);\n\t\t\tbucket[12].setnumOfRocks(0, c);\n\t\t\tbucket[11].setnumOfRocks(0, c);\n\t\t\tbucket[10].setnumOfRocks(0, c);\n\t\t\tbucket[9].setnumOfRocks(0, c);\n\t\t\tbucket[8].setnumOfRocks(0, c);\n\n\t\t\tgameFinished = true;\n\t\t}\n\t\t\n\t\t\n\t\tif(gameFinished==true){\n\t\t\tif(bucket[7].getnumOfRocks()<bucket[0].getnumOfRocks()){\n\t\t\t\tplayerOne=true;\n\t\t\t}else{\n\t\t\t\tplayerTwo=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*if(playerOne==true){\n\t\t\tSystem.out.println(\"Player A won\");\n\t\t}\n\t\tif(playerTwo == true){\n\t\t\tSystem.out.println(\"Player B won\");\n\t\t}\n\t\t */\n\t\t\n\t}", "public void checkScore() {\n\n whatIsTurnScore();\n\n if (turn == 1) {\n\n if ((p1.getScore() - turnScore < 0) || (p1.getScore() - turnScore == 1)) {\n newScore.setText(null);\n\n displayScore();\n\n\n Toast.makeText(this, \"Bust\", Toast.LENGTH_SHORT).show();\n } else if (p1.getScore() - turnScore > 1) {\n if ((turnScore > 99) && (turnScore < 140)) {\n p1.setHundres(p1.getHundres() + 1);\n } else if ((turnScore > 139) && (turnScore < 180)) {\n p1.setOneforties(p1.getOneforties() + 1);\n } else if (turnScore == 180) {\n p1.setOneeighties(p1.getOneeighties() + 1);\n }\n calculateScore();\n\n\n displayScore();\n } else if (p1.getScore() - turnScore == 0) {\n p1.setScore(0);\n }\n }\n\n if (turn == 2) {\n if ((p2.getScore() - turnScore < 0) || (p2.getScore() - turnScore == 1)) {\n newScore.setText(null);\n teamBCheckout.setText(checkOut(p2.getScore()));\n displayScore();\n\n\n Toast.makeText(this, \"Bust\", Toast.LENGTH_SHORT).show();\n } else if (p2.getScore() - turnScore > 1) {\n\n if ((turnScore > 99) && (turnScore < 140)) {\n p2.setHundres(p2.getHundres() + 1);\n } else if ((turnScore > 139) && (turnScore < 180)) {\n p2.setOneforties(p2.getOneforties() + 1);\n } else if (turnScore == 180) {\n p2.setOneeighties(p2.getOneeighties() + 1);\n }\n calculateScore();\n\n displayScore();\n\n } else if (p2.getScore() - turnScore == 0) {\n p2.setScore(0);\n }\n\n }\n\n\n }", "@Override\n\tpublic boolean gameEnd(ArrayList<Button> list) {\n\t\tif(super.gameEnd(list)==true&& playerTwoScore >= playerOneScore) {\n\t\t\ttry {\n\t\t\t\tbw.write(String.valueOf(highScore));\n\t\t\t\tSystem.out.println(String.valueOf(highScore));\n\t\t\t\tbw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn super.gameEnd(list);\n\t}", "@Test\n public void missingHighScoresTest() {\n database.createHighScoreTable(testTable);\n database.addHighScore(110, testTable);\n database.addHighScore(140, testTable);\n int[] scores = database.loadHighScores(testTable);\n assertEquals(0, scores[4]);\n assertEquals(0, scores[3]);\n assertEquals(0, scores[2]);\n assertEquals(110, scores[1]);\n assertEquals(140, scores[0]);\n database.clearTable(testTable);\n\n }", "public static boolean isHandFullHouse(Hand h, HandScore hs) {\n\r\n\t\tboolean isFullHouse = false;\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.THIRDCARD.getCardNo()).geteRank() && h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t\t\t.get(eCardPlace.FIFTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisFullHouse = true;\r\n\t\t\ths.setHandStrength(eHandStrength.FullHouse.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(null);\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.SECONDCARD.getCardNo()).geteRank() && h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t\t\t.get(eCardPlace.FIFTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisFullHouse = true;\r\n\t\t\ths.setHandStrength(eHandStrength.FullHouse.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(null);\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\treturn isFullHouse;\r\n\r\n\t}", "boolean haveLow(char suit){\n for (int i=0; i<6; i++)\n if ((hand.get(i).suit == suit) && (hand.get(i).rank < (10 - pitchTable.getNumPlayers())))\n return true;\n return false;\n }", "public static boolean isMaxed(Player player) {\n\t\tif (player.getSkills().getLevelForXp(Skills.ATTACK) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.STRENGTH) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.DEFENCE) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.RANGE) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.PRAYER) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.MAGIC) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.RUNECRAFTING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.HITPOINTS) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.AGILITY) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.HERBLORE) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.THIEVING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.CRAFTING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.FLETCHING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.SLAYER) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.HUNTER) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.MINING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.SMITHING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.FISHING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.COOKING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.FIREMAKING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.WOODCUTTING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.FARMING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.CONSTRUCTION) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.SUMMONING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.DUNGEONEERING) >= 99\n\t\t\t\t&& player.getSkills().getLevelForXp(Skills.DIVINATION) >= 99)\n\t\treturn true;\n\treturn false;\n\t}", "public void topScore() {\n\t\tif (playern.getExp() >= 100) {\n\t\t\tSystem.out.println(\"You become a Warrior and win the game\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private Boolean cutScores(List<Pair<String, Integer>> list2) {\n final boolean modified;\n if (list2.size() > this.maxScores) {\n modified = true;\n } else {\n modified = false;\n }\n while (list2.size() > this.maxScores) {\n list2.remove(this.maxScores);\n }\n return modified;\n\n }", "private void setHighScore(int hs) {\n setStat(hs, highScore);\n }", "private void calcWinner(){\n //local class for finding ties\n class ScoreSorter implements Comparator<Player> {\n public int compare(Player p1, Player p2) {\n return p2.calcFinalScore() - p1.calcFinalScore();\n }\n }\n\n List<Player> winners = new ArrayList<Player>();\n int winningScore;\n\n // convert queue of players into List<Player> for determining winner(s)\n while (players.size() > 0) {\n winners.add(players.remove());\n } \n\n // scoreSorter's compare() should sort in descending order by calcFinalScore()\n // Arrays.sort(winnersPre, new scoreSorter()); // only works w/ normal arrays :(\n Collections.sort(winners, new ScoreSorter());\n\n // remove any players that don't have the winning score\n winningScore = winners.get(0).calcFinalScore();\n for (int i = winners.size()-1; i > 0; i--) { // remove non-ties starting from end, excluding 0\n if (winners.get(i).calcFinalScore() < winningScore) {\n winners.remove(i);\n }\n }\n\n // Announce winners\n boolean hideCalculatingWinnerPopUp = false;\n String winnersString = \"\";\n if (winners.size() > 1) {\n winnersString = \"There's a tie with \" + winners.get(0).calcFinalScore() + \" points. The following players tied: \";\n for (Player p : winners) {\n winnersString += p.getName() + \" \";\n }\n view.showPopUp(hideCalculatingWinnerPopUp, winnersString);\n } else {\n view.showPopUp(hideCalculatingWinnerPopUp, winners.get(0).getName() + \" wins with a score of \" + winners.get(0).calcFinalScore() + \" points! Clicking `ok` will end and close the game.\");\n }\n }", "@Override\n protected String checkIfGameOver() {\n if(pgs.getP0Score() >= 50){\n return playerNames[0] + \" \" + pgs.getP0Score();\n }else if(pgs.getP1score() >= 50){\n return playerNames[1] + \" \" + pgs.getP1score();\n }\n\n return null;\n }", "private void chooseBestPiece() {\n\n int maxKillCount = 0;\n int tempKillCount;\n int piecesWithEqualMaxCount = 0;\n\n int bestPieceX = 0;\n int bestPieceY = 0;\n\n for (int y = 0; y < boardSize; y++) {\n for (int x = 0; x < boardSize; x++) {\n //check every piece\n Field field = board[y][x];\n if (field.getPiece() != null && field.getPiece().getPieceColor() == round) {\n tempKillCount = countAvailableKills(x, y, 0, this.board);\n //count piece kill score\n if (tempKillCount > maxKillCount) {\n maxKillCount = tempKillCount;\n piecesWithEqualMaxCount = 1;\n bestPieceX = x;\n bestPieceY = y;\n } else if (tempKillCount == maxKillCount) {\n piecesWithEqualMaxCount += 1;\n }\n }\n }\n }\n\n if (piecesWithEqualMaxCount == 1 && maxKillCount != 0) {\n bestPieceToMove = board[bestPieceY][bestPieceX].getPiece();\n bestPieceFound = true;\n\n findOptimalMove(bestPieceX, bestPieceY);\n\n System.out.println(\"Best piece found, kill score = \" + maxKillCount);\n } else if (piecesWithEqualMaxCount > 1) {\n bestPieceToMove = null;\n bestPieceFound = false;\n\n if (maxKillCount == 0) {\n //if every piece has same kill score equal to 0 there is no kill available\n killAvailable = false;\n System.out.println(\"No piece can kill\");\n } else {\n killAvailable = true;\n System.out.println(\"Some pieces has same kill score = \" + maxKillCount + \", user can choose which to move\");\n }\n }\n }", "public boolean isGameOver(){\n if (gameDeck.remainingCards() < 10) {\n if (playerScore == oppoScore) {\n System.out.println(\"\\n---GAME OVER---\");\n System.out.println(\"Tie!!\");\n System.out.println(\"You: \" + playerScore);\n System.out.println(\"Opponent: \" + oppoScore);\n } else if (playerScore > oppoScore) {\n System.out.println(\"\\n---GAME OVER---\");\n System.out.println(\"You Win!\");\n System.out.println(\"You: \" + playerScore);\n System.out.println(\"Opponent: \" + oppoScore);\n } else {\n System.out.println(\"\\n---GAME OVER---\");\n System.out.println(\"Opponent Wins!\");\n System.out.println(\"You: \" + playerScore);\n System.out.println(\"Opponent: \" + oppoScore);\n }\n return true;\n } else if(playerScore == oppoScore && playerScore >= END_SCORE ) {\n System.out.println(\"\\n---GAME OVER---\");\n System.out.println(\"Tie!!\");\n System.out.println(\"You: \" + playerScore);\n System.out.println(\"Opponent: \" + oppoScore);\n return true;\n } else if (playerScore >= END_SCORE && playerScore > oppoScore) {\n System.out.println(\"\\n---GAME OVER---\");\n System.out.println(\"You Win!\");\n System.out.println(\"You: \" + playerScore);\n System.out.println(\"Opponent: \" + oppoScore);\n return true;\n } else if (oppoScore >= END_SCORE && oppoScore > playerScore) {\n System.out.println(\"\\n---GAME OVER---\");\n System.out.println(\"Opponent Wins!\");\n System.out.println(\"You: \" + playerScore);\n System.out.println(\"Opponent: \" + oppoScore);\n return true;\n } else {\n return false;\n }\n }", "public void compare(){\n\t\tboolean gameOver = false;\n\t\tfor (int j = 0; j < player.size(); j++){\n\t\t\t/**\n\t\t\t * gameover screen\n\t\t\t */\n\t\t\tif (player.get(j) != input.get(j)){\n\t\t\t\tif (score <= 3){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" + \"You got the rank \"\n\t\t\t\t\t\t+ \"of a Joker with a score of \" + score + '.');}\n\t\t\t\telse if (score > 3 && score <= 10){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a Knight with a score of \" + score + '.');}\n\t\t\t\telse if (score > 10 && score <=20){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a King with a score of \" + score + '.');}\n\t\t\t\telse if (score >20){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a Master with a score of \" + score + '.');}\n\t\t\t\tgameOver = true;\n\t\t\t\tif (score > highScore){\n\t\t\t\t\thighScore = score;\n\t\t\t\t\tscoreBoard.setHighScore(highScore);\n\t\t\t\t}\n\t\t\t\tplayer.clear();\n\t\t\t\tinput.clear();\n\t\t\t\tlist();\n\t\t\t\t++totalGames;\n\t\t\t\tfindGames();\n\t\t\t\tfindAvg();\n\t\t\t\tscore = 0;\n\t\t\t\tscoreBoard.setScore(score);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * starts new round after a successful round\n\t\t */\n\t\tif (player.size() == input.size() && !gameOver){\n\t\t\tplayer.clear();\n\t\t\tscore++;\n\t\t\tscoreBoard.setScore(score);\n\t\t\tstartGame();\n\t\t\t}\n\t}", "public void gameOver ()\n {\n Greenfoot.delay (50);\n if (gameOver)\n {\n fader = new Fader (); // create a new fader\n addObject (fader, 400, 300); // add the fader object to the world\n if (UserInfo.isStorageAvailable()) {\n HighScore highScore = new HighScore (score);\n addObject (highScore, 300, 170);\n }\n Greenfoot.stop();\n }\n }", "public void gameOver() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Game is over. Calculating points\");\r\n\t\tstatus = \"over\";\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\tupdateEvents(false);\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(\"Game Results\");\r\n\t\tMap<Integer, Integer> scores = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tscores.put(i,players.get(i).calculatePoints());\r\n\t\t\t// Utils.getName(players.get(i).getPlayerID(),guild)\r\n\t\t}\r\n\t\t\r\n\t\tList<Entry<Integer, Integer>> sortedList = sortScores(scores);\r\n\t\t\r\n\t\t// If tied, add highest artifact values\r\n\t\tif ((playerCount > 1) && (sortedList.get(0).getValue().equals(sortedList.get(1).getValue()))) {\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Scores were tied\");\r\n\t\t\tint highestScore = sortedList.get(0).getValue();\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : sortedList) {\r\n\t\t\t\t// Only add artifacts to highest scores\r\n\t\t\t\tif (entry.getValue().equals(highestScore)) {\r\n\t\t\t\t\tscores.put(entry.getKey(),entry.getValue()+players.get(entry.getKey()).getHighestArtifactValue());\r\n\t\t\t\t\tplayers.get(entry.getKey()).setAddedArtifactValue(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Sort with added artifact values\r\n\t\tsortedList = sortScores(scores);\r\n\t\t\r\n\t\t// Assigns 1st, 2nd, 3rd\r\n\t\tfor (int i = 0; i < sortedList.size(); i++) {\r\n\t\t\tMap.Entry<Integer, Integer> entry = sortedList.get(i);\r\n\t\t\t// If tie, include artifact\r\n\t\t\tString name = Utils.getName(players.get(entry.getKey()).getPlayerID(),guild);\r\n\t\t\tif (players.get(entry.getKey()).getAddedArtifactValue()) {\r\n\t\t\t\tint artifactValue = players.get(entry.getKey()).getHighestArtifactValue();\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+(entry.getValue()-artifactValue)+\" (\"+artifactValue+\")``\",true);\r\n\t\t\t} else {\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+entry.getValue()+\"``\",true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tembed.setFooter(\"Credit to Renegade Game Studios\", null);\r\n\t\tgameChannel.sendMessage(embed.build()).queueAfter(dragonAttackingDelay+3000,TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\tGlobalVars.remove(this);\r\n\t}", "public static void main(String[] args) {\n //Calculate the optimal number of guesses\n int OPTIMALGUESSCNT = getlog(UPPERBOUND,10);\n\n //Begin game\n System.out.println(\"This is the High Low Game. You WILL have fun.\");\n\n //Print Name\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter your name or be annihilated: \");\n\n String name = validateInputStr();\n if (name.isEmpty()) {\n System.out.println(\"You didn't enter a name. You must be Nobody. Glad I'm not a cyclops, haha jk, unless...\\nHello Player 1.\");\n }\n System.out.printf(\"Hello %s\\n\", name);\n\n boolean playAgain = false;\n int total_guesses = 0;\n short num_games = 0;\n do { //setup each game\n int game_guesses = 0;\n int secretNum = getSecretNum(Integer.parseInt(\"BEEF\",16));\n int guess = -1;\n int prev_guess = -1;\n while (guess != secretNum) { //A single game seshion\n Scanner scanGuess = new Scanner(System.in);\n System.out.println(\"Guess a number between 0 and 100: \");\n guess = validateInput();\n ++game_guesses;\n if (guess > UPPERBOUND || guess <= 0) {\n System.out.println(\"Your guess wasn't even in the range given!\");\n }\n if (guess > secretNum) {\n if (prev_guess != -1 && guess >= prev_guess && prev_guess >= secretNum) {\n System.out.println(\"You incorrectly guessed even higher this time! Lower your angle of attack!\");\n }\n System.out.println(\"You guessed too high.\");\n prev_guess = guess;\n }\n else if (guess < secretNum) {\n if (prev_guess != -1 && guess <= prev_guess && prev_guess <= secretNum) {\n System.out.println(\"You incorrectly guessed even lower this time! Aim high airman!\");\n }\n System.out.println(\"You guessed too low.\");\n prev_guess = guess;\n }\n else {\n //The game has effectively ended -> List Win Possibilities\n selectWinOption(game_guesses, OPTIMALGUESSCNT);\n //Check whether to play again\n boolean goodInput = false;\n while (!goodInput) {\n System.out.println(\"Would you like to play again? Enter yes (y) or no (n): \");\n Scanner clearBuff = new Scanner(System.in);\n String raw_playAgain = \"\";\n raw_playAgain = validateInputStr();\n //check input (I didn't feel like using Patterns\n if (raw_playAgain.equalsIgnoreCase(\"yes\") || raw_playAgain.equalsIgnoreCase(\"y\")) {\n playAgain = true;\n goodInput = true;\n }\n else if (raw_playAgain.equalsIgnoreCase(\"no\") || raw_playAgain.equalsIgnoreCase(\"n\")) {\n playAgain = false;\n goodInput = true;\n }\n else {\n System.out.println(\"Enter valid input! Ahhhh.\");\n }\n } //end check play again input\n }\n }\n System.out.println(\"You had \" + game_guesses + \" guesses during this game.\\n\\n\");\n total_guesses += game_guesses;\n ++num_games;\n }while(playAgain);\n\n printEndDialogue(total_guesses, num_games, OPTIMALGUESSCNT);\n }", "public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX1() + 50){\n score++;\n bl = false;\n }\n\n //ong nuoc 2\n if(birdS.getX() == waterPipeS.getX2() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX2() + 50){\n score++;\n bl = false;\n }\n\n // ong nuoc 3\n if(birdS.getX() == waterPipeS.getX3() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX3() + 50){\n score++;\n bl = false;\n }\n\n }", "@Override\r\n public boolean visit (Score score)\r\n {\r\n score.acceptChildren(this);\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"highestTop=\" + highestTop);\r\n }\r\n\r\n score.setHighestSystemTop(highestTop);\r\n\r\n return false;\r\n }", "public int whoWin(){\r\n int winner = -1;\r\n \r\n int highest = 0;\r\n \r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(getPlayerPoints(player) > highest){\r\n highest = getPlayerPoints(player);\r\n winner = player.getID();\r\n }\r\n \r\n }\r\n \r\n return winner;\r\n }", "public void collisionOrScore(){\n\t\t//Creates bound of all walls\n\t\tfor(int i = 0; i < walls.length; i++) {\n\t\t\tif (bird.detectCollision(walls[i]) || bird.getY() > 450 || bird.getY() <= 0) {\n\t\t\t\tbird.setX(-500);\n\t\t\t\tif (!gameOver) dieSound.playAudioFeedback();\n\t\t\t\tgameOver = true;\n\t\t\t\tbreak;\n\t\t\t} else if (bird.getX() == walls[i].getX()) {\n\t\t\t\t//if bird passes one wall then counts a point\n\t\t\t\tthis.points = incrementScore(this.points, 0.5);\n\t\t\t\tpointSound.playAudioFeedback();\n\t\t\t}\n\t\t}\n\t}", "public boolean loadHighscores() {\n this.fileName = \"HS\" + this.gameMode + this.difficultyLevel + \".txt\";\n File file = new File(context.getFilesDir(), fileName);\n Scanner input;\n try{\n if(!file.exists()) {\n return false;\n }\n input = new Scanner(file);\n String line;\n highScoreList.clear();\n while(input.hasNextLine()) {\n line = input.nextLine();\n String[] parts = line.split(\"\\\\~\\\\$\\\\~\");\n if(parts.length != 2) {\n //File is corrupt.\n System.out.println (\"File \" + this.fileName + \" is corrupt\");\n return false;\n }\n String name = parts[0];\n int score = Integer.parseInt(parts[1]);\n User user = new User(name, score);\n highScoreList.add(user);\n }\n input.close();\n }catch (IOException ex) {\n System.out.println(ex.toString());\n return false;\n }\n\n return true;\n }", "public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }", "public abstract Boolean higherScoreBetter();", "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }", "public void checkScore() {\n\t\tif (this.score != 0 && this.score % 5000 == 0\n\t\t\t\t&& this.life < this.MAX_LIFE) {\n\t\t\tthis.life++;\n\t\t}\n\t}", "public int compareTo(HighScore h) {\n\t\treturn h.score - this.score;\n\t}", "protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }", "public Player<T> findWinner(){\n\tPlayer<T> highPlayer = this.currentPlayer;\n\tPlayer<T> tempPlayer = this.currentPlayer;\n\tfor (int i = 0; i < getNumPlayers(); i++) {\n\t\tif (tempPlayer.getPoints() > highPlayer.getPoints()) {\n\t\t\thighPlayer = getCurrentPlayer();\n\t\t}\n\t\ttempPlayer = tempPlayer.getNext();\n\t}\n\treturn tempPlayer;\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 }", "public LinkedList<HighScore> getHighScores(){\r\n\t\tLinkedList<HighScore> list = new LinkedList<HighScore>();\r\n\t\ttry{\r\n\t\t\t//Sorting by Score column\r\n\t\t ResultSet rs = statement.executeQuery(\"select * from Highscores ORDER BY Score DESC\");\r\n\t\t while(rs.next()){\r\n\t\t String username = rs.getString(\"Nickname\"); \r\n\t\t int userScore = rs.getInt(\"Score\"); \r\n\t\t HighScore userHighScore = new HighScore(username,userScore);\r\n\t\t list.add(userHighScore);\r\n\t\t \r\n\t\t }\r\n\t\t }\r\n\t\t\tcatch (Exception e){\r\n\t\t\t e.printStackTrace();\r\n\t\t\t}\r\n\t\treturn list;\r\n\t}", "public void checkForHits ()\n\t\t{\n\t\t\tif (ball.getRectangle().x < 0) {\n\t\t\t\t//computerAI.getCharacter().gotHit(player.getCharacter().getDamage());\n\t\t\t\tplayer1.character.gotHit(player2.character.getDamage());\n\t\t\t\tball.reset();\n\t\t\t\tif (player1.character.getHitPoints() <= 0) { //hit points=0 attempt to end game\n\t\t\t\t\t//WinWindow.lose_window(0);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t} else if (ball.getRectangle().x > WIDTH - ball.getRectangle().width) {\n\t\t\t\tplayer2.character.gotHit(player1.character.getDamage());\n\t\t\t\tball.reset();\n\t\t\t\tif (player2.character.getHitPoints() <= 0) { //hit points=0 attempt to end game\n\t\t\t\t\t//dispose(); TODO - this might be necessary for resetting, but it's currently a breaking change\n\t\t\t\t\t//WinWindow.lose_window(1);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public String getHighscore() {\n String str = \"\";\n\t int max = 10;\n \n ArrayList<Score> scores;\n scores = getScores();\n \n int i = 0;\n int x = scores.size();\n if (x > max) {\n x = max;\n } \n while (i < x) {\n \t str += (i + 1) + \".\\t \" + scores.get(i).getNaam() + \"\\t\\t \" + scores.get(i).getScore() + \"\\n\";\n i++;\n }\n if(x == 0) str = \"No scores for \"+SlidePuzzleGUI.getRows()+\"x\"+SlidePuzzleGUI.getCols()+ \" puzzle!\";\n return str;\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\t\t\t\tranks[++endIndex] = scores[i];\n\t\t\t\tcurrentElement = scores[i];\n\t\t\t}\n\t\t}\n\n\t\tint aliceEndIndex = -1;\n\t\tfor (int i = 0; i < aliceRanks.length; i++) {\n\t\t\tint currScore = alice[i];\n\t\t\t\n\t\t\tint globalRankApprox = binarySearch(ranks, alice[i], 0, endIndex);\n\t\t\t\n\t\t\tif (currScore >= ranks[globalRankApprox]) {\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1;\n\t\t\t}else{\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1+1;\n\t\t\t}\n\t\t}\n\n\t\treturn aliceRanks;\n\t}", "public void addHighScore(HighScore h)\n\t{\n\t\tHighScore[] highScores=getHighScores();\n\t\thighScores[highScores.length-1]=h;\n\t\tfor (int i=highScores.length-2; i>=0; i--)\n\t\t{\n\t\t\tif (highScores[i+1].compareTo(highScores[i])>0)\n\t\t\t{\n\t\t\t\tHighScore temp=highScores[i];\n\t\t\t\thighScores[i]=highScores[i+1];\n\t\t\t\thighScores[i+1]=temp;\n\t\t\t}\n\t\t}\n\t\ttry \n\t\t{\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(highScores);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();} \n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "public long createHighScore(HighScore highScore) {\n ContentValues values = new ContentValues();\n values.put(COL_SCORE, highScore.getScore());\n values.put(COL_INITIALS, highScore.getInitials());\n\n\n //Inserting row\n return mDb.insert(TABLE_NAME, null, values);\n }", "public void \t\t\t\t\t\tsetHighscoreList(Map<String, Integer> temp) { this.highscore = temp; }", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }", "public void gameOver() {\n\t\tgameResult = new GameResult(writer);\n\n\t\tString winnersName = \"\";\n\t\tString resultList = \"\";\n\n\t\tGamePlayer[] tempList = new GamePlayer[playerList.size()];\n\t\tfor (int i = 0; i < tempList.length; i++) {\n\t\t\ttempList[i] = playerList.get(i);\n\t\t}\n\n\t\tArrays.sort(tempList); // Sort the players according to the scores\n\n\t\tint max = tempList[tempList.length - 1].getPlayerScore();\n\t\tint position = 0;\n\n\t\tfor (int i = tempList.length - 1; i >= 0; i--) {\n\t\t\tif (max == tempList[i].getPlayerScore()) {\n\t\t\t\twinnersName += tempList[i].getPlayerName() + \"\\t\";\n\t\t\t}\n\t\t\tresultList += \"No.\" + (++position) + \"\\t\" + tempList[i].getPlayerName() + \"\\t\"\n\t\t\t\t\t+ tempList[i].getPlayerScore() + \"\\n\";\n\t\t}\n\t\tgameResult.initialize(winnersName, resultList, roomNumber, gameRoom);\n\t\tframe.dispose();\n\t}", "int getHighScore() {\n return getStat(highScore);\n }", "public void checkWin() {\n if (rockList.isEmpty() && trackerRockList.isEmpty() && bigRockList.isEmpty() && bossRockList.isEmpty()) {\n if (ship.lives < 5) {\n ship.lives++;\n }\n Level++;\n LevelIntermission = true;\n LevelIntermissionCount = 0;\n }\n }", "public static boolean isHandTwoPair(Hand h, HandScore hs) {\n\r\n\t\tboolean isTwoPair = false;\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.SECONDCARD.getCardNo()).geteRank() && h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t\t\t.get(eCardPlace.FOURTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisTwoPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.TwoPair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\r\n\t\t} else if (h.getCardsInHand().get(eCardPlace.SECONDCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.THIRDCARD.getCardNo()).geteRank() && h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t\t\t.get(eCardPlace.FIFTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisTwoPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.TwoPair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\telse if (h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.SECONDCARD.getCardNo()).geteRank() && h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t\t\t.get(eCardPlace.FIFTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisTwoPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.TwoPair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\treturn isTwoPair;\r\n\t}", "public static boolean isHandPair(Hand h, HandScore hs) {\n\t\tboolean isPair = false;\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.SECONDCARD.getCardNo()).geteRank()) {\r\n\t\t\tisPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.Pair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FIRSTCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.SECONDCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.THIRDCARD.getCardNo()).geteRank()) {\r\n\t\t\tisPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.Pair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.SECONDCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.FOURTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.Pair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.FIFTHCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\tif (h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank() == h.getCardsInHand()\r\n\t\t\t\t.get(eCardPlace.FIFTHCARD.getCardNo()).geteRank()) {\r\n\t\t\tisPair = true;\r\n\t\t\ths.setHandStrength(eHandStrength.Pair.getHandStrength());\r\n\t\t\ths.setHiHand(h.getCardsInHand().get(eCardPlace.FOURTHCARD.getCardNo()).geteRank().getiRankNbr());\r\n\t\t\ths.setLoHand(0);\r\n\t\t\tArrayList<Card> kickers = new ArrayList<Card>();\r\n\t\t\tkickers.add(h.getCardsInHand().get(eCardPlace.THIRDCARD.getCardNo()));\r\n\t\t\ths.setKickers(kickers);\r\n\t\t}\r\n\t\t\r\n\t\treturn isPair;\r\n\t}", "@Override\n public void display() {\n Game game = PiggysRevenge.getCurrentGame();\n int bricks = 0;\n House house = game.getHouse();\n if (game.getHouse().isCompleted()) {\n try {\n bricks = GameControl.calcNumberOfBricks(house.getLength(), house.getWidth(), house.getHeight(), house.getStories());\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n } else {\n bricks = 0;\n }\n int turns = game.getTurns();\n boolean hasEaten = game.getPlayer().isHasEaten();\n boolean wolfKilled = game.isWolfKilled();\n int result = 0;\n try {\n result = GameControl.calcScore(bricks, turns, hasEaten, wolfKilled);\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n if (result>0) {\n this.console.println(\"+\" + (bricks*10) + \" Points for building the house.\");\n this.console.println(\"-\" + (turns*10) + \" Points for the number of turns taken (\" + turns + \" turns).\");\n } else {\n this.console.println(\"You get no points if you do not build a house,\"\n + \"\\neat the roast beef, or kill the wolf.\");\n }\n if (hasEaten) {\n this.console.println(\"+1000 Points for eating roast beef.\");\n }\n if (wolfKilled) {\n this.console.println(\"+2000 Points for killing the wolf.\");\n }\n this.console.println(\"\\nYOUR SCORE IS: \" + result);\n\n if (gameOver) {\n HighScore[] highScores;\n\n File varTmpDir = new File(\"highscores.txt\");\n\n if (varTmpDir.exists()) {\n try (FileInputStream fips = new FileInputStream(\"highscores.txt\");\n ObjectInputStream input = new ObjectInputStream(fips);) {\n \n\n highScores = (HighScore[]) input.readObject();\n highScores[10] = new HighScore(game.getPlayer().getName(), result, house);\n\n for (int n = 0; n < highScores.length; n++) {\n for (int m = 0; m < highScores.length - 1 - n; m++) {\n if (highScores[m].getScore() < highScores[m + 1].getScore()\n || \"---\".equals(highScores[m].getName())) {\n HighScore swapHighScore = highScores[m];\n highScores[m] = highScores[m + 1];\n highScores[m + 1] = swapHighScore;\n }\n }\n }\n\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n output.writeObject(highScores);\n this.console.println(\"Score saved successfully\");\n \n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n } else {\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n\n highScores = new HighScore[11];\n for (int i = 0; i < highScores.length; i++){\n highScores[i] = new HighScore(\"---\", 0, new House(5, 5, 6, 1));\n \n }\n\n highScores[0] = new HighScore(game.getPlayer().getName(), result, house);\n output.writeObject(highScores);\n this.console.println(\"New highscore file created. Score saved successfully\");\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n }\n }\n }", "public boolean highScore(String name) {\n return highScore(getScore(), name);\n }", "private void checkIfHungry(){\r\n\t\tif (myRC.getEnergonLevel() * 2.5 < myRC.getMaxEnergonLevel()) {\r\n\t\t\tmission = Mission.HUNGRY;\r\n\t\t}\r\n\t}", "public static void calculateScore(){\n boolean gameOver = false;\n int score = 3000;\n int levelCompleted = 8;\n int bonus = 200;\n\n System.out.println(\"Running method calculateScore: \");\n\n if(score < 4000){\n int finalScore = score + (levelCompleted*bonus);\n System.out.println(\"Your final score = \" + finalScore);\n }else{\n System.out.println(\"The game is still on\");\n }\n\n System.out.println(\"Exit method calculateScore--\\n\");\n }", "public boolean playCard(Cards card, Players player) {\n boolean higher = false;\n int compare = 0;\n if (playedCards.size() == 0 || this.playAgain(player)) { //to check if it is a new game or this is a new round\n if (card instanceof TrumpCards) { //to check if the first played card is a supertrump card\n setCategory(((TrumpCards) card).cardEffect());\n }\n higher = true;\n } else {\n if (card instanceof NormCards) { //to check if the played card is a normal card\n if (getLastCard() instanceof NormCards) { //to check whether the last played card is a normal card or a supertrump card\n if (category.equals(\"H\")) {\n Float now = new Float(((NormCards) card).getHardness());\n Float last = new Float(((NormCards) getLastCard()).getHardness());\n compare = now.compareTo(last);\n } else if (category.equals(\"S\")) {\n Float now = new Float(((NormCards) card).getSpecGravity());\n Float last = new Float(((NormCards) getLastCard()).getSpecGravity());\n compare = now.compareTo(last);\n } else if (category.equals(\"C\")) {\n Float now = new Float(((NormCards) card).getCleavageValue());\n Float last = new Float(((NormCards) getLastCard()).getCleavageValue());\n compare = now.compareTo(last);\n } else if (category.equals(\"CA\")) {\n Float now = new Float(((NormCards) card).getCrustalAbunVal());\n Float last = new Float(((NormCards) getLastCard()).getCrustalAbunVal());\n compare = now.compareTo(last);\n } else if (category.equals(\"EV\")) {\n Float now = new Float(((NormCards) card).getEcoValueValue());\n Float last = new Float(((NormCards) getLastCard()).getEcoValueValue());\n compare = now.compareTo(last);\n\n }\n if (compare > 0) {\n higher = true;\n } else {\n System.out.println(\"The selected card does not has higher value!\");\n }\n } else { //or else, the last played card is a supertrump card\n higher = true;\n }\n } else { //or else, the played is a supertrump card\n setCategory(((TrumpCards) card).cardEffect());\n higher = true;\n }\n }\n return higher;\n }", "public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }", "private void loadHighScore() {\n this.myHighScoreInt = 0;\n \n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) { \n FileReader in = null;\n BufferedReader br = null;\n try {\n in = new FileReader(higheScoreFilePath.toString());\n br = new BufferedReader(in);\n String scoreAsString = br.readLine();\n if (scoreAsString != null) {\n scoreAsString = scoreAsString.trim();\n this.myHighScoreInt = Integer.parseInt(scoreAsString);\n }\n } catch (final FileNotFoundException e) {\n emptyFunc();\n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n if (in != null) {\n in.close();\n }\n if (br != null) {\n br.close();\n }\n } catch (final IOException e) { \n emptyFunc();\n } \n } else {\n try {\n f.createNewFile();\n } catch (final IOException e) {\n return;\n }\n }\n }", "private int minMaxHelper(int alpha, int beta, int currDepth,\n int cPlayerID, Moves move,\n Point playerNewPos,\n Point player1pos,\n Point player2pos,\n int scoreP1, int scoreP2) {\n Point oppPlayer = player1pos;\n if (cPlayerID == 1) {\n oppPlayer = player2pos;\n }\n\n if (gameState[playerNewPos.x][playerNewPos.y] == States.EMPTY) {\n if (didCloseOffNewSpace(playerNewPos, move)) {\n // calculate new opponent score (max of all possible opponent scores)\n int opponentNewScore = 0;\n int playerNewScore = findNumOpenSpots(playerNewPos)\n Point[] adjPoints = getAdjacentPoints(oppPlayer);\n for (int i = 0; i < adjPoints.length; i++) {\n int tempAdjScore = findNumOpenSpots(adjPoints[i]);\n opponentNewScore = opponentNewScore > tempAdjScore ? opponentNewScore : tempAdjScore;\n }\n\n // set opponents new score\n if (cPlayerID == 1) {\n scoreP1 = playerNewScore;\n scoreP2 = opponentNewScore;\n } else {\n scoreP1 = opponentNewScore;\n scoreP2 = playerNewScore;\n }\n }\n } else {\n // spot is a player\n if (playerNewPos.x == oppPlayer.x && playerNewPos.y == oppPlayer.y) {\n return tyingScore;\n }\n // spot is a losing point\n return losingScore;\n }\n\n Point newPlayer1pos = player1pos;\n Point newPlayer2pos = player2pos;\n int nextPlayerID = 1;\n // set pos of curr player and swap player\n if (cPlayerID == 1) {\n newPlayer1pos = playerNewPos;\n nextPlayerID = 2;\n } else {\n newPlayer2pos = playerNewPos;\n }\n\n if (cPlayerID == 1) {\n gameState[playerNewPos.x][playerNewPos.y] = States.PLAYER1;\n } else {\n gameState[playerNewPos.x][playerNewPos.y] = States.PLAYER2;\n }\n\n int nextScore = minMax(alpha, beta, currDepth-1, nextPlayerID, newPlayer1pos, newPlayer2pos, scoreP1, scoreP2);\n\n return nextScore;\n }", "public int HighHit(int start)\r\n {\r\n damage = ((int)(Math.random() * 100) % 50 + 80);\r\n int hp = start - damage;\r\n \r\n //modified to turn hp to 0 once it drops below or equals 0.\r\n if(hp <= 0)\r\n hp = 0;\r\n return hp;\r\n }" ]
[ "0.70604545", "0.7050491", "0.70364857", "0.6970628", "0.6731394", "0.6692065", "0.65714836", "0.6543611", "0.6485534", "0.64469707", "0.6422285", "0.6378564", "0.63680065", "0.63451564", "0.6317884", "0.62276644", "0.61876035", "0.6167224", "0.61506855", "0.60905814", "0.6063241", "0.5966819", "0.5886273", "0.5886273", "0.5886273", "0.5886273", "0.5886273", "0.5886273", "0.587128", "0.5860179", "0.58497214", "0.58449453", "0.5838803", "0.5813341", "0.5789298", "0.5783963", "0.57631874", "0.57600594", "0.5717218", "0.5702715", "0.5692001", "0.56898916", "0.5684234", "0.5680721", "0.56798464", "0.5677229", "0.56626916", "0.56549215", "0.56482327", "0.5644881", "0.5628959", "0.5627782", "0.56260276", "0.5621047", "0.5615502", "0.5605321", "0.55975556", "0.5587167", "0.5574736", "0.55601054", "0.5547836", "0.5547822", "0.554706", "0.55406505", "0.5537158", "0.5520837", "0.5520158", "0.5513171", "0.55058813", "0.5487136", "0.5484216", "0.5479519", "0.5478956", "0.5470937", "0.5469028", "0.54616207", "0.5459598", "0.5455423", "0.544292", "0.54364884", "0.54323214", "0.5431272", "0.5429803", "0.5425301", "0.54153097", "0.5413035", "0.54066813", "0.54027003", "0.5402337", "0.53998435", "0.53994685", "0.5396252", "0.53878886", "0.53876317", "0.5380744", "0.53797096", "0.53777826", "0.5373587", "0.5372475", "0.53713447" ]
0.7240222
0
The drawOn function sets the graphics to be white if the snake is not frozen, and if they are it draws the snake as cyan instead to represent that. It then draws all of the mushrooms in its list.
public void drawOn(Graphics g){ if (ignoreStrokes > 0){ g.setColor(Color.cyan); //to show the player that they are frozen } else { g.setColor(Color.white); } mySnake.drawOn(g); for (Mushroom m : shrooms){ m.drawOn(g); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawGame() {\r\n //For each each cell of the grid if there is a snake draw green,\r\n //an apple draw red or nothing draw white.\r\n for (int x = 0; x < gridWidth; x++) {\r\n for (int y = 0; y < gridHeight; y++) {\r\n if (isSnakeAt(new Coordinates(x, y))) {\r\n drawCell(x, y, Color.GREEN);\r\n } else if (apple.equals(new Coordinates(x, y))) {\r\n drawCell(x, y, Color.RED);\r\n } else {\r\n drawCell(x, y, Color.WHITE);\r\n }\r\n }\r\n }\r\n //Draw a grid around the game grid\r\n gc.strokeRect(0, 0, gridWidth * cellSize, gridHeight * cellSize); \r\n }", "public void paint(Graphics gfx) {\r\n\t\tif (x== -5) {\r\n\t\t\tx = this.getWidth()/2;\r\n\t\t}\r\n\t\tif (y == -5) {\r\n\t\t\ty = this.getHeight()/2;\r\n\t\t}\r\n\t\tsuper.paint(gfx);\r\n\t\tSnake head = game.getSnake();\r\n\r\n\t\tgfx.setColor(Color.green);\r\n\t\tgfx.drawRect(head.x, head.y, head.width, head.height);\r\n\t\tSegment current = head.tailFirst;\r\n\t\twhile(current!=null) {\r\n\t\t\tgfx.drawRect(current.x, current.y, current.width, current.height);\r\n\t\t\tcurrent=current.next;\r\n\t\t}\r\n\t\tfor(Mushroom i : game.getMushrooms()) {\r\n\t\t\tgfx.drawImage(i.mushroomImage.getImage(), i.x, i.y, i.width, i.height , null);\r\n\r\n\t\t}\r\n\t}", "public void draw() {\n\t\tbackground(51);\n\t\tfill(35);\n\t\trect(0, 0, 599, 40);\n\t\tif (this.buttonOver()) {\n\t\t\tfill(100);\n\t\t\trect(513, 7, 73, 29, 7);\n\t\t}\n\t\telse {\n\t\t\tfill(60);\n\t\t\trect(513, 7, 73, 29, 7);\n\t\t}\n\t\t\n\t\t//create the appropriate writing/texts\n\t\tfill(255);\n\t\ttextSize(20);\n\t\ttext(\"SCORE:\", 20, 30);\n\t\ttext(mySnake.score, 94, 30);\n\t\tif (mySnake.isPaused == true) {\n\t\t\ttext(\"PLAY\", 520, 30);\n\t\t}\n\t\telse {\n\t\t\ttext(\"PAUSE\", 520, 30);\n\t\t}\n\t\t\n\t\tmySnake.checkIfDead();\n\t\t\n\t\tif (mySnake.alive) { //if alive \n\t\t\t\n\t\t\tif (mySnake.isPaused == false) {\n\t\t\t\tmySnake.update();\n\t\t\t}\n\t\t\t\n\t\t\tmySnake.printSnake();\n\t\t\tmySnake.printFood();\n\t\t\t\t\n\t\t\tif (mySnake.eatFood()) {\n\t\t\t\tmySnake.createFood();\n\t\t\t}\n\t\t}\n\t\telse { //it must be dead\n\t\t\t//print the food and only the tail of the snake (as head went off board)\n\t\t\tfor (int i=0; i<mySnake.tail.length; i++) { //will only print the tail if there is any tail to begin with\n\t\t\t\trect(mySnake.tail[i][0], mySnake.tail[i][1], boxSize, boxSize);\n\t\t\t}\n\t\t\tmySnake.printFood();\n\t\n\t\t\t//write Game Over\n\t\t\tfill(40);\n\t\t\trect(50, 190, 510, 100, 7);\n\t\t\t\n\t\t\tfill(255);\n\t\t\ttextSize(80);\n\t\t\ttext(\"GAME OVER!\", 60, 270);\n\t\t}\n\t}", "private void redraw() {\r\n for (int row = 0; row < maxRows; row++) {\r\n for (int column = 0; column < maxColumns; column++) {\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n }\r\n }\r\n grid[snake[HEAD].row][snake[HEAD].column].setBackground(\r\n SNAKE_HEAD_COLOR);\r\n for (int i = 1; i < length; i++) {\r\n grid[snake[i].row][snake[i].column].setBackground(SNAKE_BODY_COLOR);\r\n }\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }", "public void paint(Graphics2D snakeGraphic) {\n\t\tfor ( int i = 0; i < barriers.size(); i++ ) {\n\t\t\t\n\t\t\tint x = barriers.get(i).getX();\n\t\t\tint y = barriers.get(i).getY();\n\t\t\t\n\t\t\tif ( board.getLevel() == 5 ) {\n\t\t\t\tx += movement[movementIndex].getX() * UNIT;\n\t\t\t\ty += movement[movementIndex].getY() * UNIT;\n\t\t\t}\n\t\t\t\n\t\t\tsnakeGraphic.fillRect( x, y, UNIT, UNIT );\n\t\t}\n\t}", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t Graphics2D graphics = (Graphics2D)g;\r\n\t \r\n\t for (int i = 0; i < tom.snake.size() -1; i++) {\r\n\t \tDimension xy = new Dimension(tom.snake.get(i));\r\n\t \tgraphics.setColor(BLACK);\r\n\t \tgraphics.fillRect(xy.width*SNAKE_SIZE, xy.height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE);\r\n\t \t\r\n\t }\r\n\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE);\r\n\t \r\n\t switch (tom.getDir()){\r\n\t\tcase 0: //up\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE, SNAKE_SIZE/2+2);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 1: //down\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE/2);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 2: //left\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE/2, SNAKE_SIZE);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 3: //right\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE/2, SNAKE_SIZE);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\t } \r\n\t \r\n\t graphics.setColor(RED);\r\n\t graphics.fillOval(apple.x*SNAKE_SIZE-1, apple.y*SNAKE_SIZE-1, SNAKE_SIZE+2, SNAKE_SIZE+2);\r\n\t graphics.setColor(BLACK);\r\n\t graphics.setStroke(new BasicStroke(2));\r\n\t graphics.drawLine(apple.x*SNAKE_SIZE+SNAKE_SIZE/2, apple.y*SNAKE_SIZE+SNAKE_SIZE/4, apple.x*SNAKE_SIZE+SNAKE_SIZE/3, apple.y*SNAKE_SIZE-3);\r\n\t \r\n\t if (!game) {\r\n\t \tgraphics.setColor(DIMSCREEN);\r\n\t \tgraphics.fillRect(0, 0, 607, 607);\r\n\t \tgraphics.setColor(RED);\r\n\t \tgraphics.setFont(new Font(\"TimesRoman\", Font.BOLD, 50));\r\n\t \tif(Game.status()) { //Igra je bila zakljucena\r\n\t \t\tgraphics.drawString(\"GAME OVER\", 150, 260);\r\n\t \t\tgraphics.drawString(\"CTRL-P to restart\", 110, 320);\r\n\t \t}\r\n\t \telse if(Game.firstTime) { //Zacetni prikaz drugacen kot za navadno pavzo\r\n\t\t\t\tgraphics.drawString(\"Arrow keys to move\", 80, 260);\r\n\t\t \tgraphics.drawString(\"CTRL-P to start/pause\", 55, 320);\r\n\t \t}\r\n\t \telse \r\n\t \t\tgraphics.drawString(\"PAUSED\", 200, 300);\r\n\t }\t \r\n\t}", "public void paint(Graphics g){\n if (moves == 0){\n xLength[2] = 50;\n xLength[1] = 75;\n xLength[0] = 100;\n\n yLength[2] = 100;\n yLength[1] = 100;\n yLength[0] = 100;\n }\n\n //draw Title box\n g.setColor(Color.WHITE);\n g.drawRect(24, 10,851,55);\n\n g.setColor(new Color(34,155,3));\n g.fillRect(25,11,850,54);\n\n //draw Title\n g.setColor(Color.WHITE);\n String msg = \"Snake\";\n g.setFont(new Font(\"arial\", Font.BOLD, 30));\n g.drawString(msg, 420, 50);\n\n //draw Board\n g.setColor(Color.WHITE);\n g.drawRect(24,74,851,577);\n\n g.setColor(Color.BLACK);\n g.fillRect(25,75,850,575);\n\n\n //set Images\n rightHead = new ImageIcon(getClass().getResource(\"resources/headRight.png\"));\n rightHead.paintIcon(this, g, xLength[0], yLength[0]);\n\n for(int i = 0; i < snakeLength; i++){\n if(i==0 && right){\n rightHead = new ImageIcon(getClass().getResource(\"resources/headRight.png\"));\n rightHead.paintIcon(this, g, xLength[i], yLength[i]);\n }\n if(i==0 && left){\n leftHead = new ImageIcon(getClass().getResource(\"resources/headLeft.png\"));\n leftHead.paintIcon(this, g, xLength[i], yLength[i]);\n }\n if(i==0 && down){\n downHead = new ImageIcon(getClass().getResource(\"resources/headDown.png\"));\n downHead.paintIcon(this, g, xLength[i], yLength[i]);\n }\n if(i==0 && up){\n upHead = new ImageIcon(getClass().getResource(\"resources/headUp.png\"));\n upHead.paintIcon(this, g, xLength[i], yLength[i]);\n }\n\n if(i!=0){\n tail = new ImageIcon(getClass().getResource(\"resources/tail.png\"));\n tail.paintIcon(this,g,xLength[i],yLength[i]);\n }\n }\n\n apple = new ImageIcon(getClass().getResource(\"resources/apple.png\"));\n apple.paintIcon(this,g,appleX[xApplePosition],appleY[yApplePosition]);\n\n if(gameOver){\n gameOver(g);\n }\n\n g.dispose();\n\n\n }", "@Override\r\n \tpublic void paintComponent(Graphics g) {\r\n \t\tsuper.paintComponent(g);\r\n \t\tdrawSnake(g);\r\n \t}", "public void draw()\n\t{\n\t\tdrawWalls();\n\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.draw();\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.draw();\n\t\t}\n\n\t\tdp.repaintAndSleep(rate);\n\t}", "private void drawSnake(Graphics g) {\r\n \t\tif(inGame) {\r\n \t\t\t//draw image with coordinates from random apple\r\n \t\t\tg.drawImage(apple, apple_x, apple_y, this);\r\n \t\t\t//for loop\r\n \t\t\tfor (int i = 0; i < dots; i++) {\r\n \t if (i == 0) {\r\n \t \t g.drawImage(head, x[i], y[i], this); \r\n \t }else {\r\n \t g.drawImage(dot, x[i], y[i], this);\r\n \t }\r\n \t\t\t }\r\n \t\t\tToolkit.getDefaultToolkit().sync();\r\n \t\t}else {\r\n \t\t\t//call game over \r\n \t\t\tgameOver(g);\r\n \t\t}\r\n \t}", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n int width = getWidth();\n int height = getHeight();\n float pieceWidth = width/5.0f-5;\n float pieceHeight = height/3.0f-20;\n Log.d(\"hello\", \"DRAWINGGGGGGG\");\n\n //this.paint.setColor(Color.WHITE);\n this.paint.setStyle(Paint.Style.FILL);\n //canvas.drawPaint(this.paint);\n canvas.drawColor(0x00000000);\n\n this.paint.setColor(Color.WHITE);\n //canvas.drawRect(0, 0, 100, 100, this.paint);\n\n\n for(int i = 0; i < 5; i++)\n for(int j = 0; j<3; j++){\n Cell cell = grid.getCellAt(i, j);\n if(cell!=null){\n //Before you can call any drawing methods, though, it's necessary to create a Paint object.\n\n this.paint.setColor(cell.getColor());\n canvas.drawRect(i*pieceWidth, j*pieceHeight, i*pieceWidth + pieceWidth, j*pieceHeight + pieceHeight, this.paint);\n\n this.paint.setColor(Color.WHITE);\n this.paint.setStrokeWidth(4);\n //Lines on window\n canvas.drawLine(i*pieceWidth, j*pieceHeight, i*pieceWidth, j*pieceHeight + pieceHeight, this.paint);\n canvas.drawLine(i*pieceWidth, j*pieceHeight, i*pieceWidth + pieceWidth, j*pieceHeight, this.paint);\n canvas.drawLine(i*pieceWidth + pieceWidth, j*pieceHeight, i*pieceWidth + pieceWidth, j*pieceHeight + pieceHeight, this.paint);\n canvas.drawLine(i*pieceWidth, j*pieceHeight + pieceHeight, i*pieceWidth + pieceWidth, j*pieceHeight + pieceHeight, this.paint);\n\n }\n }\n\n\n\n }", "public void drawSnake(Graphics g)\n {\n for(int i=0 ; i<list.size()-1 ; i++)\n {\n drawSegment(g,list.get(i).getA(),list.get(i).getB()); \n }\n drawHead(g,head.getA(),head.getB());\n }", "public void drawSegment(Graphics g, int a, int b)\n { \n //Draws the outline of the snake based on the selected color\n \n if(lastpowerUp.equals(\"BLACK\") && powerupTimer > 0)\n {\n Color transGray = new Color(55,55,55);\n g.setColor(transGray);\n //g.setColor(Color.BLACK);\n }\n else if(!lastpowerUp.equals(\"RAINBOW\"))\n {\n if(difficult.equals(\"GHOST\"))\n g.setColor(new Color(55,55,55));\n else if(color.equals(\"WHITE\"))\n g.setColor(Color.WHITE); \n else if(color.equals(\"GREEN\"))\n g.setColor(Color.GREEN); //Green outline\n else if(color.equals(\"BLUE\"))\n g.setColor(Color.BLUE); \n else if(color.equals(\"CYAN\"))\n g.setColor(Color.CYAN); \n else if(color.equals(\"GRAY\"))\n g.setColor(Color.GRAY);\n else if(color.equals(\"YELLOW\"))\n g.setColor(Color.YELLOW); \n else if(color.equals(\"MAGENTA\"))\n g.setColor(Color.MAGENTA); \n else if(color.equals(\"ORANGE\"))\n g.setColor(Color.ORANGE); \n else if(color.equals(\"PINK\"))\n g.setColor(Color.PINK); \n else if(color.equals(\"RED\"))\n g.setColor(Color.RED); \n }\n else if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n {\n int x = (int)(Math.random()*250);\n int y = (int)(Math.random()*250);\n int z = (int)(Math.random()*250);\n \n Color randomColor = new Color(x,y,z);\n g.setColor(randomColor);\n }\n \n g.drawLine(a,b,a,b+15);\n g.drawLine(a,b,a+15,b);\n g.drawLine(a+15,b,a+15,b+15);\n g.drawLine(a,b+15,a+15,b+15); \n }", "public void drawGrid(Graphics g)\n {\n //g.setColor(Color.GREEN);\n \n \n if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n {\n int x = (int)(Math.random()*250);\n int y = (int)(Math.random()*250);\n int z = (int)(Math.random()*250);\n \n Color randomColor = new Color(x,y,z);\n g.setColor(randomColor); \n \n g.drawLine(150,150,1260,150);\n g.drawLine(150,150,150,630);\n g.drawLine(150,630,1260,630);\n g.drawLine(1260,150,1260,630);\n }\n else\n { \n if(lastpowerUp.equals(\"BLUE\") && powerupTimer > 0)\n {\n Color transGray = new Color(55,55,55);\n g.setColor(transGray); \n } \n else if(difficult.equals(\"GHOST\"))\n g.setColor(Color.WHITE);\n else if(color.equals(\"GREEN\"))\n g.setColor(Color.GREEN); //Green outline\n else if(color.equals(\"BLUE\"))\n g.setColor(Color.BLUE); \n else if(color.equals(\"CYAN\"))\n g.setColor(Color.CYAN); \n else if(color.equals(\"WHITE\"))\n g.setColor(Color.WHITE); \n else if(color.equals(\"GRAY\"))\n g.setColor(Color.GRAY);\n else if(color.equals(\"YELLOW\"))\n g.setColor(Color.YELLOW); \n else if(color.equals(\"MAGENTA\"))\n g.setColor(Color.MAGENTA); \n else if(color.equals(\"ORANGE\"))\n g.setColor(Color.ORANGE); \n else if(color.equals(\"PINK\"))\n g.setColor(Color.PINK); \n else if(color.equals(\"RED\"))\n g.setColor(Color.RED); \n \n \n g.drawLine(150,150,1260,150);\n g.drawLine(150,150,150,630);\n g.drawLine(150,630,1260,630);\n g.drawLine(1260,150,1260,630);\n }\n }", "private void drawWhite() throws IOException, ReversiException {\n playSound(PLAY_SOUND);\n // get the list of stones need to be changed\n String list = fromServer.readUTF();\n // draw white the list of stones\n boardComponent.drawWhite(list);\n setScoreText();\n\n // followed by the TURN command\n responseToServer();\n }", "public void draw(){\r\n\r\n\t\t\t//frame of house\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(250,0);\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.move(0,300);\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.move(-250,0);\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\r\n\t\t\t//door\r\n\t\t\tpen.setColor(Color.blue);\r\n\t\t\tpen.setWidth(10);\r\n\t\t\tpen.move(50,0);\r\n\t\t\tpen.move(50,100);\r\n\t\t\tpen.move(-50,100);\r\n\t\t\tpen.move(-50,0);\r\n\t\t\tpen.move(0,0);\r\n\r\n\t\t\t//windows\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(-150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\r\n\t\t\t//extra\r\n\t\t\tpen.move(-45,120);\r\n\t\t\tpen.down();\r\n\t\t\tpen.setColor(Color.black);\r\n\t\t\tpen.drawString(\"This is a house\");\r\n\t}", "public void drawHead(Graphics g, int a, int b)\n {\n //draws the outline of the head of the snake based on the selected color\n \n if(lastpowerUp.equals(\"BLACK\") && powerupTimer > 0)\n {\n Color transGray = new Color(55,55,55);\n g.setColor(transGray);\n }\n else if(!lastpowerUp.equals(\"RAINBOW\"))\n { \n if(difficult.equals(\"GHOST\"))\n g.setColor(Color.BLACK);\n else if(color.equals(\"WHITE\"))\n g.setColor(Color.WHITE); \n else if(color.equals(\"GREEN\"))\n g.setColor(Color.GREEN); //Green outline\n else if(color.equals(\"BLUE\"))\n g.setColor(Color.BLUE); \n else if(color.equals(\"CYAN\"))\n g.setColor(Color.CYAN); \n else if(color.equals(\"GRAY\"))\n g.setColor(Color.GRAY);\n else if(color.equals(\"YELLOW\"))\n g.setColor(Color.YELLOW); \n else if(color.equals(\"MAGENTA\"))\n g.setColor(Color.MAGENTA); \n else if(color.equals(\"ORANGE\"))\n g.setColor(Color.ORANGE); \n else if(color.equals(\"PINK\"))\n g.setColor(Color.PINK); \n else if(color.equals(\"RED\"))\n g.setColor(Color.RED); \n }\n else if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n {\n int x = (int)(Math.random()*250);\n int y = (int)(Math.random()*250);\n int z = (int)(Math.random()*250);\n \n Color randomColor = new Color(x,y,z);\n g.setColor(randomColor);\n }\n \n \n if((lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0 && !modeT) || (modeT && lastpowerUp.equals(\"TROLL\") && powerupTimer >0))\n {\n if(up || down)\n {\n g.drawLine(a-37,b,a+52,b);\n g.drawLine(a-37,b,a-37,b+15);\n g.drawLine(a+52,b,a+52,b+15);\n g.drawLine(a-37,b+15,a+52,b+15);\n }\n else if(left || right)\n {\n g.drawLine(a,b-37,a+15,b-37);\n g.drawLine(a,b-37,a,b+52);\n g.drawLine(a+15,b-37,a+15,b+52);\n g.drawLine(a,b+52,a+15,b+52);\n }\n }\n else\n {\n g.drawLine(a,b,a,b+15);\n g.drawLine(a,b,a+15,b);\n g.drawLine(a+15,b,a+15,b+15);\n g.drawLine(a,b+15,a+15,b+15);\n } \n \n }", "public void draw() {\r\n\t\t// Draw the triangle making up the mountain\r\n\t\tTriangle mountain = new Triangle(this.x, 100,\r\n\t\t\t\tthis.x + mountainSize / 2, 100, this.x + mountainSize / 4,\r\n\t\t\t\t100 - this.y / 4, Color.DARK_GRAY, true);\r\n\t\t// Draw the triangle making up the snow cap\r\n\t\tthis.snow = new Triangle(side1, bottom - this.y / 8, side2, bottom\r\n\t\t\t\t- this.y / 8, this.x + mountainSize / 4, 100 - this.y / 4,\r\n\t\t\t\tColor.WHITE, true);\r\n\t\tthis.window.add(mountain);\r\n\t\tthis.window.add(snow);\r\n\t}", "protected void onDraw(Canvas canvas) { \t\r\n\r\n \t// resets the position of the unicorn if one is killed or reaches the right edge\r\n \tif (newUnicorn || unicorn.getX() >= this.getWidth()) {\r\n \t\tunicorn.setX(-150);\r\n \t\tunicorn.setY((int)(Math.random() * 200 + 200));\r\n \t\tyChange = (int)(10 - Math.random() * 20);\r\n \t\tnewUnicorn = false;\r\n \t\tkilled = false;\r\n \t}\r\n\r\n \t// draws the unicorn at the specified point\r\n \tcanvas.drawBitmap(unicorn.getImage(killed), unicorn.getX(), unicorn.getY(), null);\r\n \t\r\n\t\t// show the exploding image when the unicorn is killed\r\n \tif (killed) {\r\n \t\tnewUnicorn = true;\r\n \t\ttry { Thread.sleep(10); } catch (Exception e) { }\r\n \t\tinvalidate();\r\n \t\treturn;\r\n \t}\r\n \t\r\n\t\t// draws the stroke\r\n \tif (stroke.countPoints() > 1) {\r\n \t\tfor (int i = 0; i < stroke.countPoints() - 1; i++) {\r\n \t\t\tint startX = stroke.getX(i);\r\n \t\t\tint stopX = stroke.getX(i + 1);\r\n \t\t\tint startY = stroke.getY(i);\r\n \t\t\tint stopY = stroke.getY(i + 1);\r\n \t\t\tPaint paint = new Paint();\r\n \t\t\tpaint.setColor(Stroke.getColor());\r\n \t\t\tpaint.setStrokeWidth(Stroke.getWidth());\r\n \t\t\tcanvas.drawLine(startX, startY, stopX, stopY, paint);\r\n \t\t}\r\n \t}\r\n \t\r\n }", "public void draw() {\n\t\tif (doge.getLife()>0) {\r\n\t\t\tthis.background(WHITE);\r\n\t\t\tif (keyPressed) {\r\n\t\t\t\tif (key == 'a') {\r\n\t\t\t\t\tdoge.goLeft();\r\n\t\t\t\t\tif (doge.getX()<=0) {\r\n\t\t\t\t\t\tdoge.setX(PlayGame.WIDTH);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 's') {\r\n\t\t\t\t\tdoge.goDown();\r\n\t\t\t\t\tif (doge.getY()>=PlayGame.HEIGHT) {\r\n\t\t\t\t\t\tdoge.setY(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 'd') {\r\n\t\t\t\t\tdoge.goRight();\r\n\t\t\t\t\tif (doge.getX()>=PlayGame.WIDTH) {\r\n\t\t\t\t\t\tdoge.setX(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 'w') {\r\n\t\t\t\t\tdoge.goUp();\r\n\t\t\t\t\tif (doge.getY()<=0) {\r\n\t\t\t\t\t\tdoge.setY(PlayGame.HEIGHT);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tdoge.draw();\r\n\t\t\t\r\n\t\t\tif (!bones.get(0).getIsEaten()) {\r\n\t\t\t\t//Move and draw bone, if it has not been eaten.\r\n\t\t\t\tbones.get(0).move();\r\n\t\t\t\tbones.get(0).draw();\r\n\t\t\t\t//if it get eaten, score + 1, get a new bone, and get one more obstacle\r\n\t\t\t\tif (Math.pow((bones.get(0).getY() - doge.getY()), 2) + Math.pow(bones.get(0).getX() - doge.getX(),2) <= 2*(Math.pow(Bone.getHeight()/2+doge.getHeight()/2, 2)/10)) {\r\n\t\t\t\t\tbones.get(0).eat();\r\n\t\t\t\t\tthis.setScore(this.score+1);\r\n\t\t\t\t\tBone theBone=new Bone(this);\r\n\t\t\t\t\tthis.bones.add(theBone);\r\n\t\t\t\t\tSmileObstacle newObstacle = new SmileObstacle(this);\r\n\t\t\t\t\tthis.obstacles.add(newObstacle);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\tfor (int i = 0; i < this.obstacles.size(); i++) {\r\n\t\t\t\t//Keep draw and move obstacle\r\n\t\t\t\tSmileObstacle obstacle = this.obstacles.get(i);\r\n\t\t\t\tobstacle.move();\r\n\t\t\t\tobstacle.draw();\r\n\t\t\t\t//If clashed, eliminate the obstacle and make the background black for a moment.\r\n\t\t\t\tif (Math.pow((obstacle.getY() - doge.getY()), 2) + Math.pow(obstacle.getX() - doge.getX(),2) <= Math.pow(SmileObstacle.getHeight()/2+doge.getHeight()/2, 2)/10) {\r\n\t\t\t\t\tthis.background(BLACK);\r\n\t\t\t\t\tobstacle.eliminate();\r\n\t\t\t\t\tthis.hearts.get(this.hearts.size()-1).loseHeart();\r\n\t\t\t\t\tdoge.setLife(doge.getLife()-1);\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t\t//draw heart for life numbers.\r\n\t\t\tfor (int j = 0; j < this.hearts.size(); j++) {\r\n\t\t\t\tHeart heart = this.hearts.get(j);\r\n\t\t\t\theart.draw();\r\n\t\t\t}\r\n\t\t\t//Draw smallbone for scores. \r\n\t\t\tfor (int h = 0; h<this.score; h++) {\r\n\t\t\t\tSmallBone smallBone=new SmallBone(this, h*SmallBone.getWidth(), PlayGame.getHeight()-SmallBone.getHeight());\r\n\t\t\t\tthis.smallBones.add(smallBone);\r\n\t\t\t}\r\n\t\t\tfor (int n = 0; n<this.smallBones.size(); n++) {\r\n\t\t\t\tSmallBone theSM = this.smallBones.get(n);\r\n\t\t\t\ttheSM.draw();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Once life is lower than 0, game over. \r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Game Over! Your score is \" + this.score);\r\n\t\t}\r\n\t\t\r\n\t}", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\t\t\t//This if statement isolates all conditions in which a square would appear white\n\t\t\t//(and one condition which would make it red). \n if (revealed || (gameLost && ((mine && !flagged) || (!mine && flagged))))\n {\n setBackground(Color.WHITE);\n if (mine || flagged) //All conditions which would show a mine icon.\n {\t\t\t\t\t\t\t//Any flagged square that fit the first if statement must be a falsely flagged\n if (revealed)\t\t//non-mine after the game is lost, so it does fit this category.\n {\n setBackground(Color.RED); //Just for the specific mine that was clicked on to lose the game.\n }\n g.fillOval(SHIFT - 1, SHIFT - 1, \n SQUARE_SIZE - 2*SHIFT + 1, SQUARE_SIZE - 2*SHIFT + 1);\n g.drawLine(SQUARE_SIZE/2, 0, SQUARE_SIZE/2, SQUARE_SIZE);\n g.drawLine(0, SQUARE_SIZE/2, SQUARE_SIZE, SQUARE_SIZE/2);\n g.drawLine(SHIFT, SQUARE_SIZE - SHIFT - 1, SQUARE_SIZE - SHIFT - 1, SHIFT);\n g.drawLine(SHIFT, SHIFT, SQUARE_SIZE - SHIFT - 1, SQUARE_SIZE - SHIFT - 1);\n g.setColor(Color.WHITE);\n g.fillRect(GLARE_LOC, GLARE_LOC, GLARE_SIZE, GLARE_SIZE);\n if (flagged) //Just mistakenly flagged non-mines after the game is lost.\n {\n g.setColor(Color.RED);\n g.drawLine(0, 0, SQUARE_SIZE, SQUARE_SIZE);\n g.drawLine(1, 0, SQUARE_SIZE, SQUARE_SIZE - 1);\n g.drawLine(0, 1, SQUARE_SIZE - 1, SQUARE_SIZE);\n g.drawLine(0, SQUARE_SIZE - 1, SQUARE_SIZE - 1, 0);\n g.drawLine(1, SQUARE_SIZE - 1, SQUARE_SIZE - 1, 1);\n g.drawLine(0, SQUARE_SIZE - 2, SQUARE_SIZE - 2, 0);\n }\n }\n else //Revealed non-mines\n {\n if (adjacentMines != 0)\n {\n g.setColor(COLORS[adjacentMines - 1]);\n Font f = g.getFont();\n g.setFont(new Font(f.getName(), Font.BOLD, f.getSize()));\n g.drawString(\"\" + adjacentMines, \n \t\tSHIFT, SQUARE_SIZE - SHIFT);\n }\n }\n }\n else //Unrevealed\n {\n setBackground(Color.GREEN);\n if (flagged)\n {\n g.fillPolygon(FLAG_BASE_X, FLAG_BASE_Y, FLAG_BASE_X.length);\n g.drawLine(FLAG_BASE_X[2], FLAG_BASE_Y[2], \n \t\tFLAG_BASE_X[2], FLAG_BASE_Y[2] - POLE_LENGTH);\n g.setColor(Color.RED);\n g.fillPolygon(FLAG_X, FLAG_Y, FLAG_X.length);\n }\n }\n }", "private void doDrawing(Graphics g) {\n Dimension size = getSize();\n//paint all the shapes that have been dropped to the bottom \n int boardTop = (int) size.getHeight() - BOARD_HEIGHT * squareHeight();\n\n for (int i = 0; i < BOARD_HEIGHT; ++i) {\n\n for (int j = 0; j < BOARD_WIDTH; ++j) {\n// access all the squares that were stored in the board array\n Tetrominoe shape = shapeAt(j, BOARD_HEIGHT - i - 1);\n\n if (shape != Tetrominoe.NoShape) {\n \n drawSquare(g, 0 + j * squareWidth(),\n boardTop + i * squareHeight(), shape);\n }\n }\n }\n//paint the falling piece\n if (curPiece.getShape() != Tetrominoe.NoShape) {\n\n for (int i = 0; i < 4; ++i) {\n\n int x = curX + curPiece.x(i);\n int y = curY - curPiece.y(i);\n drawSquare(g, 0 + x * squareWidth(),\n boardTop + (BOARD_HEIGHT - y - 1) * squareHeight(),\n curPiece.getShape());\n }\n }\n }", "public void paint(Graphics g){\n super.paint(g);\n Graphics2D g2d = (Graphics2D) g;\n g.setColor(Color.WHITE);\n for(int i = 0; i < ROWS; i++){\n g.drawLine(0, i * HEIGHT / ROWS - 1, \n WIDTH, i * HEIGHT / ROWS - 1);\n g.drawLine(0, i * HEIGHT / ROWS - 2, \n WIDTH, i * HEIGHT / ROWS - 2);\n }\n for (int i = 0; i <= COLS; i++) {\n g.drawLine(i * Game.getWindowWidth() / Game.getCols(), 0,\n i * Game.getWindowWidth() / Game.getCols(), HEIGHT);\n g.drawLine(i * Game.getWindowWidth() / Game.getCols() - 1, 0,\n i * Game.getWindowWidth() / Game.getCols() - 1, HEIGHT);\n }\n for (int i = 0; i < ROWS; i++) {\n for (int j = 0; j < COLS; j++) {\n grid[i][j].paintShadow(g2d);\n }\n }\n for (int i = 0; i < ROWS; i++) {\n for (int j = 0; j < COLS; j++) {\n grid[i][j].paint(g2d);\n }\n }\n \n for(Ball b : balls) {\n b.paint(g2d);\n }\n g2d.setColor(Color.BLACK);\n //segment at the top\n g2d.drawLine(0, 0, WIDTH, 0);\n g2d.drawLine(0, 1, WIDTH, 1);\n g2d.drawLine(0, 2, WIDTH, 2);\n //segment at the bottom\n g2d.drawLine(0, HEIGHT, WIDTH, HEIGHT);\n g2d.drawLine(0, HEIGHT + 1, WIDTH, HEIGHT + 1);\n g2d.drawLine(0, HEIGHT + 2, WIDTH, HEIGHT + 2);\n \n for(Point p : corners){\n g2d.drawOval(p.x, p.y, 3, 3);\n }\n\n if(aimStage){\n //draw the firing line\n g2d.setColor(lineColor);\n drawFatPath(g2d, startX, startY, endX, endY);\n g2d.setColor(arrowColor);\n drawArrow(g2d);\n }\n if(mouseHeld){\n// drawFatPath(g, Ball.restPositionX, HEIGHT - Ball.diameter, \n// getEndPoint().x, getEndPoint().y);\n }\n }", "private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n if (gameOver) {\n // end game - loss\n gameOverDialog();\n } else if (gameWon) {\n // end game - win\n gameWonDialog();\n }\n\n //Convert dp to pixels by multiplying times density.\n canvas.scale(density, density);\n\n // draw horizon\n paint.setColor(Color.GREEN);\n paint.setStyle(Paint.Style.FILL);\n canvas.drawRect(0, horizon, getWidth() / density, getHeight() / density, paint);\n\n // draw cities\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.FILL);\n textPaint.setColor(Color.WHITE);\n textPaint.setTextSize(10);\n\n for (int i = 0; i < cityCount; ++i) {\n canvas.drawRect(cityLocations[i].x - citySize, cityLocations[i].y - citySize, cityLocations[i].x + citySize, cityLocations[i].y + citySize, paint);\n canvas.drawText(cityNames[i], cityLocations[i].x - (citySize / 2) - 5, cityLocations[i].y - (citySize / 2) + 10, textPaint);\n }\n\n // draw rocks\n for (RockView rock : rockList) {\n PointF center = rock.getCenter();\n String color = rock.getColor();\n\n paint.setColor(Color.parseColor(color));\n\n paint.setStyle(Paint.Style.FILL);\n //Log.d(\"center.x\", center.x + \"\");\n //Log.d(\"center.y\", center.y + \"\");\n canvas.drawCircle(center.x, center.y, rockRadius, paint);\n }\n\n // draw MagnaBeam circle\n if (touchActive) {\n canvas.drawCircle(touchPoint.x, touchPoint.y, touchWidth, touchPaint);\n }\n }", "@Override\n protected void onDraw(Canvas canvas) {\n canvas.drawColor(Color.WHITE);\n\n if (noOfColumns == 0 || noOfRows == 0) {\n return;\n }\n\n int width = getWidth();\n int height = getWidth();\n\n for (int i = 0; i < noOfColumns; i++) {\n for (int j = 0; j < noOfRows; j++) {\n if (cards[i][j].getCardState() == CardState.FACE_UP) {\n canvas.drawRect(i * cardWidth, j * cardHeight,\n (i + 1) * cardWidth, (j + 1) * cardHeight,\n cards[i][j].getColor());\n }\n else if (cards[i][j].getCardState() == CardState.MATCHED) {\n canvas.drawRect(i * cardWidth, j * cardHeight,\n (i + 1) * cardWidth, (j + 1) * cardHeight,\n freezeCardPaint);\n }\n }\n }\n\n for (int i = 1; i < noOfColumns; i++) {\n canvas.drawLine(i * cardWidth, 0, i * cardWidth, height, linePaint);\n }\n\n for (int i = 1; i <= noOfRows; i++) {\n canvas.drawLine(0, i * cardHeight, width, i * cardHeight, linePaint);\n }\n }", "private void drawWalls(Graphics g) {\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j].getNorth()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding+doorX, i*heightBlock+padding, j*widthBlock+padding+doorWidth, i*heightBlock+padding);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding, j*widthBlock+padding+widthBlock, i*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getEast()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine((j+1)*widthBlock+padding, i*heightBlock+padding+doorX, (j+1)*widthBlock+padding, i*heightBlock+padding+doorWidth);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine((j+1)*widthBlock+padding, i*heightBlock+padding, (j+1)*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getSouth()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding+doorX, (i+1)*heightBlock+padding, j*widthBlock+padding+doorWidth, (i+1)*heightBlock+padding);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, (i+1)*heightBlock+padding, (j+1)*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getWest()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding+doorX, j*widthBlock+padding, i*heightBlock+padding+doorWidth);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding, j*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void drawOn(DrawSurface d) {\r\n d.setColor(Color.decode(\"#298A1C\"));\r\n d.fillRectangle(0, 0, d.getWidth(), d.getHeight());\r\n\r\n // draw building:\r\n d.setColor(Color.decode(\"#414142\"));\r\n d.fillRectangle(100, 200, 10, 200);\r\n d.setColor(Color.decode(\"#171017\"));\r\n d.fillRectangle(90, 400, 30, 200);\r\n d.setColor(Color.decode(\"#170F12\"));\r\n d.fillRectangle(55, 450, 100, 200);\r\n d.setColor(Color.decode(\"#FFD149\"));\r\n d.fillCircle(105, 200, 11);\r\n d.setColor(Color.decode(\"#B86731\"));\r\n d.fillCircle(105, 200, 7);\r\n d.setColor(Color.WHITE);\r\n d.fillCircle(105, 200, 3);\r\n\r\n // draw windows:\r\n int width = 10;\r\n int height = 25;\r\n int space = 8;\r\n int rowHeight = 460;\r\n drawWindows(rowHeight, d);\r\n drawWindows(rowHeight + height + space, d);\r\n drawWindows(rowHeight + height * 2 + space * 2, d);\r\n drawWindows(rowHeight + height * 3 + space * 3, d);\r\n drawWindows(rowHeight + height * 4 + space * 4, d);\r\n drawWindows(rowHeight + height * 5 + space * 5, d);\r\n }", "public void paint(Graphics g){\r\n super.paintComponent(g);\r\n for(int row = 0; row < 8; row++) {\r\n for (int col = 0; col < 8; col++) {\r\n if((row % 2 == 0 && col % 2 == 0) || (row % 2 != 0 && col % 2 != 0)){\r\n g.setColor(Color.gray.brighter()); //pale yellow\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n else{\r\n g.setColor(Color.gray.darker()); //dark brown\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n if ((currentPlayer.getColor()==checks[row][col])) {\r\n g.setColor(Color.darkGray.darker());\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n if (this.nextMove[row][col] == 1) {\r\n g.setColor(Color.getHSBColor(98,70,43));\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n if (this.checks[row][col] != 0) {\r\n if (this.checks[row][col] == WHITE) {\r\n drawPiece(row, col, g, Color.yellow.brighter());\r\n if (row == 7)\r\n g.drawImage(crownImage, (col * tileSize)+6, (row * tileSize) + 6, tileSize - 12, tileSize - 12, null);\r\n }\r\n else{\r\n drawPiece(row, col, g, Color.black);\r\n if (row == 0)\r\n g.drawImage(crownImage, (col * tileSize)+6, (row * tileSize) + 6, tileSize - 12, tileSize - 12, null);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if(isOver && isGame){\r\n gameOverDisplay(g);\r\n }\r\n }", "public static void setBoard() {\n\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.filledCircle(200, 800, 35);\n\t\tStdDraw.filledCircle(500, 800, 35);\n\t\tStdDraw.filledCircle(800, 800, 35);\n\t\tStdDraw.filledCircle(200, 200, 35);\n\t\tStdDraw.filledCircle(500, 200, 35);\n\t\tStdDraw.filledCircle(800, 200, 35);\n\t\tStdDraw.filledCircle(200, 500, 35);\n\t\tStdDraw.filledCircle(800, 500, 35);\n\t\tStdDraw.filledCircle(350, 650, 35);\n\t\tStdDraw.filledCircle(500, 650, 35);\n\t\tStdDraw.filledCircle(650, 650, 35);\n\t\tStdDraw.filledCircle(350, 350, 35);\n\t\tStdDraw.filledCircle(500, 350, 35);\n\t\tStdDraw.filledCircle(650, 350, 35);\n\t\tStdDraw.filledCircle(350, 500, 35);\n\t\tStdDraw.filledCircle(650, 500, 35);\n\n\t\tStdDraw.setPenRadius(0.01);\n\t\tStdDraw.line(200, 200, 800, 200);\n\t\tStdDraw.line(200, 800, 800, 800);\n\t\tStdDraw.line(350, 350, 650, 350);\n\t\tStdDraw.line(350, 650, 650, 650);\n\t\tStdDraw.line(200, 500, 350, 500);\n\t\tStdDraw.line(650, 500, 800, 500);\n\t\tStdDraw.line(200, 800, 200, 200);\n\t\tStdDraw.line(800, 800, 800, 200);\n\t\tStdDraw.line(350, 650, 350, 350);\n\t\tStdDraw.line(650, 650, 650, 350);\n\t\tStdDraw.line(500, 800, 500, 650);\n\t\tStdDraw.line(500, 200, 500, 350);\n\n\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\tStdDraw.filledCircle(80, 200, 35);\n\t\tStdDraw.filledCircle(80, 300, 35);\n\t\tStdDraw.filledCircle(80, 400, 35);\n\t\tStdDraw.filledCircle(80, 500, 35);\n\t\tStdDraw.filledCircle(80, 600, 35);\n\t\tStdDraw.filledCircle(80, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledCircle(920, 200, 35);\n\t\tStdDraw.filledCircle(920, 300, 35);\n\t\tStdDraw.filledCircle(920, 400, 35);\n\t\tStdDraw.filledCircle(920, 500, 35);\n\t\tStdDraw.filledCircle(920, 600, 35);\n\t\tStdDraw.filledCircle(920, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\n\t}", "@Override\n public void draw(GameCanvas canvas) {\n drawWall(canvas, true, opacity);\n drawWall(canvas, false, opacity);\n }", "public void makeKing() {\n // Set king variable to true\n this.king = true;\n\n // Add stroke effect to piece to represent as a king\n setStroke(Color.GOLD);\n }", "public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }", "private void draw() {\n gsm.draw(g);\n }", "@Override\r\n protected void paintComponent(Graphics g) {\n paintWater(g);\r\n \r\n g.setColor(new Color(255, 255, 255, 70));\r\n g.fillRect(0, 0, 500, 500);\r\n \r\n \r\n // Paint the Grid ------------------------------------------\r\n g.setColor(Color.BLACK);\r\n \r\n for (int i = -1; i < 500; i += 50) {\r\n \r\n g.fillRect(i, 0, 2, 500);\r\n g.fillRect(0, i, 500, 2);\r\n \r\n }\r\n \r\n paintShips(g);\r\n paintHits(g);\r\n \r\n \r\n if (isPainted && shortBoard == ATTACK_BOARD && newGD.isMyTurn() && !missile.isPlaced()) {\r\n g.drawImage(Assets.imgMissile, mouseX, mouseY, null);\r\n }\r\n \r\n if (shortBoard == ATTACK_BOARD && newGD.isMyTurn() && missile.isPlaced()) {\r\n g.drawImage(Assets.imgMissile, missile.getPosition().x, missile.getPosition().y, null);\r\n }\r\n \r\n // Paint square under mouse pointer (also for testing)\r\n /*if (isPainted) {\r\n \r\n g.setColor(colorSquare);\r\n g.fillRect(mouseX, mouseY, 50, 50);\r\n \r\n }*/\r\n \r\n }", "void go() {\n while (!gameOver) {\n try {\n Thread.sleep(showDelay);\n } catch (Exception e) {\n e.printStackTrace();\n }\n canvas.repaint();\n checkFilling();\n if (figure.isTouchGround()) {\n figure.leaveOnTheGround();\n figure = new Shapes(this);\n gameOver = figure.isCrossGround(); // Is there space for a new figure?\n } else\n figure.stepDown();\n }\n }", "public void draw() {\n if (!myTurn()) {\n return;\n }\n draw(4 - handPile.size());\n }", "private void drawBlack() throws IOException, ReversiException {\n playSound(PLAY_SOUND);\n // get the list of stones need to be changed\n String list = fromServer.readUTF();\n // draw black the list of stones\n boardComponent.drawBlack(list);\n\n setScoreText();\n\n // followed by the TURN command\n responseToServer();\n }", "@Override \r\n public void paintComponent(final Graphics theGraphics) { \r\n super.paintComponent(theGraphics); \r\n final Graphics2D g2d = (Graphics2D) theGraphics; \r\n \r\n final int width = myBoard.getWidth(); \r\n final int height = myBoard.getHeight(); \r\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON); \r\n \r\n // draw purple game grid\r\n g2d.setColor(PURPLE); \r\n for (int i = 0; i < Math.max(width, height); i++) { \r\n final int lines = i * GRID_SIZING; \r\n \r\n //draws horizontal lines\r\n g2d.draw(new Line2D.Double(lines, ZERO, lines, height * GRID_SIZING));\r\n \r\n //draws vertical lines\r\n g2d.draw(new Line2D.Double(ZERO, lines, width * GRID_SIZING, lines));\r\n \r\n if (myBoard.isGameOver()) { \r\n myGameOver = true; \r\n myGamePaused = true; \r\n }\r\n } \r\n \r\n //update blocks\r\n drawCurrentPiece(g2d, height, width);\r\n drawFrozenBlocks(g2d, height, width);\r\n handlePausedGame(g2d);\r\n }", "public void draw() {\n\t\t/* Clear Screen */\n\t\tGdx.graphics.getGL20().glClearColor(1,1,1,0);\n\t\tGdx.graphics.getGL20().glClear( GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT );\n\n\t\t/* Iterate through draw list */\n\t\tIterator<ArrayList<Drawable>> iter = this.drawlist.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tArrayList<Drawable> layer = iter.next();\n\t\t\t/* Sort the layer. */\n\t\t\tCollections.sort(layer, new DrawableComparator());\n\t\t\t/* Iterate through the layer. */\n\t\t\tIterator<Drawable> jter = layer.iterator();\n\t\t\twhile(jter.hasNext()) {\n\t\t\t\tDrawable drawable = jter.next();\n\t\t\t\tif (drawable.isDead()) {\n\t\t\t\t\tjter.remove(); //Remove if dead.\n\t\t\t\t}//fi\n\t\t\t\telse {\n\t\t\t\t\tdrawable.draw(this, this.scalar); //Draw the drawable.\n\t\t\t\t}//else\n\t\t\t}//elihw\n\t\t}//elihw\n\t}", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n // This is where we will draw our view for Game3.\n canvas.drawBitmap(background, null, rect, null);\n // Creates the score\n scorePaint.setColor(Color.BLUE);\n scorePaint.setTextSize(80);\n canvas.drawText(\"Score : \" + score, 20, 60, scorePaint);\n // Creates the fuel\n fuelPaint.setColor(Color.RED);\n fuelPaint.setTextSize(80);\n canvas.drawText(\"Fuel : \" + fuel + \"%\", 20, 1700, fuelPaint);\n // Creates the level\n levelPaint.setColor(Color.MAGENTA);\n levelPaint.setTextSize(80);\n canvas.drawText(\"Level : \" + level, 770, 60, levelPaint);\n if (score > 0 && score % 5 == 0) {\n levelUpPaint.setColor(Color.BLACK);\n levelUpPaint.setTextSize(80);\n canvas.drawText(\"LEVEL UP!\", randomX, randomY, levelUpPaint);\n }\n // true blue falls\n if (tb.getState()) {\n tb.drawTBRect(canvas);\n // animate tb\n tb.animateTB();\n // cause tb to fall\n tb.tbFall();\n // draw the towers\n cn.drawTower(canvas); // Endless number of CN Tower is created.\n }\n // displays true blue in the center\n tb.drawTB(canvas);\n if (powerup.getCollected()) {\n powerup.drawPickup(canvas);\n }\n powerup.move();\n if (fuelup.getCollected()) {\n fuelup.drawPickup(canvas);\n }\n fuelup.move();\n handler.postDelayed(runnable, delayNum);\n }", "@Override\n public void draw(Canvas canvas, Paint paint) {\n paint.setColor(Color.WHITE);\n canvas.drawRect(0.0F, 0.0F, this.getScreenWidth(), this.getScreenHeight(), paint);\n if (gameState == GameState.START) {\n paint.setColor(Color.BLACK);\n paint.setTextSize(50);\n canvas.drawText(\"Catch the Easter Eggs!\",\n 0.1F * screenHeight, 0.1F * screenWidth, paint);\n } else {\n paint.setColor(Color.BLACK);\n paint.setTextSize(50);\n canvas.drawText(\"(Go back to Main Level)\",\n 0.1F * screenHeight, 0.1F * screenWidth, paint);\n canvas.drawText(\"Bonus Points: \" + this.getBonusPoints(),\n 0.1F * screenHeight, 0.2F * screenWidth, paint);\n }\n List<Drawable> drawables = this.getDrawableObjects();\n for (Drawable d : drawables) {\n d.draw(canvas, paint);\n }\n }", "private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }", "public void draw(Graphics q) {\n // AMD: moved from DrawSnakeGamePanel\n LinkedList<Point> coordinates = this.segmentsToDraw();\n\n //Draw head in head color\n q.setColor(colorOfHead);\n Point head = coordinates.pop();\n q.fillRect((int) head.getX(), (int) head.getY(), SnakeGame.getSquareSize(), SnakeGame.getSquareSize());\n\n //Draw rest of snake in body color\n q.setColor(colorOfBody);\n for (Point p : coordinates) {\n q.fillRect((int) p.getX(), (int) p.getY(), SnakeGame.getSquareSize(), SnakeGame.getSquareSize());\n }\n }", "public void paint(Graphics g) {\n\n int cell = 0;\n int uncover = 0;\n\n\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n\n cell = field[(i * cols) + j];\n\n if (inGame && cell == MINE_CELL)\n inGame = false;\n\n if (!inGame) {\n if (cell == COVERED_MINE_CELL) {\n cell = DRAW_MINE;\n } else if (cell == MARKED_MINE_CELL) {\n cell = DRAW_MARK;\n } else if (cell > COVERED_MINE_CELL) {\n cell = DRAW_WRONG_MARK;\n } else if (cell > MINE_CELL) {\n cell = DRAW_COVER;\n }\n\n\n } else {\n if (cell > COVERED_MINE_CELL)\n cell = DRAW_MARK;\n else if (cell > MINE_CELL) {\n cell = DRAW_COVER;\n uncover++;\n }\n }\n\n g.drawImage(img[cell], (j * CELL_SIZE),\n (i * CELL_SIZE), this);\n }\n }\n\n\n if (uncover == 0 && inGame) { // Markup available end game\n inGame = false;\n statusbar.setText(\"Well Done. You have defeated the pirates.\");\n g.drawImage(img[14], 0, 0, this);\n } else if (!inGame) {\n statusbar.setText(\"Off to Davey Jones Locker for you!\"); // Mark up from here\n // g.drawImage(img[13], 0, 0, this);\n }\n }", "public synchronized void draw()\n\t{\n\t\t// First update the lighting of the world\n\t\t//int x = avatar.getX();\n\t\t//int y = avatar.getY();\t\t\n\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].draw(x, y);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = monsters.size() - 1; i >=0; i--)\n\t\t{\n\t\t\tMonster monster = monsters.get(i);\n\t\t\tint x = monster.getX();\n\t\t\tint y = monster.getY();\n\t\t\t\n\t\t\t// Check if the monster has been killed\n\t\t\tif (monster.getHitPoints() <= 0)\n\t\t\t{\n\t\t\t\tmonsters.remove(i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (tiles[x][y].getLit())\n\t\t\t\t\tmonster.draw();\n\t\t\t}\n\t\t}\t\t\n\t\tavatar.draw();\n\t}", "private void draw()\n {\n if(surfaceHolder.getSurface().isValid())\n {\n // Locks the surface. Can't be accessed or changed before it is unlocked again\n canvas = surfaceHolder.lockCanvas();\n\n // Background color\n canvas.drawColor(Color.BLACK);\n\n\n // ===================== DRAW SPRITES ======================= //\n // Draw Pacman\n canvas.drawBitmap(pacman.getBitmap(), pacman.getX(), pacman.getY(), paint);\n\n // Draw all Monsters\n for(Monster monster : monsterList)\n {\n canvas.drawBitmap(monster.getBitmap(), monster.getX(), monster.getY(), paint);\n }\n\n // Draw Cherries\n for(Cherry cherry : cherryList)\n {\n canvas.drawBitmap(cherry.getBitmap(), cherry.getX(), cherry.getY(), paint);\n }\n\n // Draw Key\n canvas.drawBitmap(key.getBitmap(), key.getX(), key.getY(), paint);\n\n // Draw Stars\n paint.setColor(Color.WHITE);\n for(Star star : starList)\n {\n paint.setStrokeWidth(star.getStarWidth());\n canvas.drawPoint(star.getX(), star.getY(), paint);\n }\n\n // ======================================================= //\n\n\n if(!gameEnded)\n {\n // Draw user HUD\n paint.setTextAlign(Paint.Align.LEFT);\n paint.setColor(Color.WHITE);\n paint.setTextSize(40);\n paint.setTypeface(Typeface.MONOSPACE);\n canvas.drawText(\"Level: \" + level, 10, 50, paint);\n canvas.drawText(\"Hi Score: \" + hiScore, (screenMax_X /4) * 3, 50 , paint);\n canvas.drawText(\"Score: \" + score, screenMax_X / 3, 50 , paint);\n canvas.drawText(\"New level in: \" + distanceRemaining + \"km\", screenMax_X / 3, screenMax_Y - 20, paint);\n canvas.drawText(\"Lives: \" + pacman.getLifes(), 10, screenMax_Y - 20, paint);\n canvas.drawText(\"Speed \" + pacman.getSpeed() * 100 + \" Km/h\", (screenMax_X /4) * 3, screenMax_Y - 20, paint);\n\n } else {\n\n // Draw 'Game Over' Screen\n paint.setTextAlign(Paint.Align.CENTER);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextSize(150);\n canvas.drawText(\"Game Over\", screenMax_X / 2, 350, paint);\n paint.setTextSize(50);\n paint.setTypeface(Typeface.DEFAULT);\n paint.setFakeBoldText(false);\n canvas.drawText(\"Hi Score: \" + hiScore, screenMax_X / 2, 480, paint);\n canvas.drawText(\"Your Score: \" + score, screenMax_X / 2, 550, paint);\n paint.setTextSize(80);\n canvas.drawText(\"Tap to replay!\", screenMax_X / 2, 700, paint);\n }\n\n if(levelSwitched)\n {\n // Notify the user whenever level is switched\n paint.setTextSize(100);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextAlign(Paint.Align.CENTER);\n canvas.drawText(\"Level \" + level + \"!\", screenMax_X / 2, 350, paint);\n }\n\n // Unlcock canvas and draw it the scene\n surfaceHolder.unlockCanvasAndPost(canvas);\n }\n }", "public void draw()\r\n {\r\n drawn = true;\r\n }", "public void draw() {\n mGameBoard.draw();\n }", "public void drawHuman () //draw method\r\n {\n\tfor (int x = 0 ; x < 630 ; x++)\r\n\t{\r\n\t c.setColor (paleGoldenRod); //erase colour\r\n\t c.fillRect (631 - x, 321, 61, 177); //human erase\r\n\t c.setColor (bisque); //head colour\r\n\t c.fillOval (641 - x, 322, 40, 40); //human's head\r\n\t c.setColor (magenta); //body colour\r\n\t c.fillRect (642 - x, 361, 40, 59); //human body\r\n\t c.setColor (maroon);\r\n\t c.fillRect (647 - x, 420, 10, 70); //left leg\r\n\t c.fillRect (667 - x, 420, 10, 70); //right leg\r\n\t c.fillRect (641 - x, 490, 16, 7); //left foot\r\n\t c.fillRect (661 - x, 490, 16, 7); //right foot\r\n\t c.fillRect (632 - x, 361, 10, 39); //left arm\r\n\t c.fillRect (681 - x, 361, 10, 39); //right arm\r\n\t c.setColor (gold);\r\n\t c.fillRect (632 - x, 400, 10, 10); //left hand\r\n\t c.fillRect (681 - x, 400, 10, 10); //right hand\r\n\t c.setColor (Color.black);\r\n\t c.drawLine (650 - x, 330, 655 - x, 330); //left eyebrow\r\n\t c.drawLine (665 - x, 330, 670 - x, 330); //right eyebrow\r\n\t c.fillOval (650 - x, 335, 5, 5); //left eye\r\n\t c.fillOval (665 - x, 335, 5, 5); //right eye\r\n\t c.drawLine (660 - x, 340, 660 - x, 348); //nose\r\n\t c.setColor (Color.red);\r\n\t c.drawArc (655 - x, 345, 10, 10, 180, 180); //mouth\r\n\r\n\t try\r\n\t {\r\n\t\tThread.sleep (5);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t }\r\n\t}\r\n\r\n\r\n }", "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "private void drawBoard(int N) {\n\t\tfor (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if ((i + j) % 2 == 0) StdDrawPlus.setPenColor(StdDrawPlus.GRAY);\n else StdDrawPlus.setPenColor(StdDrawPlus.BLACK);\n StdDrawPlus.filledSquare(i + .5, j + .5, .5);\n StdDrawPlus.setPenColor(StdDrawPlus.WHITE);\n }\n }\n\n if (hasSelected) {\n StdDrawPlus.setPenColor(StdDrawPlus.WHITE);\n \tStdDrawPlus.filledSquare(prevSelectedX + .5, prevSelectedY + .5, .5);\n }\n\n // Drawing pieces\n for (int x = 0; x < 8; x++) {\n \tfor (int y = 0; y < 8; y++) {\n \t\tPiece p = pieceAt(x, y);\n \t\tif (p != null) {\n\t \t\t\tif (p.isFire() && p.isShield() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/shield-fire.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (p.isFire() && p.isBomb() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/bomb-fire.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (!p.isFire() && p.isBomb() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/bomb-water.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (!p.isFire() && p.isShield() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/shield-water.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (!p.isFire() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/pawn-water.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (p.isFire() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/pawn-fire.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (p.isFire() && p.isBomb() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/bomb-fire-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (p.isFire() && p.isShield() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/shield-fire-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (p.isFire() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/pawn-fire-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (!p.isFire() && p.isBomb() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/bomb-water-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (!p.isFire() && p.isShield() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/shield-fire-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (!p.isFire() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/pawn-water-crowned.png\", 1, 1);\n\t \t\t}\n\t \t}\n \t}\n }\n\t}", "@Override\n public void paint(Graphics g) {\n if (flagged) {\n Font f = new Font(\"Times\", Font.PLAIN, 30);\n g.setFont(f);\n FontMetrics fm = g.getFontMetrics();\n int a = fm.getAscent();\n int h = fm.getHeight();\n int fl = fm.stringWidth(\"F\");\n g.setColor(new Color(170, 171, 167));\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n g.setColor(Color.WHITE);\n g.drawString(\"F\", size / 2 - fl / 2, size / 2 + a - h / 2);\n } else if (clicked) {\n //make the mines spots solid red squares\n if (mine) {\n g.setColor(Color.RED);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n } else {\n //if the spot has mines around it print the number in a specific color\n if (!numMines.equals(\"0\")) {\n Font f = new Font(\"Times\", Font.PLAIN, 30);\n g.setFont(f);\n FontMetrics fm = g.getFontMetrics();\n int a = fm.getAscent();\n int h = fm.getHeight();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n int w = fm.stringWidth(numMines);\n switch (numMines) {\n case \"1\":\n g.setColor(Color.BLACK);\n break;\n case \"2\":\n g.setColor(Color.BLUE);\n break;\n case \"3\":\n g.setColor(Color.RED);\n break;\n case \"4\":\n g.setColor(Color.GREEN);\n break;\n case \"5\":\n g.setColor(Color.ORANGE);\n break;\n case \"6\":\n g.setColor(Color.YELLOW);\n break;\n case \"7\":\n g.setColor(Color.CYAN);\n break;\n case \"8\":\n g.setColor(Color.PINK);\n break;\n default:\n break;\n }\n g.drawString(numMines, size / 2 - w / 2, size / 2 + a - h / 2);\n //if the spot has no mines around it leave it blank\n } else {\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n }\n }\n //if the spot was not clicked or flagged print the normal color\n } else {\n g.setColor(new Color(170, 171, 167));\n g.fillRect(1, 1, size - 2, size - 2);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n }\n }", "public void draw() {\r\n // Get a lock on the mCanvas\r\n if (mSurfaceHolder.getSurface().isValid()) {\r\n mCanvas = mSurfaceHolder.lockCanvas();\r\n\r\n // Fill the screen with a color\r\n mCanvas.drawColor(Color.argb(255, 26, 128, 182));\r\n\r\n // Set the size and color of the mPaint for the text\r\n mPaint.setColor(Color.argb(255, 255, 255, 255));\r\n mPaint.setTextSize(120);\r\n\r\n // Draw the score\r\n mCanvas.drawText(\"\" + playState.mScore, 20, 120, mPaint);\r\n\r\n // Draw the goodApple, badApple, and the snake\r\n gameObjects.draw(mCanvas, mPaint);\r\n\r\n // Draw some text while paused\r\n if (playState.mPaused) {\r\n\r\n // Set the size and color of the mPaint for the text\r\n mPaint.setColor(Color.argb(255, 255, 255, 255));\r\n mPaint.setTextSize(250);\r\n\r\n // Draw the message\r\n // We will give this an international upgrade soon\r\n //mCanvas.drawText(\"Tap To Play!\", 200, 700, mPaint);\r\n mCanvas.drawText(getResources().\r\n getString(R.string.tap_to_play),\r\n 200, 700, mPaint);\r\n }\r\n\r\n\r\n // Unlock the mCanvas and reveal the graphics for this frame\r\n mSurfaceHolder.unlockCanvasAndPost(mCanvas);\r\n }\r\n }", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n hip.preDraw(purplePaint);\n body.preDraw(redPaint);\n neck.preDraw(purplePaint);\n head.preDraw(bluePaint);\n leftArm1.preDraw(bluePaint);\n leftArm2.preDraw(greenPaint);\n leftArm3.preDraw(cyanPaint);\n rightArm1.preDraw(bluePaint);\n rightArm2.preDraw(greenPaint);\n rightArm3.preDraw(cyanPaint);\n leftLeg1.preDraw(bluePaint);\n leftLeg2.preDraw(greenPaint);\n leftLeg3.preDraw(redPaint);\n rightLeg1.preDraw(bluePaint);\n rightLeg2.preDraw(greenPaint);\n rightLeg3.preDraw(redPaint);\n\n Cube[] renderCubes = {\n hip,\n body,\n neck,\n head,\n leftArm1, leftArm2, leftArm3,\n rightArm1, rightArm2, rightArm3,\n leftLeg1, leftLeg2, leftLeg3,\n rightLeg1, rightLeg2, rightLeg3,\n };\n sort(renderCubes, new Comparator<Cube>() {\n @Override\n public int compare(Cube o1, Cube o2) {\n return new Double(o2.getMaxZ()).compareTo(o1.getMaxZ());\n }\n });\n for (Cube c: renderCubes) {\n c.draw(canvas);\n }\n }", "public synchronized void draw() {\n // Clear the canvas\n// canvas.setFill(Color.BLACK);\n// canvas.fillRect(0, 0, canvasWidth, canvasHeight);\n canvas.clearRect(0, 0, canvasWidth, canvasHeight);\n\n // Draw a grid\n if (drawGrid) {\n canvas.setStroke(Color.LIGHTGRAY);\n canvas.setLineWidth(1);\n for (int i = 0; i < mapWidth; i++) {\n drawLine(canvas, getPixel(new Point(i - mapWidth / 2, -mapHeight / 2)), getPixel(new Point(i - mapWidth / 2, mapHeight / 2)));\n drawLine(canvas, getPixel(new Point(-mapWidth / 2, i - mapHeight / 2)), getPixel(new Point(mapWidth / 2, i - mapHeight / 2)));\n }\n }\n\n // Draw each player onto the canvas\n int height = 0;\n for (Player p : playerTracking) {\n canvas.setStroke(p.getColor());\n\n drawName(canvas, p.getName(), height, p.getColor());\n height += 30;\n\n canvas.setLineWidth(7);\n\n // Draw each position\n Point last = null;\n int direction = 0;\n for (Point point : p.getPoints()) {\n if (last != null) {\n drawLine(canvas, getPixel(last), getPixel(point));\n\n Point dir = point.substract(last);\n if (dir.X > dir.Y && dir.X > 0) {\n direction = 1;\n } else if (dir.X < dir.Y && dir.X < 0) {\n direction = 3;\n } else if (dir.Y > dir.X && dir.Y > 0) {\n direction = 2;\n } else if (dir.Y < dir.X && dir.Y < 0) {\n direction = 0;\n }\n }\n last = point;\n }\n\n drawSlug(canvas, p.getId() - 1, getPixel(last), direction);\n }\n }", "public void drawPiece(Graphics g){\n if (current == null){\n return;\n }\n\n for (int y = 1; y < 21; y++){\n for (int x = 1; x < 13; x++){\n if (map[x][y]){\n g.setColor(colors[x][y]);\n g.fillRoundRect(26 * x - 13, 26 * (21 - y) - 13, 25, 25, 2, 2);\n }\n }\n }\n }", "private void drawPlayers(Graphics g){\n\t\tg.setColor(Color.BLACK);\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tfor(GameMatter itm: grid[i][j].getItems()){\n\t\t\t\t\tif(itm instanceof Bandit){\n\t\t\t\t\t\tif(itm.equals(player))\n\t\t\t\t\t\t\tg.setColor(Color.MAGENTA);\n\t\t\t\t\t\tg.fillRect(j*widthBlock+padding, i*heightBlock+padding, bandit, bandit);\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 void paint(Graphics g) {\n\t\t\tif(!winning&&!losing){\n\t\t\t\t//System.out.println(\"IN PAINT\");\n\t\t\t\tsuper.paint(g);\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"sky.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t\tlevel.addLevel();\n\t\t\t\tString chosen= level.getLevel(Level);\n\t\t\t\tlimit= level.getTime(Level);\n\t\t\t\t//\tg.drawRect (50, 50, 100, 100);\n\t\t\t\t//System.out.println(chosen);\n\n\t\t\t\tfor(int i=0;i<chosen.length();i++){\n\t\t\t\t\tchar c = chosen.charAt(i);\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tif(c==' '){\n\t\t\t\t\t\tside+=20;//add up to the x-position \n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='#'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)//if it is the first time print out\n\t\t\t\t\t\t\twalls.add(new wall(side,upper));//add to the wall list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='$'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tboxes.add(new box(side, upper));\n\n\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='\\n'){\n\t\t\t\t\t\tside=0;\n\t\t\t\t\t\tupper+=20;\n\t\t\t\t\t}\n\t\t\t\t\telse if (c=='.'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tareas.add(new area(side, upper));//add to the areas list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='a'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\th= new player(side+velX,upper+velY);//change the position of the player\n\t\t\t\t\t\tg.drawRect (h.getX(), h.getY(), 20, 20);\n\t\t\t\t\t\tg.drawImage(h.getP(), h.getX(),h.getY(),20,20, null);//draw the player\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tnumber++;// the number of paint times add\n\t\t\t\tside=40;//reset the initial x position\n\t\t\t\tupper=80;//reset the initial y position\n\t\t\t\t//\t\t\tSystem.out.println(\"here\");\n\t\t\t\tfor(int i=0;i<walls.size();i++){\n\t\t\t\t\t//System.out.println(\"HERE\");\n\t\t\t\t\twall a= walls.get(i);\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"X: \"+a.getX());\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"Y: \"+a.getY());\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\t//g.drawRect(30, 30, 100, 100);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(), 20, 20,null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the boxes\n\t\t\t\t */\n\t\t\t\tfor(int i=0;i<boxes.size();i++){\n\t\t\t\t\tbox a= boxes.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the areas\n\t\t\t\t */\n\t\t\t\tfor(int i=0; i<areas.size();i++){\n\t\t\t\t\tarea a = areas.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(null, a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t//System.out.println(m.getTime());\n\t\t\t\tg.drawString (\"Steps: \" + steps, 300, 400);\n\t\t\t\tg.drawString (\"Remaining steps: \" + (limit-steps), 300, 420);//show the remaining steps \n\t\t\t}\n\t\t\telse if(losing){//change the screen if you lose\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"over.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\t\t\telse if(winning){//change the screen if you win\n \n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"win.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\n\n\t\t\n\n\n\t\t}", "public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }", "public void startGame() {\n\t\t\n\t\tmyCanvas.setVisible(true);\n\n\t\t// draw the ground\n\t\tmyCanvas.drawLine(50, GROUNDLINE, 550, GROUNDLINE);\n\n\t\t// B�lle erzeugen\n\t\tvar r = new Random();\n\t\t// Aufgabe 6: ein Ball ist nicht genug, oder?\n\t\t// Erweitern Sie die Erzeugung mit Random Zahlen und generieren Sie B�lle in einer Schleife\n\t\tfor(var i = 0; i < 5; ++i) {\n\t\t\tballs.add( new BouncingBall(20 + r.nextInt(80), 100, 20 + r.nextInt(60), new Color(r.nextInt(200)+56,r.nextInt(256),r.nextInt(256)), GROUNDLINE, myCanvas) );\n\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t// draw every ball in the list\n\t\tfor (BouncingBall ball : balls) {\n\t\t\tball.draw();\n\t\t}\t\t\n\t\t\n\t\t// make them bounce\n\t\tvar finished = false;\n\t\twhile (!finished) {\n\t\t\tmyCanvas.wait(50); // small delay\n\t\t\t\n\t\t\t// move every ball in the list\n\t\t\tfor (BouncingBall ball : balls) {\n\t\t\t\tball.move();\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// stop if a ball has travelled a certain distance on x axis\n\t\t\tfor (BouncingBall ball : balls) {\t\t\t\t\n\t\t\t\tif (ball.getXPosition() >= 550) {\n\t\t\t\t\tfinished = true;\n\t\t\t\t\t// Aufgabe 5: Gameover\n\t\t\t\t\t// ...\n\t\t\t\t\tvar image = new ImageIcon(\"src/app/images/gameover.jpg\").getImage();\n\t\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// Aufgabe 3: Alle B�lle getroffen?\n\t\t\tif (balls.size()==0) {\n\t\t\t\tfinished = true;\n\t\t\t\tvar image = new ImageIcon(\"src/app/images/gewonnen.jpg\").getImage();\n\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t// Bild ausgeben, Gewonnen\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// erase every ball from the canvas\n\t\tfor (var ball : balls) {\n\t\t\tball.erase();\n\t\t}\t\t\n\t}", "@Override\n public void paint(Graphics g) {\n g.setColor(Color.white);\n g.fillRect(0, 0, getWidth(), getHeight() );\n\n for (PieceUI pieceUI : pieceUIList) {\n pieceUI.draw(g);\n }\n\n g.drawImage(trapeze.getTrapezeView(), 200, 400, null);\n }", "public void updateGraphics() {\n\t\t// Draw the background. DO NOT REMOVE!\n\t\tthis.clear();\n\t\t\n\t\t// Draw the title\n\t\tthis.displayTitle();\n\n\t\t// Draw the board and snake\n\t\t// TODO: Add your code here :)\n\t\tfor(int i = 0; i < this.theData.getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < this.theData.getNumColumns(); j++) {\n\t\t\t\tthis.drawSquare(j * Preferences.CELL_SIZE, i * Preferences.CELL_SIZE,\n\t\t\t\t\t\tthis.theData.getCellColor(i, j));\n\t\t\t}\n\t\t}\n\t\t// The method drawSquare (below) will likely be helpful :)\n\n\t\t\n\t\t// Draw the game-over message, if appropriate.\n\t\tif (this.theData.getGameOver())\n\t\t\tthis.displayGameOver();\n\t}", "@Override\n\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\n\t\t\t\t\t\twhile (isRunning)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (!holder.getSurface().isValid())\n\t\t\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t\t\tPaint paint = new Paint();\n\t\t\t\t\t\t\t\tpaint.setColor(Color.WHITE);\n\t\t\t\t\t\t\t\tpaint.setStrokeWidth(5);\n\t\t\t\t\t\t\t\tPaint pt=new Paint();\n\t\t\t\t\t\t\t\tpt.setStrokeWidth(8);\n\t\t\t\t\t\t\t\tpt.setColor(Color.GREEN);\n\t\t\t\t\t\t\t\tPaint pt2=new Paint();\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tCanvas canvas = holder.lockCanvas();\n\t\t\t\t\t\t\t\t//Bitmap bbb = BitmapFactory.decodeResource(\n\t\t\t\t\t\t\t\t\t//\tgetResources(), R.drawable.superman);\n\t\t\t\t\t\t\t\t//canvas.drawBitmap(bbb, 0, 0, null);\n\t\t\t\t\t\t\t\tw = canvas.getWidth();\n\t\t\t\t\t\t\t\th = canvas.getHeight();\n\t\t\t\t\t\t\t\ta = w / 4;\n\t\t\t\t\t\t\t\tint x_coordinates[] = { w / 2 - a / 2 - a,\n\t\t\t\t\t\t\t\t\t\tw / 2 - a / 2, w / 2 + a / 2,\n\t\t\t\t\t\t\t\t\t\tw / 2 - a / 2 - a, w / 2 - a / 2,\n\t\t\t\t\t\t\t\t\t\tw / 2 + a / 2, w / 2 - a / 2 - a,\n\t\t\t\t\t\t\t\t\t\tw / 2 - a / 2, w / 2 + a / 2 };\n\t\t\t\t\t\t\t\tint y_coordinates[] = { h / 2 - a / 2 - a,\n\t\t\t\t\t\t\t\t\t\th / 2 - a / 2 - a, h / 2 - a / 2 - a,\n\t\t\t\t\t\t\t\t\t\th / 2 - a / 2, h / 2 - a / 2,\n\t\t\t\t\t\t\t\t\t\th / 2 - a / 2, h / 2 + a / 2,\n\t\t\t\t\t\t\t\t\t\th / 2 + a / 2, h / 2 + a / 2 };\n\t\t\t\t\t\t\t\tint xextreme=w/2+a/2+a;int yextreme=h/2+a/2+a;\n\t\t\t\t\t\t\t\tcanvas.drawLine(w / 2 - a / 2 - a, h / 2 - a\n\t\t\t\t\t\t\t\t\t\t/ 2, w / 2 + a + a / 2, h / 2 - a / 2,\n\t\t\t\t\t\t\t\t\t\tpaint);\n\t\t\t\t\t\t\t\tcanvas.drawLine(w / 2 - a / 2 - a, h / 2 + a\n\t\t\t\t\t\t\t\t\t\t/ 2, w / 2 + a + a / 2, h / 2 + a / 2,\n\t\t\t\t\t\t\t\t\t\tpaint);\n\t\t\t\t\t\t\t\tcanvas.drawLine(w / 2 - a / 2, h / 2 - a - a\n\t\t\t\t\t\t\t\t\t\t/ 2, w / 2 - a / 2, h / 2 + a + a / 2,\n\t\t\t\t\t\t\t\t\t\tpaint);\n\t\t\t\t\t\t\t\tcanvas.drawLine(w / 2 + a / 2, h / 2 - a - a\n\t\t\t\t\t\t\t\t\t\t/ 2, w / 2 + a / 2, h / 2 + a + a / 2,\n\t\t\t\t\t\t\t\t\t\tpaint);\n\t\t\t\t\t\t\t\tif (flag[0] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[0]+a/5, y_coordinates[0]+a/5, x_coordinates[4]-a/5, y_coordinates[4]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[0]+a/5, y_coordinates[3]-a/5, x_coordinates[1]-a/5, y_coordinates[0]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[0]+a/2, y_coordinates[0]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[0]+a/2, y_coordinates[0]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (flag[1] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[1]+a/5, y_coordinates[1]+a/5, x_coordinates[5]-a/5, y_coordinates[5]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[1]+a/5, y_coordinates[4]-a/5, x_coordinates[2]-a/5, y_coordinates[1]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[1]+a/2, y_coordinates[1]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[1]+a/2, y_coordinates[1]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (flag[2] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[2]+a/5, y_coordinates[2]+a/5, xextreme-a/5, y_coordinates[4]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[2]+a/5, y_coordinates[5]-a/5, xextreme-a/5, y_coordinates[2]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[2]+a/2, y_coordinates[2]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[2]+a/2, y_coordinates[2]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (flag[3] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[3]+a/5, y_coordinates[3]+a/5, x_coordinates[7]-a/5, y_coordinates[7]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[0]+a/5, y_coordinates[6]-a/5, x_coordinates[4]-a/5, y_coordinates[3]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[3]+a/2, y_coordinates[3]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[3]+a/2, y_coordinates[3]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (flag[4] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[4]+a/5, y_coordinates[4]+a/5, x_coordinates[8]-a/5, y_coordinates[8]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[4]+a/5, y_coordinates[7]-a/5, x_coordinates[5]-a/5, y_coordinates[4]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[4]+a/2, y_coordinates[4]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[4]+a/2, y_coordinates[4]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (flag[5] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[5]+a/5, y_coordinates[5]+a/5, xextreme-a/5, y_coordinates[8]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[5]+a/5, y_coordinates[8]-a/5, xextreme-a/5, y_coordinates[5]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[5]+a/2, y_coordinates[5]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[5]+a/2, y_coordinates[5]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (flag[6] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[6]+a/5, y_coordinates[6]+a/5, x_coordinates[7]-a/5, yextreme-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[6]+a/5, yextreme-a/5, x_coordinates[7]-a/5, y_coordinates[7]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[6]+a/2, y_coordinates[6]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[6]+a/2, y_coordinates[6]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (flag[7] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[7]+a/5, y_coordinates[7]+a/5, x_coordinates[8]-a/5, yextreme-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[7]+a/5, yextreme-a/5, x_coordinates[8]-a/5, y_coordinates[8]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[7]+a/2, y_coordinates[7]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[7]+a/2, y_coordinates[7]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (flag[8] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[8]+a/5, y_coordinates[8]+a/5, xextreme-a/5, yextreme-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[8]+a/5, yextreme-a/5, xextreme-a/5, y_coordinates[8]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[8]+a/2, y_coordinates[8]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[8]+a/2, y_coordinates[8]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t * try { thread.sleep(200); } catch\n\t\t\t\t\t\t\t\t * (InterruptedException e) { // TODO\n\t\t\t\t\t\t\t\t * Auto-generated catch block\n\t\t\t\t\t\t\t\t * e.printStackTrace(); }\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\tif (cpuflag[0] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[0]+a/5, y_coordinates[0]+a/5, x_coordinates[4]-a/5, y_coordinates[4]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[0]+a/5, y_coordinates[3]-a/5, x_coordinates[1]-a/5, y_coordinates[0]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[0]+a/2, y_coordinates[0]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[0]+a/2, y_coordinates[0]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (cpuflag[1] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[1]+a/5, y_coordinates[1]+a/5, x_coordinates[5]-a/5, y_coordinates[5]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[1]+a/5, y_coordinates[4]-a/5, x_coordinates[2]-a/5, y_coordinates[1]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[1]+a/2, y_coordinates[1]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[1]+a/2, y_coordinates[1]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (cpuflag[2] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[2]+a/5, y_coordinates[2]+a/5, xextreme-a/5, y_coordinates[4]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[2]+a/5, y_coordinates[5]-a/5, xextreme-a/5, y_coordinates[2]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[2]+a/2, y_coordinates[2]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[2]+a/2, y_coordinates[2]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (cpuflag[3] == true)\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[3]+a/5, y_coordinates[3]+a/5, x_coordinates[7]-a/5, y_coordinates[7]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[0]+a/5, y_coordinates[6]-a/5, x_coordinates[4]-a/5, y_coordinates[3]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[3]+a/2, y_coordinates[3]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[3]+a/2, y_coordinates[3]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (cpuflag[4] == true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[4]+a/5, y_coordinates[4]+a/5, x_coordinates[8]-a/5, y_coordinates[8]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[4]+a/5, y_coordinates[7]-a/5, x_coordinates[5]-a/5, y_coordinates[4]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[4]+a/2, y_coordinates[4]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[4]+a/2, y_coordinates[4]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (cpuflag[5] == true)\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[5]+a/5, y_coordinates[5]+a/5, xextreme-a/5, y_coordinates[8]-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[5]+a/5, y_coordinates[8]-a/5, xextreme-a/5, y_coordinates[5]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[5]+a/2, y_coordinates[5]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[5]+a/2, y_coordinates[5]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (cpuflag[6] == true)\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[6]+a/5, y_coordinates[6]+a/5, x_coordinates[7]-a/5, yextreme-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[6]+a/5, yextreme-a/5, x_coordinates[7]-a/5, y_coordinates[7]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[6]+a/2, y_coordinates[6]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[6]+a/2, y_coordinates[6]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (cpuflag[7] == true)\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[7]+a/5, y_coordinates[7]+a/5, x_coordinates[8]-a/5, yextreme-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[7]+a/5, yextreme-a/5, x_coordinates[8]-a/5, y_coordinates[8]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[7]+a/2, y_coordinates[7]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[7]+a/2, y_coordinates[7]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (cpuflag[8] == true)\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\tif(Start.character==0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[8]+a/5, y_coordinates[8]+a/5, xextreme-a/5, yextreme-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(x_coordinates[8]+a/5, yextreme-a/5, xextreme-a/5, y_coordinates[8]+a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[8]+a/2, y_coordinates[8]+a/2, a/2-a/5, pt);\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawCircle(x_coordinates[8]+a/2, y_coordinates[8]+a/2, a/2-a/5-8, pt2);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (result != -1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif (result == 0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[8] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[8] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpaint);\n\t\t\t\t\t\t\t\t\t\t\t} else if (result == 1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[0] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[2] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[0] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2, paint);\n\t\t\t\t\t\t\t\t\t\t\t} else if (result == 2)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[3] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[2] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[3] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2, paint);\n\t\t\t\t\t\t\t\t\t\t\t} else if (result == 3)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[6] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[2] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[6] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2, paint);\n\t\t\t\t\t\t\t\t\t\t\t} else if (result == 4)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[0] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[0] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[6] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpaint);\n\t\t\t\t\t\t\t\t\t\t\t} else if (result == 5)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[1] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[1] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[6] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpaint);\n\t\t\t\t\t\t\t\t\t\t\t} else if (result == 6)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[2] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[2] + a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ 2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[6] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpaint);\n\t\t\t\t\t\t\t\t\t\t\t} else if (result == 7)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tcanvas.drawLine(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[6] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx_coordinates[2] + a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ty_coordinates[0], paint);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tholder.unlockCanvasAndPost(canvas);\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "public void paintComponent(Graphics g) { \r\n\t\tsuper.paintComponent(g);\r\n \t//draw text\r\n \tg.setColor(Color.WHITE);\r\n g.drawString(\"Controls: wasd or arrow keys changes snake direction; ENTER = restart game.\", 50, 20);\r\n g.drawString(\"Score: \" + foodCollected, 50, 35);\r\n \t//draw boundary\r\n \tg.setColor(Color.LIGHT_GRAY);\r\n \tg.drawRect(50, 50, 500, 500);\r\n \t\r\n if(gameOver == false) {\r\n\t //draw snake\r\n\t g.setColor(Color.GREEN);\r\n\t for(int i = 0; i < snake.getLength(); i++) {\r\n\t \tSnakeSegment ts = snake.getSegment(i);\r\n\t \tg.fillRect(ts.getxPos(), ts.getyPos(), 10, 10);\r\n\t }\r\n\t //draw food\r\n\t \tg.setColor(Color.RED);\r\n\t for(int i = 0; i < foodList.size(); i++) {\r\n\t \tg.fillOval(foodList.get(i).getxPos(), foodList.get(i).getyPos(), 10, 10);\r\n\t }\r\n\t timer.start();\r\n }\r\n else {\r\n \t//snake turns yellow when it bites itself\r\n \tif(snake.getLength() > 0) {\r\n \t\tg.setColor(Color.YELLOW);\r\n \t for(int i = 0; i < snake.getLength(); i++) {\r\n \t \tSnakeSegment ts = snake.getSegment(i);\r\n \t \tg.fillRect(ts.getxPos(), ts.getyPos(), 10, 10);\r\n \t }\r\n \t}\r\n \t//draw food\r\n \tg.setColor(Color.RED);\r\n\t for(int i = 0; i < foodList.size(); i++) {\r\n\t \tg.fillOval(foodList.get(i).getxPos(), foodList.get(i).getyPos(), 10, 10);\r\n\t }\r\n\t //print game over message\r\n\t g.setColor(Color.WHITE);\r\n \tg.drawString(\"GAME OVER\", 270, 270);\r\n \ttimer.stop();\r\n }\r\n\t}", "@Override\n\tpublic void doDraw(Canvas canvas) {\n\t\tcanvas.save();\n\t\tcanvas.translate(0,mScreenSize[1]/2.0F - mScreenSize[1]/6.0F);\n\t\tcanvas.scale(1.0F/3.0F, 1.0F/3.0F);\n\t\tfor(int i = 0; i < Math.min(mPatternSets.size(), 3); i++) {\n\t\t\tPatternSet.Pattern pattern = mPatternSets.get(i).get(0);\n\t\t\tcanvas.save();\n\t\t\tfor(int y = 0; y < pattern.height(); y++) {\n\t\t\t\tcanvas.save();\n\t\t\t\tfor(int x = 0; x < pattern.width(); x++) {\n\t\t\t\t\tif(pattern.get(x,y) > 0) {\n\t\t\t\t\t\t//Log.d(TAG, \"Ping!\");\n\t\t\t\t\t\tmBlockPaint.setColor(mBlockColors[pattern.get(x,y)]);\n\t\t\t\t\t\tcanvas.drawRect(1, 1, mBlockSize[0]-1, mBlockSize[1]-1, mBlockPaint);\n\t\t\t\t\t}\n\t\t\t\t\tcanvas.translate(mBlockSize[0], 0);\n\t\t\t\t}\n\t\t\t\tcanvas.restore();\n\t\t\t\tcanvas.translate(0, mBlockSize[1]);\n\t\t\t}\n\t\t\tcanvas.restore();\n\t\t\tcanvas.translate(mScreenSize[0], 0);\n\t\t}\n\t\tcanvas.restore();\n\t}", "public void paint(Graphics g) {\n int rad = 30;\n int x = border;\n int y = border;\n size = 400/n;\n\n for (int i = 0; i < n; i++) {\n y = i * size + border;\n for (int j = 0; j < n; j++) {\n x = j * size + border;\n int z = matrix[i][j].getColor();\n\n if (matrix[i][j].isClicked()) {\n setRectColor(g, z); \n }\n\n else {\n g.setColor(Color.white);\n }\n\n g.fillRect(x, y, size, size);\n g.setColor(Color.black);\n g.drawRect(x, y, size, size);\n\n if (matrix[i][j].isDot()) {\n setDotColor(g, z);\n drawCircle(g, x, y, rad);\n }\n }\n }\n\n if (isOver()==true) { //Draw win screen if entire board is filled\n g.setColor(Color.white);\n g.fillRect(70, 70, 300, 225);\n g.setColor(Color.black);\n g.drawRect(70, 70, 300, 225);\n \n youWin(g, 110, 160, game.getMoves());\n }\n\n\n }", "private void draw() {\n\n // Current generation (y-position on canvas)\n int generation = 0;\n\n // Looping while still on canvas\n while (generation < canvasHeight / CELL_SIZE) {\n\n // Next generation\n cells = generate(cells);\n\n // Drawing\n for (int i = 0; i < cells.length; i++) {\n gc.setFill(colors[cells[i]]);\n gc.fillRect(i * CELL_SIZE, generation * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n }\n\n // Next line..\n generation++;\n }\n }", "@Override\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\t\t\t\t\t\t\t\t\t// If this method is reimplemented, super.paint(g) should be called so that lightweight components are properly rendered.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// If a child component is entirely clipped by the current clipping setting in g, paint() will not be forwarded to that child.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html#paint(java.awt.Graphics)\n\t\t\n\t\tif (newGame) newGoGame();\t\t\t\t\t\t// if new go game: setup goBoard array, goHistory, black player first\n\t\tif (checkWin) \t\t\t\t\t\t\t\t\t// if checkWin is true - check to see if the last move was a win\n\t\t\tif ((k=gameWin())!=0) {\n\t\t\t\tif (k==1)\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"White player has won!\", \"Gomoku Winner\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\telse \n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"Black player has won!\", \"Gomoku Winner\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tnewGoGame();\n\t\t\t}\n\t\t\n\t\t// Draw Background Image, depending on the index of bgNum\n\t\tg.drawImage(imgBackground[bgNum], 0, 54, Color.BLACK, null); // 44\n\t\t\n\t\t// Draw Grid\n\t\tg.setColor(Color.BLACK);\n\t\tfor (i=0; i<525; i+=35) {\t\t\t\t\t\t// 15x15 grid - 35 pixels per side - offset by 75 pixels on x, 75 pixels on y\n\t\t\tg.drawLine(75, 75+i, 565, 75+i);\t\t// draws horizontal lines\n\t\t\tg.drawLine(75+i, 75+0, 75+i, 565); \t// draws vertical lines\n\t\t} // end loop for drawing lines\n\t\t\n\t\t// draw pieces on board\n\t\tfor (i=0; i<15; ++i) {\n\t\t\tfor (j=0; j<15; ++j) {\n\t\t\t\tif ((k=goBoard[i][j])!=0) {\n\t\t\t\t\tif (k==1) { g.setColor(Color.WHITE); g.fillOval(61+(i*35),62+(j*35),30,30); }\n\t\t\t\t\telse { g.setColor(Color.BLACK); g.fillOval(61+(i*35),62+(j*35),30,30); }\n\t\t\t\t} // end if goBoard\n\t\t\t} // end j - inner loop for drawing game pieces\n\t\t} // end i - outer loop for drawing game pieces\n\n\t\t\n\t\t// To Do list\n\t\t// Check move - 5 in a row - (not with stack, but with int Array)\n\n\t\t\n\t}", "public static void draw(Graphics g) {\n\t\tfor(Tower t:towers) {\n\t\t\tt.draw(g);\n\t\t}\n\t\t\n\t\tif(selectedTower != null){\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setColor(Color.orange);\n\t\t\tg2.setStroke(new BasicStroke(ICManager.squareHighlightTickness));\n\t\t\tg2.drawRect(selectedTower.getX(), selectedTower.getY(), ICManager.cellSize, ICManager.cellSize);\t\n\t\t\t\n\t\t\t//Draw tower range circle\n\t\t\tif(selectedTower != null){\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tg.drawOval(selectedTower.getX() + ICManager.cellSize / 2 - selectedTower.getRange(),selectedTower.getY() + ICManager.cellSize / 2 - selectedTower.getRange(), selectedTower.getRange()*2,selectedTower.getRange()*2);\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tsynchronized public void onDraw(Canvas canvas) {\n\t\tpaint.setColor(Color.BLACK);\n\t\tpaint.setAlpha(255);\n\t paint.setStrokeWidth(1);\n\t\tcanvas.drawRect(0, 0, canvas.getWidth(), canvas.getHeight(), paint);\n\t\n\t\t//draw the stars\n\t\tpaint.setColor(Color.CYAN);\n\t\tpaint.setAlpha(starAlpha+=starFade);\n\t\t//fade them in and out\n\t\tif (starAlpha>=252 || starAlpha <=80) starFade=starFade*-1;\n\t\tpaint.setStrokeWidth(5);\n\t\tfor (Point star : starField) {\n\t\t\tif (inBounds(star, canvas.getWidth(), canvas.getHeight())) {\n\t\t\t\tcanvas.drawPoint(star.x, star.y, paint);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void draw(RoomBlocks grid) {\n\t\trenderer.setProjectionMatrix(CameraHolder.instance().getOrtho().combined);\n//\t\tCont tot = new Cont();\n\t\tColor color = new Color();\n\n\t\t\n\t\tDimensions dim = grid.getDimensions().toRoomWorldDimmensions();\n\t\tgrid.forEach(bl -> {\n//\t\t\t\n\t\t\tint x = (GeneratorConstants.ROOM_BLOCK_SIZE * bl.getX()) + GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\n\t\t\tx = (dim.getW() - x) + dim.getX();\n\t\t\t\n\t\t\tint pseudWorldRoomY = grid.getDimensions().getY() * Configuration.getLevelGridElementContentSize();\n\t\t\tint y = (bl.getY() + pseudWorldRoomY) * (GeneratorConstants.ROOM_BLOCK_SIZE);\n\t\t\t\n\t\t\tShapeType shType = ShapeType.Filled;\n\t\t\tboolean render = false;\n\t\t\t\n\t\t\tif(bl.isDoor()) {\n\t\t\t\trender = true;\n\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t} else if(bl.isWall()) {\n//\t\t\t\trender = true;\n//\t\t\t\tcolor.set(1, 1, 1, 1);\n//\t\t\t\tshType = ShapeType.Line;\n\t\t\t} else if(bl.getMetaInfo() != null) {//TODO\n\t\t\t\t\n\t\t\t\tif(bl.getMetaInfo().getType().equals(\".\")) {\n\t\t\t\t\trender = true;\n\t\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t\t} else if(!bl.getMetaInfo().getType().equals(\"x\")) {\n\t\t\t\t\t\n\t\t\t\t\tBrush brush = Configuration.brushesPerTile.get(bl.getMetaInfo().getType().charAt(0));\n\t\t\t\t\tif(brush != null) {// && bl.getOwner() != null\n\t\t\t\t\t\t\n//\t\t\t\t\t\tif(bl.getOwner() != null) {\n//\t\t\t\t\t\t\tSystem.out.println(\"owner: \" + brush.tile);\n//\t\t\t\t\t\t}\t\t\t\t\t\t\n//\t\t\t\t\t\t\n\t\t\t\t\t\trender = true;\n\t\t\t\t\t\tcolor.set(brush.color[0], brush.color[1], brush.color[2], 1);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(render) {\n\t\t\t\t\n\t\t\t\tint size = GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\t\n\t\t\t\trenderer.begin(shType);\n\t\t\t\trenderer.setColor(color);\n\t\t\t\trenderer.rect(x, y, size, size);\n\t\t\t\trenderer.end();\n\t\t\t}\n\t\t\t\n//\t\t\tif(bl.getOwner() != null ) {\n//\t\t\t\tfinal int fx = x;\n//\t\t\t\tfinal int fy = y;\n//\t\t\t\t\n//\t\t\t\tbl.getOwner().forEachItems(itm -> {//desenhando os items\n//\t\t\t\t\trenderer.begin(ShapeType.Filled);\n//\t\t\t\t\trenderer.setColor(itm.color[0], itm.color[1], itm.color[2], 1);\n//\t\t\t\t\trenderer.rect(fx + itm.dx, fy + itm.dy, itm.width, itm.height);\n//\t\t\t\t\trenderer.end();\t\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t}\t\t\t\n\t\t});\n\t}", "public void onTick() {\r\n if (this.worklist.size() > 0) {\r\n ArrayList<ACell> tempWorklist = new ArrayList<ACell>();\r\n for (ACell c : this.worklist) {\r\n tempWorklist.add(c);\r\n }\r\n this.worklist = new ArrayList<ACell>();\r\n this.collector(tempWorklist);\r\n }\r\n else if (this.allCellsFlooded()) {\r\n if (this.worklist.size() > 0) {\r\n this.worklist = new ArrayList<ACell>();\r\n }\r\n this.drawWin();\r\n }\r\n else if (this.currTurn >= this.maxTurn) {\r\n if (this.worklist.size() > 0) {\r\n this.worklist = new ArrayList<ACell>();\r\n }\r\n this.drawLose();\r\n }\r\n }", "private void drawFallingPiece() {\r\n\t\t// loops through each rectangle of the shape type (always 4), and draws it\r\n\t\t// based on it's status and position.\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tdrawSquare(game.fallingPiece.x + game.fallingPiece.coord[game.fallingPiece.status][i][0],\r\n\t\t\t\t\t game.fallingPiece.y + game.fallingPiece.coord[game.fallingPiece.status][i][1],\r\n\t\t\t\t\t game.fallingPiece.color);\r\n\t\t}\r\n\t}", "private void drawHeart (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n\n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\t\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }", "public void drawWaters(Graphics g){\n \n if(fireRecord.size() > 20+ (waterCap*3)){\n waters.add(new Water());\n waterCap++;\n } \n \n for(int i=0; i<waters.size(); i++){\n Water currentWater = waters.get(i);\n boolean test = currentWater.test(player.getX(), player.getY(), player.getW(), player.getH(),-5); \n //If touched, remove some of the fire.\n if(test){\n if(fireRecord.size()>5){\n for(int k = 1; k<=5 ; k++){\n fireRecord.remove(0);\n }\n }\n else{\n fireRecord.remove(0); \n }\n waters.remove(currentWater); \n } \n \n g.drawImage(currentWater.getImage(), currentWater.getX(), currentWater.getY(), this); \n } \n }", "public void draw(float delta) {\n\t\tcanvas.clear();\n\t\tcanvas.begin();\n\t\tcw = canvas.getWidth();\n\t\tch = canvas.getHeight();\n\t\tfor (int i = -5; i < 5; i++) {\n\t\t\tfor (int j = -5; j < 5; j++) {\n\t\t\t\tcanvas.draw(getBackground(dayTime), Color.WHITE, cw*i * 2, ch*j * 2, cw * 2, ch * 2);\n\t\t\t\tif(dayTime == 0 || dayTime == 1){\n\t\t\t\t\tcanvas.draw(getBackground(dayTime + 1), levelAlpha, cw*i * 2, ch*j * 2, cw * 2, ch * 2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcanvas.end();\n\t\tif (walls.size() > 0){ \n\t\t\tfor (ArrayList<Float> wall : walls) canvas.drawPath(wall);\n\t\t}\n\t\tcanvas.begin();\n\t\t//\t\tcanvas.draw(background, Color.WHITE, 0, 0, canvas.getWidth(), canvas.getHeight());\n\t\t//canvas.draw(rocks, Color.WHITE, 0, 0, canvas.getWidth(), canvas.getHeight());\n\t\t\n\t\t\n//\t\tfor (ArrayList<Float> wall : walls) canvas.drawPath(wall);\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.draw(canvas);\n\t\t}\n\t\t\n\n\t\tfor (int i = -5; i < 5; i++) {\n\t\t\tfor (int j = -5; j < 5; j++) {\n\t\t\t\tcanvas.draw(overlay, referenceC, cw*i, ch*j, cw, ch);\n\t\t\t}\n\t\t}\n\n\t\tcanvas.end();\n\n\t\tif (debug) {\n\t\t\tcanvas.beginDebug();\n\t\t\tfor(Obstacle obj : objects) {\n\t\t\t\tobj.drawDebug(canvas);\n\t\t\t}\n\t\t\tcanvas.endDebug();\n\t\t}\n\n\n\n//\t\t// Final message\n//\t\tif (complete && !failed) {\n//\t\t\tdisplayFont.setColor(Color.BLACK);\n//\t\t\tcanvas.begin(); // DO NOT SCALE\n//\t\t\tcanvas.drawTextCentered(\"VICTORY!\", displayFont, 0.0f);\n//\t\t\tcanvas.end();\n//\t\t\tdisplayFont.setColor(Color.BLACK);\n//\t\t} else if (failed) {\n//\t\t\tdisplayFont.setColor(Color.RED);\n//\t\t\tcanvas.begin(); // DO NOT SCALE\n//\t\t\tcanvas.drawTextCentered(\"FAILURE!\", displayFont, 0.0f);\n//\t\t\tcanvas.end();\n//\t\t}\n\t}", "public void drawOne (Graphics g){\r\n\t\tbeep1.play();\r\n\t\tif (screen == 1){\r\n\t\tg.setColor(Color.RED);\r\n\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t}\r\n\t\telse if (screen == 2 || screen == 3){ //Colour Arc's will light up white for non traditional options because it was more convenient and shorter to code :)\r\n\t\tg.setColor(Color.WHITE);\t\r\n\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t}\r\n\t\t\r\n\t\tdelay(500);\r\n\r\n\t\tif (screen == 1){\r\n\t\t\tg.setColor(REDFADE);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t}\r\n\t\telse if (screen == 2){\r\n\t\t\tg.setColor(PURPLE_1);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t}\r\n\t\telse if (screen == 3){\r\n\t\t\tg.setColor(PINK_TROP);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t}\r\n\t}", "public void draw(Canvas canvas) {\n // Draw the game\n for (int i = 0; i < width + 2; i++) {\n for (int j = 0; j < height + 2; j++) {\n canvas.setPoint(i, j, '.');\n }\n }\n\n for (int i = 0; i < width + 2; i++) {\n canvas.setPoint(i, 0, '-');\n canvas.setPoint(i, height + 1, '-');\n }\n\n for (int i = 0; i < height + 2; i++) {\n canvas.setPoint(0, i, '|');\n canvas.setPoint(width + 1, i, '|');\n }\n\n for (BaseObject object : getAllItems()) {\n object.draw(canvas);\n }\n }", "@Override\r\n\tpublic void draw() {\r\n\t\t//Set the background to dark grey\r\n\t\tbackground(50, 50, 50);\t\r\n\t\t//If the current state is processing, display text explaining this\r\n\t\tif (this.currentGameState == DisplayStates.PROCESSING) {\r\n\t\t\ttext(\"Processing, please wait...\", 30, 340); \r\n\t\t} else { //Otherwise, the grid should be drawn in it's current state\r\n\t\t\tthis.zoomer.transform(); //Transform the zoom based on user input\r\n\t\t\t//Get the cells in their current state\r\n\t\t\tthis.gridCells = this.world.getCells(); \r\n\t\t\t//Work out which size images to use.\r\n\t\t\tupdateImageScale();\r\n\t\t\t//Draw the images to the sketch based on the current scale\r\n\t\t\tif (this.currentImageScale == ImageDrawScales.LARGE) {\r\n\t\t\t\tdrawImages(LARGE_IMAGE, this.gridCells);\r\n\t\t\t} else if (this.currentImageScale == ImageDrawScales.MEDIUM) {\r\n\t\t\t\tdrawImages(MEDIUM_IMAGE, this.gridCells);\r\n\t\t\t} else {\r\n\t\t\t\tdrawImages(SMALL_IMAGE, this.gridCells);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "private void setColor() {\n cell.setStroke(Color.GRAY);\n\n if (alive) {\n cell.setFill(aliveColor);\n } else {\n cell.setFill(deadColor);\n }\n }", "void drawGrass()\n {\n \tPaint color = canvas.getFill();\n \tcanvas.setFill(Color.GREEN);\n \tcanvas.fillRect(0, mainCanvas.getHeight()-30, mainCanvas.getWidth(), 30);\n \tcanvas.setFill(color);\n }", "private void drawGrid() {\r\n\t\t// loops through the 2d array of the grid.\r\n\t\tfor (int i = 0; i < TetrisGame.PANEL_WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < TetrisGame.PANEL_HEIGHT; j++) {\r\n\t\t\t\t// checks to see if the piece isn't empty, and draws the piece at it's position.\r\n\t\t\t\tif (game.grid[i][j] != Piece.PieceShape.E) {\r\n\t\t\t\t\tdrawSquare(i, j, Piece.getColor(game.grid[i][j]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n drawBack(holder);\n drawClock();\n// drawCircle();\n }", "public void draw(Graphics g)\r\n\t\t{\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tint x = BORDER;\r\n\t\t\t\tint y = 2;\r\n\t\t\t\tfor(int i = 0; i < rolls.length; i++){\r\n\t\t\t\t\t// Make selected dice darker\r\n\t\t\t\t\tif(selectedDice[i]){\r\n\t\t\t\t\t\tg.setColor(Color.DARK_GRAY);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tg.setColor(Color.GRAY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Background\r\n\t\t\t\t\tg.fillRoundRect(x, y, SLOT_WIDTH*2, SLOT_WIDTH*2, SLOT_WIDTH/2, SLOT_WIDTH/2);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Outline\r\n\t\t\t\t\tg.setColor(cantStop.getGameBoard().getCurrentPlayer().getColor());\r\n\t\t\t\t\tg.drawRoundRect(x, y, SLOT_WIDTH*2, SLOT_WIDTH*2, SLOT_WIDTH/2, SLOT_WIDTH/2);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Dots\r\n\t\t\t\t\tdrawDice(g, rolls[i], x, y);\r\n\t\t\t\t\tx+= SLOT_WIDTH*2 + BORDER*3;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch(NullPointerException e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tcatch(ArrayIndexOutOfBoundsException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.err.println(\"The GUI tried to access a cone within\" +\r\n\t\t\t\t\t\t\" your GameBoard's tracks, but this \" +\r\n\t\t\t\t\t\t\"resulted in an ArrayIdexOutOfBounds \" +\r\n\t\t\t\t\t\t\"Exception.\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}", "void draw(Graphics g)\n {\n int aliveCount = 0, deadCount = 0;\n\n boolean[][] gridArray = grid.getGrid();\n for(int row = 0; row < gridArray.length; row++){\n for(int col = 0; col < gridArray[row].length; col++){\n if(gridArray[row][col]){\n if(grid.isInverted()) {\n g.setColor(Color.white);\n } else {\n g.setColor(Color.black);\n }\n aliveCount++;\n } else {\n if(grid.isInverted()) {\n g.setColor(Color.black);\n } else {\n g.setColor(Color.white);\n }\n deadCount++;\n }\n g.fillRect(col * (grid.getCellSize() + grid.getCellInnerGap()) + grid.getCellOuterGap() , row * (grid.getCellSize() + grid.getCellInnerGap()) + grid.getCellOuterGap(), grid.getCellSize(), grid.getCellSize());\n }\n }\n\n UserInterface.infoLabel.setText(\"<html><center>Generation: \" + grid.getGeneration() + \"</center>Alive: \" + aliveCount + \" ; Dead: \" + deadCount + \"</html>\");\n }", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n\n if (gameStarted) {\n\n //At the top of the screen, show the user whose turn it is.\n paint.setColor(currentPlayerNameColor);\n paint.setTextSize(87);\n canvas.drawText(currentPlayerName + \"'s Turn\", (canvas.getWidth() / 7), 70, paint);\n }\n else if (!canvasSet)\n {\n //Before the game starts, set up the Players' locations\n\n heroLocation[0] = 1;\n heroLocation[1] = -5;\n\n antagonistLocation[0] = canvas.getWidth() - (canvas.getWidth() / 2);\n antagonistLocation[1] = -10;\n\n canvasSet = true;\n }\n\n drawCharacter(canvas, heroPlayer);\n drawCharacter(canvas, antagonistPlayer);\n\n //If there is information to display, display it.\n if (timeToAnnounce) {\n paint.setColor(Color.BLACK);\n paint.setTextSize(77);\n canvas.drawText(announcementTop, (canvas.getWidth() / 3) - 4, 192, paint);\n paint.setTextSize(55);\n canvas.drawText(announcementMiddle, (canvas.getWidth()/3) + 11, 272, paint);\n paint.setTextSize(74);\n canvas.drawText(announcementBottom, (canvas.getWidth()/3) + 4, 372, paint);\n announcementTimerTicker();\n }\n\n //Check other conditionals.\n onDrawConditionals();\n\n //Move the FacePiece images to the next place in their constant animation.\n characterLocationAnimations();\n\n //We must invalidate so that the Thread will call onDraw again upon the next iteration.\n invalidate();\n }", "public void drawOn(Graphics g);", "void show() {\n if (!isDead) {\n for (int i = 0; i < bullets.size(); i++) {//show bullets\n bullets.get(i).show();\n }\n if (immortalityTimer >0) {//no need to decrease immortalityCounter if its already 0\n immortalityTimer--;\n }\n\n if (immortalityTimer >0 && floor(((float)immortalityTimer)/5)%2 ==0) {//needs to appear to be flashing so only show half of the time\n } else {\n\n Constants.processing.pushMatrix();\n Constants.processing.translate(this.position.x, this.position.y);\n Constants.processing.rotate(rotation);\n\n //actually draw the player\n Constants.processing.fill(0);\n Constants.processing.noStroke();\n Constants.processing.beginShape();\n int size = 12;\n\n //black triangle\n Constants.processing.vertex(-size - 2, -size);\n Constants.processing.vertex(-size - 2, size);\n Constants.processing.vertex(2 * size - 2, 0);\n Constants.processing.endShape(CLOSE);\n Constants.processing.stroke(255);\n\n //white out lines\n Constants.processing.line(-size - 2, -size, -size - 2, size);\n Constants.processing.line(2 * size - 2, 0, -22, 15);\n Constants.processing.line(2 * size - 2, 0, -22, -15);\n if (boosting) {//when boosting draw \"flames\" its just a little triangle\n boostCount--;\n if (floor(((float)boostCount)/3)%2 ==0) {//only show it half of the time to appear like its flashing\n Constants.processing.line(-size - 2, 6, -size - 2 - 12, 0);\n Constants.processing.line(-size - 2, -6, -size - 2 - 12, 0);\n }\n }\n Constants.processing.popMatrix();\n }\n }\n for (int i = 0; i < asteroids.size(); i++) {//show asteroids\n asteroids.get(i).show();\n }\n }", "public static void continueGame(boolean humanChecker,boolean computerColor) {\n\t\t\n\t\t\n\t\tStdDraw.setPenRadius(0.05);\n\t\t// Done button\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.filledRectangle(500, 100, 85, 55);\n\t\tStdDraw.setPenColor(StdDraw.ORANGE);\n\t\tStdDraw.filledRectangle(500, 100, 80, 50);\n\n\t\t// Toggle Blue\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.filledRectangle(700, 900, 55, 55);\n\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\tStdDraw.filledRectangle(700, 900, 50, 50);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.filledRectangle(900, 900, 55, 55);\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledRectangle(900, 900, 50, 50);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.text(700, 900, \"BLUE\");\n\t\tStdDraw.text(900, 900, \"RED\");\n\t\tStdDraw.text(500, 100, \"DONE\");\n\n\t\tStdDraw.setPenColor(StdDraw.YELLOW);\n\t\tStdDraw.filledCircle(700, 980, 10);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.text(270, 900, \"Please click on a position to place a piece\");\n\t\tStdDraw.text(270, 870, \"Toggle the color of the piece you wish to place\");\n\t\t\n\t\t//creating objects for all the pieces that can be played\n\t\tpieceArray = new PlayerPiece[12];\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tif (i < 6) {\n\t\t\t\tSixMensMorris.pieceArray[i] = new PlayerPiece(\"BLUE\", i + 1);\n\t\t\t} else {\n\t\t\t\tSixMensMorris.pieceArray[i] = new PlayerPiece(\"RED\", i + 1);\n\t\t\t}\n\t\t}\n\n\t\t//creating objects for each spot on the game board that a player can put a piece\n\t\tspots = new moveLocations[16];\n\t\tspots[0] = new moveLocations(185, 215, 785, 815);\n\t\tspots[1] = new moveLocations(485, 515, 785, 815);\n\t\tspots[2] = new moveLocations(785, 815, 785, 815);\n\t\tspots[3] = new moveLocations(785, 815, 485, 515);\n\t\tspots[4] = new moveLocations(785, 815, 185, 215);\n\t\tspots[5] = new moveLocations(485, 515, 185, 215);\n\t\tspots[6] = new moveLocations(185, 215, 185, 215);\n\t\tspots[7] = new moveLocations(185, 215, 485, 515);\n\t\tspots[8] = new moveLocations(335, 365, 635, 665);\n\t\tspots[9] = new moveLocations(485, 515, 635, 665);\n\t\tspots[10] = new moveLocations(635, 665, 635, 665);\n\t\tspots[11] = new moveLocations(635, 665, 485, 515);\n\t\tspots[12] = new moveLocations(635, 665, 335, 365);\n\t\tspots[13] = new moveLocations(485, 515, 335, 365);\n\t\tspots[14] = new moveLocations(335, 365, 335, 365);\n\t\tspots[15] = new moveLocations(335, 365, 485, 515);\n\n\t\t\n\t\tif(humanChecker){\n\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\n\t\t\tif(computerColor){\n\t\t\t\t\n\t\t\t\tStdDraw.text(700, 865, \"Comp\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tStdDraw.text(900, 865, \"Comp\");\n\t\t\t}\n\n\t\t}\n\t\tboolean mouseClicked3 = false;\n\t\tdouble xLocation3 = 0;\n\t\tdouble yLocation3 = 0;\n\t\tint color = 1; // Blue\n\t\tint num1 = 700;\n\t\tint num2 = 700;\n\t\tboolean mouseClicked = false;\n\t\tdouble xLocation = 0;\n\t\tdouble yLocation = 0;\n\t\t\n\t\tint bluePieces = 0;\n\t\tint redPieces = 0;\n\t\t\n\t\twhile (!mouseClicked3 || (!(mouseInRange(xLocation3, yLocation3, 415, 585, 45, 155)))) {\n\t\t\tmouseClicked3 = StdDraw.mousePressed();\n\t\t\txLocation3 = StdDraw.mouseX();\n\t\t\tyLocation3 = StdDraw.mouseY();\n\t\t\t\n\t\t\t//toggle button for which color the user wants to place onto the game board\n\t\t\tif (color == 1 && mouseClicked3 && (mouseInRange(xLocation3, yLocation3, 845, 955, 845, 955))) {\n\t\t\t\tStdDraw.setPenColor(StdDraw.YELLOW);\n\t\t\t\tStdDraw.filledCircle(900, 980, 10);\n\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\tStdDraw.filledCircle(700, 980, 10);\n\t\t\t\tcolor = 2;\n\t\t\t} else if (color == 2 && mouseClicked3 && (mouseInRange(xLocation3, yLocation3, 645, 755, 845, 955))) {\n\t\t\t\tStdDraw.setPenColor(StdDraw.YELLOW);\n\t\t\t\tStdDraw.filledCircle(700, 980, 10);\n\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\tStdDraw.filledCircle(900, 980, 10);\n\t\t\t\tcolor = 1;\n\t\t\t}\n\t\t\t\n\t\t\t//a bunch of ifs and else ifs to allow the user to place a piece on a specific spot\n\t\t\t//it alternates between movements for blue and movements for red\n\t\t\tmouseClicked = StdDraw.mousePressed();\n\t\t\txLocation = StdDraw.mouseX();\n\t\t\tyLocation = StdDraw.mouseY();\n\t\t\tif (!spots[0].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation, spots[0].getMinX(),\n\t\t\t\t\tspots[0].getMaxX(), spots[0].getMinY(), spots[0].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(200, 800, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(200, 800, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[0].changeOccupied();\n\t\t\t} else if (!spots[1].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[1].getMinX(), spots[1].getMaxX(), spots[1].getMinY(), spots[1].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(500, 800, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(500, 800, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[1].changeOccupied();\n\t\t\t} else if (!spots[2].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[2].getMinX(), spots[2].getMaxX(), spots[2].getMinY(), spots[2].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(800, 800, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(2);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(800, 800, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(2);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[2].changeOccupied();\n\t\t\t} else if (!spots[3].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[3].getMinX(), spots[3].getMaxX(), spots[3].getMinY(), spots[3].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(800, 500, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(3);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(800, 500, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(3);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[3].changeOccupied();\n\t\t\t} else if (!spots[4].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[4].getMinX(), spots[4].getMaxX(), spots[4].getMinY(), spots[4].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(800, 200, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(4);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(800, 200, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(4);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[4].changeOccupied();\n\t\t\t} else if (!spots[5].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[5].getMinX(), spots[5].getMaxX(), spots[5].getMinY(), spots[5].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(500, 200, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(5);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(500, 200, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(5);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[5].changeOccupied();\n\t\t\t} else if (!spots[6].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[6].getMinX(), spots[6].getMaxX(), spots[6].getMinY(), spots[6].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(200, 200, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(6);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(200, 200, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(6);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[6].changeOccupied();\n\t\t\t} else if (!spots[7].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[7].getMinX(), spots[7].getMaxX(), spots[7].getMinY(), spots[7].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(200, 500, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(7);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(200, 500, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(7);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[7].changeOccupied();\n\t\t\t} else if (!spots[8].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[8].getMinX(), spots[8].getMaxX(), spots[8].getMinY(), spots[8].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(350, 650, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(8);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(350, 650, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(8);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[8].changeOccupied();\n\t\t\t} else if (!spots[9].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[9].getMinX(), spots[9].getMaxX(), spots[9].getMinY(), spots[9].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(500, 650, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(9);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(500, 650, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(9);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[9].changeOccupied();\n\t\t\t} else if (!spots[10].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[10].getMinX(), spots[10].getMaxX(), spots[10].getMinY(), spots[10].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(650, 650, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(10);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(650, 650, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(10);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[10].changeOccupied();\n\t\t\t} else if (!spots[11].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[11].getMinX(), spots[11].getMaxX(), spots[11].getMinY(), spots[11].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(650, 500, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(11);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(650, 500, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(11);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[11].changeOccupied();\n\t\t\t} else if (!spots[12].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[12].getMinX(), spots[12].getMaxX(), spots[12].getMinY(), spots[12].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(650, 350, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(12);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(650, 350, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(12);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[12].changeOccupied();\n\t\t\t} else if (!spots[13].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[13].getMinX(), spots[13].getMaxX(), spots[13].getMinY(), spots[13].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(500, 350, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(13);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(500, 350, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(13);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[13].changeOccupied();\n\t\t\t} else if (!spots[14].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[14].getMinX(), spots[14].getMaxX(), spots[14].getMinY(), spots[14].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(350, 350, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(14);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(350, 350, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(14);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[14].changeOccupied();\n\t\t\t} else if (!spots[15].checkOccupied() && mouseClicked && mouseInRange(xLocation, yLocation,\n\t\t\t\t\tspots[15].getMinX(), spots[15].getMaxX(), spots[15].getMinY(), spots[15].getMaxY())) {\n\t\t\t\tif (color == 1) {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(80, num1, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\t\t\t\tStdDraw.filledCircle(350, 500, 35);\n\t\t\t\t\tnum1 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(bluePieces<6){\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[bluePieces].changePiecePosition(15);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbluePieces++;\n\t\t\t\t} else {\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\t\t\tStdDraw.filledCircle(920, num2, 35);\n\t\t\t\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\t\t\t\tStdDraw.filledCircle(350, 500, 35);\n\t\t\t\t\tnum2 -= 100;\n\t\t\t\t\t\n\t\t\t\t\tif(redPieces+6<12){\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changeEnabled();\n\t\t\t\t\t\tSixMensMorris.pieceArray[redPieces+6].changePiecePosition(15);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tredPieces++;\n\t\t\t\t}\n\t\t\t\txLocation = 0;\n\t\t\t\tyLocation = 0;\n\t\t\t\tmouseClicked = false;\n\t\t\t\tspots[15].changeOccupied();\n\t\t\t}\n\t\t\txLocation = 0;\n\t\t\tyLocation = 0;\n\t\t\tmouseClicked = false;\n\n\t\t}\n\t\tmouseClicked3=false;\n\t\t//get rid of some shapes\n\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\tStdDraw.filledCircle(700, 980, 10);\n\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\tStdDraw.filledCircle(900, 980, 10);\n\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\tStdDraw.filledRectangle(500, 100, 105, 55);\n\t\tStdDraw.filledRectangle(700, 900, 705, 55);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\t\n\t\t//checks if the setup they gave is valid\n\t\tif(!(redPieces < 3 || bluePieces < 3)&&!(redPieces > 6 || bluePieces > 6)){\n\t\t\tboolean w=true;\n\t\t\t\n\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\t\tStdDraw.text(500, 130, \"Who goes first?\");\n\t\t\t\n\t\t\tStdDraw.setPenColor(StdDraw.YELLOW);\n\t\t\tStdDraw.filledRectangle(360, 70, 40, 40);\n\t\t\tStdDraw.filledRectangle(640, 70, 40, 40);\n\n\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\t\tStdDraw.text(360, 70, \"BLUE\");\n\t\t\tStdDraw.text(640, 70, \"RED\");\n\t\t\t\n\t\t\tif(humanChecker){\n\t\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\t\t\t\n\t\t\t\tFont font = new Font(\"Sans Serif\", 16, 16);\n\t\t\t\tStdDraw.setFont(font);\n\t\t\t\tif(computerColor){\n\t\t\n\t\t\t\t\tStdDraw.text(361, 45, \"Comp\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\n\t\t\t\t\tStdDraw.text(639, 45, \"Comp\");\n\t\t\t\t}\n\t\t\t\tFont font1 = new Font(\"Sans Serif\", 20, 20);\n\t\t\t\tStdDraw.setFont(font1);\n\n\t\t\t}\n\t\t\t\n\t\t\tboolean mouseClicked4=false;\n\t\t\tdouble xLocation4 = 0;\n\t\t\tdouble yLocation4 = 0;\n\t\t\t//while loop to ask who's turn it is to go first\n\t\t\twhile(w){\n\t\t\t\tmouseClicked4 = StdDraw.mousePressed();\n\t\t\t\txLocation4 = StdDraw.mouseX();\n\t\t\t\tyLocation4 = StdDraw.mouseY();\n\t\t\t\tif(mouseClicked4&&SixMensMorris.mouseInRange(xLocation4, yLocation4, 320, 400, 30, 110)){\n\t\t\t\t\tSixMensMorris.whosFirst=true;//blue's turn first\n\t\t\t\t\tw=false;\n\t\t\t\t}\n\t\t\t\telse if(mouseClicked4&&SixMensMorris.mouseInRange(xLocation4, yLocation4, 600, 680, 30, 110)){\n\t\t\t\t\tSixMensMorris.whosFirst=false;//red's turn first\n\t\t\t\t\tw=false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmouseClicked4=false;\n\t\t\t\n\t\t\t//reset shapes\n\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\tStdDraw.filledRectangle(500, 130, 120, 25);\n\t\t\tStdDraw.filledRectangle(360, 70, 40, 40);\n\t\t\tStdDraw.filledRectangle(640, 70, 40, 40);\n\t\t\tStdDraw.filledCircle(80, 700, 35);\n\t\t\tStdDraw.filledCircle(80, 600, 35);\n\t\t\tStdDraw.filledCircle(80, 500, 35);\n\t\t\tStdDraw.filledCircle(80, 400, 35);\n\t\t\tStdDraw.filledCircle(80, 300, 35);\n\t\t\tStdDraw.filledCircle(80, 200, 35);\n\t\t\tStdDraw.filledCircle(920, 700, 35);\n\t\t\tStdDraw.filledCircle(920, 600, 35);\n\t\t\tStdDraw.filledCircle(920, 500, 35);\n\t\t\tStdDraw.filledCircle(920, 400, 35);\n\t\t\tStdDraw.filledCircle(920, 300, 35);\n\t\t\tStdDraw.filledCircle(920, 200, 35);\n\t\t\tint[][] mill={{0,1,2},{2,3,4},{4,5,6},{6,7,0},{8,9,10},{10,11,12},{12,13,14},{14,15,8}};\n\t\t\t//checks for mills in the setup so that when the game is played, it will already have record of a mill in a location\n\t\t\tint[] tempB=new int[3];\n\t\t\tfor(int P=0;P<mill.length;P++){\n\t\t\t\tint Row=0;\n\t\t\t\tfor(int T=0;T<3;T++){\n\t\t\t\t\tfor(int R=0;R<6;R++){\n\t\t\t\t\t\tif(SixMensMorris.pieceArray[R].getEnabled()&&SixMensMorris.pieceArray[R].getPiecePosition()==mill[P][T]){\n\t\t\t\t\t\t\ttempB[Row]=R;\n\t\t\t\t\t\t\tRow++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(Row==3){//blue mill\n\t\t\t\t\tgamePlay.blueArray[0]=tempB[0];\n\t\t\t\t\tgamePlay.blueArray[1]=tempB[1];\n\t\t\t\t\tgamePlay.blueArray[2]=tempB[2];\n\t\t\t\t\tgamePlay.firstMillIndex=P;\n\t\t\t\t\tgamePlay.AA=SixMensMorris.pieceArray[gamePlay.blueArray[0]].getPiecePosition();\n\t\t\t\t\tgamePlay.BB=SixMensMorris.pieceArray[gamePlay.blueArray[1]].getPiecePosition();\n\t\t\t\t\tgamePlay.CC=SixMensMorris.pieceArray[gamePlay.blueArray[2]].getPiecePosition();\n\t\t\t\t\tgamePlay.blueCountMill=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint[] tempR=new int[3];\n\t\t\tfor(int P=0;P<mill.length;P++){\n\t\t\t\tint Row1=0;\n\t\t\t\tfor(int T=0;T<3;T++){\n\t\t\t\t\tfor(int R=6;R<12;R++){\n\t\t\t\t\t\tif(SixMensMorris.pieceArray[R].getEnabled()&&SixMensMorris.pieceArray[R].getPiecePosition()==mill[P][T]){\n\t\t\t\t\t\t\ttempR[Row1]=R;//\n\t\t\t\t\t\t\tRow1++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(Row1==3){//red mill\n\t\t\t\t\tgamePlay.redArray[0]=tempR[0];\n\t\t\t\t\tgamePlay.redArray[1]=tempR[1];\n\t\t\t\t\tgamePlay.redArray[2]=tempR[2];\n\t\t\t\t\t\n\t\t\t\t\tgamePlay.secondMillIndex=P;\n\t\t\t\t\tgamePlay.A=SixMensMorris.pieceArray[gamePlay.redArray[0]].getPiecePosition();\n\t\t\t\t\tgamePlay.B=SixMensMorris.pieceArray[gamePlay.redArray[1]].getPiecePosition();\n\t\t\t\t\tgamePlay.C=SixMensMorris.pieceArray[gamePlay.redArray[2]].getPiecePosition();\n\t\t\t\t\tgamePlay.redCountMill=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(humanChecker){\n\t\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\t\t\t\n\t\t\t\tif(computerColor){\n\t\t\t\t\tStdDraw.text(80, 820, \"Computer\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tStdDraw.text(920, 820, \"Computer\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tboolean fixer=true;\n\t\t\tif(humanChecker){\n\t\t\t\tfixer=SixMensMorris.whosFirst;\n\t\t\t}\n\t\t\tG=new gamePlay();\n\t\t\tG.createGame(redPieces,bluePieces,humanChecker, fixer,computerColor,\"cont\");//calls on the game so that they can proceed\n\t\t}\n\t\telse{//errors in the setup that the user gave\n\t\t\tif (redPieces < 3 || bluePieces < 3){//not enough pieces\n\t\t\t\tStdDraw.text(500, 125, \"There must be a minimum of 3 pieces for each color!\");\n\t\t\t}\n\t\t\tif (redPieces > 6 || bluePieces > 6){//too many pieces\n\t\t\t\tStdDraw.text(500, 75, \"There cannot be more than 6 pieces of a color!\");\n\t\t\t}\n\t\t\tFont font = new Font(\"Sans Serif\",Font.BOLD,16);\n\t\t\tStdDraw.setFont(font);\n\t\t\tStdDraw.text(500, 905, \"Please Restart Game!\");\n\t\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\t\tStdDraw.filledRectangle(910, 60, 50, 40);\n\t\t}\n\t\t\n\t\t\n\t}", "public void makeGraphic() {\n\t\tStdDraw.clear();\n\n\t\tfor (int i = 0; i < p.showArray.size(); i++) {\n\t\t\tStdDraw.setPenColor(0, 255, 255);\n\n\t\t\tStdDraw.circle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\t\t\tStdDraw.setPenColor(StdDraw.GRAY);\n\n\t\t\tStdDraw.filledCircle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\n\t\t}\n\t\tStdDraw.show();\n\t}", "private void draw() {\n GraphicsContext gc = canvas.getGraphicsContext2D();\n\n double size = getCellSize();\n Point2D boardPosition = getBoardPosition();\n\n // Clear the canvas\n gc.clearRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\n // Draw the grid\n gc.setStroke(Color.LIGHTGRAY);\n for (int i = 0; i <= board.getWidth(); i++) {\n gc.strokeLine(boardPosition.getX() + i * size, boardPosition.getY(),\n boardPosition.getX() + i * size, boardPosition.getY() + board.getHeight() * size);\n }\n\n for (int i = 0; i <= board.getHeight(); i++) {\n gc.strokeLine(boardPosition.getX(), boardPosition.getY() + i * size,\n boardPosition.getX() + board.getWidth() * size, boardPosition.getY() + i * size);\n }\n\n // Draw cells\n gc.setFill(Color.ORANGE);\n for (int i = 0; i < board.getWidth(); i++) {\n for (int j = 0; j < board.getHeight(); j++) {\n if (board.isAlive(i, j)) {\n gc.fillRect(boardPosition.getX() + i * size, boardPosition.getY() + j * size, size, size);\n }\n }\n }\n }", "private void action() {\r\n moveSnake();\r\n if (hasEatenPowerUp() == false) checkForCollisionWithSelf();\r\n if (hasHitBoundry() == false) redraw();\r\n }", "public void setBlackAndWhite()\n {\n if (wall != null) // only if it's painted already...\n {\n wall.changeColor(\"black\");\n window.changeColor(\"white\");\n roof.changeColor(\"black\");\n sun.changeColor(\"black\");\n }\n }", "public void draw() {\n //Grey background, which removes the tails of the moving elements\n background(0, 0, 0);\n //Running the update function in the environment class, updating the positions of stuff in environment\n //update function is a collection of the methods needing to be updated\n if(stateOfProgram == 0) { startTheProgram.update(); }\n if(stateOfProgram == 1) {\n theEnvironment.update();\n //update function is a collection of the methods needing to be updated\n //Running the update function in the Population class, updating the positions and states of the rabbits.\n entitiesOfRabbits.update();\n entitiesOfGrass.update();\n entitiesOfFoxes.update();\n\n entitiesOfRabbits.display();\n entitiesOfGrass.display();\n entitiesOfFoxes.display();\n openGraph.update();\n }\n }", "public void setBlackAndWhite()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"black\");\n window.changeColor(\"white\");\n roof.changeColor(\"black\");\n sun.changeColor(\"black\");\n }\n }", "public void setBlackAndWhite()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"black\");\n window.changeColor(\"white\");\n roof.changeColor(\"black\");\n sun.changeColor(\"black\");\n }\n }", "@Override\n\t protected void paintComponent(Graphics g) {\n\t super.paintComponent(g);\n\t for (int y = 0; y < MAX_Y; y++) {\n\t for (int x = 0; x < MAX_X; x++) { \n\t if(seed[x][y].isAlive) {\n\t g.setColor(FILL_COLOR);\n\t g.fillRect(x * CELL_WIDTH, y * CELL_WIDTH, CELL_WIDTH, CELL_WIDTH);\n\t }\n\t else{\n\t g.setColor(defaultBackground);\n\t g.fillRect(x * CELL_WIDTH, y * CELL_WIDTH, CELL_WIDTH, CELL_WIDTH);\n\t }//end if..\n\t g.setColor(Color.GRAY);\n\t g.drawRect(x * CELL_WIDTH, y * CELL_WIDTH, CELL_WIDTH, CELL_WIDTH);\n\t }//end for x\n\t }//end for y\n\t }", "private void drawFireworks() {\n\t\tgc.setFill(BACKGROUND_COLOUR);\r\n\t\tgc.fillRect(0, 0, canvas.getWidth(), canvas.getHeight());\r\n\t\tif (fireworks.size() > 0){\r\n\t\t\tfor (Particle firework : fireworks) {\r\n\t\t\t\t// Get the position for the Particle\r\n\t\t\t\tdouble[] pos = firework.getPosition();\r\n\t\t\t\tif (firework instanceof Streak){\r\n\t\t\t\t\t// Streaks are lines from the firework to the origin\r\n\t\t\t\t\tdouble[] origin = ((Streak) firework).getOrigin();\r\n\t\t\t\t\tgc.setFill(spreadColor(firework.getColour()));\r\n\t\t\t\t\tgc.strokeLine(xPos(origin[0]),yPos(origin[1]),xPos(pos[0]),yPos(pos[1]));\r\n\t\t\t\t}\r\n\t\t\t\telse if (firework instanceof BurningParticle){\r\n\t\t\t\t\t// Burning Particles are the stars themselves\r\n\t\t\t\t\t// Saves the star object to test for a collision later\r\n\t\t\t\t\tStar1 = (BurningParticle) firework.clone();\r\n\t\t\t\t\tgc.setFill(firework.getColour());\r\n\t\t\t\t\tgc.fillOval(xPos(pos[0]),yPos(pos[1]), 6, 6);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Everything else is a spark and can have a random color / transparency \r\n\t\t\t\t\tgc.setFill(spreadColor(firework.getColour()));\r\n\t\t\t\t\tgc.fillOval(xPos(pos[0]),yPos(pos[1]), 1 + 3*Math.random(), 1 + 3*Math.random());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// update the current time and the fireworks attribute\r\n\t\t\ttime = (time + TIME_INTERVAL);\r\n\t\t\tfireworks = manager1.getFireworks(time);\r\n\t\t}\r\n\t}" ]
[ "0.68090785", "0.6596813", "0.6560354", "0.6531604", "0.64711326", "0.6406957", "0.62386525", "0.6082556", "0.6037867", "0.6008714", "0.6003411", "0.5999755", "0.59747016", "0.59700215", "0.59522486", "0.59389913", "0.59311205", "0.59249896", "0.58654886", "0.58652467", "0.5810838", "0.57742053", "0.5770832", "0.5759857", "0.57505554", "0.5717496", "0.5714927", "0.5708376", "0.56978303", "0.569425", "0.56867397", "0.56764525", "0.565498", "0.5653774", "0.56436145", "0.5639767", "0.56318563", "0.56157094", "0.56092554", "0.56042516", "0.56016976", "0.55806535", "0.55767435", "0.5572719", "0.5570535", "0.55647016", "0.5561295", "0.5556001", "0.5555467", "0.55529606", "0.55475134", "0.5545813", "0.554497", "0.5525488", "0.5523593", "0.55234265", "0.54983836", "0.5487542", "0.54834723", "0.548214", "0.5477552", "0.5473125", "0.54659843", "0.5465131", "0.54592645", "0.545105", "0.54415303", "0.54405344", "0.5437294", "0.5437278", "0.5431209", "0.5430279", "0.5428968", "0.54262406", "0.54249513", "0.54248744", "0.5420204", "0.54028654", "0.53952295", "0.5391226", "0.53854215", "0.53817415", "0.5375464", "0.53748256", "0.53722876", "0.53623855", "0.5361908", "0.5357836", "0.53502697", "0.5347843", "0.5346065", "0.5344484", "0.5339419", "0.5325915", "0.53257245", "0.5324595", "0.53116614", "0.53116614", "0.5309819", "0.5306744" ]
0.78516597
0
The read scores from file function looks at a file of high scores and fills the list of high scores found in the game with these high scores.
public void readScoresFromFile(File f) throws IOException, FileNotFoundException{ BufferedReader br = null; try{ FileReader fr = new FileReader(f); br = new BufferedReader(fr); String str = br.readLine(); for (int count = 0; count < scores.length; count++){ scores[9-count] = new HighScore(str, SEPARATOR); str = br.readLine(); } } catch (Exception ex){ System.err.println("Trouble with file: "+ex.getMessage()); } finally { try{ if (br != null){ br.close(); } } catch (Exception ex1){ ex1.printStackTrace(); System.exit(-1); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFile(){\n try {\n highscores = new ArrayList<>();\n BufferedReader br = new BufferedReader(new FileReader(\"Highscores.txt\"));\n String line = br.readLine();\n while (line != null){\n try{\n highscores.add(Integer.parseInt(line));\n } catch (NumberFormatException e){}\n line = br.readLine();\n }\n br.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"No file found\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void loadScores() {\n try {\n File f = new File(filePath, highScores);\n if(!f.isFile()){\n createSaveData();\n }\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n\n topScores.clear();\n topName.clear();\n\n String[] scores = reader.readLine().split(\"-\");\n String[] names = reader.readLine().split(\"-\");\n\n for (int i =0; i < scores.length; i++){\n topScores.add(Integer.parseInt(scores[i]));\n topName.add(names[i]);\n }\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void readScoreFromFile(){\n\t\tString line;\n\t\tString[] temp;\n\t\ttry{\n\t\t\tFileReader f = new FileReader(\"conversation_file.txt\");\n\t\t\tBufferedReader b = new BufferedReader(f);\n\t\t\tif((line = b.readLine()) != null){\n\t\t\t\ttemp = line.split(\" \", -1);\n\t\t\t\thighScore = Integer.parseInt(temp[1]);\n\t\t\t\thighScorer = temp[0];\n\t\t\t}\n\t\t} catch (IOException e){\n\t\t\tSystem.out.println(\"File Not Found.\");\n\t\t}\n\t\tSystem.out.println(\"File read, highScore \" + highScore + \" saved.\");\n\t}", "private void readScores() {\n final List<Pair<String, Integer>> list = new LinkedList<>();\n try (DataInputStream in = new DataInputStream(new FileInputStream(this.file))) {\n while (true) {\n /* reads the name of the player */\n final String name = in.readUTF();\n /* reads the score of the relative player */\n final Integer score = Integer.valueOf(in.readInt());\n list.add(new Pair<String, Integer>(name, score));\n }\n } catch (final Exception ex) {\n }\n this.sortScores(list);\n /* if the list was modified by the cutting method i need to save it */\n if (this.cutScores(list)) {\n this.toSave = true;\n }\n this.list = Optional.of(list);\n\n }", "private ArrayList<Score> getScoreFromFile() {\n ArrayList<Score> scores = new ArrayList<>();\n\n // Read line by line.\n try (Stream<String> stream = Files.lines(Paths.get(\"src/main/resources/score-file.txt\"))) {\n stream.forEach(s -> {\n String[] line = s.split(\" \");\n Score score = new Score(Integer.parseInt(line[0]), line[1]);\n scores.add(score);\n });\n } catch (IOException e) {\n System.err.println(\"Cannot open the score file : \" + e.getMessage());\n }\n\n return scores;\n }", "public void loadScoreFile() {\n try {\n inputStream = new ObjectInputStream(new FileInputStream(HIGHSCORE_FILE));\n scores = (ArrayList<Score>) inputStream.readObject();\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } catch (ClassNotFoundException e) {\n } finally {\n try {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }", "private void readFile() {\n\t\tint newPlayerScore = level.animal.getPoints();\n\t\t\n\t\tlevel.worDim = 30;\n\t\tlevel.wordShift = 25;\n\t\tlevel.digDim = 30;\n\t\tlevel.digShift = 25;\n\t\t\n\t\tfor( int y =0; y<10; y++ ) { //display placeholder numbers\n\t\t\tfor( int x=0; x<4; x++ ) {\n\t\t\t\tbackground.add(new Digit( 0, 30, 470 - (25*x), 200 + (35*y) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry { //display highscores from highscores.txt\n\t\t\tScanner fileReader = new Scanner(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tint loopCount = 0;\n\t\t\twhile( loopCount < 10 ) {\n\t\t\t\tString playerName = fileReader.next() ;\n\t\t\t\tString playerScore = fileReader.next() ;\n\t\t\t\tint score=Integer.parseInt(playerScore);\n\t\t\t\t\n\t\t\t\tif( newPlayerScore >= score && newHighScore == false ) {\n\t\t\t\t\tstopAt = loopCount;\n\t\t\t\t\tnewHighScore = true;\n\t\t\t\t\tlevel.wordY = 200 + (35*loopCount);\n\t\t\t\t\t\n\t\t\t\t\tpointer = new Icon(\"pointer.png\", 30, 75, 200 + (35*loopCount) );// add pointer indicator\n\t\t\t\t\tbackground.add( pointer ); \n\t\t\t\t\tlevel.setNumber(newPlayerScore, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}else {\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}\n\t\t\t}//end while\n\t\t\tfileReader.close();\n\t\t\tif( newHighScore ) {\n\t\t\t\tnewHighScoreAlert();\n\t\t\t}else {\n\t\t\t\tgameOverAlert();\n\t\t\t}\n } catch (Exception e) {\n \tSystem.out.print(\"ERROR: Line 168: Unable to read file\");\n //e.printStackTrace();\n }\n\t}", "public HighScores(){\r\n\t\tHighScores objRead = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// lendo o arquivo de melhores pontuacoes\r\n\t\t\tFileInputStream fis = new FileInputStream(highScoresFilename);\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\tobjRead = (HighScores) ois.readObject();\r\n\t\t\tois.close();\r\n\t\t} catch (Exception e){\r\n\t\t\t// caso o arquivo nao possa ser lido\r\n\t\t\tobjRead = null;\r\n\t\t} finally {\r\n\t\t\tif (objRead != null){\r\n\t\t\t\tthis.scoreNumber = objRead.scoreNumber;\r\n\t\t\t\tthis.highScores = objRead.highScores;\r\n\t\t\t} else {\r\n\t\t\t\tthis.highScores = new Score[scoreNumber];\r\n\t\t\t\tfor (int i = 0; i < scoreNumber; i++)\r\n\t\t\t\t\thighScores[i] = new Score(\"\", Integer.MIN_VALUE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean loadHighscores() {\n this.fileName = \"HS\" + this.gameMode + this.difficultyLevel + \".txt\";\n File file = new File(context.getFilesDir(), fileName);\n Scanner input;\n try{\n if(!file.exists()) {\n return false;\n }\n input = new Scanner(file);\n String line;\n highScoreList.clear();\n while(input.hasNextLine()) {\n line = input.nextLine();\n String[] parts = line.split(\"\\\\~\\\\$\\\\~\");\n if(parts.length != 2) {\n //File is corrupt.\n System.out.println (\"File \" + this.fileName + \" is corrupt\");\n return false;\n }\n String name = parts[0];\n int score = Integer.parseInt(parts[1]);\n User user = new User(name, score);\n highScoreList.add(user);\n }\n input.close();\n }catch (IOException ex) {\n System.out.println(ex.toString());\n return false;\n }\n\n return true;\n }", "private ArrayList<Person> getScores() {\n ArrayList<Person> persons = new ArrayList<>(); \n\n try {\n \t//The file is selected and then a reader is created to read the file\n File myObj = new File(\"highscores.txt\");\n Scanner myReader = new Scanner(myObj);\n\n //This constraint checks for a next available line and adds the variable data to this line. Data contains the name and score of the person. \n //The splitter is used to separate the name and score of the person, which is then added to the person Array. Then the reader is closed.\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n int splitterIndex = data.indexOf(\"-\");\n persons.add(new Person(data.substring(0, splitterIndex), parseInt((data.substring(splitterIndex + 1)))));\n }\n myReader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return persons;\n }", "public HighScore[] getHighScores()\n\t{\n\t\tif (!new File(\"HighScores.dat\").exists())\n\t\t\tinitializeFile();\n\t\ttry \n\t\t{\n\t\t\tObjectInputStream o=new ObjectInputStream(new FileInputStream(\"HighScores.dat\"));\n\t\t\tHighScore[] h=(HighScore[]) o.readObject();\n\t\t\treturn h;\n\t\t} catch (IOException e) {e.printStackTrace();} \n\t\tcatch (ClassNotFoundException e) {e.printStackTrace();}\n\t\treturn null;\n\t}", "private void loadHighScore() {\n this.myHighScoreInt = 0;\n \n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) { \n FileReader in = null;\n BufferedReader br = null;\n try {\n in = new FileReader(higheScoreFilePath.toString());\n br = new BufferedReader(in);\n String scoreAsString = br.readLine();\n if (scoreAsString != null) {\n scoreAsString = scoreAsString.trim();\n this.myHighScoreInt = Integer.parseInt(scoreAsString);\n }\n } catch (final FileNotFoundException e) {\n emptyFunc();\n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n if (in != null) {\n in.close();\n }\n if (br != null) {\n br.close();\n }\n } catch (final IOException e) { \n emptyFunc();\n } \n } else {\n try {\n f.createNewFile();\n } catch (final IOException e) {\n return;\n }\n }\n }", "public static ArrayList<String> getAllScores() throws FileNotFoundException, IOException {\n File file = new File(SCORE_FILE_NAME);\n FileInputStream fis = new FileInputStream(file);\n BufferedInputStream bis = new BufferedInputStream(fis);\n BufferedReader reader = new BufferedReader(new InputStreamReader(bis));\n \n ArrayList<String> listOfScores = new ArrayList<>();\n boolean keepReading = true;\n while (keepReading) {\n String line = reader.readLine();\n if (line == null)\n keepReading = false;\n else\n listOfScores.add(line); \n }\n\n fis.close();\n bis.close();\n reader.close();\n \n return listOfScores;\n }", "public void load(File filename) throws IOException {\n HighScoresTable scoresTable = loadFromFile(filename);\n this.scoreInfoList.clear();\n this.scoreInfoList = scoresTable.scoreInfoList;\n }", "public void updateScores() {\n ArrayList<String> temp = new ArrayList<>();\n File f = new File(Const.SCORE_FILE);\n if (!f.exists())\n try {\n f.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n FileReader reader = null;\n try {\n reader = new FileReader(Const.SCORE_FILE);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line = null;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n temp.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n String[][] res = new String[temp.size()][];\n\n for (int i = 0; i < temp.size() ; i++) {\n res[i] = temp.get(i).split(\":\");\n }\n try {\n bufferedReader.close();\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n scores = res;\n }", "public static HighScoresTable loadFromFile(File filename) {\n HighScoresTable newScoresTable = new HighScoresTable(4);\n ObjectInputStream inputStream = null;\n try {\n inputStream = new ObjectInputStream(new FileInputStream(filename));\n List<ScoreInfo> scoreFromFile = (List<ScoreInfo>) inputStream.readObject();\n if (scoreFromFile != null) {\n //scoreFromFile.clear();\n newScoresTable.scoreInfoList.addAll(scoreFromFile);\n }\n } catch (FileNotFoundException e) { // Can't find file to open\n System.err.println(\"Unable to find file: \" + filename);\n //return scoresTable;\n } catch (ClassNotFoundException e) { // The class in the stream is unknown to the JVM\n System.err.println(\"Unable to find class for object in file: \" + filename);\n //return scoresTable;\n } catch (IOException e) { // Some other problem\n System.err.println(\"Failed reading object\");\n e.printStackTrace(System.err);\n //return scoresTable;\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException e) {\n System.err.println(\"Failed closing file: \" + filename);\n }\n }\n return newScoresTable;\n\n\n }", "public HighScore() {\n try {\n BufferedReader a = new BufferedReader(new FileReader(\"points.txt\"));\n BufferedReader b = new BufferedReader(new FileReader(\"names.txt\"));\n ArrayList<String> temp = new ArrayList(0);\n temp = createArray(a);\n names = createArray(b);\n a.close();\n b.close();\n for (String x : temp) {\n points.add(Integer.valueOf(x));\n }\n\n\n }catch (IOException e)\n {}\n\n }", "public HighScore(){\n readFile();\n sortHighscores();\n }", "public void load(File filename) throws IOException {\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n HighScoresTable table = (HighScoresTable) ois.readObject();\n ois.close();\n this.capacity = table.size();\n this.highScores = table.getHighScores();\n } catch (IOException e) {\n throw e;\n } catch (ClassNotFoundException e2) {\n System.out.println(e2);\n this.capacity = HighScoresTable.DEFAULT_CAPACITY;\n this.highScores.clear();\n System.out.println(\"table has been cleared. new size is: \" + HighScoresTable.DEFAULT_CAPACITY);\n }\n }", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void loadScores(final String worldName) {\n\t\tFile file = Hello.getPlugin().getServer().getWorldContainer();\n\t\tFile worldFolder = new File(file, worldName);\n\t\tFile path = new File(worldFolder, PERSISTANCE_FILE);\n\t\t\n\t\t//if Highscore doesn't exist, don't try loading it \n\t\tif (!path.exists()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tReader reader = Files.newReader(path, Charset.defaultCharset());\n\t\t\n\t\t\n\t\t\tYaml yaml = new Yaml(YamlSerializable.YAML_OPTIONS);\t\n\t\t\t\n\t\t\tMap<String, Object> values = (Map<String, Object>) yaml.load(reader);\n\t\t\t\n\t\t\tList<Map<String, Object>> entries = (List<Map<String, Object>>) values.get(KEY_SCORES);\n\t\t\tfor (Map<String, Object> scoreMap : entries) {\n\t\t\t\tHighscoreEntry entry = new HighscoreEntry();\n\t\t\t\ttry {\n\t\t\t\t\tentry.setup(new PersistenceMap(scoreMap));\n\t\t\t\t} catch (PersistenceException e) {\n\t\t\t\t\tSystem.out.println(\"persistance exception in highscore\");\n\t\t\t\t}\n\t\t\t\tscores.add(entry);\n\t\t\t}\n\t\t\tCollections.sort(scores);\n\t\t\tSystem.out.println(\"sort\");\n\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void updateScores(BattleGrid player) {\n\t String fileName = SCORE_FILE_NAME;\n\t ArrayList<String> listOfScores = new ArrayList<String>(); //Also contains player names\n\t \n\t //First read old content of file and place in string ArrayList\n\t try {\n\t FileReader readerStream = new FileReader(fileName);\n\t BufferedReader bufferedReader = new BufferedReader(readerStream);\n\t \n\t //Read First Line\n\t String readLine = bufferedReader.readLine();\n\t \n\t while(readLine != null) {\n\t listOfScores.add(readLine);\n\t readLine = bufferedReader.readLine();\n\t }\n\t \n\t readerStream.close();\n\t }\n\t catch (IOException e) {\n\t //Situation where file was not able to be read, in which case we ignore assuming we create a new file.\n\t System.out.println(\"Failed to create stream for reading scores. May be ok if its the first time we set scores to this file.\");\n\t \n\t }\n\t \n\t //Determine location of new player (if same score then first in has higher ranking)\n\t int playerScore = player.getPlayerScore();\n\t int storedPlayerScore;\n\t ArrayList<String> lineFields = new ArrayList<String>();\n\t \n\t //Run code only if there are scores previously in file and the name of the user is not null\n\t if (!listOfScores.isEmpty() && (player.name != null)) {\n\t for (int index = 0; index < listOfScores.size(); index++) {\n\t //Retrieve String array of fields in line\n\t lineFields = (returnFieldsInLine(listOfScores.get(index)));\n\t \n\t //Convert score from string to int (2nd element)\n\t storedPlayerScore = Integer.parseInt(lineFields.get(1));\n\t lineFields.clear(); //Clear out for next set\n\t \n\t //Compare with new score to be added and inserts, shifting old element right\n\t if (storedPlayerScore < playerScore) {\t \n\t listOfScores.add(index, player.name + DELIMITER + playerScore);\t \n\t\t break; //Once we found the correct location we end the loop\n\t } \n\t }\n\t }\n\t //When it's the first code to be entered\n\t else\n\t listOfScores.add(player.name + DELIMITER + playerScore);\n\t \n\t //Delete old content from file and add scores again with new one.\n\t try {\n\t FileWriter writerStream = new FileWriter(fileName);\n\t PrintWriter fileWriter = new PrintWriter(writerStream);\n\t \n\t for (String index : listOfScores) {\n\t fileWriter.println(index);\n\t }\n\t \n\t writerStream.close(); //Resource Leaks are Bad! :(\n\t }\n\t catch (IOException e) {\n\t System.out.println(\"Failed to create stream for writing scores.\");\n\t } \n\t \n\t }", "public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void getscores() {\n\t\tInputStream in = null;\n\t\t//String externalStoragePath= Environment.getExternalStorageDirectory()\n // .getAbsolutePath() + File.separator;\n\t\t\n try {\n \tAssetManager assetManager = this.getAssets();\n in = assetManager.open(\"score.txt\");\n \tSystem.out.println(\"getting score\");\n //in = new BufferedReader(new InputStreamReader(new FileInputStream(externalStoragePath + \"score.txt\")));\n \n \tGlobalVariables.topScore = Integer.parseInt(new BufferedReader(new InputStreamReader(in)).readLine());\n System.out.println(\"topscore:\"+GlobalVariables.topScore);\n \n\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (NumberFormatException e) {\n // :/ It's ok, defaults save our day\n \tSystem.out.println(\"numberformatexception score\");\n } finally {\n try {\n if (in != null)\n in.close();\n } catch (IOException e) {\n }\n }\n\t}", "public static boolean checkAndWriteHighScore() {\n\t\tString file = \"file:highScore.txt\";\n\t int highScore = 0;\n\t try {\n\t BufferedReader reader = new BufferedReader(new FileReader(file));\n\t String line = reader.readLine();\n\t while (line != null) // read the score file line by line\n\t {\n\t try {\n\t int oldScore = Integer.parseInt(line.trim()); // parse each line as an int\n\t if (oldScore > highScore){ \n\t highScore = oldScore; \n\t }\n\t } catch (NumberFormatException e1) {\n\t // ignore invalid scores\n\t //System.err.println(\"ignoring invalid score: \" + line);\n\t }\n\t line = reader.readLine();\n\t }\n\t reader.close();\n\n\t } catch (IOException ex) {\n\t System.err.println(\"ERROR reading scores from file\");\n\t }\n\t \n\t \n\t FileWriter myWriter;\n\t\ttry {\n\t\t\tmyWriter = new FileWriter(file);\n\t\t\tmyWriter.write(\"\" + points.get());\n\t\t\tmyWriter.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (points.get() > highScore) {\n\t\t\treturn true;\n\t\t}\n\t return false;\n\t}", "public void writeScores(){\r\n // TODO: Write the high scores data to the file name indicated\r\n // TODO: by Settings.highScoresFileName.\r\n \tFile outFile=new File(Settings.highScoresFileName);\r\n \tPrintWriter out=null;\r\n \ttry{\r\n \t\tout=new PrintWriter(outFile);\r\n \t\tfor(int i=0; i<Settings.numScores; i++){\r\n \t\t\tout.println(scores[i]+\" \"+names[i]);\r\n \t\t}\r\n \t}catch(Exception e){} \t\r\n \tfinally{\r\n \t\tif(out!=null) out.close();\r\n }\r\n }", "public static void highScore(int score){\r\n\t\tString newName =\"\";\r\n\t\tif( score <11){\r\n\t\t\tScanner keyboard = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"Congratulations! You got a high score!\");\r\n\t\t\tSystem.out.println(\"Enter your Name!\");\r\n\t\t\tnewName = keyboard.nextLine();\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tString line = \"\";\r\n\t\t\t\tPrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(\"scoreList.temp\")));\r\n\t\t\t\tBufferedReader in = new BufferedReader(new FileReader(new File(\"scoreList.txt\")));\r\n\t\t\t\tint lineNum = 1;\r\n\t\t\t\tString temp = \"\";\r\n\t\t\t\twhile((line = in.readLine()) != null && lineNum <11){\r\n\t\t\t\t\t//replace the line with the new high score\r\n\t\t\t\t\t if (lineNum == score) {\r\n\t\t\t\t\t\t temp = line;\r\n\t\t\t\t\t\t line = newName;\r\n\t\t\t\t\t\t writer.println(line);\r\n\t\t\t\t\t\t lineNum++;\r\n\t\t\t\t\t\t //push the rest of the names down one\r\n\t\t\t\t\t\t while((line = in.readLine()) != null && lineNum <11){\r\n\t\t\t\t\t\t writer.println(temp);\r\n\t\t\t\t\t\t temp=line;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t writer.println(line);\r\n\t\t\t\t\t lineNum++;\r\n\t\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t\twriter.close();\r\n\t\t\t\t\tin.close();\r\n\t\t\t\t\t// ... and finally ...\r\n\t\t\t\t\tFile realName = new File(\"scoreList.txt\");\r\n\t\t\t\t\trealName.delete(); // remove the old file\r\n\t\t\t\t\t// Rename temp file\r\n\t\t\t\t\tnew File(\"scoreList.temp\").renameTo(realName); // Rename temp file\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry{\r\n\t\t BufferedReader in = new BufferedReader(new FileReader(new File(\"scoreList.txt\")));\r\n\t\t System.out.println(\"The High Scores are: \");\r\n\t\t for(int i = 1; i < 11; i++){\r\n\t\t\t String data = in.readLine();\r\n\t\t\t System.out.println(\"#\" +i+\" \" + data);\r\n\t\t }\r\n\t\t in.close();\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void fileReadGameHistory(String filename)\n {\n \t//ArrayList<GameObject> gameObject = new ArrayList<>();\n\t\tFileReader file = null;\n\t\ttry {\n\t\t\tfile = new FileReader(filename);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(filename);\n\t\tBufferedReader br = new BufferedReader(file);\n\t\tString s = \"\";\n\t\ttry\n\t\t{\n\t\t\twhile((s = br.readLine()) != null )\n\t\t\t{\n\t\t\t\tString[] prop1 = s.split(\"#\");\n\t\t\t\tSystem.out.println(prop1[0] + \" fgdfsgfds \" + prop1[1]);\n\t\t\t\tString indexOfList = prop1[0];\n\t\t\t\tString[] prop2 = prop1[1].split(\",\");\n\t\t\t\tString[] prop3;\n\t\t\t\tString[] prop4 = indexOfList.split(\";\");\n\t\t\t\t//gameObject.add(new GameObject(indexOfList));\n\t\t\t\tcount = count +1;\n\t\t\t\texistCount = existCount + 1;\n\t\t\t\tif (indexOfList.charAt(0) == 's')//when this line is data of a swimming game\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(prop4[0]);\n\t\t\t\t\tgames.add(new Swimming(prop4[1],\"Swimming\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'c')//when this line is data of a cycling game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Cycling(prop4[1],\"Cycling\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'r')//when this line is data of a running game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Running(prop4[1],\"Running\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "public void populateList(){\n\t\tfor (int i = 0; i < 10; i++){\n\t\t\tscoreList.add(-1);\t\t\t\n\t\t\tnameList.add(\"\");\n\t\t}\n\t\tint i=0; \n\t\ttry {\n\t\t\tScanner results = new Scanner(new File(\"results.txt\"));\n\t\t\twhile (results.hasNext()){\n\t\t\t\tnameList.set(i, results.next());\n\t\t\t\tscoreList.set(i, results.nextInt());\n\t\t\t\ti++;\n\t\t\t}\n\t\t} catch (FileNotFoundException e1){\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public void loadDataFromFile(String name) throws FileNotFoundException {\n\t\tFileReader reader = new FileReader(name);\n\t\tScanner in = new Scanner(reader);\n\t\twhile(in.hasNextLine()) {\n\t\t\tString readName = \"\";\n\t\t\tString readScore = \"\";\n\t\t\tint intScore = 0;\n\t\t\treadName = in.nextLine();\n\t\t\treadScore = in.nextLine();\n\t\t\ttry {\n\t\t\tintScore = Integer.parseInt(readScore);\n\t\t\t}\n\t\t\tcatch(NumberFormatException e){\n\t\t\t\tSystem.out.println(\"Incorrect format for \" + readName + \" not a valid score: \" + readScore);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tstudents.add(new Student(readName,intScore));\n\t\t}\n\t}", "public static void maybeAddNewHighScore(String name, double score) throws FileNotFoundException, IOException {\n ArrayList<String> scoresAsStrings = getAllScores();\n ArrayList<HighScore> scoresAsScores = new ArrayList<>();\n \n //if there aren't enough scores, something is wrong - replace the score file with the example scores\n if (scoresAsStrings.size() < NUMBER_OF_SCORES_TO_SAVE) {\n for (String s : EXAMPLE_SCORES) {\n scoresAsStrings.add(s);\n }\n }\n \n //Parse the strings into high score objects\n for (String s : scoresAsStrings) {\n HighScore hs = new HighScore(s);\n scoresAsScores.add(hs);\n }\n \n HighScore userScore = new HighScore(name, score);\n \n //Add the user's score, sort the list of scores, then take the first 10\n scoresAsScores.add(userScore);\n Collections.sort(scoresAsScores);\n \n //Take the first 10 and write them to the file\n HighScore[] listOfScoresToSave = new HighScore[NUMBER_OF_SCORES_TO_SAVE];\n for (int i = 0; i < NUMBER_OF_SCORES_TO_SAVE; i++) {\n listOfScoresToSave[i] = scoresAsScores.get(i);\n }\n \n writeToFile(listOfScoresToSave);\n }", "private static void calculateLeaderboardScores (Level level) {\r\n\r\n ArrayList<Integer> userScores = new ArrayList<>();\r\n ArrayList<String> userNames = new ArrayList<>();\r\n\r\n File path = new File(\"Users/\");\r\n\r\n File[] files = path.listFiles();\r\n assert files != null;\r\n\r\n for (File file : files) {\r\n File scoresFile = new File(file + \"/scores.txt\");\r\n\r\n userNames.add(file.getPath().substring(6));\r\n userScores.add(returnLevelScore(level, scoresFile));\r\n }\r\n\r\n leaderboardUsers = userNames;\r\n leaderboardScores = userScores;\r\n }", "static int [] readFile() throws IOException {\n\n // Scanner used to get name of file from user\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter the name of your file: \");\n String name = in.nextLine();\n\n File file = new File(name); \n \n // Scanner used to read file\n Scanner inputFile = new Scanner(file); \n // reads first line of file for length of array\n int x = inputFile.nextInt();\n\n //Creates array \n int [] scores = new int[x]; \n\n for (int i=0; i<x; i++) {\n int value = inputFile.nextInt();\n scores[i] = value;\n }\n inputFile.close();\n in.close();\n return scores; \n }", "private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "public void testWithScoreFile(String testFile, String scoreFile) {\n/* 1108 */ try (BufferedReader in = FileUtils.smartReader(scoreFile)) {\n/* 1109 */ List<RankList> test = readInput(testFile);\n/* 1110 */ String content = \"\";\n/* */ \n/* 1112 */ List<Double> scores = new ArrayList<>();\n/* 1113 */ while ((content = in.readLine()) != null) {\n/* */ \n/* 1115 */ content = content.trim();\n/* 1116 */ if (content.compareTo(\"\") == 0)\n/* */ continue; \n/* 1118 */ scores.add(Double.valueOf(Double.parseDouble(content)));\n/* */ } \n/* 1120 */ in.close();\n/* 1121 */ int k = 0;\n/* 1122 */ for (int i = 0; i < test.size(); i++) {\n/* */ \n/* 1124 */ RankList rl = test.get(i);\n/* 1125 */ double[] s = new double[rl.size()];\n/* 1126 */ for (int j = 0; j < rl.size(); j++)\n/* 1127 */ s[j] = ((Double)scores.get(k++)).doubleValue(); \n/* 1128 */ rl = new RankList(rl, MergeSorter.sort(s, false));\n/* 1129 */ test.set(i, rl);\n/* */ } \n/* */ \n/* 1132 */ double rankScore = evaluate(null, test);\n/* 1133 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* 1134 */ } catch (IOException e) {\n/* 1135 */ throw RankLibError.create(e);\n/* */ } \n/* */ }", "String readScore(){\n try\n {\n char[] allAtOnce = new char[(int)scores.length()];\n int charsRead = fr.read(allAtOnce);\n currentScores = String.valueOf(allAtOnce);\n fr.close();//close the file\n fr = new BufferedReader(new FileReader(scores));\n }\n \n catch(IOException e)\n {\n e.printStackTrace();\n }\n return (String.valueOf(currentScores));\n }", "private HashMap<Integer, ScoreList> readRanking() throws Exception {\n\n HashMap<Integer, ScoreList> output = new HashMap<>();\n ScoreList scores = new ScoreList();\n File rankingFile = new File(this.fbInitialRankingFile);\n int prevId = -1;\n\n if(!rankingFile.canRead())\n throw new IllegalArgumentException(\"Can't read \" + this.fbInitialRankingFile);\n\n Scanner scan = new Scanner(rankingFile);\n String line = null;\n do {\n line = scan.nextLine();\n String[] tuple = line.split(\" \");\n int qid = Integer.parseInt(tuple[0]);\n\n // initialize a ScoreList for a new query\n if(qid != prevId) {\n\n if(scores.size() != 0)\n output.put(prevId, scores);\n\n scores = new ScoreList();\n prevId = qid;\n }\n// System.out.println(String.format(\"qid: %d, docid: %d, score: %.11f\", qid, Idx.getInternalDocid(tuple[2]), Double.parseDouble(tuple[4])));\n scores.add(Idx.getInternalDocid(tuple[2]), Double.parseDouble(tuple[4]));\n } while(scan.hasNext());\n\n scan.close();\n output.put(prevId, scores);\n return output;\n }", "void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void readFile(String filename) throws IOException {\n BufferedReader buffer = new BufferedReader(new FileReader(filename));\n\n String line;\n int row = 0;\n isFirstLine = true;\n\n while ((line = buffer.readLine()) != null) {\n String[] vals = line.trim().split(\"\\\\s+\");\n int length = vals.length;\n \n if(isFirstLine) {\n \tfor(int col = 0; col < 2; col++) {\n \t\tif(col == 0)\n \t\t\trowSize = Integer.parseInt(vals[col]);\n \t\telse\n \t\t\tcolSize = Integer.parseInt(vals[col]);\n \t}\n \tskiMap = new int[rowSize][colSize];\n \tisFirstLine = false;\n }\n else {\n \tfor (int col = 0; col < length; col++) {\n \tskiMap[row][col] = Integer.parseInt(vals[col]);\n }\n \t row++;\n }\n }\n \n if(buffer != null)\n \tbuffer.close();\n }", "public void saveScores(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(topScores.get(0) + \"-\" + topScores.get(1) + \"-\" + topScores.get(2) + \"-\" + topScores.get(3) + \"-\" + topScores.get(4));\n writer.newLine();\n writer.write(topName.get(0) + \"-\" + topName.get(1) + \"-\" + topName.get(2) + \"-\" + topName.get(3) + \"-\" + topName.get(4));\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic ScoresByPlayer read(File file, LeaguePosition leaguePosition) throws IOException {\r\n\r\n\t\tfinal ScoresByPlayer scoresByPlayer = new ScoresByPlayer();\r\n\r\n\t\t// Open file\r\n\t\tfinal CSVReader reader = new CSVReader(new FileReader(file));\r\n\r\n\t\t// Read first line\r\n\t\tfinal String[] firstLine = reader.readNext();\r\n\t\tLOGGER.debug(\"Read first line: \" + Arrays.asList(firstLine));\r\n\r\n\t\tString[] line;\r\n\t\twhile ((line = reader.readNext()) != null) {\r\n\r\n if ((line[0] == null) || \"\".equals(line[0])) {\r\n LOGGER.debug(\"Read (and ignored) line: \" + Arrays.asList(line));\r\n continue; // empty line so ignore it.\r\n }\r\n\r\n LOGGER.debug(\"Read line: \" + Arrays.asList(line));\r\n\r\n final Athlete athlete = new Athlete(transformer.getAthleteName(line));\r\n final Collection<Integer> scores = transformer.getScores(line);\r\n\t\t\tfinal PlayerScores playerPositionScores = new PlayerScores(athlete, leaguePosition, scores);\r\n\r\n\t\t\t// Exception if already exists\r\n\t\t\tif (scoresByPlayer.hasScoresFor(playerPositionScores.getAthlete(), playerPositionScores.getLeaguePosition())) {\r\n\t\t\t\tthrow new IOException(\"Duplicate set of averages for Athlete : \" + playerPositionScores.getAthlete());\r\n\t\t\t}\r\n\r\n\t\t\tLOGGER.debug(\" transformed to : \" + playerPositionScores);\r\n\t\t\tscoresByPlayer.addPlayerScores(playerPositionScores);\r\n\t\t}\r\n\t\treader.close();\r\n\r\n\t\treturn scoresByPlayer;\r\n\t}", "public void updateScoreFile() {\n try {\n outputStream = new ObjectOutputStream(new FileOutputStream(HIGHSCORE_FILE));\n outputStream.writeObject(scores);\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } finally {\n try {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }", "public static HighScoresTable loadFromFile(File filename) {\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n HighScoresTable table = (HighScoresTable) ois.readObject();\n ois.close();\n return table;\n } catch (Exception e) { //filename was not found - return empty table.\n return new HighScoresTable(HighScoresTable.DEFAULT_CAPACITY);\n }\n }", "private List<Score> readScoreList(JsonReader reader) throws IOException {\n\t\tList<Score> scores = new ArrayList<Score>();\n\t\treader.beginArray();\n\t\twhile (reader.hasNext()) {\n\t\t\tScore score = readScore(reader);\n\t\t\tscores.add(score);\n\t\t}\n\t\treader.endArray();\n\t\treturn scores;\n\t}", "public static int ReadBestScore()\n {\n int best_score = -1;\n try \n {\n BufferedReader file = new BufferedReader(new FileReader(score_file_name));\n best_score = Integer.parseInt(file.readLine());\n file.close();\n } \n catch (Exception e) { SaveBestScore(0); }\n \n currentBestScore = best_score;\n return best_score;\n }", "public void populateAllTests() throws FileNotFoundException, IOException {\n File file = new File(\"src/datafiles/AllScores.txt\");\n if (file.exists()) {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n String score = reader.readLine();\n while (score != null) {\n score = score + \"%\";\n lvPastScores.getItems().add(score);\n score = reader.readLine();\n }\n } else {\n lvPastScores.getItems().add(\"No past scores\");\n }\n }", "private static int readScore() {\n try {\n fis = activity.openFileInput(scoreFileName);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis));\n String readLine = br.readLine();\n fis.close();\n br.close();\n Log.v(\"Setting score to: \", readLine);\n return Integer.parseInt(readLine);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public static int readScore() {\n try {\n Scanner diskScanner = new Scanner(new File(\"input.txt\"));\n while (diskScanner.hasNextLine()) {\n System.out.println(diskScanner.nextLine());\n }\n diskScanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return 0;\n }", "void displayScores(int pts)\n\t{\n\t\tString[][] scs = new String[10][2];\n\t\ttry\n\t\t{\n\t\t\tScanner str = new Scanner(new File(\"./scores.log\"));\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t{\n\t\t\t\tscs[i] = str.nextLine().split(\"\\t\");\n\t\t\t}\n\t\t\tstr.close();\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString scores = \"\";\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tscores += scs[i][0] + \"\\t\" + scs[i][1] + \"\\n\";\n\t\t\n\t\tint place = 10; // > 9; remains if the new score below the scoreboard\n\t\t\n\t\t// if new highscore\n\t\tif (pts > Integer.parseInt(scs[9][1]))\n\t\t{\n\t\t\t// determine the place\n\t\t\tplace = 9;\n\t\t\twhile (pts > Integer.parseInt(scs[place-1][1])) // place is too low\n\t\t\t{\n\t\t\t\tplace--; // move the \"pointer\" to higher place\n\t\t\t\tif (place == 0) break; // 1st place!\n\t\t\t}\n\t\t\t\n\t\t\t// insert where it should be\n\t\t\tfor (int i = 8; i >= place; i--)\n\t\t\t{\n\t\t\t\tscs[i+1][0] = new String(scs[i][0]); // drop place to lower\n\t\t\t\tscs[i+1][1] = new String(scs[i][1]);\n\t\t\t}\n\t\t\tscs[place][0] = parent.getUsername();\n\t\t\tscs[place][1] = \"\" + pts;\n\t\t}\n\t\t\n\t\t// prepare text for writing to file\n\t\tString textToWrite = \"\";\n\t\tfor (int i = 0; i < 10; i++) // for every place\n\t\t\ttextToWrite += scs[i][0] + \"\\t\" + scs[i][1] + \"\\n\";\n\t\t\n\t\t// write to scores.log\n\t\ttry\n\t\t{\n\t\t\tFileWriter str = new FileWriter(new File(\"./scores.log\"), false);\n\t\t\tstr.write(textToWrite);\n\t\t\tstr.close();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// prepare text for displaying in the scoreboard\n\t\tString textDisplayed = \"<html><style>p{font-size:40px; font-family:\\\"Lucida Console\\\"}</style>\";\n\t\tfor (int i = 0; i < 10; i++) // for every place\n\t\t{\n\t\t\tif (i == place) textDisplayed += \"<font color=\\\"red\\\">\";\n\t\t\ttextDisplayed += \"<p>\" + scs[i][0] + \" \";\n\t\t\t// add dots to fill places up to 30\n\t\t\tfor (int j = 30; j > scs[i][0].length(); j--)\n\t\t\t\ttextDisplayed += \".\";\n\t\t\ttextDisplayed += \" \" + scs[i][1] + \"</p>\";\n\t\t\tif (i == place) textDisplayed += \"</font>\";\n\t\t}\n\t\t\n\t\tscoreboard.setText(textDisplayed);\n\t}", "public void exportScores(File file) throws IOException {\n exportScores(file, \"\\t\");\n }", "public void checkHighScore() {\n\t\t//start only if inserting highscore is needed\n\t\tlevel.animal.gamePaused = true;\n\t\tlevel.createTimer();\n\t\tlevel.timer.start();\n\t\t\t\t\n\t\tlevel.setWord(\"hiscores\", 7, 175, 130);\n\t\t\n\t\treadFile();\n\t}", "public void writeScoresToFile(File f) throws IOException, FileNotFoundException{\r\n\t\tBufferedWriter bw = null;\r\n\t\ttry{\r\n\t\t\tFileWriter fw = new FileWriter(f);\r\n\t\t\tbw = new BufferedWriter(fw);\r\n\t\t\t\r\n\t\t\tfor (int count = 0; count < scores.length; count++){\r\n\t\t\t\tbw.write(scores[9-count].getInitials()+SEPARATOR+scores[9-count].getScore());\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t} catch (Exception ex){\r\n\t\t\tSystem.err.println(\"Trouble with file: \" +ex.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry{\r\n\t\t\t\tif (bw != null){\r\n\t\t\t\t\tbw.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception ex1) {\r\n\t\t\t\tex1.printStackTrace();\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void LoadingDatabaseScores() {\n\n\t\tCursor cursor = helper.getDataAll(ScoretableName);\n\n\t\t// id_counter = cursor.getCount();\n\t\tSCORE_LIST = new ArrayList<gameModel>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tString Score = cursor.getString(SCORE_MAXSCORE_COLUMN);\n\n\t\t\tSCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}", "public Scoreboard() {\n try {\n\n Scanner reader = new Scanner(new File(\"data/scores.txt\"));\n\n while (reader.hasNext()) {\n String name = reader.next();\n int score = reader.nextInt();\n\n QuizTaker taker = new QuizTaker(name, score);\n allQuizTakers.add(taker); //Add this new QuizTaker to the ArrayList of QuizTakers *NOTE1\n\n //If the QuizTaker's name already exists in the ArrayList of QuizTakers, then their new score is added to that QuizTaker\n for (int i = 0; i < allQuizTakers.size() - 1; i++) {\n if (allQuizTakers.get(i).getName().equals(taker.getName())) { //If name is found\n allQuizTakers.get(i).addScore(score); //Add this new score to the pre-existing QuizTaker's ArrayList of scores\n Sorter.quickSort(allQuizTakers.get(i).getMyScores(), 0, //Sort all the scores of the QuizTaker\n allQuizTakers.get(i).getMyScores().size() - 1);\n allQuizTakers.remove(allQuizTakers.size() - 1); //Remove the new QuizTaker object made at NOTE1 to prevent duplicates\n }\n }\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }", "private void readObject(java.io.ObjectInputStream stream)\r\n throws IOException, ClassNotFoundException {\r\n scoreNumber = stream.readInt();\r\n highScores = new Score[scoreNumber];\r\n \r\n for (int i = 0; i < scoreNumber; i++)\r\n \thighScores[i] = (Score) stream.readObject();\r\n }", "private void initializeFile()\n\t{\n\t\tHighScore[] h={new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \")};\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"Hi1\");\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(h);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();}\n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "public Leaderboard() {\n filePath = new File(\"Files\").getAbsolutePath();\n highScores = \"scores\";\n\n topScores = new ArrayList<>();\n topName = new ArrayList<>();\n }", "public static List<Sentence> readFile(String filename) {\n\t\t/* IMPLEMENT THIS METHOD! */\n\t\tList<Sentence> sentences = new ArrayList<>(); \n\t\ttry {\n//\t\t\tBufferedReader reviews = new BufferedReader(new FileReader(filename));\n\t\t\tFile reviews = new File(filename);\n\t Scanner scnr = new Scanner(reviews);\n\t while(scnr.hasNextLine()){\n\t String line = scnr.nextLine();\n\t //split line on score and text\n\t int score = Integer.parseInt(line.substring(0, 2).trim());//converting to int\n\t String text = line.substring(2).trim();\n//\t System.out.println(\"Score: \" + score + \" text: \" + text);\n\t if(score >= -2 && score <= 2) {\n\t \tsentences.add(new Sentence(score, text));\n\t }\n\t }\n\t scnr.close();//close scanner\n\t\t}catch(Exception ex) {\n\t\t\tSystem.out.println(\"Ooops: \" + ex.getMessage());\n\t\t}\n\t\treturn sentences; // this line is here only so this code will compile if you don't modify it\n\n\t}", "public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }", "public BaseballElimination(String filename) throws FileNotFoundException {\n Scanner scanner = new Scanner(new File(filename));\n N = Integer.parseInt(scanner.nextLine());\n teamsMap = new HashMap<>(N);\n teamNames = new String[N];\n w = new int[N];\n l = new int[N];\n r = new int[N];\n gamesLeft = new int[N][N];\n for (int i = 0; i < N; ++i) {\n String line = scanner.nextLine().trim();\n String[] parts = line.split(\" +\");\n teamNames[i] = parts[0];\n teamsMap.put(teamNames[i], i);\n w[i] = Integer.parseInt(parts[1]);\n l[i] = Integer.parseInt(parts[2]);\n r[i] = Integer.parseInt(parts[3]);\n if (maxWins < w[i]) {\n teamWithMaxWins = i;\n maxWins = w[i];\n }\n for (int j = 0; j < N; ++j) {\n gamesLeft[i][j] = Integer.parseInt(parts[j + 4]);\n }\n }\n }", "public HighScoreReaderLevel3(String f) {\n file = \"../Resources/Scores/\" + f + \".txt\";\n names = new ArrayList<String>();\n }", "public void writeFile(){\n try{\n FileWriter writer = new FileWriter(\"Highscores.txt\");\n for (int i = 0; i<10; i++){\n if (i >= this.highscores.size()){\n break;\n }\n writer.write(String.valueOf(this.highscores.get(i)) + \"\\n\");\n }\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}", "private void bedGraphToScores(String fileName) throws IOException{\n\t\t\n\t\tList<ScreenWiggleLocusInfo> screenWigLocInfoList= new ArrayList<ScreenWiggleLocusInfo>();\n\t\tfor(int i= 0; i < getGc().getUserWindowSize(); i++){\n\t\t\tscreenWigLocInfoList.add(new ScreenWiggleLocusInfo());\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tTabixReader tabixReader= new TabixReader(fileName);\n\t\t\tIterator qry= tabixReader.query(this.getGc().getChrom(), this.getGc().getFrom()-1, this.getGc().getTo());\n\t\t\twhile(true){\n\t\t\t\tString q = qry.next();\n\t\t\t\tif(q == null){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] tokens= q.split(\"\\t\");\n\t\t\t\tint screenFrom= Utils.getIndexOfclosestValue(Integer.valueOf(tokens[1])+1, this.getGc().getMapping());\n\t\t\t\tint screenTo= Utils.getIndexOfclosestValue(Integer.valueOf(tokens[2]), this.getGc().getMapping());\n\t\t\t\tfloat value= Float.valueOf(tokens[this.bdgDataColIdx-1]);\n\t\t\t\tfor(int i= screenFrom; i <= screenTo; i++){\n\t\t\t\t\tscreenWigLocInfoList.get(i).increment(value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\t\t\t\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(\"Could not open tabix file: \" + fileName);\n\t\t\tSystem.err.println(\"Is the file sorted and indexed? After sorting by position (sort e.g. -k1,1 -k2,2n), compress with bgzip and index with e.g.:\");\n\t\t\tSystem.err.println(\"\\nbgzip \" + fileName);\n\t\t\tSystem.err.println(\"tabix -p bed \" + fileName + \"\\n\");\n\t\t}\n\t\tArrayList<Double> screenScores= new ArrayList<Double>();\n\t\tfor(ScreenWiggleLocusInfo x : screenWigLocInfoList){\n\t\t\tscreenScores.add((double)x.getMeanScore());\n\t\t}\n\t\tthis.setScreenScores(screenScores);\n\t\treturn;\n\t}", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }", "public static scoreSheet readStats(String user)\n \t{\n \t\tScanner stats;\n \t\tString current;\n \t\ttry {\n \t\t\tstats = new Scanner(statisticsFile);\n \t\t} catch (FileNotFoundException e) {\n \t\t\treturn null;\n \t\t}\n \t\twhile (stats.hasNext())\n \t\t{\n \t\t\tcurrent = stats.nextLine();\n \t\t\tif (current.equals(user))\n \t\t\t{\n \t\t\t\treturn new scoreSheet(user, Integer.parseInt(stats.nextLine()), Integer.parseInt(stats.nextLine()), \n \t\t\t\t\t\t\t\t\tInteger.parseInt(stats.nextLine()), Integer.parseInt(stats.nextLine()), \n \t\t\t\t\t\t\t\t\tInteger.parseInt(stats.nextLine()));\n \t\t\t}\n \t\t}\n \t\t\treturn null;\n \t}", "private static HashMap<HitCategory, ArrayList<HitsPerClub>> readHitsFromFile(String fileName, boolean fillActiveHitMap) {\n String filePath = fileDirectory + \"/\" + fileName ;\n HashMap<HitCategory, ArrayList<HitsPerClub>> tempHitMap;\n\n tempHitMap = new HashMap<>();\n List<ArrayList<String>> csvLines = CsvFile.readFile(filePath, CSV_SEPARATOR);\n if (null != csvLines) {\n Iterator<ArrayList<String>> it = csvLines.iterator();\n while (it.hasNext()) {\n ArrayList<String> nextItem = it.next();\n HitCategory category = HitCategory.valueOf(nextItem.get(CATEGORY_POS));\n String clubName = nextItem.get(CLUB_NAME_POS);\n Integer qualityGood = Integer.valueOf(nextItem.get(QUALITY_GOOD_COUNTER_POS));\n Integer qualityNeutral = Integer.valueOf(nextItem.get(QUALITY_NEUTRAL_COUNTER_POS));\n Integer qualityBad = Integer.valueOf(nextItem.get(QUALITY_BAD_COUNTER_POS));\n\n ArrayList<HitsPerClub> hits = tempHitMap.get(category);\n if (null == hits) {\n hits = new ArrayList<>();\n }\n Club club = BagController.getClubByName(clubName);\n hits.add(new HitsPerClub(club, qualityGood, qualityNeutral, qualityBad));\n tempHitMap.put(category, hits);\n }\n }\n\n if (fillActiveHitMap) {\n hitMap = tempHitMap;\n }\n return tempHitMap;\n }", "public List<Grade> importGrade(String filename) throws FileNotFoundException {\n List<Grade> grades = new ArrayList<>();\n FileReader fileReader = new FileReader(DATA_PATH + filename);\n Scanner scanner = new Scanner(fileReader);\n //skip first line\n String firstLine = scanner.nextLine();\n Log.i(\"first line: \" + firstLine);\n\n while (scanner.hasNextLine()) {\n String[] s = scanner.nextLine().split(\",\");\n String degree = s[0];\n String knowledge = s[1];\n String skill = s[2];\n Grade grade = new Grade(degree, knowledge, skill);\n grades.add(grade);\n }\n\n scanner.close();\n return grades;\n }", "public void addHighscore(int i){\n highscores.add(i);\n sortHighscores();\n writeFile();\n }", "public void writeScores() throws IOException {\n if (this.list.isPresent() && this.toSave) {\n try (DataOutputStream out = new DataOutputStream(new FileOutputStream(this.file))) {\n for (final Pair<String, Integer> p : this.list.get()) {\n out.writeUTF(p.getX());\n out.writeInt(p.getY().intValue());\n }\n this.toSave = false;\n } catch (IOException e) {\n System.out.println(\"IOException on writing scores\");\n }\n }\n\n }", "public int currentHighscore() { \r\n \tFileReader readFile = null;\r\n \tBufferedReader reader = null;\r\n \ttry\r\n \t{\r\n \t\treadFile = new FileReader(\"src/p4_group_8_repo/scores.dat\");\r\n \t\treader = new BufferedReader(readFile);\r\n \t\treturn Integer.parseInt(reader.readLine());\r\n \t}\r\n \tcatch (Exception e)\r\n \t{\r\n \t\treturn 0;\r\n \t}\r\n \tfinally\r\n \t{\r\n \t\ttry {\r\n \t\t\tif (reader != null)\r\n\t\t\t\treader.close();\r\n\t\t\t} catch (IOException e) {\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }", "private void initScoreModifiers() throws FileNotFoundException {\n\t\tScanner scanner = new Scanner(new File(filePath + \"scoremodifiers.txt\"));\n\t\twhile (scanner.hasNext()) {\n\t\t\t// type of score modifier\n\t\t\tString modifier = scanner.next();\n\t\t\t// row location\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\t// column location\n\t\t\tint c = Integer.parseInt(scanner.next());\n\t\t\t// if score modifier is within the board limits\n\t\t\tif (r >= 0 && c >= 0 && r < board.length && c < board.length)\n\t\t\t\tboard[r][c].setScoreModifier(modifier);\n\t\t}\n\t\tscanner.close();\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t\tint listArr[] = new int[70];\r\n\t\tString filename = \"MyList.txt\";\r\n\t\tFile file = new File(filename);\r\n\t\tScanner input = new Scanner(file);\r\n\t\tint i = 0;\r\n\t\twhile (input.hasNextLine()) {\r\n\t\t\tlistArr[i] = input.nextInt();\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\tmergeSort(listArr, 70);\r\n\t\tfor(i = 0; i < 70; i++) {\r\n\t\t\tSystem.out.println(listArr[i]);\r\n\t\t}\r\n\t}", "public ArrayList<HighScore> retrieveHighScoreRows(){\n db = helper.getReadableDatabase();\n ArrayList<HighScore> scoresRows = new ArrayList<>(); // To hold all scores for return\n\n // Get all scores rows, sorted by score value\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n\n while ( ! scoreCursor.isAfterLast() ) { // There are more scores\n // Create scores with result\n HighScore hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1), scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoresRows.add(hs); // Add high score to list\n scoreCursor.moveToNext();\n }\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n db.close();\n return scoresRows; // Return ArrayList of all scores\n }", "protected List<Score> getScoresToDisplay(){\n boolean allUsers = btnUser.getText() == btnUser.getTextOff();\n Integer selectedOption = gameOptions.get(spinGameOptions.getSelectedItem().toString());\n String fileName = Board.getHighScoreFile(Game.SLIDING_TILES, selectedOption);\n return allUsers?\n GameScoreboard.getScores(this, fileName, Board.getComparator()) :\n GameScoreboard.getScoresByUser(this, fileName, user, Board.getComparator());\n }", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> l = new ArrayList<ScoreInfo>();\n l.addAll(this.highScores); //make a copy;\n return l;\n }", "public int[] scanGrades(String filepath) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new File(filepath));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n ArrayList<Integer> grades = new ArrayList<Integer>();\n while (scanner.hasNextInt()) {\n grades.add(scanner.nextInt());\n }\n int[] gradeArray = new int[grades.size()];\n for (int i = 0; i < grades.size(); i++) {\n gradeArray[i] = grades.get(i);\n }\n return gradeArray;\n }", "private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void populatePastTests() throws FileNotFoundException, IOException {\n String userID = Project.getUserID();\n File scoreFile = new File(\"src/datafiles/\" + userID + \".txt\");\n if (scoreFile.exists()) {\n BufferedReader reader = new BufferedReader(new FileReader(scoreFile));\n String score = reader.readLine();\n while (score != null) {\n score = score + \"%\";\n lvUserScores.getItems().add(score);\n score = reader.readLine();\n }\n } else {\n lvUserScores.getItems().add(\"No past scores\");\n }\n }", "private void read(String filename) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(filename));\n\t\t\n\t\t//a variable that will increase by one each time another element is added to the array\n\t\t//to ensure array size is correct\n\t\tint numStation = 0;\n\t\t\n\t\t//ignores first 6 lines\n\t\tfor(int i = 0; i < 3; ++i){\n\t\t\tbr.readLine();\n\t\t}\n\t\t\n\t\t//sets String equal readline\n\t\tString lineOfData = br.readLine();\n\n\t\twhile(lineOfData != null)\n\t\t{\n\t\t\tString station = new String();\n\t\t\tstation = lineOfData.substring(10,14);\n\t\t\tMesoAsciiCal asciiAverage = new MesoAsciiCal(new MesoStation(station));\n\t\t\tint asciiAvg = asciiAverage.calAverage();\t\t\n\n\t\t\tHashMap<String, Integer> asciiVal = new HashMap<String, Integer>();\n\t\t\t//put the keys and values into the hashmap\n\t\t\tasciiVal.put(station, asciiAvg);\n\t\t\t//get ascii interger avg value\n\t\t\tInteger avg = asciiVal.get(station);\n\t\t\t\n\t\t\thashmap.put(station,avg);\n\t\t\t\n\t\t\tlineOfData = br.readLine();\n\t\t\t\n\t\t}\n\t\t\n\t\tbr.close();\n\t}", "private void extractNewScoreBoard(){\n if (FileStorage.getInstance().fileNotExist(this, \"FinalScore1.ser\")){\n score = new Score();\n score.addScoreUser(user);\n FileStorage.getInstance().saveToFile(this.getApplicationContext(), score, \"FinalScore1.ser\");\n } else {\n score = (Score) FileStorage.getInstance().readFromFile(this, \"FinalScore1.ser\");\n score.insertTopFive(user);\n FileStorage.getInstance().saveToFile(this, score, \"FinalScore1.ser\");\n }\n }", "public int lowestHighscore()\n {\n FileReader filereader;\n PrintWriter writer;\n int lowHighScore = 0;\n try{\n \n filereader = new FileReader(getLevel());\n BufferedReader bufferedreader = new BufferedReader(filereader);\n \n \n String finalLine =\"\";\n for(int i = 0;i<5;i++)\n {\n finalLine = bufferedreader.readLine();\n }\n lowHighScore = Integer.parseInt(finalLine.split(\":\")[1]);\n \n }\n catch(IOException e){}\n return lowHighScore;\n }", "private static ArrayList read() throws IOException, ClassNotFoundException {\n FileInputStream file = new FileInputStream(\"scores.ser\"); \n ObjectInputStream in = new ObjectInputStream(file); \n \n // Method for deserialization of object \n ArrayList scores = (ArrayList)in.readObject(); \n \n in.close(); \n file.close(); \n \n\t\treturn scores;\n\t}", "public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }", "public ArrayList<quizImpl> readFile() {\n\n // The name of the file to open.\n String fileName = \"Quizzes.txt\";\n\n // This will reference one line at a time\n String line;\n\n try {\n //reads file twice the first time adding contacts the second adding meetings\n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(fileName);\n\n // Wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n quizzes.add(line);\n }\n bufferedReader.close();\n for (String s : quizzes) {\n if (s.startsWith(\"quizName\")) {\n //splits the line into an array of strings\n String[] stringArray = s.split(\",\");\n //If game already has a highScore\n if (stringArray.length > 3) {\n if (stringArray[stringArray.length - 3].equals(\"highScore\")) {\n quizImpl q = new quizImpl(stringArray[1], stringArray[stringArray.length - 2], Integer.parseInt(stringArray[stringArray.length - 1]));\n for (int i = 2; i < stringArray.length - 3; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n } else {\n quizImpl q = new quizImpl(stringArray[1]);\n for (int i = 2; i < stringArray.length; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n }\n } else {\n quizImpl q = new quizImpl(stringArray[1]);\n for (int i = 2; i < stringArray.length; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n }\n }\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n return quizArray;\n }", "@Override\n public ArrayList<Pair<String, Integer>> getLeaderBoard() throws IOException {\n ArrayList<Pair<String, Integer>> leaderboard = new ArrayList<>();\n\n String sql = \"SELECT playernick, max(score) AS score FROM sep2_schema.player_scores GROUP BY playernick ORDER BY score DESC;\";\n ArrayList<Object[]> result;\n String playernick = \"\";\n int score = 0;\n\n try {\n result = db.query(sql);\n\n for (int i = 0; i < result.size(); i++) {\n Object[] row = result.get(i);\n playernick = row[0].toString();\n score = (int) row[1];\n leaderboard.add(new Pair<>(playernick, score));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return leaderboard;\n }", "@Override\n\tpublic void loadScore() {\n\n\t}", "public ArrayList<Highscore> getAllScore() {\n SQLiteDatabase db = this.getReadableDatabase();\n ArrayList<Highscore> arScore = new ArrayList<>();\n Cursor res = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n res.moveToFirst();\n while (!res.isAfterLast()) {\n\n arScore.add(new Highscore(res.getInt(res.getColumnIndex(\"score\")), res.getInt(res.getColumnIndex(\"_id\")), res.getString(res.getColumnIndex(\"challenge\"))));\n res.moveToNext();\n }\n res.close();\n db.close();\n\n return arScore;\n }", "public void readFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\t// read the headlines\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumVertices = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumPaths = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\ttmax = Double.parseDouble(lineElements[1]);\n\t\t\n//\t\tSystem.out.println(numVertices + \", \" + numPaths + \", \" + tmax);\n\n\t\t/* read benefits1 */\n\t\tint index = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t\tSystem.out.println(sCurrentLine);\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\tdouble x = Double.parseDouble(lineElements[0]);\n\t\t\tdouble y = Double.parseDouble(lineElements[1]);\n\t\t\tList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 2; i < lineElements.length; i++) {\n\t\t\t\tdouble score = Double.parseDouble(lineElements[i]);\n\t\t\t\tscores.add(new Double(score));\n\t\t\t}\n\t\t\tPOI POI = new POI(index, x, y, scores);\n\t\t\t//POI.printMe();\n\t\t\t\n\t\t\tvertices.add(POI);\n\t\t\tindex ++;\n\t\t}\n\t\t\n\t\t// create the arcs and the graph\n\t\tfor (int i = 0; i < vertices.size(); i++) {\n\t\t\tfor (int j = 0; j < vertices.size(); j++) {\n\t\t\t\tArc arc = new Arc(vertices.get(i), vertices.get(j));\n\t\t\t\tarcs.add(arc);\n\t\t\t\tgraph.put(new Tuple2<POI, POI>(vertices.get(i), vertices.get(j)), arc);\n\t\t\t}\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "private void persistHighScore() {\n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) {\n PrintWriter writer = null;\n try {\n writer = new PrintWriter(higheScoreFilePath.toString());\n writer.print(\"\");\n writer.close();\n \n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n writer = new PrintWriter(higheScoreFilePath.toString());\n writer.print(Integer.toString(this.myHighScoreInt));\n writer.close();\n \n } catch (final IOException e) {\n emptyFunc();\n } \n \n if (writer != null) {\n writer.close();\n } \n }\n }", "@Override\n\tpublic void readScore() {\n\t\t\n\t}", "@Override\n\tpublic void readScore() {\n\t\t\n\t}", "public void setScores(ArrayList<Integer> scores) { this.scores = scores; }", "Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}", "@Override\n public void createShoeFromFile(String fileName) {\n\n File file = new File(fileName);\n Scanner myReader = null;\n try {\n myReader = new Scanner(file);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n while (myReader.hasNextLine()) {\n String rankStr = \"\";\n Rank rank;\n rank = Rank.ACE;\n String suit = \"\";\n\n // The cards are separated by spaces in the file\n // Splits next line of the file into chunks containing each Card of the Shoe\n // Iterates over each card\n for (String data : myReader.nextLine().split(\" \"))\n {\n int len = data.length();\n if(data.length() == 3){\n rankStr = \"\";\n suit = \"\";\n rankStr += String.valueOf(data.charAt(0));\n rankStr += String.valueOf(data.charAt(1));\n //1 char suit\n suit = String.valueOf(data.charAt(2));\n this.cards.add(new Card( Suit.valueOf(suit), rank.getRank(rankStr), true));\n }else if(data.length() == 2){\n rankStr = \"\";\n suit = \"\";\n rankStr = String.valueOf(data.charAt(0));\n suit = String.valueOf(data.charAt(1));\n this.cards.add(new Card(Suit.valueOf(suit), rank.getRank(rankStr), true));\n }else if(data.length() == 0){\n return;\n }else{\n System.out.println(\"Error reading card.\");\n System.exit(0);\n }\n }\n }\n myReader.close();\n }", "public static void createNewHighScoreFile() throws IOException {\n File f = new File(SCORE_FILE_NAME);\n f.createNewFile();\n \n HighScore[] toWrite = new HighScore[NUMBER_OF_SCORES_TO_SAVE];\n for (int i = 0; i < toWrite.length; i++) {\n toWrite[i] = new HighScore(EXAMPLE_SCORES[i]);\n }\n \n writeToFile(toWrite);\n }", "public void writeScoreToFile(){\n\t\ttry{\n\t\t\tFile file = new File(\"conversation_file.txt\");\n\t\t\tFileWriter f = new FileWriter(file.getAbsoluteFile());\n\t\t\tBufferedWriter b = new BufferedWriter(f);\n\t\t\tif(score > highScore)\n\t\t\t\tb.write(String.valueOf(score));\n\t\t\telse\n\t\t\t\tb.write(String.valueOf(highScore));\n\t\t\tb.close();\n\t\t} catch (IOException e){}\n\t\tSystem.out.println(\"File written, highScore \" + highScore + \" or Score \" + score + \" saved to file.\");\n\t}", "private HashMap<String, ArrayList<int[]>> loadColorsFile() {\n\t\ttry {\n\t\t\t/* Open the file for reading. */\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(COLORS_FILE));\n\t\t\t\n\t\t\t/* Construct the HashMap that we will provide back as a result. */\n\t\t\tHashMap<String, ArrayList<int[]>> result = new HashMap<String, ArrayList<int[]>>();\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\t/* Read the next entry:\n\t\t\t\t * 1. The name of the color.\n\t\t\t\t * 2. Its red component.\n\t\t\t\t * 3. Its green component.\n\t\t\t\t * 4. Its blue component.\n\t\t\t\t */\n\t\t\t\tString colorName = br.readLine();\n\t\t\t\tString r = br.readLine();\n\t\t\t\tString g = br.readLine();\n\t\t\t\tString b = br.readLine();\n\t\t\t\t\n\t\t\t\t/* If we ran out of data, we're done. */\n\t\t\t\tif (b == null) break;\n\t\t\t\t\n\t\t\t\t/* Construct an array of the colors. */\n\t\t\t\tint[] color = new int[3];\n\t\t\t\tcolor[0] = Integer.parseInt(r);\n\t\t\t\tcolor[1] = Integer.parseInt(g);\n\t\t\t\tcolor[2] = Integer.parseInt(b);\n\t\t\t\t\n\t\t\t\t/* Ensure that there's an ArrayList waiting for us. */\n\t\t\t\tif (!result.containsKey(colorName)) {\n\t\t\t\t\tresult.put(colorName, new ArrayList<int[]>());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Add this color data to the color list. */\n\t\t\t\tresult.get(colorName).add(color);\n\t\t\t}\n\t\t\t\n\t\t\tbr.close();\n\t\t\treturn result;\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tthrow new ErrorException(e);\n\t\t}\n\t}", "public LinkedList<HighScore> getHighScores(){\r\n\t\tLinkedList<HighScore> list = new LinkedList<HighScore>();\r\n\t\ttry{\r\n\t\t\t//Sorting by Score column\r\n\t\t ResultSet rs = statement.executeQuery(\"select * from Highscores ORDER BY Score DESC\");\r\n\t\t while(rs.next()){\r\n\t\t String username = rs.getString(\"Nickname\"); \r\n\t\t int userScore = rs.getInt(\"Score\"); \r\n\t\t HighScore userHighScore = new HighScore(username,userScore);\r\n\t\t list.add(userHighScore);\r\n\t\t \r\n\t\t }\r\n\t\t }\r\n\t\t\tcatch (Exception e){\r\n\t\t\t e.printStackTrace();\r\n\t\t\t}\r\n\t\treturn list;\r\n\t}" ]
[ "0.8079563", "0.80021757", "0.77870005", "0.75655246", "0.7132234", "0.7121221", "0.7090739", "0.7031473", "0.7000397", "0.69798434", "0.6809989", "0.6745098", "0.6736909", "0.6638058", "0.66342133", "0.65959764", "0.65005857", "0.6434317", "0.63928825", "0.6265856", "0.62508374", "0.6222463", "0.61995846", "0.6168666", "0.61324084", "0.6122606", "0.6098271", "0.60343385", "0.60327303", "0.59996957", "0.5986051", "0.5982432", "0.59520775", "0.5940691", "0.5929482", "0.592895", "0.5898479", "0.58794636", "0.5875749", "0.5867365", "0.5860368", "0.58401275", "0.5811465", "0.57613546", "0.5709469", "0.5703033", "0.56864566", "0.5681187", "0.5645153", "0.56266886", "0.561841", "0.5616912", "0.5609029", "0.5607231", "0.5603846", "0.5594728", "0.5594541", "0.5579232", "0.55738705", "0.55665195", "0.55620235", "0.5553207", "0.55305773", "0.5511159", "0.55092", "0.5502823", "0.549892", "0.54927266", "0.5486998", "0.5481691", "0.5479632", "0.5476854", "0.54513913", "0.54492766", "0.5448764", "0.54482746", "0.54255337", "0.5423823", "0.5414723", "0.54019284", "0.5396493", "0.5396001", "0.53829235", "0.53754807", "0.5365411", "0.5352389", "0.534848", "0.5347794", "0.5347744", "0.53220284", "0.53204435", "0.53176177", "0.53176177", "0.5315806", "0.53115964", "0.5307267", "0.52893084", "0.52798617", "0.5271718", "0.5270814" ]
0.7756924
3
The write scores to file function writes down the list of high scores that the game has a handle on back to the file, replacing whatever was there before.
public void writeScoresToFile(File f) throws IOException, FileNotFoundException{ BufferedWriter bw = null; try{ FileWriter fw = new FileWriter(f); bw = new BufferedWriter(fw); for (int count = 0; count < scores.length; count++){ bw.write(scores[9-count].getInitials()+SEPARATOR+scores[9-count].getScore()); bw.newLine(); } } catch (Exception ex){ System.err.println("Trouble with file: " +ex.getMessage()); } finally { try{ if (bw != null){ bw.close(); } } catch (Exception ex1) { ex1.printStackTrace(); System.exit(-1); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveScores(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(topScores.get(0) + \"-\" + topScores.get(1) + \"-\" + topScores.get(2) + \"-\" + topScores.get(3) + \"-\" + topScores.get(4));\n writer.newLine();\n writer.write(topName.get(0) + \"-\" + topName.get(1) + \"-\" + topName.get(2) + \"-\" + topName.get(3) + \"-\" + topName.get(4));\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void writeScores(){\r\n // TODO: Write the high scores data to the file name indicated\r\n // TODO: by Settings.highScoresFileName.\r\n \tFile outFile=new File(Settings.highScoresFileName);\r\n \tPrintWriter out=null;\r\n \ttry{\r\n \t\tout=new PrintWriter(outFile);\r\n \t\tfor(int i=0; i<Settings.numScores; i++){\r\n \t\t\tout.println(scores[i]+\" \"+names[i]);\r\n \t\t}\r\n \t}catch(Exception e){} \t\r\n \tfinally{\r\n \t\tif(out!=null) out.close();\r\n }\r\n }", "public void updateScoreFile() {\n try {\n outputStream = new ObjectOutputStream(new FileOutputStream(HIGHSCORE_FILE));\n outputStream.writeObject(scores);\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } finally {\n try {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }", "public void writeScores() throws IOException {\n if (this.list.isPresent() && this.toSave) {\n try (DataOutputStream out = new DataOutputStream(new FileOutputStream(this.file))) {\n for (final Pair<String, Integer> p : this.list.get()) {\n out.writeUTF(p.getX());\n out.writeInt(p.getY().intValue());\n }\n this.toSave = false;\n } catch (IOException e) {\n System.out.println(\"IOException on writing scores\");\n }\n }\n\n }", "public void writeFile(){\n try{\n FileWriter writer = new FileWriter(\"Highscores.txt\");\n for (int i = 0; i<10; i++){\n if (i >= this.highscores.size()){\n break;\n }\n writer.write(String.valueOf(this.highscores.get(i)) + \"\\n\");\n }\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeScoreToFile(){\n\t\ttry{\n\t\t\tFile file = new File(\"conversation_file.txt\");\n\t\t\tFileWriter f = new FileWriter(file.getAbsoluteFile());\n\t\t\tBufferedWriter b = new BufferedWriter(f);\n\t\t\tif(score > highScore)\n\t\t\t\tb.write(String.valueOf(score));\n\t\t\telse\n\t\t\t\tb.write(String.valueOf(highScore));\n\t\t\tb.close();\n\t\t} catch (IOException e){}\n\t\tSystem.out.println(\"File written, highScore \" + highScore + \" or Score \" + score + \" saved to file.\");\n\t}", "private static void writeToFile(HighScore[] scoresToSave) throws IOException {\n FileWriter writer = new FileWriter(SCORE_FILE_NAME);\n \n for (int i = 0; i < scoresToSave.length; i++) {\n //Don't write more than the maximum number of scores to save\n if (i > NUMBER_OF_SCORES_TO_SAVE)\n break;\n \n String str = scoresToSave[i].toString();\n writer.write(str);\n writer.write(System.getProperty(\"line.separator\"));\n }\n \n writer.close();\n }", "private void saveHighScore() {\n\n\t\tFileOutputStream os;\n\t\n\t\ttry {\n\t\t boolean exists = (new File(this.getFilesDir() + filename).exists());\n\t\t // Create the file and directories if they do not exist\n\t\t if (!exists) {\n\t\t\tnew File(this.getFilesDir() + \"\").mkdirs();\n\t\t\tnew File(this.getFilesDir() + filename);\n\t\t }\n\t\t // Saving the file\n\t\t os = new FileOutputStream(this.getFilesDir() + filename, false);\n\t\t ObjectOutputStream oos = new ObjectOutputStream(os);\n\t\t oos.writeObject(localScores);\n\t\t oos.close();\n\t\t os.close();\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "public static void highScore(int score){\r\n\t\tString newName =\"\";\r\n\t\tif( score <11){\r\n\t\t\tScanner keyboard = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"Congratulations! You got a high score!\");\r\n\t\t\tSystem.out.println(\"Enter your Name!\");\r\n\t\t\tnewName = keyboard.nextLine();\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tString line = \"\";\r\n\t\t\t\tPrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(\"scoreList.temp\")));\r\n\t\t\t\tBufferedReader in = new BufferedReader(new FileReader(new File(\"scoreList.txt\")));\r\n\t\t\t\tint lineNum = 1;\r\n\t\t\t\tString temp = \"\";\r\n\t\t\t\twhile((line = in.readLine()) != null && lineNum <11){\r\n\t\t\t\t\t//replace the line with the new high score\r\n\t\t\t\t\t if (lineNum == score) {\r\n\t\t\t\t\t\t temp = line;\r\n\t\t\t\t\t\t line = newName;\r\n\t\t\t\t\t\t writer.println(line);\r\n\t\t\t\t\t\t lineNum++;\r\n\t\t\t\t\t\t //push the rest of the names down one\r\n\t\t\t\t\t\t while((line = in.readLine()) != null && lineNum <11){\r\n\t\t\t\t\t\t writer.println(temp);\r\n\t\t\t\t\t\t temp=line;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t writer.println(line);\r\n\t\t\t\t\t lineNum++;\r\n\t\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t\twriter.close();\r\n\t\t\t\t\tin.close();\r\n\t\t\t\t\t// ... and finally ...\r\n\t\t\t\t\tFile realName = new File(\"scoreList.txt\");\r\n\t\t\t\t\trealName.delete(); // remove the old file\r\n\t\t\t\t\t// Rename temp file\r\n\t\t\t\t\tnew File(\"scoreList.temp\").renameTo(realName); // Rename temp file\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry{\r\n\t\t BufferedReader in = new BufferedReader(new FileReader(new File(\"scoreList.txt\")));\r\n\t\t System.out.println(\"The High Scores are: \");\r\n\t\t for(int i = 1; i < 11; i++){\r\n\t\t\t String data = in.readLine();\r\n\t\t\t System.out.println(\"#\" +i+\" \" + data);\r\n\t\t }\r\n\t\t in.close();\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void saveScore() {\n try {\n PrintWriter writer = new PrintWriter(new FileOutputStream(new File(Const.SCORE_FILE), true));\n writer.println(this.player.getName() + \":\" + this.player.getGold() + \":\" + this.player.getStrength());\n writer.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void persistHighScore() {\n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) {\n PrintWriter writer = null;\n try {\n writer = new PrintWriter(higheScoreFilePath.toString());\n writer.print(\"\");\n writer.close();\n \n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n writer = new PrintWriter(higheScoreFilePath.toString());\n writer.print(Integer.toString(this.myHighScoreInt));\n writer.close();\n \n } catch (final IOException e) {\n emptyFunc();\n } \n \n if (writer != null) {\n writer.close();\n } \n }\n }", "private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}", "public void saveScores() {\n\t\tPersistenceMap values = new PersistenceMap();\n\t\tList<Map<String,Object>> entries = new ArrayList<Map<String,Object>>();\n\t\tfor (HighscoreEntry entry : scores) {\n\t\t\tentries.add(entry.dump().getMap());\n\t\t}\n\t\t\n\t\tvalues.put(KEY_SCORES, entries);\n\t\t\n\t\ttry {\n\t\t\tFile file = Hello.getPlugin().getServer().getWorldContainer();\n\t\t\tFile worldFolder = new File(file, worldName);\n\t\t\tFile path = new File(worldFolder, PERSISTANCE_FILE);\n\t\t\tWriter writer = Files.newWriter(path, Charset.defaultCharset());\n\t\t\t\n\t\t\tYaml yaml = new Yaml(YamlSerializable.YAML_OPTIONS);\n\t\t\tyaml.dump(values.getMap(), writer);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public static void writeScoreToFile(ArrayList<String> sArrayList,int score, Context context,String userName){\n\n int[] temp = new int[sArrayList.size()];\n Scanner in = null;\n\n //get the score part from the txt file\n for(int i=0;i<sArrayList.size();i++){\n\n in = new Scanner(sArrayList.get(i)).useDelimiter(\"[^0-9]+\");\n int integer = in.nextInt();\n temp[i]=integer;\n Log.d(\"array temp[]\", \"writeScoreToFile: \"+temp[i]+\"\\n\");\n in.close();\n\n }\n\n int tempVal=0;\n String tempString=null;\n if(score>temp[4]) {\n\n temp[4]=score;\n sArrayList.set(4,String.format(\"%-10s%d\",userName,score));\n for(int j=0;j<sArrayList.size()-1;j++){\n for(int k=1;k<sArrayList.size()-j;k++){\n if(temp[k-1]<temp[k]){\n tempVal = temp[k-1];\n temp[k-1]=temp[k];\n temp[k]=tempVal;\n tempString = sArrayList.get(k-1);\n sArrayList.set(k-1,sArrayList.get(k));\n sArrayList.set(k,tempString);\n }\n }\n }\n\n\n //print arraylist\n for(int i=0;i<sArrayList.size();i++){\n Log.d(\"Arraylistcontent\", \"writeScoreToFile: \"+sArrayList.get(i));\n //Log.d(\"sizeArrayList\", \"writeScoreToFile: \"+sArrayList.size());\n }\n\n\n try {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(context.openFileOutput(\"score.txt\", Context.MODE_PRIVATE));\n for(int i=0;i<sArrayList.size();i++){\n //use each line for one score\n outputStreamWriter.write(sArrayList.get(i)+\"\\n\");\n }\n outputStreamWriter.close();\n\n } catch (FileNotFoundException e) {\n Log.e(\"FileNotFoundException\", \"File write failed: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"IOException\", \"File write failed: \" + e.toString());\n }\n Log.d(\"end of the log\", \"writeScoreToFile: \"+\".......\");\n }\n }", "private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void saveHighScore(HighScores hs){\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream(highScoresFilename);\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t\t\toos.writeObject(hs);\r\n\t\t\toos.close();\r\n\t\t} catch (Exception e){\r\n\t\t\tSystem.out.println(\"Error in writing high scores.\\n\");\r\n\t\t}\t\t\r\n\t}", "public void savePerRankListPerformanceFile(List<String> ids, List<Double> scores, String prpFile) {\n/* 1455 */ try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(prpFile)))) {\n/* 1456 */ for (int i = 0; i < ids.size(); i++)\n/* */ {\n/* */ \n/* 1459 */ out.write(this.testScorer.name() + \" \" + (String)ids.get(i) + \" \" + scores.get(i));\n/* 1460 */ out.newLine();\n/* */ }\n/* */ \n/* 1463 */ } catch (Exception ex) {\n/* */ \n/* 1465 */ throw RankLibError.create(\"Error in Evaluator::savePerRankListPerformanceFile(): \", ex);\n/* */ } \n/* */ }", "public static void SaveBestScore(int new_score)\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(score_file_name, \"UTF-8\");\n writer.print(new_score);\n writer.close();\n currentBestScore = new_score;\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + score_file_name + \".\"); }\n }", "public static void save()\r\n\t{\r\n\r\n\t\ttry {\r\n\t\t\tObjectOutputStream fileOut = new ObjectOutputStream(new FileOutputStream(\"highscores.txt\"));\r\n\t\t\tfileOut.writeObject(hsd);\r\n\t\t\tfileOut.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Save File not found\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Unable to save data\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\te.printStackTrace();\r\n\t\t\r\n\t\t}\r\n\r\n\t}", "public static void maybeAddNewHighScore(String name, double score) throws FileNotFoundException, IOException {\n ArrayList<String> scoresAsStrings = getAllScores();\n ArrayList<HighScore> scoresAsScores = new ArrayList<>();\n \n //if there aren't enough scores, something is wrong - replace the score file with the example scores\n if (scoresAsStrings.size() < NUMBER_OF_SCORES_TO_SAVE) {\n for (String s : EXAMPLE_SCORES) {\n scoresAsStrings.add(s);\n }\n }\n \n //Parse the strings into high score objects\n for (String s : scoresAsStrings) {\n HighScore hs = new HighScore(s);\n scoresAsScores.add(hs);\n }\n \n HighScore userScore = new HighScore(name, score);\n \n //Add the user's score, sort the list of scores, then take the first 10\n scoresAsScores.add(userScore);\n Collections.sort(scoresAsScores);\n \n //Take the first 10 and write them to the file\n HighScore[] listOfScoresToSave = new HighScore[NUMBER_OF_SCORES_TO_SAVE];\n for (int i = 0; i < NUMBER_OF_SCORES_TO_SAVE; i++) {\n listOfScoresToSave[i] = scoresAsScores.get(i);\n }\n \n writeToFile(listOfScoresToSave);\n }", "private void writeToFile(){\r\n File file = new File(\"leaderboard.txt\");\r\n\r\n try {\r\n FileWriter fr = new FileWriter(file, true);\r\n BufferedWriter br = new BufferedWriter(fr);\r\n for(Player player : this.sortedPlayers){\r\n br.write(player.toString());\r\n br.write(\"\\n\");\r\n }\r\n br.close();\r\n fr.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "@Override\n\tpublic void saveScore(Jogador jogador) throws IOException {\n\t\t\n\t\tInteger score = getScore(jogador);\n\t\t\n\t\tif (score == null) {\n\t\t\tscore = 0;\n\t\t}\n\t\t\n\t\tscoreMap.put(jogador.getNome().toUpperCase(), score + 1);\n\t\t\n\t\ttry(BufferedWriter writer = Files.newBufferedWriter(SCORE_FILE)){\n\t\t\t\n\t\t\tSet<Map.Entry<String, Integer>> entries = scoreMap.entrySet();\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> e : entries ) {\n\t\t\t\tString nome = e.getKey();\n\t\t\t\tInteger pont = e.getValue();\n\t\t\t\twriter.write(nome + \"|\" + pont);\n\t\t\t\twriter.newLine();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static boolean checkAndWriteHighScore() {\n\t\tString file = \"file:highScore.txt\";\n\t int highScore = 0;\n\t try {\n\t BufferedReader reader = new BufferedReader(new FileReader(file));\n\t String line = reader.readLine();\n\t while (line != null) // read the score file line by line\n\t {\n\t try {\n\t int oldScore = Integer.parseInt(line.trim()); // parse each line as an int\n\t if (oldScore > highScore){ \n\t highScore = oldScore; \n\t }\n\t } catch (NumberFormatException e1) {\n\t // ignore invalid scores\n\t //System.err.println(\"ignoring invalid score: \" + line);\n\t }\n\t line = reader.readLine();\n\t }\n\t reader.close();\n\n\t } catch (IOException ex) {\n\t System.err.println(\"ERROR reading scores from file\");\n\t }\n\t \n\t \n\t FileWriter myWriter;\n\t\ttry {\n\t\t\tmyWriter = new FileWriter(file);\n\t\t\tmyWriter.write(\"\" + points.get());\n\t\t\tmyWriter.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (points.get() > highScore) {\n\t\t\treturn true;\n\t\t}\n\t return false;\n\t}", "public void saveScore() {\r\n FileDialog fd = new FileDialog(this, \"Save as a MIDI file...\", FileDialog.SAVE);\r\n fd.setFile(\"FileName.mid\");\r\n fd.show();\r\n //write a MIDI file to disk\r\n if ( fd.getFile() != null) {\r\n Write.midi(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }", "public static void updateScores(BattleGrid player) {\n\t String fileName = SCORE_FILE_NAME;\n\t ArrayList<String> listOfScores = new ArrayList<String>(); //Also contains player names\n\t \n\t //First read old content of file and place in string ArrayList\n\t try {\n\t FileReader readerStream = new FileReader(fileName);\n\t BufferedReader bufferedReader = new BufferedReader(readerStream);\n\t \n\t //Read First Line\n\t String readLine = bufferedReader.readLine();\n\t \n\t while(readLine != null) {\n\t listOfScores.add(readLine);\n\t readLine = bufferedReader.readLine();\n\t }\n\t \n\t readerStream.close();\n\t }\n\t catch (IOException e) {\n\t //Situation where file was not able to be read, in which case we ignore assuming we create a new file.\n\t System.out.println(\"Failed to create stream for reading scores. May be ok if its the first time we set scores to this file.\");\n\t \n\t }\n\t \n\t //Determine location of new player (if same score then first in has higher ranking)\n\t int playerScore = player.getPlayerScore();\n\t int storedPlayerScore;\n\t ArrayList<String> lineFields = new ArrayList<String>();\n\t \n\t //Run code only if there are scores previously in file and the name of the user is not null\n\t if (!listOfScores.isEmpty() && (player.name != null)) {\n\t for (int index = 0; index < listOfScores.size(); index++) {\n\t //Retrieve String array of fields in line\n\t lineFields = (returnFieldsInLine(listOfScores.get(index)));\n\t \n\t //Convert score from string to int (2nd element)\n\t storedPlayerScore = Integer.parseInt(lineFields.get(1));\n\t lineFields.clear(); //Clear out for next set\n\t \n\t //Compare with new score to be added and inserts, shifting old element right\n\t if (storedPlayerScore < playerScore) {\t \n\t listOfScores.add(index, player.name + DELIMITER + playerScore);\t \n\t\t break; //Once we found the correct location we end the loop\n\t } \n\t }\n\t }\n\t //When it's the first code to be entered\n\t else\n\t listOfScores.add(player.name + DELIMITER + playerScore);\n\t \n\t //Delete old content from file and add scores again with new one.\n\t try {\n\t FileWriter writerStream = new FileWriter(fileName);\n\t PrintWriter fileWriter = new PrintWriter(writerStream);\n\t \n\t for (String index : listOfScores) {\n\t fileWriter.println(index);\n\t }\n\t \n\t writerStream.close(); //Resource Leaks are Bad! :(\n\t }\n\t catch (IOException e) {\n\t System.out.println(\"Failed to create stream for writing scores.\");\n\t } \n\t \n\t }", "public void writeToFile(String user, Double score){\n String path = \"src/HighScoresFile.txt\";\n try{//Wrap in try catch for exception handling.\n //Create FileWriter object.\n FileWriter fr = new FileWriter(path,true);\n fr.write( score + \" \" + user + \"\\n\");\n\n fr.close();//close the fileWriter object.\n }\n //File not found Exception Block.\n catch (FileNotFoundException e){\n System.out.println(e);\n }\n //IO Exception Block.\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void exportScores(File file) throws IOException {\n exportScores(file, \"\\t\");\n }", "public void deleteAllScore() {\n // Rewrite only the first 10 lines to the file.\n try(BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(scoreFile))) {\n bufferedWriter.write(\"\");\n } catch (IOException e) {\n System.err.println(\"Cannot open the score file : \" + e.getMessage());\n }\n }", "public void save(File filename) throws IOException {\n ObjectOutputStream outputStream = null;\n try {\n outputStream = new ObjectOutputStream(new FileOutputStream(filename));\n outputStream.writeObject(this.getHighScores());\n } catch (IOException e) {\n System.out.println(\"cannot save to file\");\n } finally {\n if (outputStream != null) { // Exception might have happened at constructor\n try {\n outputStream.close();\n } catch (IOException e) {\n System.out.println(\" Failed closing the file !\");\n }\n }\n }\n }", "public void recordScore(){\n try\n {\n char[] allAtOnce = new char[(int)scores.length()];\n int charsRead = fr.read(allAtOnce);\n fw.write(String.format(\"<html><body><br>%s | %d seconds<body/><html/>\", ms.difficulty, ms.time)); \n ms.scoreLabel.setText(String.format(\"<html>Recent scores:%s</html>\" , String.valueOf(allAtOnce)));\n fr.close();\n fw.close();\n fw = new BufferedWriter(new FileWriter(scores, true));\n fr = new BufferedReader(new FileReader(scores));\n \n }\n \n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public static void createNewHighScoreFile() throws IOException {\n File f = new File(SCORE_FILE_NAME);\n f.createNewFile();\n \n HighScore[] toWrite = new HighScore[NUMBER_OF_SCORES_TO_SAVE];\n for (int i = 0; i < toWrite.length; i++) {\n toWrite[i] = new HighScore(EXAMPLE_SCORES[i]);\n }\n \n writeToFile(toWrite);\n }", "public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}", "public static void writeSave(String filepath, ISaveConfiguration scores) {\n try {\n Element root = Writer.buildDocumentWithRoot(DATA_TYPE);\n Document document = root.getOwnerDocument();\n\n addSaves(document, root, scores);\n\n Writer.writeOutput(document, filepath);\n } catch (TransformerException e) {\n throw new XMLException(e, Factory.UNKNOWN_ERROR);\n }\n }", "public static void exportScores(String filePath, Map<String, List<DenovoHit>> resultsMap) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n int count = 1;\r\n\r\n // header\r\n writer.append(getScoreHeader());\r\n writer.newLine();\r\n\r\n for (String spectrum : resultsMap.keySet()) {\r\n\r\n for (DenovoHit denovoHit : resultsMap.get(spectrum)) {\r\n\r\n // Get the protein hit.\r\n writer.append(spectrum + SEP);\r\n writer.append(denovoHit.getIndex() + SEP);\r\n writer.append(denovoHit.getSequence() + SEP);\r\n writer.append(denovoHit.getLength() + SEP);\r\n writer.append(denovoHit.getCharge() + SEP);\r\n writer.append(denovoHit.getNTermGap() + SEP);\r\n writer.append(denovoHit.getCTermGap() + SEP);\r\n writer.append(denovoHit.getPepNovoScore() + SEP);\r\n writer.append(denovoHit.getRankScore() + SEP);\r\n writer.newLine();\r\n writer.flush();\r\n }\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }", "private void writeHighscore(int highscore) {\n EditText eTName = findViewById(R.id.eTName);\n String name = eTName.getText().toString().trim();\n String name1 = preferences.getString(KEY_NAME+\"1\",\"\");\n String name2 = preferences.getString(KEY_NAME+\"2\",\"\");\n String name3 = preferences.getString(KEY_NAME+\"3\",\"\");\n int topscore1 = preferences.getInt(KEY+\"1\",0);\n int topscore2 = preferences.getInt(KEY+\"2\",0);\n int topscore3 = preferences.getInt(KEY+\"3\",0);\n if (highscore >= topscore1) {\n preferencesEditor.putInt(KEY+\"1\",highscore);\n preferencesEditor.putString(KEY_NAME+\"1\", name);\n preferencesEditor.putInt(KEY+\"2\",topscore1);\n preferencesEditor.putString(KEY_NAME+\"2\", name1);\n preferencesEditor.putInt(KEY+\"3\",topscore2);\n preferencesEditor.putString(KEY_NAME+\"3\", name2);\n } else if (highscore >= topscore2) {\n preferencesEditor.putInt(KEY+\"1\", topscore1);\n preferencesEditor.putString(KEY_NAME+\"1\", name1);\n preferencesEditor.putInt(KEY+\"2\", highscore);\n preferencesEditor.putString(KEY_NAME+\"2\", name);\n preferencesEditor.putInt(KEY+\"3\", topscore2);\n preferencesEditor.putString(KEY_NAME+\"3\", name2);\n } else {\n preferencesEditor.putInt(KEY+\"1\", topscore1);\n preferencesEditor.putString(KEY_NAME+\"1\", name1);\n preferencesEditor.putInt(KEY+\"2\", topscore2);\n preferencesEditor.putString(KEY_NAME+\"2\", name2);\n preferencesEditor.putInt(KEY+\"3\", highscore);\n preferencesEditor.putString(KEY_NAME+\"3\", name);\n }\n preferencesEditor.commit();\n }", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save() {\n\t\ttry {\n\t\t\t// use buffering\n\t\t\tOutputStream file = new FileOutputStream(\"games.txt\");\n\t\t\tOutputStream buffer = new BufferedOutputStream(file);\n\t\t\tObjectOutput output = new ObjectOutputStream(buffer);\n\t\t\ttry {\n\t\t\t\tif (gameOver) {\n\t\t\t\t\t//notify no need to save completed game\n\t\t\t\t} else {\n\t\t\t\t\tgames.add(this);\n\t\t\t\t\toutput.writeObject(games);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Save not successful\");\n\t\t}\n\t}", "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void updateLeaderboards(String name, String score) {\n String fileName = \"data.dat\";\n try {\n File root = new File(Environment.getExternalStorageDirectory()+\"/\"+Environment.DIRECTORY_DOCUMENTS);\n File gpxfile = new File(root, fileName);\n //This gets the path to the file to be written to, namely, data.dat\n\n FileWriter writer = new FileWriter(gpxfile, true);\n writer.append(name + \"\\n\" + score + \"\\n\");\n //This line ensures that names are written on even lines, whereas scores are written to odd lines\n //This is ensures that the data.dat file can be parsed by the Leaderboards activity later\n writer.flush();\n writer.close();\n } catch (IOException e) {\n e.printStackTrace(); //Because file operations can go wrong :(\n }\n }", "void displayScores(int pts)\n\t{\n\t\tString[][] scs = new String[10][2];\n\t\ttry\n\t\t{\n\t\t\tScanner str = new Scanner(new File(\"./scores.log\"));\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t{\n\t\t\t\tscs[i] = str.nextLine().split(\"\\t\");\n\t\t\t}\n\t\t\tstr.close();\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString scores = \"\";\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tscores += scs[i][0] + \"\\t\" + scs[i][1] + \"\\n\";\n\t\t\n\t\tint place = 10; // > 9; remains if the new score below the scoreboard\n\t\t\n\t\t// if new highscore\n\t\tif (pts > Integer.parseInt(scs[9][1]))\n\t\t{\n\t\t\t// determine the place\n\t\t\tplace = 9;\n\t\t\twhile (pts > Integer.parseInt(scs[place-1][1])) // place is too low\n\t\t\t{\n\t\t\t\tplace--; // move the \"pointer\" to higher place\n\t\t\t\tif (place == 0) break; // 1st place!\n\t\t\t}\n\t\t\t\n\t\t\t// insert where it should be\n\t\t\tfor (int i = 8; i >= place; i--)\n\t\t\t{\n\t\t\t\tscs[i+1][0] = new String(scs[i][0]); // drop place to lower\n\t\t\t\tscs[i+1][1] = new String(scs[i][1]);\n\t\t\t}\n\t\t\tscs[place][0] = parent.getUsername();\n\t\t\tscs[place][1] = \"\" + pts;\n\t\t}\n\t\t\n\t\t// prepare text for writing to file\n\t\tString textToWrite = \"\";\n\t\tfor (int i = 0; i < 10; i++) // for every place\n\t\t\ttextToWrite += scs[i][0] + \"\\t\" + scs[i][1] + \"\\n\";\n\t\t\n\t\t// write to scores.log\n\t\ttry\n\t\t{\n\t\t\tFileWriter str = new FileWriter(new File(\"./scores.log\"), false);\n\t\t\tstr.write(textToWrite);\n\t\t\tstr.close();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// prepare text for displaying in the scoreboard\n\t\tString textDisplayed = \"<html><style>p{font-size:40px; font-family:\\\"Lucida Console\\\"}</style>\";\n\t\tfor (int i = 0; i < 10; i++) // for every place\n\t\t{\n\t\t\tif (i == place) textDisplayed += \"<font color=\\\"red\\\">\";\n\t\t\ttextDisplayed += \"<p>\" + scs[i][0] + \" \";\n\t\t\t// add dots to fill places up to 30\n\t\t\tfor (int j = 30; j > scs[i][0].length(); j--)\n\t\t\t\ttextDisplayed += \".\";\n\t\t\ttextDisplayed += \" \" + scs[i][1] + \"</p>\";\n\t\t\tif (i == place) textDisplayed += \"</font>\";\n\t\t}\n\t\t\n\t\tscoreboard.setText(textDisplayed);\n\t}", "public void keepBestOne() {\n ArrayList<Score> scores = getScoreFromFile();\n scores.sort(Score::compareTo);\n\n // Rewrite only the first 10 lines to the file.\n try(BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(scoreFile))) {\n for(int i = 0; i < 10 && i < scores.size(); i++)\n bufferedWriter.write(scores.get(i).VALUE + \" \" + scores.get(i).TIME + \"\\n\");\n } catch (IOException e) {\n System.err.println(\"Cannot open the score file : \" + e.getMessage());\n }\n }", "public void writeHiScore(int newHiScore) throws IOException {\r\n\r\n File output = new File(\"src/p4_group_8_repo/scores.dat\");\r\n FileWriter writer = new FileWriter(output);\r\n PrintWriter printWriter = new PrintWriter(writer);\r\n\r\n printWriter.printf(\"%d\", newHiScore);\r\n printWriter.close();\r\n }", "private void updateFile() {\n\t\tPrintWriter outfile;\n\t\ttry {\n\t\t\toutfile = new PrintWriter(new BufferedWriter(new FileWriter(\"stats.txt\")));\n\t\t\toutfile.println(\"15\"); // this is the number\n\t\t\tfor (Integer i : storeInfo) {\n\t\t\t\toutfile.println(i); // we overwrite the existing files\n\t\t\t}\n\t\t\tfor (String s : charBought) {\n\t\t\t\toutfile.println(s); // overwrite the character\n\t\t\t}\n\t\t\tfor (String s : miscBought) {\n\t\t\t\toutfile.println(s);\n\t\t\t}\n\t\t\toutfile.close();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}", "private static void eraseFile() throws IOException {\n\t\tif (!scores.exists()) scores.createNewFile();\r\n\t\tFileWriter overwrite = new FileWriter(scores, false);\r\n\t\t// Inputs to the FileWriter class: file, append? (write to next line or overwrite)\r\n\t\t// append is set to false in order to overwrite\r\n\t\toverwrite.write(\"\");\r\n\t\toverwrite.close();\r\n\t}", "void deleteSlot() {\n String[] scores = readFromFile().split(\"\\n\");\n scores[currPlayer] = defaultScore;\n writeToFile(String.join(\"\\n\", scores));\n currPlayer = -1;\n }", "private void renderScore() {\r\n FileDialog fd = new FileDialog(this, \"Save as an audio file...\", FileDialog.SAVE);\r\n fd.setFile(\"FileName.au\");\r\n fd.show();\r\n //write a MIDI file to disk\r\n if ( fd.getFile() != null) {\r\n this.audioFileName = fd.getDirectory() + fd.getFile();\r\n Write.au(score, audioFileName, insts);\r\n \r\n }\r\n audioViewBtn.setEnabled(true);\r\n audioPlayBtn.setEnabled(true);\r\n }", "public void writeGradesToFile() throws IOException {\n\t\tString value = \"\";\n\t\tBufferedWriter gradeWriter = new BufferedWriter( new FileWriter( \"gradeValues.txt\") );\n\t\tfor ( int i = 0; i < gradeValues.size(); i++ ) {\n\t\t\tvalue = Double.toString( gradeValues.get(i) );\n\t\t\tgradeWriter.write(value);\n\t\t\tgradeWriter.newLine();\n\t\t}\n\t\tgradeWriter.close();\n\t}", "public void endGame(){\t\t\r\n\t\tString inits = \r\n\t\t\t\tJOptionPane.showInputDialog(\r\n\t\t\t\t\t\t\"High Scores:\\n\"\r\n\t\t\t\t\t\t+scores[9].toString()\r\n\t\t\t\t\t\t+scores[8].toString()\r\n\t\t\t\t\t\t+scores[7].toString()\r\n\t\t\t\t\t\t+scores[6].toString()\r\n\t\t\t\t\t\t+scores[5].toString()\r\n\t\t\t\t\t\t+scores[4].toString()\r\n\t\t\t\t\t\t+scores[3].toString()\r\n\t\t\t\t\t\t+scores[2].toString()\r\n\t\t\t\t\t\t+scores[1].toString()\r\n\t\t\t\t\t\t+scores[0].toString()\r\n\t\t\t\t\t\t, \"\");\r\n\t\t\r\n\t\tcheckIfHighScore(inits);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tthis.writeScoresToFile(file);\r\n\t\t} catch (Exception e){\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }", "public static void saveBoxScore(){\n Engine engine = Utility.getEngine();\n ArrayList<Player> homePlayers = engine.getHomePlayers();\n ArrayList<Player> awayPlayers = engine.getAwayPlayers();\n ArrayList<String> output = new ArrayList<String>();\n output.add(\"Home team\");\n for(Player player : homePlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n output.add(\"Away team\");\n for(Player player : awayPlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n try {\n Path path = Paths.get(Constants.OUTPUT_FILE_PATH);\n Files.write(path,output,StandardCharsets.UTF_8);\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n\n System.exit(0);\n }", "public void loadScores() {\n try {\n File f = new File(filePath, highScores);\n if(!f.isFile()){\n createSaveData();\n }\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n\n topScores.clear();\n topName.clear();\n\n String[] scores = reader.readLine().split(\"-\");\n String[] names = reader.readLine().split(\"-\");\n\n for (int i =0; i < scores.length; i++){\n topScores.add(Integer.parseInt(scores[i]));\n topName.add(names[i]);\n }\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void loadScoreFile() {\n try {\n inputStream = new ObjectInputStream(new FileInputStream(HIGHSCORE_FILE));\n scores = (ArrayList<Score>) inputStream.readObject();\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } catch (ClassNotFoundException e) {\n } finally {\n try {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }", "private void writeItems() {\n\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n\n // try to add items to file\n try {\n FileUtils.writeLines(todoFile, items);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void addHighscore(int i){\n highscores.add(i);\n sortHighscores();\n writeFile();\n }", "private void writeObject(java.io.ObjectOutputStream stream)\r\n throws IOException {\r\n\t\tstream.writeInt(scoreNumber);\r\n\t\tfor (int i = 0; i < scoreNumber; i++)\r\n\t\t\tstream.writeObject(highScores[i]);\r\n }", "private void writeScoreboard(JsonWriter writer, Scoreboard scoreboard) throws IOException {\n\t\twriter.beginObject();\n\t\twriter.name(\"Name\").value(scoreboard.getName());\n\t\tif (scoreboard.getScoreList() != null) {\n\t\t\twriter.name(\"Scores\");\n\t\t\twriteScoresList(writer, scoreboard.getScoreList());\n\t\t} else {\n\t\t\twriter.name(\"Scores\").nullValue();\n\t\t}\n\t\twriter.endObject();\n\t}", "public void SaveBestScore(int BestScore) {\r\n\t\ttry {\r\n\t\t\t// Comprobamos el nivel que ha seleccionado el jugador y guardamos el score\r\n\t\t\tif (cheater == false) {\r\n\t\t\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\EasyScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\NormalScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\HardScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\InvertidoScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t// Pasa el cheater a false\r\n\t\t\t\t\tcheater = false;\r\n\t\t\t\t}\r\n\t\t\t\t// Cierra el Buffered Writer\r\n\t\t\t\tbw.close();\r\n\t\t\t}\r\n\t\t// Captura las diferentes exceptions\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"File can't open\");\r\n\t\t} \r\n\t}", "public static void SaveAchievements()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(achievements_file_name, \"UTF-8\");\n int actualLine = 0, nb_achievements_done = 0;\n while(actualLine<Achievement.NB_ACHIEVEMENTS)\n {\n boolean currentValue = Achievement.achievements_done[actualLine];\n if(currentValue)\n nb_achievements_done++;\n writer.print(Utilities.BoolToInt(currentValue) + \"\\r\\n\");\n actualLine++;\n }\n writer.close();\n Achievement.nb_achievements_done = nb_achievements_done;\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + achievements_file_name + \".\"); }\n }", "public static void writeStats(scoreSheet s)\n \t{\n \t\tPrintStream stats;\n \t\tScanner statsReader;\n \t\tString current = \"\";\n \t\tString currentLine;\n \t\tint i = 0;\n \t\tboolean found = false;\n \t\ttry {\n \t\t\tstatsReader = new Scanner(statisticsFile);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tSystem.out.println(\"Unable to save user statistics.\");\n \t\t\treturn;\n \t\t}\n \t\twhile (statsReader.hasNext())\n \t\t{\n \t\t\tcurrentLine = statsReader.nextLine();\n \t\t\tif (currentLine.equals(s.user))\n \t\t\t{\n \t\t\t\tfound = true;\n \t\t\t}\n \t\t\tif (i == NUM_STATS + 1)\n \t\t\t\t\tfound = false;\n \t\t\tif (found)\n \t\t\t{\n \t\t\t\ti++;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tcurrent += currentLine + \"\\n\";\n \t\t}\n \t\tcurrent += s.user + \"\\n\";\n \t\tcurrent += s.num1 + \"\\n\";\n \t\tcurrent += s.num2 + \"\\n\";\n \t\tcurrent += s.num3 + \"\\n\";\n \t\tcurrent += s.num4 + \"\\n\";\n \t\tcurrent += s.num5 + \"\\n\";\n \t\ttry\n \t\t{\n \t\t\tstats = new PrintStream(statisticsFile);\n \t\t}\n \t\tcatch (FileNotFoundException e) {\n \t\t\tSystem.out.println(\"Unable to save user statistics.\");\n \t\t\treturn;\n \t\t}\n \t\tSystem.out.println(\"Writing stats\");\n \t\tstats.print(current);\n \t\tstats.flush();\n \t\tstats.close();\n \t}", "private void saveFile(File file){\n\t\ttry{\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\r\n\t\t\t\r\n\t\t\tfor(QuizCard card:cardList){\r\n\t\t\t\twriter.write(card.getQuestion() + \"/\");\r\n\t\t\t\twriter.write(card.getAnswer() + \"\\n\");\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t} catch (IOException ex){\r\n\t\t\tSystem.out.println(\"couldn't write the cardList out\");\r\n\t\t\tex.printStackTrace();}\r\n\t}", "private void readScores() {\n final List<Pair<String, Integer>> list = new LinkedList<>();\n try (DataInputStream in = new DataInputStream(new FileInputStream(this.file))) {\n while (true) {\n /* reads the name of the player */\n final String name = in.readUTF();\n /* reads the score of the relative player */\n final Integer score = Integer.valueOf(in.readInt());\n list.add(new Pair<String, Integer>(name, score));\n }\n } catch (final Exception ex) {\n }\n this.sortScores(list);\n /* if the list was modified by the cutting method i need to save it */\n if (this.cutScores(list)) {\n this.toSave = true;\n }\n this.list = Optional.of(list);\n\n }", "private static void removePreviousLine() throws IOException {\n\t\tif (!scores.exists()) scores.createNewFile();\r\n\t\tFile tempFile = new File(\"AssignmentScoresTemp.dat\");\r\n\r\n\t\t// Create temp file\r\n\t\ttempFile.createNewFile();\r\n\r\n\t\tboolean repeat = true; // Used for while loop in which all but the last line is copied to the temp file\r\n\r\n\t\tScanner oldFileIn = new Scanner(scores);\r\n\t\tFileWriter tempFileOut = new FileWriter(tempFile, true);\r\n\t\t// Inputs to the FileWriter class: file, append? (write to next line or overwrite)\r\n\t\t// append is set to true to add on to the end of the file rather than overwriting\r\n\t\t\r\n\t\t// Create temp file\r\n\t\ttempFile.createNewFile();\r\n\t\t\r\n\t\t// Write all but last line to temp file\r\n\t\t// Works by reading line and only writing it to temp file if there is a line after it (leaves out last line)\r\n\t\twhile(repeat) {\r\n\t\t\tint num1 = Integer.parseInt(oldFileIn.next());\r\n\t\t\tint num2 = Integer.parseInt(oldFileIn.next());\r\n\t\t\t\t\r\n\t\t\tif(oldFileIn.hasNext()) {\r\n\t\t\t\ttempFileOut.write(num1 + \" \" + num2);\r\n\t\t\t\ttempFileOut.write(\"\\r\\n\");\r\n\t\t\t\trepeat = true;\r\n\t\t\t} else repeat = false;\r\n\t\t}\r\n\t\toldFileIn.close();\r\n\t\ttempFileOut.close();\r\n\t\t\r\n\t\t// Erase original file\r\n\t\teraseFile();\r\n\t\t\r\n\t\t// Write temp file back to file\r\n\t\tScanner tempFileIn = new Scanner(tempFile);\r\n\t\tFileWriter newFileOut = new FileWriter(scores, true);\r\n\t\t// Inputs to the FileWriter class: file, append? (write to next line or overwrite)\r\n\t\t// append is set to true to add on to the end of the file rather than overwriting\r\n\t\t\r\n\t\t// Copy temp file back to original file line by line\r\n\t\twhile(tempFileIn.hasNext()){\r\n\t\t\tint tempNum1 = Integer.parseInt(tempFileIn.next());\r\n\t\t\tint tempNum2 = Integer.parseInt(tempFileIn.next());\r\n\t\t\t\r\n\t\t\tnewFileOut.write(tempNum1 + \" \" + tempNum2);\r\n\t\t\tnewFileOut.write(\"\\r\\n\");\r\n\t\t}\r\n\t\t\r\n\t\ttempFileIn.close();\r\n\t\tnewFileOut.close();\r\n\t\t\r\n\t\t// Delete temp file\r\n\t\ttempFile.delete();\r\n\t}", "public void writeSimScore() throws IOException, MalformedURLException, ParseException {\n FileWriter fw = new FileWriter(new File(scoreFile+new Double(alphaValue).toString()+\".txt\")); \r\n BufferedWriter bw = new BufferedWriter(fw);\r\n\r\n int numQueries = queryList.size();\r\n for (int i = 0; i < numQueries; i++) {\r\n String query1 = queryList.get(i);\r\n for (int j = 0; j < numQueries; j++) {\r\n String query2 = queryList.get(j);\r\n double sim = alphaValue * scorematrix[i][j] + (1 - alphaValue) * calSemanticSim(i, j);\r\n bw.write(new Double(sim).toString());\r\n bw.write(\" \");\r\n }\r\n // System.out.println(\"entered \" + i);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n\r\n }", "public void endGame(){\r\n\t\tupdateRecord();\r\n\t\tgameStats.writeToFile();\r\n\t\tstatisticsList = gameStats.makeArrayList();\r\n\t\tgameStats.writeListToFile(statisticsList);\r\n\t}", "@Override\n\tpublic void saveScore() {\n\t\t\n\t}", "private void readFile() {\n\t\tint newPlayerScore = level.animal.getPoints();\n\t\t\n\t\tlevel.worDim = 30;\n\t\tlevel.wordShift = 25;\n\t\tlevel.digDim = 30;\n\t\tlevel.digShift = 25;\n\t\t\n\t\tfor( int y =0; y<10; y++ ) { //display placeholder numbers\n\t\t\tfor( int x=0; x<4; x++ ) {\n\t\t\t\tbackground.add(new Digit( 0, 30, 470 - (25*x), 200 + (35*y) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry { //display highscores from highscores.txt\n\t\t\tScanner fileReader = new Scanner(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tint loopCount = 0;\n\t\t\twhile( loopCount < 10 ) {\n\t\t\t\tString playerName = fileReader.next() ;\n\t\t\t\tString playerScore = fileReader.next() ;\n\t\t\t\tint score=Integer.parseInt(playerScore);\n\t\t\t\t\n\t\t\t\tif( newPlayerScore >= score && newHighScore == false ) {\n\t\t\t\t\tstopAt = loopCount;\n\t\t\t\t\tnewHighScore = true;\n\t\t\t\t\tlevel.wordY = 200 + (35*loopCount);\n\t\t\t\t\t\n\t\t\t\t\tpointer = new Icon(\"pointer.png\", 30, 75, 200 + (35*loopCount) );// add pointer indicator\n\t\t\t\t\tbackground.add( pointer ); \n\t\t\t\t\tlevel.setNumber(newPlayerScore, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}else {\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}\n\t\t\t}//end while\n\t\t\tfileReader.close();\n\t\t\tif( newHighScore ) {\n\t\t\t\tnewHighScoreAlert();\n\t\t\t}else {\n\t\t\t\tgameOverAlert();\n\t\t\t}\n } catch (Exception e) {\n \tSystem.out.print(\"ERROR: Line 168: Unable to read file\");\n //e.printStackTrace();\n }\n\t}", "@Override\n\tpublic void saveScore() {\n\n\t}", "public void writeFile() \r\n\t{\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tfor(String str : scorers)\r\n\t\t\tbuilder.append(str).append(\",\");\r\n\t\tbuilder.deleteCharAt(builder.length() - 1);\r\n\t\t\r\n\t\ttry(DataOutputStream output = new DataOutputStream(new FileOutputStream(HIGHSCORERS_FILE)))\r\n\t\t{\r\n\t\t\toutput.writeChars(builder.toString());\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] File \" + HIGHSCORERS_FILE + \" was not found \" \r\n\t\t\t\t\t+ \"while writing.\");\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] Error while reading the file \" + HIGHSCORERS_FILE);\r\n\t\t}\r\n\t}", "public void updateScores() {\n ArrayList<String> temp = new ArrayList<>();\n File f = new File(Const.SCORE_FILE);\n if (!f.exists())\n try {\n f.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n FileReader reader = null;\n try {\n reader = new FileReader(Const.SCORE_FILE);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line = null;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n temp.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n String[][] res = new String[temp.size()][];\n\n for (int i = 0; i < temp.size() ; i++) {\n res[i] = temp.get(i).split(\":\");\n }\n try {\n bufferedReader.close();\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n scores = res;\n }", "Scoreboard saveScoreboard(Scoreboard scoreboard);", "public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }", "private void extractNewScoreBoard(){\n if (FileStorage.getInstance().fileNotExist(this, \"FinalScore1.ser\")){\n score = new Score();\n score.addScoreUser(user);\n FileStorage.getInstance().saveToFile(this.getApplicationContext(), score, \"FinalScore1.ser\");\n } else {\n score = (Score) FileStorage.getInstance().readFromFile(this, \"FinalScore1.ser\");\n score.insertTopFive(user);\n FileStorage.getInstance().saveToFile(this, score, \"FinalScore1.ser\");\n }\n }", "public void write() throws IOException {\n // No pairs to write\n if(map.size() == 0 || !isDirty) {\n System.err.println(\"preferences is already updated..\");\n return;\n }\n\n try(BufferedWriter bufferedWriter = Files.newBufferedWriter(fileName,\n StandardOpenOption.TRUNCATE_EXISTING,\n StandardOpenOption.CREATE))\n {\n for(Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n\n // Writes the current pair value in the format of 'key=value'\n bufferedWriter.write(String.format(\"%s=%s\\n\", key, value));\n }\n }\n\n isDirty = false;\n }", "public void saveGame(){\n updateProperties();\n try {\n output = new FileOutputStream(fileName);\n properties.store(output, null); //saving properties to file\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO SAVE GAME ---\");\n e.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n System.out.println(\"--- GAME SAVED ---\");\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE OUTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "public void saveGameData(int score, int tiempo, String replay_path){\n connect();\n\n try {\n doStream.writeUTF(\"END_GAME_DATA\");\n doStream.writeUTF(currentUser.getUserName());\n doStream.writeInt(score);\n doStream.writeInt(tiempo);\n doStream.writeUTF(replay_path);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n disconnect();\n }", "public static void Save(String filename) throws IOException {\n\t\tFileWriter fw=new FileWriter(filename);\r\n\t\tround=A1063307_GUI.round;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tfw.write(\"Round:\"+round+\",Turn:\"+who+\"\\n\");\r\n\t\tint t2=1;\r\n\t\twhile(t2<(linenumber)) {\r\n\t\t\tint zz=0;\r\n\t\t\twhile(zz<5) {\r\n\t\t\t\tif(zz==0) {\t\t\r\n\t\t\t\t\tch[t2].location=ch[t2].location%20;\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].location)+\",\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(zz==1){\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].CHARACTER_NUMBER)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(zz==2){\r\n\t\t\t\t\tfw.write(Integer.toString(ch[t2].money)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t else if(zz==3){\r\n\t\t\t \tfw.write(Integer.toString(ch[t2].status)+\",\");\r\n\t\t\t \r\n\t\t\t \t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfw.write(ch[t2].IMAGE_FILENAME);\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\tzz++;\r\n\t\t\t}\r\n\t\t\tfw.write(\"\\n\");\r\n\t\t\tt2++;\r\n\t\t}\r\n\t\tfw.close();\r\n\t\tFileWriter fw1=new FileWriter(\"Land.txt\");\r\n\t\tfw1.write(\"LOCATION_NUMBER, owner\\n\");\r\n\t\tfor(int i=1;i<17;i++) {\r\n\t\t\tfw1.write(Land[i].PLACE_NUMBER+\",\"+Land[i].owner+\"\\n\");\r\n\t\t}\r\n\t\tfw1.close();\r\n\t}", "private void writeScoresList(JsonWriter writer, List<Score> scoreList) throws IOException {\n\t\twriter.beginArray();\n\t\tfor (Score score : scoreList) {\n\t\t\twriter.beginObject();\n\t\t\twriter.name(\"Name\").value(score.getName());\n\t\t\twriter.name(\"Score\").value(score.getScore());\n\t\t\twriter.endObject();\n\t\t}\n\t\twriter.endArray();\n\t}", "public void readFile(){\n try {\n highscores = new ArrayList<>();\n BufferedReader br = new BufferedReader(new FileReader(\"Highscores.txt\"));\n String line = br.readLine();\n while (line != null){\n try{\n highscores.add(Integer.parseInt(line));\n } catch (NumberFormatException e){}\n line = br.readLine();\n }\n br.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"No file found\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public abstract void saveToFile(PrintWriter out);", "public void exportScores(OutputStream outputStream) throws IOException {\n exportScores(outputStream, \"\\t\");\n }", "public void exportScores(File file, String delimiter) throws IOException {\n try (FileOutputStream fos = new FileOutputStream(file)) {\n exportScores(fos, delimiter);\n }\n }", "static void writeRanking(ArrayList<PlayerInfo> player){\n\t\ttry{\r\n\t\t\tFileOutputStream fos = new FileOutputStream(\"ranking.dat\");\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t\t\toos.writeObject(player);\r\n\t\t\toos.flush();\r\n\t\t\toos.close();\r\n\t\t\tfos.close();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//return player;\r\n\t}", "public void addHighScore(HighScore h)\n\t{\n\t\tHighScore[] highScores=getHighScores();\n\t\thighScores[highScores.length-1]=h;\n\t\tfor (int i=highScores.length-2; i>=0; i--)\n\t\t{\n\t\t\tif (highScores[i+1].compareTo(highScores[i])>0)\n\t\t\t{\n\t\t\t\tHighScore temp=highScores[i];\n\t\t\t\thighScores[i]=highScores[i+1];\n\t\t\t\thighScores[i+1]=temp;\n\t\t\t}\n\t\t}\n\t\ttry \n\t\t{\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(highScores);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();} \n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "public void saveFile(File file) {\n\t\ttry {\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\t\n\t\t\tfor (QuizCard card : cardList) {\n\t\t\t\twriter.write(card.getQuestion() + \"/\");\n\t\t\t\twriter.write(card.getAnswer() + \"\\n\");\n\t\t\t}\n\t\t\twriter.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "public void highscore()\n {\n FileReader filereader;\n \n PrintWriter writer;\n ArrayList<PersonDate> hsp = new ArrayList<PersonDate>();\n \n\n try{\n if(totalScore>lowestHighscore() || (int)timer3>lowestHighscore())\n {\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yy\");\n Date date = new Date();\n String r = dateFormat.format(date);\n \n \n JOptionPane.showMessageDialog(null,\"New high score!\");\n String name = JOptionPane.showInputDialog(\"Please enter name\");\n while(name == null)\n {\n name = JOptionPane.showInputDialog(\"Please enter name\");\n }\n while(name.length() > 18)\n name = JOptionPane.showInputDialog(null,\"Name too long\\nPlease enter your name\");\n while(name.length()==0)\n name = JOptionPane.showInputDialog(\"Please enter name\");\n //if(name == null)\n //{\n //resetSettings();\n //System.exit(0);\n \n //}\n String[] invalidchar = {\"~\",\"`\",\"!\",\"@\",\"#\",\"$\",\"%\",\"^\",\"&\",\"*\",\"=\",\"+\",\"-\",\"_\",\":\",\";\",\"|\",\"?\",\"<\",\">\",\"/\",\"'\",\"[\",\"]\",\"{\",\"}\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\",\".\",\",\"};\n String[] bannedWords ={\"fuck\",\"shit\",\"asshole\",\"bitch\",\"nigger\",\"nigga\",\"cunt\",\"cock\",\"douche\",\"fag\",\"penis\",\"pussy\",\"whore\"};\n for(int i =0; i<invalidchar.length;i++)\n {\n if(name.contains(invalidchar[i]))\n {\n name = JOptionPane.showInputDialog(\"Invalid name, please only use letters\\nPlease enter name\");\n i = -1;\n }\n }\n for(int i =0; i<bannedWords.length;i++)\n {\n \n if(name.replaceAll(\"\\\\s+\",\"\").toLowerCase().contains(bannedWords[i]))\n {\n name = JOptionPane.showInputDialog(\"No potty mouth\\nPlease enter name\");\n i = -1;\n }\n }\n PersonDate p1;\n if(!modeT)\n p1 = new PersonDate(name,totalScore,r);\n else\n p1 = new PersonDate(name,(int)timer3,r);\n filereader = new FileReader(getLevel());\n BufferedReader bufferedreader = new BufferedReader(filereader);\n \n \n \n String line = bufferedreader.readLine();\n \n while(line!=null)\n {\n //hslist.add(Integer.parseInt(line.split(\":\")[1]));\n hsp.add(new PersonDate(line.split(\":\")[0],Integer.parseInt(line.split(\":\")[1]),line.split(\":\")[2]));\n line = bufferedreader.readLine();\n }\n hsp.add(p1);\n \n //sort it\n sort(hsp);\n \n \n //delete last thing\n hsp.remove(hsp.size()-1);\n \n //rewrite doc\n writer = new PrintWriter(new File(getLevel()));\n for(PersonDate p:hsp)\n {\n writer.println(p);\n }\n writer.close();\n \n //displayhs();\n \n }\n }\n catch(IOException e)\n {\n }\n }", "public void save(PrintWriter pw) {\n\t\tpw.println(color);\n\t\tpw.println(name);\n\t\tpw.println(diceValue);\n\t\tpw.println(diceTossed);\n\t\tfor(int i = 1; i<=4; i++)\n\t\t\tif(hasPawn(i))\n\t\t\t\tpw.println(pawns[i-1].getPosition());\n\t\t\telse\n\t\t\t\tpw.println(0);\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "private void saveInFile() {\n\t\tthis.deleteFile();\n\t\tfor (CounterModel obj : counterListModel.getCounterList()) {\n\t\t\ttry {\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tif (obj.getCounterName().equals(counterModel.getCounterName())) {\n\t\t\t\t\tobj = counterModel;\n\t\t\t\t}\n\t\t\t\tString json = gson.toJson(obj) +'\\n';\n\t\t\t\tFileOutputStream fos = openFileOutput(FILENAME,\n\t\t\t\t\t\tContext.MODE_APPEND);\n\t\t\t\tfos.write(json.getBytes());\n\t\t\t\tfos.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }", "private void saveGame() throws FileNotFoundException {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showSaveDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\t\tif (file != null) {\r\n\t\t\tFileWriter fileWriter = new FileWriter(convertToStringArrayList(), file);\r\n\t\t\tfileWriter.writeFile();\r\n\t\t}\r\n\r\n\t}", "private static void saveScore() {\n\t\tif (mContext != null) {\n\t\t\tEditor edit = mContext.getSharedPreferences(Defines.SHARED_PREF_NAME, Context.MODE_PRIVATE).edit();\n\t\t\tedit.putInt(Defines.SHARED_PREF_ACTIVITY_SCORE, DataStore.mActivityScore);\n\n\t\t\tfor (int x = 0; x < Defines.NUM_DAYS_SCORE_TO_SAVE; x++) {\n\t\t\t\tedit.putInt(Defines.SHARED_PREF_PREV_SCORE + x, DataStore.mPreviousActivityScores[x]);\n\t\t\t}\n\n\t\t\tif (mActivityScoreDate != null) {\n\t\t\t\tedit.putString(Defines.SHARED_PREF_SCORE_DATE, mActivityScoreDate.format2445());\n\t\t\t}\n\n\t\t\tedit.commit();\n\t\t}\n\t}", "public void resetHighscoreTable()\r\n\t{\r\n\t\tcreateArray();\r\n\t\twriteFile();\r\n\t}", "private void saveCustomDeck() {\n try (PrintWriter pw = new PrintWriter(new FileWriter(USER_DECK))) {\n for (int i = 0; i < customDeck.size(); i++) {\n pw.print(customDeck.get(i) + \"\\n\\n\");\n }\n } catch (IOException ex) {\n System.out.println(\"FAILED TO SAVE SCORES\");\n }\n }", "public void saveStats() throws IOException {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"learnedWords\")));\r\n out.println(wordIndex);\r\n for (Word s : masteredWords) {//write mastered words first\r\n out.println(s.toString());\r\n }\r\n for (int i = 0; i < learningWords.size(); i++) {//writes learning words next\r\n Word w = learningWords.get(i);\r\n out.println(w.toString());\r\n }\r\n out.close();\r\n }", "private void gameEnd(boolean win) {\n timer.stop();\n playing = false;\n if (win) {\n status.setText(\"You win!\");\n int score = (int) (Math.pow(boardWidth, 2) * Math.pow(boardHeight, 2) \n + Math.pow(mines, 3)) / timeElapsed;\n String nickname = JOptionPane\n .showInputDialog(\"Score: \" + Integer.toString(score) \n + \" Please input your nickname: \");\n try {\n BufferedWriter bw = new BufferedWriter(\n new FileWriter(\"files/highscores.txt\", true));\n bw.append(nickname + \",\" + Integer.toString(score) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n System.out.println(\"An error has occurred\");\n }\n } else {\n status.setText(\"You lost.\");\n }\n }", "@Override\n\tpublic boolean writeData(File file) {\n\n Collection<SoccerPlayer> soccerPlayers = stats.values();\n\n\n\n try {\n\n PrintWriter writer = new PrintWriter(file);\n\n for (SoccerPlayer sp : soccerPlayers) {\n\n writer.println(logString(sp.getFirstName()));\n writer.println(logString(sp.getLastName()));\n writer.println(logString(sp.getTeamName()));\n writer.println(logString(sp.getUniform()+\"\"));\n writer.println(logString(sp.getGoals() + \"\"));\n writer.println(logString(sp.getAssists() + \"\"));\n writer.println(logString(sp.getShots() + \"\"));\n writer.println(logString(sp.getSaves() + \"\"));\n writer.println(logString(sp.getFouls() + \"\"));\n writer.println(logString(sp.getYellowCards() + \"\"));\n writer.println(logString(sp.getRedCards() + \"\"));\n\n }\n\n writer.close();\n\n return true;\n\n }\n\n catch(java.io.FileNotFoundException ex) {\n\n return false;\n }\n\t}", "public void save() {\n\t\tlog.log(\"Attempting to save...\");\n\t\tPath spath = Paths.get(getFullSavePath());\n\t\tPath cpath = Paths.get(getFullSavePath() + \"units/\");\n\t\ttry {\n\t\t\tif(!Files.exists(spath))\n\t\t\t\tFiles.createDirectory(spath);\n\t\t\tif(!Files.exists(cpath))\n\t\t\t\tFiles.createDirectory(cpath);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\n\t\tFile[] files = new File(cpath.toString()).listFiles();\n\t\tfor(File f : files) {\n\t\t\tf.delete();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter mfestWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"progress.txt\"));\n\t\t\tmfestWriter.write(name);\n\t\t\tmfestWriter.close();\n\t\t\tfor(MapCharacter mc : getFriendlies()) {\n\t\t\t\tBufferedWriter charWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"units/\"\n\t\t\t\t\t\t+ mc.getEnclosed().getDirName()));\n\t\t\t\tcharWriter.write(mc.getEnclosed().save());\n\t\t\t\tcharWriter.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.log(\"Game saved.\");\n\t}", "void savePlayer(String playerIdentifier, int score, int popID) {\n //save the players top score and its population id\n Table playerStats = new Table();\n playerStats.addColumn(\"Top Score\");\n playerStats.addColumn(\"PopulationID\");\n TableRow tr = playerStats.addRow();\n tr.setFloat(0, score);\n tr.setInt(1, popID);\n\n Constants.processing.saveTable(playerStats, \"data/playerStats\" + playerIdentifier + \".csv\");\n\n //save players brain\n Constants.processing.saveTable(brain.NetToTable(), \"data/player\" + playerIdentifier + \".csv\");\n }", "public void writeToFile(ArrayList<quizImpl> ql) {\n Path path = Paths.get(\"Quizzes.txt\");\n try (Scanner scanner = new Scanner(path, String.valueOf(ENCODING))) {\n try (BufferedWriter writer = Files.newBufferedWriter(path, ENCODING)) {\n String toBeWritten;\n for (quizImpl q : ql) {\n String questionsString = \"\";\n //gets a list of questions for that quiz\n List<QuestionAndAnswer> questions = q.getQuestions();\n //for each question in the quiz get the answers\n for (QuestionAndAnswer question : questions) {\n List<String> answers = question.getAllAnswers();\n String answerString = \"\";\n for (String s : answers)\n answerString = answerString + s + \",\";\n answerString = answerString + question.getCorrectAnswer();\n questionsString = questionsString + \",\" + question.getQuestion() + \",\" + answerString;\n }\n if (q.getHighScore() == -1) toBeWritten = \"quizName,\" + q.getQuizName() + questionsString;\n else\n toBeWritten = \"quizName,\" + q.getQuizName() + questionsString + \",highScore,\" + q.playerWithHighScore() + \",\" + q.getHighScore();\n writer.write(toBeWritten);\n writer.newLine();\n }\n writer.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void savePokemonData()\r\n {\r\n try\r\n {\r\n int currentPokemon = playerPokemon.getCurrentPokemon();\r\n\r\n FileWriter fw = new FileWriter(\"tempPlayerPokemon.txt\");\r\n\r\n List<String> list = Files.readAllLines(Paths.get(\"playerPokemon.txt\"), StandardCharsets.UTF_8);\r\n String[] pokemonList = list.toArray(new String[list.size()]);\r\n\r\n String currentPokemonStr = pokemonList[currentPokemon];\r\n String[] currentPokemonArray = currentPokemonStr.split(\"\\\\s*,\\\\s*\");\r\n\r\n currentPokemonArray[1] = Integer.toString(playerPokemon.getLevel());\r\n currentPokemonArray[3] = Integer.toString(playerPokemon.getCurrentHealth());\r\n currentPokemonArray[4] = Integer.toString(playerPokemon.getCurrentExperience());\r\n for(int c = 0; c < 4; c++)\r\n {\r\n currentPokemonArray[5 + c] = playerPokemon.getMove(c);\r\n }\r\n\r\n String arrayAdd = currentPokemonArray[0];\r\n for(int i = 1; i < currentPokemonArray.length; i++)\r\n {\r\n arrayAdd = arrayAdd.concat(\", \" + currentPokemonArray[i]);\r\n }\r\n\r\n pokemonList[currentPokemon] = arrayAdd;\r\n\r\n for(int f = 0; f < pokemonList.length; f++)\r\n {\r\n fw.write(pokemonList[f]);\r\n fw.write(\"\\n\");\r\n }\r\n fw.close();\r\n\r\n Writer.overwriteFile(\"tempPlayerPokemon\", \"playerPokemon\");\r\n }\r\n catch(Exception error)\r\n {\r\n }\r\n }" ]
[ "0.82396203", "0.81551754", "0.79747355", "0.7898178", "0.7680496", "0.7653959", "0.75260425", "0.74107087", "0.7297568", "0.72738916", "0.7178743", "0.71764505", "0.6983473", "0.69023144", "0.6886917", "0.6879445", "0.6859087", "0.68201655", "0.6807025", "0.6783175", "0.6746315", "0.66994494", "0.6686891", "0.6665136", "0.662743", "0.66184217", "0.65829587", "0.65647763", "0.65464044", "0.65343606", "0.6479274", "0.6478296", "0.64730525", "0.642844", "0.64088225", "0.63579935", "0.63426274", "0.6333552", "0.6330477", "0.6315969", "0.6303122", "0.6260082", "0.6226292", "0.62215346", "0.62065923", "0.61736244", "0.6171215", "0.61470014", "0.61233914", "0.6114211", "0.6109317", "0.61047304", "0.60985076", "0.60759145", "0.6075382", "0.60647774", "0.6063531", "0.6061898", "0.6058338", "0.6054467", "0.6047304", "0.60468495", "0.60407394", "0.603746", "0.60286725", "0.5952762", "0.5935834", "0.5908276", "0.5883933", "0.5835289", "0.58345705", "0.5825515", "0.57981616", "0.57974607", "0.5777092", "0.5775371", "0.5772925", "0.5768364", "0.5768033", "0.57678217", "0.57295275", "0.5719184", "0.5715011", "0.57090396", "0.5706633", "0.5702927", "0.5701745", "0.57016855", "0.569883", "0.56819034", "0.5654774", "0.5643873", "0.5643283", "0.5642684", "0.56346506", "0.56097347", "0.5560221", "0.55398923", "0.5537791", "0.5531968" ]
0.72773445
9
endregion region GETTER SETTER
public String getWaehrung() { return Waehrung; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "String setValue();", "public int getSet() {\n return set;\n }", "@Override\n public void get() {}", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "@Override\n String get();", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "private void assignment() {\n\n\t\t\t}", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setdat()\n {\n }", "public abstract String get();", "public int\t\tget() { return value; }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "@Override\n public Object getValue()\n {\n return value;\n }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public Object getValue() { return _value; }", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }", "@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}", "public String get();", "@Override\r\n public Object getValue() {\r\n return value;\r\n }", "public void setU(String f){\n u = f;\n}", "public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }", "public Object getNewValue()\n {\n return newValue;\n }", "public void setAge(int age) { this.age = age; }", "public Value getSetValue() {\n\t\treturn set_value_;\n\t}", "@Override\n public String getValue() {\n return value;\n }", "public String getSetter() {\n return \"set\" + getCapName();\n }", "@Override\n public int getValue() {\n return super.getValue();\n }", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "public V get() {\n return value;\n }", "@Test\n\tpublic void testSet() {\n\t}", "public void get() {\n }", "@Override\n\t\tpublic V setValue(V p1){\n\t\t\treturn p1;\n\t\t}", "public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }", "public Object getValue() { return this.value; }", "public abstract void set(M newValue);", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "@Override\n\tprotected void setValue(String name, TipiValue tv) {\n\t}", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "public String get() {\n return value;\n\t}", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "public int value() { \n return this.value; \n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public Object getValue(){\n \treturn this.value;\n }", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public void setX(int x) { this.x=x; }", "@Override\n \tpublic IValue getValue() {\n \t\treturn this;\n \t}", "public void setValue(Object value) { this.value = value; }", "public Object getValue()\n {\n\treturn value;\n }", "public void setValue(S s) { value = s; }", "public String get()\n {\n return this.string;\n }", "public abstract void setValue(T value);", "public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }", "public S getValue() { return value; }", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "public int getValue()\r\n/* 21: */ {\r\n/* 22: 71 */ return this.value;\r\n/* 23: */ }", "public Object get()\n {\n return m_internalValue;\n }", "public int get () { return rating; }", "V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}", "public void set(String name, Object value) {\n }", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@Override\n\tpublic String get() {\n\t\treturn null;\n\t}", "private void set(int x, int i) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected Object doGetValue() {\n\t\treturn value;\n\t}", "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }", "public abstract String getSetSpec();", "public String get()\n {\n return val;\n }", "@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}", "public int getArmadura(){return armadura;}", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getValue () { return value; }", "public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }", "String get();", "String get();", "public T set(T obj);", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "@Override\r\n\tpublic Serializable getValue() {\n\t\treturn this.code;\r\n}", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "public int getNewProperty_descriptionType(){\n return localNewProperty_descriptionType;\n }", "public int setValue (int val);", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }" ]
[ "0.7147314", "0.6916883", "0.61926985", "0.6180276", "0.6155722", "0.6149138", "0.6118739", "0.6117708", "0.61035365", "0.6096311", "0.60637915", "0.60417885", "0.5941008", "0.5913595", "0.59124774", "0.5898988", "0.5871498", "0.587088", "0.5867463", "0.5867463", "0.5857512", "0.5851388", "0.5845835", "0.58454233", "0.58287597", "0.58124727", "0.5802937", "0.5795107", "0.57933605", "0.5792627", "0.5764571", "0.5753415", "0.5751908", "0.57440084", "0.57286763", "0.5728166", "0.572762", "0.57258576", "0.5725782", "0.5725782", "0.5720962", "0.57072043", "0.5700634", "0.57001764", "0.5692198", "0.56863964", "0.5679939", "0.5679577", "0.5670983", "0.5670593", "0.566995", "0.5661987", "0.5657812", "0.5654557", "0.5654105", "0.5646156", "0.56456226", "0.5640712", "0.5640152", "0.56395674", "0.5637494", "0.562856", "0.56216574", "0.56216323", "0.5617021", "0.56073123", "0.5607102", "0.5604233", "0.56026894", "0.55969113", "0.559615", "0.5581802", "0.5581587", "0.55809426", "0.5580114", "0.5577002", "0.5574925", "0.55745816", "0.55718476", "0.5570561", "0.55581033", "0.55528367", "0.55524087", "0.5551918", "0.55509615", "0.55445516", "0.5543271", "0.55422944", "0.5538148", "0.55330557", "0.55273324", "0.5526329", "0.5526329", "0.5524324", "0.5517363", "0.5516169", "0.5515482", "0.5513955", "0.55129415", "0.55070496", "0.5504083" ]
0.0
-1
TODO : Make Singleton with Global Access
protected TestObject(String inputKey) throws IOException, URISyntaxException { // TODO : Validate Version format and existence on jira // String inputVersion = "2015.09.03"; String inputVersion = PropertiesParser.getVersionFromTerminal(); this.versionName = inputVersion; this.key = inputKey; if (ConnectionManager.isIssueValidTest(key)) { logger.info("ISSUE IS VALID"); issue = ConnectionManager.getIssueId(key); if (issue.getIssueType().equalsIgnoreCase(TEST_ISSUE_TYPE)) { versionsList = ConnectionManager.getProjectVersions(issue.getProjectId()); if ((versionsList.findUnreleasedProjectVersion(versionName)) != null) { logger.info("Version found!!"); versionId = versionsList.findUnreleasedProjectVersion(versionName).getValue(); testCycleList = ConnectionManager.getTestCycles(issue.getProjectId(), versionId); } projectOptionsDOM = ConnectionManager.getProjectsList(); projectId = projectOptionsDOM.getProjectIdForProjectName(issue.getProjectName()); } else { logger.severe("INVALID ISSUE KEY"); } stepExecutionList = ConnectionManager.getStepExecutionStatusSupported(); testExecutionList = ConnectionManager.getTestExecutionStatusSupported(); testSteps = ConnectionManager.getTestSteps(issue.getIdAsLong()); executionId = getExecutionForTest(); if (executionId == -1) { logger.info("TEST not executed under current test cycle."); executeTestUnderCycle(); executionId = getExecutionForTest(); initTestStep(); } getTestStepsWithExecutionIds(); // markStepStatusTo(testSteps[0].getExecutionId(), TestStatus.iStatus_WIP); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private Singleton(){}", "private Singleton() {\n\t}", "private Singleton() { }", "private SingletonEager(){\n \n }", "private Singleton(){\n }", "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}", "public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}", "private SingletonSigar(){}", "private SingletonSample() {}", "private SingletonObject() {\n\n\t}", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "private J2_Singleton() {}", "private SparkeyServiceSingleton(){}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "private LazySingleton(){}", "public static SingleObject getInstance(){\n return instance;\n }", "private SingletonLectorPropiedades() {\n\t}", "public static SingletonEager get_instance(){\n }", "Shared shared();", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "private SingletonDoubleCheck() {}", "private LoggerSingleton() {\n\n }", "public static Main getInstance() {\r\n return instance;\r\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public static Singleton getInstance() {\n return mSing;\n }", "public static Main getInstance() {\n return instance;\n }", "private EagerInitializationSingleton() {\n\t}", "public static class_config getinstance(){\n\t\tif (instance==null){\n\t\t\tinstance = new class_config();\n\t\t\t\n singleton.mongo=new Mongo_DB();\n singleton.nom_bd=singleton.mongo.getNom_bd();\n singleton.nom_table=singleton.mongo.getNom_table();\n singleton.client = Mongo_DB.connect();\n if (singleton.client != null) {\n singleton.db = singleton.mongo.getDb();\n singleton.collection = singleton.mongo.getCollection();\n }\n \n\t\t\tsingleton_admin.admin= new ArrayList<admin_class>();\n\t\t\tsingleton_client.client= new ArrayList<client_class>();\n\t\t\tsingleton_reg.reg= new ArrayList<reg_user_class>();\n\t\t\t\n// A_auto_json.auto_openjson_admin();\n// C_auto_json.auto_openjson_client();\n R_auto_json.auto_openjson_reg();\n //funtions_files.auto_open();\n\t\t\tauto_config.auto_openconfig();\n //class_language.getinstance();\n\t\t\tsingleton_config.lang=new class_language();\n \n connectionDB.init_BasicDataSourceFactory();\n \n\t\t}\n\t\treturn instance;\n\t}", "public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "public static FacadeMiniBank getInstance(){\r\n\r\n\t\tif(singleton==null){\r\n\t\t\ttry {\r\n\t\t\t\t//premier essai : implementation locale\r\n\t\t\t\tsingleton=(FacadeMiniBank) Class.forName(implFacadePackage + \".\" + localeFacadeClassName).newInstance();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.err.println(e.getMessage() + \" not found or not created\");\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\tif(singleton==null){\r\n\t\t\t//deuxieme essai : business delegate \r\n\t\t singleton=getRemoteInstance();\r\n\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn singleton;\r\n\t}", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "private static void createSingletonObject() {\n\t\tSingleton s1 = Singleton.getInstance();\n\t\tSingleton s2 = Singleton.getInstance();\n\n\t\tprint(\"S1\", s1);\n\t\tprint(\"S2\", s2);\n\t}", "private InstanceUtil() {\n }", "private SingletonAR() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonAR\");\n }", "synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }", "@Override\n public boolean isSingleton() {\n return false;\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "T getInstance();", "public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}", "public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "private static LogUtil getInstance() {\r\n if (instance == null) {\r\n final LogUtil l = new LogUtil();\r\n l.init();\r\n if (isShutdown) {\r\n // should not be possible :\r\n if (l.log.isErrorEnabled()) {\r\n l.log.error(\"LogUtil.getInstance : shutdown detected : \", new Throwable());\r\n }\r\n return l;\r\n }\r\n instance = l;\r\n\r\n if (instance.logBase.isInfoEnabled()) {\r\n instance.logBase.info(\"LogUtil.getInstance : new singleton : \" + instance);\r\n }\r\n }\r\n\r\n return instance;\r\n }", "public static GroundItemParser getInstance() {\r\n return SINGLETON;\r\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}", "public static Singleton print(String param)\n {\n return new Singleton();\n}", "@Override\n public T getInstance() {\n return instance;\n }", "public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "public static Light getInstance() {\n\treturn INSTANCE;\n }", "public static InspectorManager getInstance() {\n if (instance==null) instance = new InspectorManager();\n return instance;\n}", "private EagerlySinleton()\n\t{\n\t}", "private SingletonClass() {\n x = 10;\n }", "private SingleTon() {\n\t}", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "private MApi() {}", "private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}", "public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "private InnerClassSingleton(){}", "private LOCFacade() {\r\n\r\n\t}", "public static AccessSub getInstance() {\n\t\treturn instance;\n\t}", "private SingletonSyncBlock() {}", "public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }", "public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public static LOCFacade getInstance() {\r\n\t\tcreateInstance();\r\n\t\treturn instance;\r\n\t}", "public static synchronized Util getInstance(Context context) {\n if (_instance == null) {\n _instance = new Util(context);\n }\n return _instance;\n }", "public static SingletonEager getInstance()\n {\n return instance;\n }", "private Globals() {\n\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public static Singleton instance() {\n return Holder.instance;\n }", "protected static KShingler getInstance() {\n return ShinglerSingleton.INSTANCE;\n }", "private SingletonClass()\n {\n s = \"Hello I am a string part of Singleton class\";\n }", "protected static void demoMethod( ) {\n System.out.println(\"demoMethod for singleton\");\n }", "public static RetrofitClient getInstance() {\n return OUR_INSTANCE;\n }", "private void initInstance() {\n init$Instance(true);\n }", "private Util() { }", "public static synchronized ChatAdministration getInstance(){\n\t\treturn singleInstance;\n\t}", "public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }", "private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}", "String getInstance()\n {\n return instance;\n }", "public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }", "private LazySingleton() {\n if (null != INSTANCE) {\n throw new InstantiationError(\"Instance creation not allowed\");\n }\n }", "public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "private SingletonClass() {\n objects = new ArrayList<>();\n }", "private Globals() {}", "public static ChatSingleton getInstance( ) {\n return singleton;\n }", "public static IndicieSeznam getInstance() {\n\n return ourInstance;\n }", "public static Paths getInstance(){\r\n if(instance == null){\r\n instance = new Paths();\r\n }\r\n return instance;\r\n }", "static Repo getInstance() {\n return RepoSingelton.getRepo(); //todo: refactor\n }", "public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "private FeedRegistry() {\n // no-op for singleton pattern\n }", "public static IFilter getInstance() {\n return singleton;\n }" ]
[ "0.78586125", "0.78175807", "0.77998906", "0.76735246", "0.7656653", "0.7586552", "0.75694716", "0.7446443", "0.7436965", "0.7418046", "0.7401209", "0.7241247", "0.7241247", "0.7230687", "0.7190943", "0.71803784", "0.7120182", "0.7110101", "0.7082652", "0.7075814", "0.7033838", "0.7031924", "0.70290154", "0.7009878", "0.6988609", "0.69757944", "0.69671875", "0.69659233", "0.6908991", "0.68947506", "0.68893677", "0.6884395", "0.6849341", "0.68478924", "0.6841809", "0.68406975", "0.6810203", "0.67776734", "0.67705137", "0.6765198", "0.67497766", "0.6735274", "0.67274797", "0.67236733", "0.6721446", "0.67169476", "0.67052084", "0.6703312", "0.66965145", "0.6692646", "0.668295", "0.6679278", "0.66733605", "0.66699654", "0.6661831", "0.6651647", "0.6649912", "0.66235334", "0.6620212", "0.66160405", "0.660852", "0.66081136", "0.6601842", "0.6588355", "0.6563694", "0.6562506", "0.65618414", "0.6560424", "0.6556487", "0.6519575", "0.6519159", "0.6516525", "0.65080416", "0.65031695", "0.65029246", "0.6499731", "0.6498726", "0.64962167", "0.6494378", "0.6485436", "0.64682037", "0.6468159", "0.6460155", "0.64581835", "0.64536166", "0.6451135", "0.6447427", "0.6439815", "0.6428063", "0.64253205", "0.6424203", "0.6423338", "0.64147156", "0.64145815", "0.6414404", "0.6413567", "0.6407328", "0.63962483", "0.6395563", "0.6393654", "0.639204" ]
0.0
-1
get Test execution Id for a Test, if not exists, creates one
public long getExecutionForTest() throws IOException, URISyntaxException { ConnectionManager.refreshSession(); executionCycleDOM = ConnectionManager.getTestExecutionForIssue(issue.getIdAsLong()); executionId = executionCycleDOM.getIdByVersion(versionId); logger.info("EXECUTION ID : " + executionId); return executionId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int createNewTest(String testName) {\r\n\t\tint newTestId = -1;\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tPreparedStatement pStat = dbConnection.prepareStatement(\"insert into tests (name) VALUES (?)\", Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tpStat.setString(1, testName);\r\n\t\t\tpStat.execute();\r\n\r\n\t\t\tResultSet rs = pStat.getGeneratedKeys();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tnewTestId = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tpStat.close();\r\n\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn newTestId;\r\n\t}", "public String getTestExecutionId() {\n return this.testExecutionId;\n }", "private int getTestId(String testName) {\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tStatement statement = dbConnection.createStatement();\r\n\t\t\tResultSet resultSet = statement.executeQuery(\"select id_test from tests where name = '\" + testName + \"'\");\r\n\r\n\t\t\tif (resultSet.next()) {\r\n\t\t\t\treturn resultSet.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\treturn -1;\r\n\t}", "public int getTestCaseId(String testName) {\r\n\t\tif (testCaseId != null) {\r\n\t\t\treturn testCaseId;\r\n\t\t}\r\n\t\tcreateTestCase(testName);\r\n\t\treturn testCaseId;\r\n\t}", "public static String getTestId() {\n\t\t\trandomTestId+=1;\n\t\t\treturn Integer.toString(randomTestId);\n\t\t}", "public Integer getTestId() {\n return testId;\n }", "public int getTestId() {\n return this._TestId;\n }", "public Long getTestId() {\n return testId;\n }", "public UUID executionId();", "public int getTestCaseId() {\n return testCaseId;\n }", "String getExecId();", "public void setTestExecutionId(String testExecutionId) {\n this.testExecutionId = testExecutionId;\n }", "String experimentId();", "@Override\n\tpublic String getPingTestId() {\n\t\treturn getClass().getName() + \"-\" + getUid();\n\t}", "public void testGetId(){\n exp = new Experiment(\"10\");\n assertEquals(\"getId does not work\", \"10\", exp.getId());\n }", "public String getTestInstanceId() {\n return testinstanceid;\n }", "public int getTestCaseStepRunId() {\n return testCaseStepRunId;\n }", "@Test\n public void getID() {\n\n }", "private Long createNewTestPackageRecord(Long userid) {\r\n\t\tTesttargetRecord result = getDbContext().insertInto(TESTTARGET, TESTTARGET.USER_ID).values(userid)\r\n\t\t\t\t.returning(TESTTARGET.ID).fetchOne();\r\n\t\treturn result.getId();\r\n\t}", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "public void createTestCase(String testName) {\r\n\t\tif (!active) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (testName == null || testName.isEmpty()) {\r\n\t\t\tthrow new ConfigurationException(\"testName must not be null or empty\");\r\n\t\t}\r\n\t\t\r\n\t\tif (applicationId == null) {\r\n\t\t\tcreateApplication();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tJSONObject testJson = getJSonResponse(Unirest.post(url + TESTCASE_API_URL)\r\n\t\t\t\t\t.field(\"name\", testName)\r\n\t\t\t\t\t.field(\"application\", applicationId));\r\n\t\t\ttestCaseId = testJson.getInt(\"id\");\r\n\t\t} catch (UnirestException | JSONException e) {\r\n\t\t\tthrow new SeleniumRobotServerException(\"cannot create test case\", e);\r\n\t\t}\r\n\t}", "public long getTestId(long projectKey) {\n\t\treturn 0;\n\t}", "public DescribeTestExecutionResult withTestExecutionId(String testExecutionId) {\n setTestExecutionId(testExecutionId);\n return this;\n }", "int incExperimentId();", "public DescribeTestExecutionResult withTestSetId(String testSetId) {\n setTestSetId(testSetId);\n return this;\n }", "public SingleTestRunner(long id, PerfTest test) {\n this.test = test;\n this.id = id;\n }", "public Long newTestHeadData(@NotNull TestHeadData testHeadData) {\n Long id = null;\n Session session = SessionFactoryHelper.getOpenedSession();\n try {\n session.beginTransaction();\n session.save(testHeadData); //insert into table !\n session.getTransaction().commit();\n id = testHeadData.getId();\n logger.info(\"TestHead record created successfully: {}\", id);\n } catch (Exception e) {\n session.getTransaction().rollback();\n logger.warn(\"TestHead record creation failure\", e);\n }\n session.close();\n return id;\n }", "public void setTestId(Integer testId) {\n this.testId = testId;\n }", "public String getTestSetId() {\n return this.testSetId;\n }", "public String getTestSetId() {\n return this.testSetId;\n }", "@Test\n public void testWithActiveRunNoRunName() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "public void testGetUniqueID_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public long createDemo() {\n mDemoId = insertDemo(\"unnamed\");\n return mDemoId;\n }", "@Test\n public void commandIdTest() {\n // TODO: test commandId\n }", "String getExistingId();", "public void testGetUniqueID_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "java.lang.String getSetupID();", "public void testGetUniqueID_fixture28_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture28();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture22_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture22();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "ExperimenterId getExperimenterId();", "@Test\n\tpublic void getIdTest() {\n\t}", "public void testGetUniqueID_fixture23_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture23();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture8_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture8();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture24_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture24();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture11_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture11();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture27_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture27();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "@Test\n public void testMakeUniqueProgramId() {\n System.out.println(\"makeUniqueProgramId\");\n \n List<SAMProgramRecord> programList = new ArrayList();\n SAMProgramRecord programRecord = new SAMProgramRecord(\"test\");\n programList.add(programRecord);\n \n SAMProgramRecord programRecord1 = new SAMProgramRecord(\"test\");\n \n PicardCommandLine instance = new PicardCommandLineImpl();\n\n SAMProgramRecord result = instance.makeUniqueProgramId(programList, programRecord1);\n assertEquals(result.getProgramGroupId(), \"test_1\");\n\n }", "public void testGetUniqueID_fixture14_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture14();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "@Test\n public void insertTaskAndGetById() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(TASK.getId());\n\n // The loaded data contains the expected values\n assertTask(loaded, \"id\", \"title\", \"description\", true);\n }", "public void testGetUniqueID_fixture18_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture18();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture13_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture13();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "@Test\n public void testWithActiveRun() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(\"apple\", activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "public String createUniqueScriptInstanceIdentifier() {\n\n\t\tLOGGER.debug(\"Creating a unique script instance identifier\");\n\n\t\t// generate a random name for the connection\n\t\tCalendar myCalendar = Calendar.getInstance();\n\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyyMMddHHmmssS\");\n\t\tString scriptIdentifier = \"scriptInstance\"\n\t\t\t\t+ dateFormatter.format(myCalendar.getTime())\n\t\t\t\t+ randomNameSequence;\n\t\trandomNameSequence = randomNameSequence + 1;\n\n\t\tLOGGER.info(\"Generated unique script instance identifier [\"\n\t\t\t\t+ scriptIdentifier + \"]\");\n\n\t\treturn scriptIdentifier;\n\t}", "@Before\n public void beforeTest() throws Exception\n {\n Transaction tx = null;\n try\n {\n tx = HibernateUtil.getTransaction();\n System.out.println(\"Creating TM id \" + currentTestId);\n TM3Tm<TestData> tm = manager.createMultilingualSharedTm(FACTORY, inlineAttrs(), 1);\n currentTestId = tm.getId();\n\n HibernateUtil.commit(tx);\n }\n catch (Exception e)\n {\n HibernateUtil.rollback(tx);\n throw e;\n }\n }", "String getExecRefId();", "public String newSpyId()\n {\n return _spyDataSource.createConnectionId();\n }", "public void testGetUniqueID_fixture9_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture9();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "@UniqueID(\"ProvidedID\")\n\t\[email protected]\n\t\tprivate void uniqueIdAnnotation() {\n\t\t}", "@Test\n public void test_create_scenario() {\n try {\n TestData X = new TestData(\"project2.opt\");\n String new_name = \"new_scenario\";\n X.project.create_scenario(new_name);\n assertNotNull(X.project.get_scenario_with_name(new_name));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "public void testGetUniqueID_fixture25_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture25();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n \r\n int expResult = 0;\r\n int result = instance.getId();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "Id createId();", "public OnlineTest saveTest(OnlineTest onlineTest) throws UserException{\n\t\tString sql = \"insert into test(test_name, test_duration, test_total_marks,test_marks_scored, test_start_date_time, test_end_date_time) values(?,?,?,?,?,?)\";\r\n\t\ttry {\r\n\t\t\tpreparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tpreparedStatement.setString(1, onlineTest.getTestName());\r\n\t\t\tpreparedStatement.setTime(2,Time.valueOf(onlineTest.getTestDuration()));\r\n\t\t\tpreparedStatement.setDouble(3, onlineTest.getTestTotalMarks());\r\n\t\t\tpreparedStatement.setDouble(4, onlineTest.getTestMarksScored());\r\n\t\t\tpreparedStatement.setTimestamp(5, Timestamp.valueOf(onlineTest.getStartTime()));\r\n\t\t\tpreparedStatement.setTimestamp(6, Timestamp.valueOf(onlineTest.getEndTime()));\r\n\t\t\tint result = preparedStatement.executeUpdate();\r\n\t\t\tif(result == 0) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tBigInteger generatedId = BigInteger.valueOf(0L);\r\n\t\t\tresultSet = preparedStatement.getGeneratedKeys();\r\n\t\t\tif (resultSet.next()) {\r\n\t\t\t\tgeneratedId = BigInteger.valueOf(resultSet.getLong(1));\r\n\t\t\t\tSystem.out.println(\"Auto generated id : \" + generatedId);\r\n\t\t\t}\r\n\t\t\tonlineTest.setTestId(generatedId);;\r\n\t\t\tSystem.out.println(\"Added Test to the database with id as : \" + generatedId);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Error at add Test Dao method: \" + e);\r\n\t\t} finally {\r\n\t\t\tif (preparedStatement != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpreparedStatement.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tSystem.out.println(\"Error at add Test Dao method: \" + e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn onlineTest;\r\n\t}", "public long newExpectedID() {\n long id;\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(COLUMN_EXPECTED_BALANCE, 0);\n values.put(COLUMN_EXPECTED_MONTHLY_INCOME, 0);\n values.put(COLUMN_EXPECTED_MONTHLY_OUTCOME, 0);\n // Inserting Row\n id = db.insert(TABLE_EXPECTED, null, values);\n db.close();\n return id;\n }", "boolean hasExecId();", "@Test\n void getPid() {\n assertEquals(3, new Process() {{\n setPid(3);\n }}.getPid());\n }", "int getUnusedExperimentId();", "public void setTestId(Long testId) {\n this.testId = testId;\n }", "public Integer getActiveTestRunSession() {\n return activeTestRunSession;\n }", "public void testGetUniqueID_fixture10_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture10();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "@Test\n public void testGenerateIdExpectedValue() {\n Monkey monkey = new Monkey();\n int id = monkey.generateIdRefactored(100);\n assertEquals(id,223592);\n }", "public void testGetUniqueID_fixture12_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture12();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public void testGetUniqueID_fixture26_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture26();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "@Test\r\n public void getIdTest() {\r\n assertEquals(1, testTile.getId());\r\n }", "public void testGetUniqueID_fixture4_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture4();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "Object getNextRuntimeId() throws PersistenceException;", "public int getExecutionInstance() {\n return executionInstance;\n }", "private Task getFirstTestTask() {\n Task task = new Task();\n task.setName(\"Buy Milk\");\n task.setCalendarDateTime(TODAY);\n task.addTag(\"personal\");\n task.setCompleted();\n return task;\n }", "@Test\n void saveSuccess() {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n System.out.println(\"Result\" + result);\n\n if (result != null) {\n Optional<TestEntity> optionalEntity = instance.getById(TestEntity.class, result);\n\n TestEntity entity = optionalEntity.orElse(null);\n\n if (entity != null) {\n Assertions.assertEquals(result, entity.getId());\n Assertions.assertNotNull(result);\n } else {\n Assertions.fail();\n }\n } else {\n Assertions.fail();\n }\n }", "@Override\n\tpublic MedicalTest findTestById(String testId) {\n\n\t\tOptional<MedicalTest> optional = testDao.findById(testId);\n\t\tif (optional.isPresent()) {\n\t\t\tMedicalTest test = optional.get();\n\t\t\treturn test;\n\t\t}\n\t\tthrow new MedicalTestNotFoundException(\"Test not found for Test Id= \" + testId);\n\t}", "@Test\n public void testCreateExperiment() {\n ExperimentId experimentId = new ExperimentId();\n experimentId.setServerTimestamp(System.currentTimeMillis());\n experimentId.setId(1);\n\n // Construct expected result\n Experiment expectedExperiment = new Experiment();\n expectedExperiment.setSpec(spec);\n expectedExperiment.setExperimentId(experimentId);\n expectedExperiment.rebuild(result);\n\n // Spy experimentManager in order to stub generateExperimentId()\n ExperimentManager spyExperimentManager = spy(experimentManager);\n doReturn(experimentId).when(spyExperimentManager).generateExperimentId();\n\n // Stub mockSubmitter createExperiment\n when(mockSubmitter.createExperiment(any(ExperimentSpec.class))).thenReturn(result);\n\n // actual experiment should == expected experiment\n Experiment actualExperiment = spyExperimentManager.createExperiment(spec);\n\n verifyResult(expectedExperiment, actualExperiment);\n }", "String getProgramId();", "public void testGetUniqueID_fixture1_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture1();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "@Test\n public void insertUserTask() throws Exception {\n cleanUpRunningProcessInstances();\n \n String businessKey = \"\" + new Random(System.currentTimeMillis()).nextInt(1000);\n ProcessInstance processInstance = processEngine.getRuntimeService().startProcessInstanceByKey(PROCESS_DEFINITION_KEY, businessKey);\n\n assertEquals(1, processEngine.getHistoryService().createHistoricProcessInstanceQuery().processInstanceId(processInstance.getId()).count());\n \n TablePage userTasks = processEngine.getManagementService().createTablePageQuery().tableName(\"USER_TASK\").listPage(0, 100);\n assertTrue(\"No Usertasks in database\", userTasks.getSize() > 0);\n List<Map<String, Object>> userTaskRows = userTasks.getRows();\n boolean businessKeyFound = false;\n for (Map<String, Object> userTaskRow : userTaskRows) {\n System.out.println(\"\" + userTaskRow.get(\"PROC_INST_ID_\"));\n if (userTaskRow.get(\"PROC_INST_ID_\").equals(processInstance.getId())) {\n if (userTaskRow.get(\"BUSINESS_KEY_\").equals(businessKey)) {\n businessKeyFound = true;\n }\n } \n }\n assertTrue(\"Business Key not found\", businessKeyFound);\n }", "@Override\n\tpublic TestUnit create(long testUnitId) {\n\t\tTestUnit testUnit = new TestUnitImpl();\n\n\t\ttestUnit.setNew(true);\n\t\ttestUnit.setPrimaryKey(testUnitId);\n\n\t\treturn testUnit;\n\t}", "@Test\n\tpublic void testGetID() {\n\t}", "@Test\n public void testGenerarIdentificacion() {\n }", "@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }", "public void startTest(String testName) {\r\n\t\t// Tworzymy nowy run_id i od tego momentu logujemy pod ten id\r\n\t\t\r\n\t\tif (Conf.isDbLog()) {\r\n\t\t\tint idTest = getTestId(testName);\r\n\t\t\t\r\n\t\t\tif (idTest == -1)\r\n\t\t\t\tidTest = createNewTest(testName);\r\n\t\t\t\t\r\n\t\t\tint idRun = getNewRunId(idTest);\r\n\t\t\t\r\n\t\t\tConf.setTestName(testName);\r\n\t\t\tConf.setRunId(idRun);\r\n\t\t\tConf.setTestId(idTest);\r\n\t\t\tConf.setTestStatus(PASSED);\r\n\t\t\t\r\n\t\t\tinfo(\"Started test \" + testName);\r\n\t\t\tinfo(\"Run id: \" + idRun);\r\n\t\t}\t\t\r\n\t}", "public Builder setExecId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n execId_ = value;\n onChanged();\n return this;\n }", "@Test\n void getByIdSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n System.out.println(\"Result\" + result);\n\n if (result != null) {\n Optional<TestEntity> optionalEntity = instance.getById(TestEntity.class, result);\n\n TestEntity entity = optionalEntity.orElse(null);\n\n if (entity != null) {\n Assertions.assertEquals(result, entity.getId());\n Assertions.assertNotNull(result);\n } else {\n Assertions.fail();\n }\n } else {\n Assertions.fail();\n }\n }", "public String getExecId() {\n Object ref = execId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n }\n }", "public Test addTest(Test testEntity) {\n\t\tTest testEntity2=testRepository.save(testEntity);\n\t\treturn testEntity2;\n\t}", "public void testGetUniqueID_fixture20_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture20();\n\n\t\tAbstractUniqueID result = fixture.getUniqueID();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getId());\n\t}", "public String getExecId() {\n Object ref = execId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "@Test\n public void addRecipeIngredient_ReturnsID(){\n int returned = testDatabase.addRecipeIngredient(recipeIngredient);\n assertNotEquals(\"addRecipeIngredient - Returns True\", -1, returned);\n }" ]
[ "0.7027479", "0.6775392", "0.6603564", "0.65650344", "0.6510445", "0.6276087", "0.6263099", "0.62108", "0.6180039", "0.5922249", "0.5853737", "0.57483566", "0.57282877", "0.5709575", "0.57086545", "0.5697204", "0.56161076", "0.56131405", "0.5574875", "0.55295056", "0.55295056", "0.5487573", "0.54610586", "0.54451543", "0.54363304", "0.5423815", "0.5418999", "0.5401392", "0.5353857", "0.5339607", "0.5339607", "0.53368837", "0.52906436", "0.52672106", "0.5265162", "0.523058", "0.52299047", "0.5207054", "0.5199841", "0.5194363", "0.5186236", "0.5175605", "0.51705974", "0.5144366", "0.51377493", "0.51314056", "0.5129199", "0.5127607", "0.5116442", "0.5113763", "0.50895745", "0.50846064", "0.5084364", "0.5080452", "0.50685203", "0.505122", "0.50469565", "0.50300974", "0.50269043", "0.50262296", "0.5025772", "0.5023268", "0.50158894", "0.5009777", "0.50082093", "0.5007643", "0.5005668", "0.50025284", "0.5000502", "0.49980944", "0.4985295", "0.49736276", "0.4969022", "0.49676263", "0.49563658", "0.49481562", "0.49481094", "0.49414653", "0.49414262", "0.49148798", "0.49147716", "0.49003506", "0.48870575", "0.48829308", "0.48747912", "0.4851843", "0.48499495", "0.48482355", "0.48457024", "0.48396856", "0.48340324", "0.48195675", "0.4816383", "0.48101816", "0.48091814", "0.48052934", "0.48040387", "0.47987548", "0.47968605", "0.47922695" ]
0.62910354
5
executes a Test under a given test cycle
public void executeTestUnderCycle() throws IOException, URISyntaxException { ConnectionManager.addTestToTestCycle(issue.getKey(), versionId, issue.getProjectId(), Integer.toString(testCycleList.getTestCycleIdFromName(TEST_CYCLE_NAME))); testExecutedInSession = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "public void run(TestCase testCase) {\n }", "@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }", "@Override\n protected void executeTest() {\n ClientConnection<Event> harry = register(0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n ClientConnection<Event> statist23 = register(1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n\n assertRegisterEvent(harry.nextEvent(), 1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n assertRegisterEvent(statist23.nextEvent(), 0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n\n // round 1 begins\n assertRoundBegin(assertAndMerge(harry, statist23), 1);\n\n for (int i = 0; i < this.stepsBeforeTurn; i++) {\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(Direction.EAST);\n assertMoved(assertAndMerge(harry, statist23), 0, Direction.EAST);\n }\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(this.lastDirection);\n assertKicked(assertAndMerge(harry, statist23), 0);\n\n assertActNow(assertAndMerge(harry, statist23), 1);\n statist23.sendDoneActing();\n assertDoneActing(assertAndMerge(harry, statist23), 1);\n\n assertRoundEnd(assertAndMerge(harry, statist23), 1, 0);\n assertWinner(assertAndMerge(harry, statist23), \"Passive\");\n }", "public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }", "public void run() {\n RandomizedContext current = RandomizedContext.current();\n try {\n current.push(c.randomness);\n runSingleTest(notifier, c);\n } catch (Throwable t) {\n Rethrow.rethrow(augmentStackTrace(t)); \n } finally {\n current.pop();\n }\n }", "private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }", "public void run(TestResult result) {\n result.run(this);\n }", "public void testexecute(String test) throws Exception;", "public void Run(){\n\t\t_TEST stack = new _TEST();\t\t/* TEST */\n\t\tstack.PrintHeader(ID,\"\", \"\");\t/* TEST */\n\t\t\n\t\tSetStatus(Status.RUNNING);\n\t\t\n\t\tstack.PrintTail(ID,\"\", \"\"); \t/* TEST */\n\t\t\n\t}", "@Test\n public void testNextWaiting() {\n }", "public void run() {\n block5 : {\n if (this.testMethod.isIgnored()) {\n this.notifier.fireTestIgnored(this.description);\n return;\n }\n this.notifier.fireTestStarted(this.description);\n try {\n long timeout = this.testMethod.getTimeout();\n if (timeout > 0) {\n this.runWithTimeout(timeout);\n break block5;\n }\n this.runTest();\n }\n finally {\n this.notifier.fireTestFinished(this.description);\n }\n }\n }", "protected void doRun(Test test) {\n setMidletToNestedTests(test);\n super.doRun(test);\n }", "public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }", "public void run() throws Exception {\n for (int i = 0; i < testCases.length; ++i) {\n runCase(testCases[i]);\n }\n }", "private void runSingleTest(final RunNotifier notifier, final TestCandidate c) {\n notifier.fireTestStarted(c.description);\n \n if (isIgnored(c)) {\n notifier.fireTestIgnored(c.description);\n return;\n }\n \n Set<Thread> beforeTestSnapshot = threadsSnapshot();\n Object instance = null;\n try {\n // Get the test instance.\n if (c.instance instanceof DeferredInstantiationException) {\n throw ((DeferredInstantiationException) c.instance).getCause();\n } else {\n instance = c.instance;\n }\n \n // Run @Before hooks.\n for (Method m : getTargetMethods(Before.class))\n invoke(m, instance);\n \n // Collect rules and execute wrapped method.\n runWithRules(c, instance);\n } catch (Throwable e) {\n boolean isKilled = runnerThreadGroup.isKilled(Thread.currentThread());\n \n // Check if it's the runner trying to kill the thread. If so,\n // there is no point in reporting such an exception back. Also,\n // if the thread's been killed, we will not run any hooks (this is\n // pretty much a situation in which the world ends).\n if (isKilled && (e instanceof ThreadDeath)) {\n // TODO: System.exit() wouldn't run any post-cleanup on hooks. A better\n // way to resolve this would be to mark a global condition to ignore\n // all the remaining tests (fail with an assumption exception saying\n // there's a boogieman around or something).\n return;\n }\n \n // Augment stack trace and inject a fake stack entry with seed information.\n if (!isKilled) {\n e = augmentStackTrace(e);\n if (e instanceof AssumptionViolatedException) {\n notifier.fireTestAssumptionFailed(new Failure(c.description, e));\n } else {\n notifier.fireTestFailure(new Failure(c.description, e));\n }\n }\n }\n \n // Run @After hooks if an instance has been created.\n if (instance != null) {\n for (Method m : getTargetMethods(After.class)) {\n try {\n invoke(m, instance);\n } catch (Throwable t) {\n t = augmentStackTrace(t);\n notifier.fireTestFailure(new Failure(c.description, t));\n }\n }\n }\n \n // Dispose of resources at test scope.\n RandomizedContext.current().closeResources(\n new ResourceDisposal(notifier, c.description), LifecycleScope.TEST);\n \n // Check for run-away threads at the test level.\n ThreadLeaks tl = onElement(ThreadLeaks.class, defaultThreadLeaks, c.method, suiteClass);\n checkLeftOverThreads(notifier, LifecycleScope.TEST, tl, c.description, beforeTestSnapshot);\n \n // Process uncaught exceptions, if any.\n runnerThreadGroup.processUncaught(notifier, c.description);\n }", "public void testExecute() {\n panel.execute();\n }", "@Test\n void one() {\n System.out.println(\"Executing Test 1.\");\n }", "public void startTestLoop() {\n boolean shouldGoBack = false;\n Activity currentActivity = getActivityInstance();\n if (currentActivity != null) {\n evaluateAccessibility(currentActivity);\n } else {\n shouldGoBack = true;\n }\n\n\n // TODO: If goal state has been reached, terminate the test loop\n if (actionCount >= MAX_ACTIONS) {\n return;\n }\n\n // Then, come up with an estimate for what next action to take\n UiInputActionType nextAction = !shouldGoBack ? getNextActionType() : UiInputActionType.BACK;\n UiObject subject = getNextActionSubject(nextAction);\n\n // If no subject was found for this action, retry\n if (subject == null) {\n\n startTestLoop();\n\n } else {\n\n // Finally, execute that action\n try {\n Log.e(\"ACTION\", \"Performing \" + nextAction + \" on \" + subject.getClassName());\n } catch (UiObjectNotFoundException e) {\n e.printStackTrace();\n }\n executeNextAction(nextAction, subject);\n\n // Call the start loop again\n uiDevice.waitForIdle(2000);\n startTestLoop();\n\n }\n\n }", "@Test\n public void main() {\n run(\"TEST\");\n }", "public void run() {\n\n long now = System.currentTimeMillis();\n //System.out.println(\"1: \" + this.getClass().getName() + \"#\" + id + \", \" + (System.currentTimeMillis()) + \" ms\");\n try {\n\n test.setUp();\n this.testReport = new TestReport(id, this.getClass().getName());\n while (alive.get()) {\n test.test(this.id);\n counter.incrementAndGet();\n }\n //long stop = System.currentTimeMillis();\n //System.out.println(\"2: \" + this.getClass().getName() + \"#\" + id + \", \" + stop + \" \" + (stop - now) + \" ms\");\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n test.tearDown();\n this.testReport.stopTimers();\n //testReport.printInfo();\n } catch (Exception e) {\n // ignore errors in tearDown for now\n }\n }\n\n }", "@Test\n\tpublic void Cases_23275_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Go to Active tasks dashlet\n\t\t// TODO: VOOD-960 - Dashlet selection \n\t\tnew VoodooControl(\"span\", \"css\", \".row-fluid > li div span a span\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \"[data-dashletaction='createRecord']\").click();\n\t\tsugar().tasks.createDrawer.getEditField(\"subject\").set(testName);\n\t\tsugar().tasks.createDrawer.save();\n\t\tif(sugar().alerts.getSuccess().queryVisible()) {\n\t\t\tsugar().alerts.getSuccess().closeAlert();\n\t\t}\n\n\t\t// refresh the Dashlet\n\t\tnew VoodooControl(\"a\", \"css\", \".dashboard-pane ul > li > ul > li .btn-group [title='Configure']\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \"li > div li div [data-dashletaction='refreshClicked']\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Verify task is in Active-Task Dashlet (i.e in TODO tab, if we have no related date for that record)\n\t\tnew VoodooControl(\"div\", \"css\", \"div[data-voodoo-name='active-tasks'] .dashlet-unordered-list .dashlet-tabs-row div.dashlet-tab:nth-of-type(3)\").click();\n\t\tnew VoodooControl(\"div\", \"css\", \"div.tab-pane.active p a:nth-of-type(2)\").assertEquals(testName, true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tCreatePlungeStrategy frame = new CreatePlungeStrategy(path1, retractPlane); //manda os parametros path e retractplane pra execucao\r\n\r\n\t\tfor(;;);\r\n\t}", "@Override\n public void runTest() {\n }", "private void runTest(String path, int key){\n\t\t\n\t\tsaveTestList(path); \n\t\tgetSelectedPanel().clearResults();\n\t\tcontroller.runTest(path,key);\n\t}", "public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCYCLE() {\n CuteNetlibCase.doTest(\"CYCLE.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public void run() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Force GC and record current memory usage\n _memoryBean.gc();\n _heapBytes = _memoryBean.getHeapMemoryUsage().getUsed();\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int runIterations = 0;\n String runTime = tc.getParam(Constants.RUN_TIME);\n if (runTime != null) {\n // Calculate end time\n long startTime = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(runTime);\n \n // Run phase\n do {\n run(tc); // Call run\n runIterations++;\n millis = Util.currentTimeMillis();\n } while (endTime >= millis);\n }\n else {\n // Adjust runIterations based on number of threads\n runIterations = tc.getIntParam(Constants.RUN_ITERATIONS) / nOfThreads;\n \n // Run phase\n for (int i = 0; i < runIterations; i++) {\n run(tc); // Call run\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualRunIterations = \n tc.hasParam(Constants.ACTUAL_RUN_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_RUN_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_RUN_ITERATIONS, \n actualRunIterations + runIterations);\n }\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}", "protected void runAfterTest() {}", "public static void selfTest() {\n\talarmTest1();\n\t// Invoke your other test methods here ...\n }", "private void runTest(final Node me) {\n if (!initialized) {\n initStressTest();\n }\n\n List<Row> runs = engine.getSqlTemplate().query(selectControlSql);\n\n for (Row run : runs) {\n int runId = run.getInt(\"RUN_ID\");\n int payloadColumns = run.getInt(\"PAYLOAD_COLUMNS\");\n int initialSeedSize = run.getInt(\"INITIAL_SEED_SIZE\");\n long duration = run.getLong(\"DURATION_MINUTES\");\n\n String status = engine.getSqlTemplate().queryForString(selectStatusSql, runId, me.getNodeId());\n\n if (isMasterNode(me) && StringUtils.isBlank(status)) {\n initStressTestRowOutgoing(payloadColumns, runId, initialSeedSize);\n initStressTestRowIncoming(payloadColumns);\n long commitRows = run.getLong(\"SERVER_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"SERVER_COMMIT_SLEEP_MS\");\n\n engine.getSqlTemplate().update(insertStatusSql, runId, me.getNodeId(), \"RUNNING\");\n for (Node client : engine.getNodeService().findTargetNodesFor(NodeGroupLinkAction.W)) {\n engine.getSqlTemplate().update(insertStatusSql, runId, client.getNodeId(), \"RUNNING\");\n }\n\n fillOutgoing(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n\n } else if (!isMasterNode(me) && !StringUtils.isBlank(status) && status.equals(\"RUNNING\")) {\n long commitRows = run.getLong(\"CLIENT_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"CLIENT_COMMIT_SLEEP_MS\");\n\n fillIncoming(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n }\n }\n }", "@Override\n\tpublic void onTestStart(ITestResult result) {\n\t\ttest = extent.createTest(result.getMethod().getMethodName());\n\t //part of fixing parallel run, sending a object to the pool:\n\t extentTest.set(test);\n\t}", "public void incrementerTest() {\n\t\tthis.nbTests++;\n\t}", "protected void runTestCase(Statement testRoutine) throws Throwable {\n Throwable e = null;\n setUp();\n try {\n runTest(testRoutine);\n } catch (Throwable running) {\n e = running;\n } finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (e == null) e = tearingDown;\n }\n }\n if (e != null) throw e;\n }", "public void\n performTest\n ( \n BaseMasterExt ext\n )\n throws PipelineException\n {\n ext.preOfflineTest(pVersions);\n }", "@Test\n public void testTimelyTest() {\n }", "@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}", "@Test\n\tpublic void test(){\n\t\n\t\tThread.yield();\n\t\t\n\t\tlog.info(\"done\");\n\t}", "TestClassExecutionResult assertTestsExecuted(TestCase... testCases);", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "protected void runTest(int iterations) {\n\t\tsteps = 0;\n\t\trunBeforeIterations();\n\t\tfor (iteration = 0; iteration < iterations; iteration++) {\n\t\t\trunBeforeIteration();\n\t\t\tstep = 0;\n\t\t\twhile (hasNextStep()) {\n\t\t\t\trunBeforeStep();\n\t\t\t\tresult = runStep();\n\t\t\t\trunAfterStep();\n\t\t\t\tstep++;\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t\trunAfterIteration();\n\t\t}\n\t\trunAfterIterations();\n\t}", "Execution executeRecipe(TestRecipe recipe);", "public void testGet() {\n\t//int i = 5;\n\ttitle();\n\tfor (int i = 1; i <= TestEnv.parallelism; i++) {\n\t this.parallelism = i;\n\t super.testGet();\n\t}\n }", "protected abstract TestResult runTestImpl() throws Exception;", "public void testCycleHaltAddM() \r\n\t{\n\t\tMemory testProgram1 = new Memory(3);\r\n\t\ttestProgram1.store(0, \"00000000\");\r\n\t\ttestProgram1.store(1, \"00100111\");\r\n\t\ttestProgram1.store(2, \"11100111\");\r\n\t\t\r\n\t\tCPU testCPU = new CPU(testProgram1);\r\n\t\t\r\n\t\t//check haltCalledbefore the action is executed\r\n\t\tassertEquals(false, testCPU.getHaltCalled());\t\t\r\n\t\ttestCPU.cycle();\r\n\t\t//check haltCalled after the action is performed\r\n\t\tassertEquals(true, testCPU.getHaltCalled());\t\r\n\t\t\r\n\t\t//Check the accumulator before the rest is program is executed\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t\ttestCPU.executeProgramInMemory();\r\n\t\t//Check the accumulator after the program has been executed\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t\t\r\n\t\t//This program modifies the aaccumulator and then call halt\r\n\t\tMemory testProgram2 = new Memory(3);\r\n\t\ttestProgram2.store(0, \"10100111\");\r\n\t\ttestProgram2.store(1, \"00000000\");\r\n\t\ttestProgram2.store(2, \"11100111\");\r\n\t\t\r\n\t\ttestCPU.setMemory(testProgram2);\r\n\t\t\r\n\t\t//Check the accumulator before execution\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t\t//check accumulator after the rest of the program has been executed\r\n\t\ttestCPU.executeProgramInMemory();\r\n\t\tassertEquals(\"00000111\", testCPU.getAccumulator());\r\n\t\tassertEquals(7, testCPU.getAccumulatorDecimal());\r\n\t\t\r\n\t\t\r\n\t\t//This program call halt at the beginning then call it again\r\n\t\t//it check that even the halt it call again nothing is execute\r\n\t\t//after the first call\r\n\t\tMemory testProgram3 = new Memory(4);\r\n\t\ttestProgram3.store(0, \"00000000\");\r\n\t\ttestProgram3.store(1, \"10100111\");\r\n\t\ttestProgram3.store(2, \"00000000\");\r\n\t\ttestProgram3.store(3, \"10100111\");\r\n\t\t\r\n\t\ttestCPU.setMemory(testProgram3);\r\n\t\r\n\t\t//Check the accumulator before execution\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t\ttestCPU.executeProgramInMemory();\r\n\t\t//check accumulator after the rest of the program has been executed\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t}", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "public void warmup(TestCase testCase) { \n run(testCase);\n }", "@Override\n public void testIterationStart(LoopIterationEvent event) {\n }", "protected abstract void executeTests() throws BuilderException;", "@Test\n public void testGetNext() throws Exception {\n//TODO: Test goes here... \n }", "public void\n performTest\n ( \n BaseMasterExt ext\n )\n throws PipelineException\n {\n ext.preUnpackTest(pPath, pAuthor, pView, pReleaseOnError, pActionOnExistence,\n pToolsetRemap, pSelectionKeyRemap, pLicenseKeyRemap, pHardwareKeyRemap); \n }", "@Test\n public void testBlock() {\n System.out.println(\"block\");\n //instance.block();\n }", "@Override\n\tpublic void testEngine() {\n\t\t\n\t}", "public void run(TestResult result) {\n try {\n TestHarness testApp = setupHarness();\n if (printInfo)\n testApp.printInfo(System.out, testBranchs);\n else\n testApp.run(result);\n } catch (Exception e) {\n result.addError(this, e);\n }\n }", "static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }", "protected void test(TestRunnable r) throws Exception {\n generateCorrectClassFiles();\n\n runTest(r);\n }", "public final void doTest() {\n\n constructTestPlan();\n calculator.start();\n resultViewer.start();\n\n // Run Test Plan\n getJmeter().configure(testPlanTree);\n ((StandardJMeterEngine)jmeter).run();\n }", "public static void main (String[] args){\n\t\tincPieceCountTest();\n\t\tdecPieceCountTest();\n\t\tsetPieceTest();\n\t\tmoveTest();\n\t\tanyMoveTest();\n\t\tgetPiecesTest();\n\t\tsetPieceTest2();\n\t}", "private void runTestProcess(Configuration config) throws Exception {\r\n\t\tint timeout = config.getWorkTimeout();\r\n\t\tlog.info(\"Executing test process...\");\r\n\t\t// Start L2\r\n\t\t// Sorted list to make sure first one becomes active always\r\n\t\tArrayList<String> sortedList = new ArrayList<String>(config.getL2machines());\r\n\t\tCollections.sort(sortedList, String.CASE_INSENSITIVE_ORDER);\r\n\t\tfor (String l2: sortedList){\r\n\t\t\tlog.info(\"Start L2 on l2_machines: \" + l2);\r\n\t\t\texecuteWork(l2, new StartL2(config), timeout);\r\n\t\t}\r\n\t\tcwExecutor.start(getCWProperties(config));\r\n\r\n\t\t// Start l1\r\n\t\tlog.info(\"Start L1 on all l1_machines: \" + config.getL1machines());\r\n\t\tif (config.getLoadmachines().size() > 0) {\r\n\t\t\texecuteWork(config.getL1machines(), new StartL1(config), timeout);\r\n\t\t\t// Start load\r\n\t\t\tlog.info(\"Start Load on all load_machines: \"\r\n\t\t\t\t\t+ config.getLoadmachines());\r\n\t\t\texecuteWorkTillFinish(config.getLoadmachines(), new StartLoad(\r\n\t\t\t\t\tconfig));\r\n\t\t} else\r\n\t\t\texecuteWorkTillFinish(config.getL1machines(), new StartL1(config));\r\n\t}", "@Override\n\tpublic void runTest() throws Throwable {}", "public void testRunning()\n\t\t{\n\t\t\tInvestigate._invData.clearStores();\n\n\t\t\tfinal WorldLocation topLeft = SupportTesting.createLocation(0, 10000);\n\t\t\ttopLeft.setDepth(-1000);\n\t\t\tfinal WorldLocation bottomRight = SupportTesting.createLocation(10000, 0);\n\t\t\tbottomRight.setDepth(1000);\n\t\t\tfinal WorldArea theArea = new WorldArea(topLeft, bottomRight);\n\t\t\tfinal RectangleWander heloWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander\");\n\t\t\theloWander.setSpeed(new WorldSpeed(20, WorldSpeed.Kts));\n\t\t\tfinal RectangleWander fishWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander 2\");\n\n\t\t\tRandomGenerator.seed(12);\n\n\t\t\tWaterfall searchPattern = new Waterfall();\n\t\t\tsearchPattern.setName(\"Searching\");\n\n\t\t\tTargetType theTarget = new TargetType(Category.Force.RED);\n\t\t\tInvestigate investigate = new Investigate(\"investigating red targets\",\n\t\t\t\t\ttheTarget, DetectionEvent.IDENTIFIED, null);\n\t\t\tsearchPattern.insertAtHead(investigate);\n\t\t\tsearchPattern.insertAtFoot(heloWander);\n\n\t\t\tfinal Status heloStat = new Status(1, 0);\n\t\t\theloStat.setLocation(SupportTesting.createLocation(2000, 4000));\n\t\t\theloStat.getLocation().setDepth(-200);\n\t\t\theloStat.setCourse(270);\n\t\t\theloStat.setSpeed(new WorldSpeed(100, WorldSpeed.Kts));\n\n\t\t\tfinal Status fisherStat = new Status(1, 0);\n\t\t\tfisherStat.setLocation(SupportTesting.createLocation(4000, 2000));\n\t\t\tfisherStat.setCourse(155);\n\t\t\tfisherStat.setSpeed(new WorldSpeed(12, WorldSpeed.Kts));\n\n\t\t\tfinal DemandedStatus dem = null;\n\n\t\t\tfinal SimpleDemandedStatus ds = (SimpleDemandedStatus) heloWander.decide(\n\t\t\t\t\theloStat, null, dem, null, null, 100);\n\n\t\t\tassertNotNull(\"dem returned\", ds);\n\n\t\t\t// ok. the radar first\n\t\t\tASSET.Models.Sensor.Lookup.RadarLookupSensor radar = new RadarLookupSensor(\n\t\t\t\t\t12, \"radar\", 0.04, 11000, 1.2, 0, new Duration(0, Duration.SECONDS),\n\t\t\t\t\t0, new Duration(0, Duration.SECONDS), 9200);\n\n\t\t\tASSET.Models.Sensor.Lookup.OpticLookupSensor optic = new OpticLookupSensor(\n\t\t\t\t\t333, \"optic\", 0.05, 10000, 1.05, 0.8, new Duration(20,\n\t\t\t\t\t\t\tDuration.SECONDS), 0.2, new Duration(30, Duration.SECONDS));\n\n\t\t\tHelo helo = new Helo(23);\n\t\t\thelo.setName(\"Merlin\");\n\t\t\thelo.setCategory(new Category(Category.Force.BLUE,\n\t\t\t\t\tCategory.Environment.AIRBORNE, Category.Type.HELO));\n\t\t\thelo.setStatus(heloStat);\n\t\t\thelo.setDecisionModel(searchPattern);\n\t\t\thelo.setMovementChars(HeloMovementCharacteristics.getSampleChars());\n\t\t\thelo.getSensorFit().add(radar);\n\t\t\thelo.getSensorFit().add(optic);\n\n\t\t\tSurface fisher2 = new Surface(25);\n\t\t\tfisher2.setName(\"Fisher2\");\n\t\t\tfisher2.setCategory(new Category(Category.Force.RED,\n\t\t\t\t\tCategory.Environment.SURFACE, Category.Type.FISHING_VESSEL));\n\t\t\tfisher2.setStatus(fisherStat);\n\t\t\tfisher2.setDecisionModel(fishWander);\n\t\t\tfisher2.setMovementChars(SurfaceMovementCharacteristics.getSampleChars());\n\n\t\t\tCoreScenario cs = new CoreScenario();\n\t\t\tcs.setScenarioStepTime(5000);\n\t\t\tcs.addParticipant(helo.getId(), helo);\n\t\t\tcs.addParticipant(fisher2.getId(), fisher2);\n\n\t\t\t// ok. just do a couple of steps, to check how things pan out.\n\t\t\tcs.step();\n\n\t\t\tSystem.out.println(\"started at:\" + cs.getTime());\n\n\t\t\tDebriefReplayObserver dro = new DebriefReplayObserver(\"./test_reports/\",\n\t\t\t\t\t\"investigate_search.rep\", false, true, true, null, \"plotter\", true);\n\t\t\tTrackPlotObserver tpo = new TrackPlotObserver(\"./test_reports/\", 300,\n\t\t\t\t\t300, \"investigate_search.png\", null, false, true, false, \"tester\",\n\t\t\t\t\ttrue);\n\t\t\tdro.setup(cs);\n\t\t\ttpo.setup(cs);\n\t\t\t//\n\t\t\tdro.outputThisArea(theArea);\n\n\t\t\tInvestigateStore theStore = Investigate._invData.firstStore();\n\n\t\t\t// now run through to completion\n\t\t\tint counter = 0;\n\t\t\twhile ((cs.getTime() < 12000000)\n\t\t\t\t\t&& (theStore.getCurrentTarget(23) == null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t\tcounter++;\n\t\t\t}\n\n\t\t\t// so, we should have found our tartget\n\t\t\tassertNotNull(\"found target\", theStore.getCurrentTarget(23));\n\n\t\t\t// ok. we've found it. check that we do transition to detected\n\t\t\tcounter = 0;\n\t\t\twhile ((counter++ < 100) && (theStore.getCurrentTarget(23) != null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t}\n\n\t\t\tdro.tearDown(cs);\n\t\t\ttpo.tearDown(cs);\n\n\t\t\t// so, we should have cleared our tartget\n\t\t\tassertNull(\"found target\", theStore.getCurrentTarget(23));\n\t\t\tassertEquals(\"remembered contact\", 1, theStore.countDoneTargets());\n\n\t\t}", "public void onTestStart(ITestResult arg0) {\n\t\ttest=rep.startTest(arg0.getName().toUpperCase());\r\n\t\tif(!TestUtils.isTestRunnable(arg0.getName(), excel))\r\n\t\t{\r\n\t\t\tthrow new SkipException(\"Test case skipped due to runnable mode NO\");\r\n\t\t}\r\n\t}", "public void testExecute() {\n\t\taes.execute();\n\t\t\n\t\tassertTrue(a.wasStopPollingMessagesCalled);\n\t\tassertTrue(osm.wasWriteCalled);\n\t}", "@Test\r\n public void testActionPerformed() {\r\n }", "@Test\n public void testRun_Fork_With_Actions_With_Different_Delays_IN_FN_A1_A2_JN_FN() {\n // Final node creation (id #6)\n final Node fn = NodeFactory.createNode(\"#6\", NodeType.FINAL);\n\n // Join node creation (id #5) and flow to final node\n final Node jn = NodeFactory.createNode(\"#5\", NodeType.JOIN);\n ((SingleControlFlowNode) jn).setFlow(fn);\n\n // Action node 2 creation (id #4) and flow to join node\n final String A2_ID = \"#4\";\n final Node an2 = NodeFactory.createNode(A2_ID, NodeType.ACTION);\n final DelayableActionMock objAn2 = DelayableActionMock.create(A2_ID, 20);\n ((ContextExecutable) an2).setObject(objAn2);\n ((ContextExecutable) an2).setMethod(objAn2.getDelayExecutionMethod());\n ((SingleControlFlowNode) an2).setFlow(jn);\n\n // Action node 1 creation (id #3) and flow to join node\n final String A1_ID = \"#3\";\n final Node an1 = NodeFactory.createNode(A1_ID, NodeType.ACTION);\n final DelayableActionMock objAn1 = DelayableActionMock.create(A1_ID, 100);\n ((ContextExecutable) an1).setObject(objAn1);\n ((ContextExecutable) an1).setMethod(objAn1.getDelayExecutionMethod());\n ((SingleControlFlowNode) an1).setFlow(jn);\n\n // Fork creation (id #2) and flow to actions node\n final Node fk = NodeFactory.createNode(\"#2\", NodeType.FORK);\n final Set<Node> flows = new HashSet<>(2);\n flows.add(an1);\n flows.add(an2);\n ((MultipleControlFlowNode) fk).setFlows(flows);\n\n // Initial node (id #1) creation and flow to action node 1\n final Node in = NodeFactory.createNode(\"#1\", NodeType.INITIAL);\n ((SingleControlFlowNode) in).setFlow(fk);\n\n final Jk4flowWorkflow wf = Jk4flowWorkflow.create(in);\n\n ENGINE.run(wf);\n\n final Date a1Date = (Date) wf.getContext().get(A1_ID);\n final Date a2Date = (Date) wf.getContext().get(A2_ID);\n\n Assert.assertTrue(a1Date.after(a2Date));\n }", "private JumbleResult runInitialTests(List testClassNames) {\n mMutationCount = countMutationPoints();\n if (mMutationCount == -1) {\n return new InterfaceResult(mClassName);\n }\n \n Class[] testClasses = new Class[testClassNames.size()];\n for (int i = 0; i < testClasses.length; i++) {\n try {\n testClasses[i] = Class.forName((String) testClassNames.get(i));\n } catch (ClassNotFoundException e) {\n // test class did not exist\n return new MissingTestsTestResult(mClassName, testClassNames, mMutationCount);\n }\n }\n \n try {\n // RED ALERT - heinous reflective execution of the initial tests in\n // another classloader\n assert Debug.println(\"Parent. Starting initial run without mutating\");\n MutatingClassLoader jumbler = new MutatingClassLoader(mClassName, createMutater(-1));\n Class suiteClazz = jumbler.loadClass(\"jumble.fast.TimingTestSuite\");\n Object suiteObj = suiteClazz.getDeclaredConstructor(new Class[] {List.class }).newInstance(new Object[] {testClassNames });\n Class trClazz = jumbler.loadClass(TestResult.class.getName());\n Class jtrClazz = jumbler.loadClass(JUnitTestResult.class.getName());\n Object trObj = jtrClazz.newInstance();\n suiteClazz.getMethod(\"run\", new Class[] {trClazz }).invoke(suiteObj, new Object[] {trObj });\n boolean successful = ((Boolean) trClazz.getMethod(\"wasSuccessful\", new Class[] {}).invoke(trObj, new Object[] {})).booleanValue();\n assert Debug.println(\"Parent. Finished\");\n \n // Now, if the tests failed, can return straight away\n if (!successful) {\n if (mVerbose) {\n System.err.println(trObj);\n }\n return new BrokenTestsTestResult(mClassName, testClassNames, mMutationCount);\n }\n \n // Set the test runtime so we can calculate timeouts when running the\n // mutated tests\n mTotalRuntime = ((Long) suiteClazz.getMethod(\"getTotalRuntime\", new Class[] {}).invoke(suiteObj, new Object[] {})).longValue();\n \n // Store the test suite information serialized in a temporary file so\n // FastJumbler can load it.\n Object order = suiteClazz.getMethod(\"getOrder\", new Class[] {Boolean.TYPE }).invoke(suiteObj, new Object[] {Boolean.valueOf(mOrdered) });\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(mTestSuiteFile));\n oos.writeObject(order);\n oos.close();\n \n } catch (RuntimeException e) {\n throw e;\n } catch (Exception e) {\n RuntimeException r = new IllegalStateException(\"Problem using reflection to set up run under another classloader\");\n r.initCause(e);\n throw r;\n }\n \n return null;\n }", "public void executeTimeStep(Simulation simulation) {\n }", "@Test(invocationCount=1,skipFailedInvocations=false)\n public void testDemo() throws TimeOut{\n \tMentalStateManager msmAgent1_0DeploymentUnitByType3=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType3\");\n \t \t\t\t\n \t// wait for Agent1_0DeploymentUnitByType2 to initialise\n \tMentalStateManager msmAgent1_0DeploymentUnitByType2=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType2\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType1 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType1=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType1\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType0 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType0=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType0\");\n \t\n \t\n \tGenericAutomata ga=null;\n \tga=new GenericAutomata();\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState0\");\t\t\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState1\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addFinalState(\"WFTestFinalState0\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState0\",\"Agent0_0DeploymentUnitByType0-Task0\",\"WFTestInitialState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState0\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState1\",\"Agent0_0DeploymentUnitByType1-Task0\",\"WFTestInitialState1\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState1\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\t\n\t\t\t\n\t\t\tTaskExecutionValidation tev=new TaskExecutionValidation(ga);\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType0\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType1\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\t\n \t\t\n \tRetrieveExecutionData cwfe=new \tRetrieveExecutionData();\n \tEventManager.getInstance().register(cwfe);\n\t\tlong step=100;\n\t\tlong currentTime=0;\n\t\tlong finishedTime=0;\n\t\tlong duration=2000;\n\t\tlong maxtimepercycle=2000;\n\t\t \n\t\tMainInteractionManager.goAutomatic(); // tells the agents to start working\t\t\t\n\t\twhile (currentTime<finishedTime){\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep(step);\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentTime=currentTime+step;\n\t\t\t}\n\t\t\t\n\t\t\tif (currentTime<duration){\n\t\t\t\tTestUtils.doNothing(duration-currentTime); // waits for tasks to execute\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\tMainInteractionManager.goManual(); // now it commands to not execute more tasks\t\t\n\t\t\tEventManager.getInstance().unregister(cwfe);\n\t\t\t\n\t\t Vector<String> counterExamples=tev.validatePartialTermination(cwfe,ga,maxtimepercycle);\n\t\t assertTrue(\"The execution does not match the expected sequences. I found the following counter examples \"+counterExamples,counterExamples.isEmpty());\t\t\n\t\t\t\t\t\t\t\n }", "private void test() {\n\n\t}", "@Test\n public void test3(){\n }", "public void test() {\n\t}", "public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test\n public void doTest3() {\n }", "public static void startTestCase(String testCase) throws Exception\n\t{\n\t\tint currentSuiteID;\n\t\tint currentTestCaseID;\n\t\tString currentTestSuite;\n\t\tString currentTestCaseName;\n\t\tXls_Reader currentTestSuiteXLS;\n\t\tXls_Reader Wb = new Xls_Reader(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\java\\\\com\\\\test\\\\automation\\\\uIAutomation\\\\data\\\\Controller.xlsx\");\n\t\tString TestURL = VerifyLoginWithValidCredentials.CONFIG.getProperty(\"TestURL\");\n\t\tfor (currentSuiteID = 2; currentSuiteID <= Wb.getRowCount(ObjectRepository.TEST_SUITE_SHEET); currentSuiteID++)\n\t\t{\n\t\t\tcurrentTestSuite = Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.Test_Suite_ID, currentSuiteID);\n\t if(Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.RUNMODE, currentSuiteID).equals(ObjectRepository.RUNMODE_YES))\n\t \t\t{\n\t\t\t\tcurrentTestSuiteXLS = new Xls_Reader(\"src/config/\" + currentTestSuite + \".xlsx\");\n\t\t\t\tfor (currentTestCaseID = 2; currentTestCaseID <= currentTestSuiteXLS.getRowCount(ObjectRepository.TEST_CASES_SHEET); currentTestCaseID++) \n\t\t\t\t{\n\t\t\t\t\tcurrentTestCaseName = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, ObjectRepository.Test_Case_ID, currentTestCaseID);\n\t\t\t\t\tif (currentTestCaseName.equals(testCase))\n\t {\n\t\t\t\t\t\tString desc = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Description\", currentTestCaseID);\n\t\t\t\t\t\tString subModule = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Sub Module\", currentTestCaseID);\n\t\t\t\t\t\tLog.test = Log.extent.startTest(currentTestCaseName, desc).assignCategory(currentTestSuite + \" Module\", subModule + \" Sub-Module\");\n\t\t\t\t\t\tLog.test.log(LogStatus.INFO, \"Testing on URL : \" + TestURL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public Result call() throws TimeoutException, InterruptedException {\n Request request;\n if (testIsolation) {\n request = Request.method(test.reloadClass(), test.getName());\n } else {\n request = Request.method(test.getTestClass(), test.getName());\n }\n return new JUnitCore().run(request);\n }", "@Test\n public void proximaSequencia(){\n\n }", "private void testMethod(){jnkkjnknk\n //Jocke\n //jocke2\n //pew\n //testcommit\n\n }", "public TestInfo runTest() throws Exception {\n\t\tMap<List<Integer>, String[]> pathMap = getImplementation().getSymbolicExecutionCost(cfg);\n\t\t//begin with random testing\n\t\tList<Integer> path = getImplementation().randomTesting(cfg); //start with a random testing\n\t\tremoveVisitedNode(path);\n\t\ttestInfo.rm_number++;\n\t\ttestInfo.totalCost = testInfo.totalCost + path.size() - 1;\n\t\tPath inputSeed = new Path(path, 0);\n\t\t\n\t\tList<Path> workList = new ArrayList<>();\n\t\tworkList.add(inputSeed);\n\t\t\n\t\t//if there is unvisited nodes\n\t\twhile(!workList.isEmpty() && !unvisited.isEmpty()){\n\t\t\tPath input = workList.get(0);\n\t\t\tworkList.remove(0);\n\t\t\tList<Path> childInputs = expandExecution(input);\n\t\t\tif(!childInputs.isEmpty()){\n\t\t\t\tfor(int i = 0; i < childInputs.size(); i++){\n\t\t\t\t\tPath newInput = childInputs.get(i);\n\t\t\t\t\tList<Integer> newPath = newInput.path;\n\t\t\t\t\t\n\t\t\t\t\t//update the test information\n\t\t\t\t\tnewPath = getImplementation().symbolicExecution(cfg, testInfo, newPath);\n\t\t\t\t\ttestInfo.totalCost = testInfo.totalCost + newPath.size() - 1;\n\t\t\t\t\t\n\t\t\t\t\t//remove nodes are visited in this testcase\n\t\t\t\t\tremoveVisitedNode(newPath);\n\t\t\t\t\tnewInput.path = newPath;\n\t\t\t\t\t\n\t\t\t\t\tworkList.add(newInput);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttestInfo.coverageRatio = 1 - (double)unvisited.size() / node_number;\n\t\t//print the test information\n\t\treturn testInfo;\n\t}", "public TestResults run() {\n\t\treturn run(getConfiguredDuration());\n\t}", "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}", "public static void main( String args[] ) {\n\n for ( int j = 0; j < TEST_COUNT; ++j ) {\n testSuite[j].execute();\n }\n }", "public boolean runTests(CadseTest... cadseTest) {\n\t\tthis.cadseTests = cadseTest;\n\n\t\tthis.testCount = cadseTest.length;\n\t\tfor (CadseTest ct : cadseTest) {\n\t\t\tct.setCadseTestPlatform(this);\n\t\t}\n\t\tfor (CadseTest ct : cadseTest) {\n\t\t\tct.init();\n\t\t}\n\t\tif (compileAll()) {\n\t\t\tmessageTestSuiteResults();\n\t\t\treturn true;\n\t\t}\n\t\tfor (CadseTest ct : cadseTest) {\n\t\t\ttry {\n\t\t\t\tif (!ct.runTest()) {\n\t\t\t\t\tthis.testPassed++;\n\t\t\t\t\tct.status = 0;\n\t\t\t\t} else {\n\t\t\t\t\tthis.testFailed++;\n\t\t\t\t\tct.status = 1;\n\t\t\t\t}\n\t\t\t} catch (Throwable e) {\n\t\t\t\tSystem.out.println(\"TEST Exception \" + ct.getName());\n\t\t\t\te.printStackTrace();\n\t\t\t\tthis.testFailed++;\n\t\t\t\tct.status = 1;\n\t\t\t}\n\t\t\tmessageTestSuiteResults();\n\t\t}\n\t\tfinishTest();\n\n\t\treturn testPassed != testCount;\n\t}", "public void soaktest() {\n\t\ttry {\n\t\t\tint errCount = 0;\n\n\t\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\t\tRegression test = new Regression();\n\t\t\t\ttest0();\n\t\t\t\ttest.test1(m1);\n\t\t\t\ttest.test2(m1);\n\t\t\t\ttest.test3(m1);\n\t\t\t\ttest.test4(m1);\n\t\t\t\ttest.test5(m1);\n\t\t\t\ttest.test6(m1);\n\t\t\t\ttest.test7(m1, m2);\n\t\t\t\ttest.test8(m1);\n\t\t\t\ttest.test9(m2);\n\t\t\t\ttest.test10(m3);\n\t\t\t\ttest.test11(m1, m2);\n\t\t\t\ttest.test12(m1);\n\t\t\t\ttest.test13(m1);\n\t\t\t\ttest.test14(m1);\n\t\t\t\ttest.test15(m1);\n\t\t\t\ttest.test16(m1);\n\t\t\t\ttest.test17(m1);\n\t\t\t\ttest.test18(m4);\n\t\t\t\ttest.test19(m2, m3);\n\t\t\t\ttest.test97(m1);\n\t\t\t\tif (test.getErrors())\n\t\t\t\t\terrCount++;\n\t\t\t\tif ((i % 10) == 0) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"error count = \" + errCount + \" rounds = \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tassertTrue(false);\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }", "@Test\n public void functionalityTest() {\n new TestBuilder()\n .setModel(MODEL_PATH)\n .setContext(new ModelImplementationGroup3())\n .setPathGenerator(new RandomPath(new EdgeCoverage(100)))\n .setStart(\"e_GoToPage\")\n .execute();\n }", "@Override\n protected void invokeTestRunnable(final Runnable runnable) throws Exception {\n System.out.println(\"Invoke: \" + runnable);\n runnable.run();\n }", "@Test\n public void test9MLog_Siebel_SingleRun() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IOException, IllegalAccessException {\n String logPath_base = \"/home/xiaohe/workspace/DATA/FakeData4TestingPerf/Pub_fake.log\";\n// Common.testLog_multiTimes(logPath_base, 5, true); //eager eval\n\n// Common.testLog_multiTimes(logPath_base, 1, false); //lazy eval\n\n// String logPath_base = \"/home/xiaohe/workspace/DATA/ldccComplete_MonpolyStyle\";\n\n String[] args = new String[]{\"./test/count/insert.sig\", \"./test/count/insert.fl\", logPath_base};\n Main.main(args);\n\n }", "@Test\r\n\tpublic void testOrderPerform() {\n\t}", "@Test\r\n\tpublic void test2(){\n\t}", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "public static void UnitTests() {\n System.out.println(\"---\");\n\n int input = 0;\n boolean running = true;\n\n while(running) {\n System.out.println(\"1. Test Layer Class\\n2. Test NeuralNetwork Class\\n3. Go Back\\n\");\n input = getInput();\n switch (input) {\n case 1:\n UnitTests.testLayers();\n break;\n case 2:\n UnitTests.testNeuralNetwork();\n break;\n case 3:\n running = false;\n break;\n default:\n System.out.println(\"That's not an option.\");\n }\n }\n\n System.out.println(\"---\\n\");\n }", "public void test(int testcase) {\n\t\tswitch (testcase) {\n\t\tcase 1: insertCase(); break;\n\t\tcase 2: selectCase(); break;\n\t\tcase 3: resetDB(); break;\n\t\tcase 4: externalTestcase(); break;\n\t\tcase 6: bulkLoad(); break;\n\t\tcase 7: addIndex(); break;\n\t\t}\n\t}", "protected void execute() {\n \t// \"Demo Mode\" turns off the driveline for demonstration events so that we don't have to pull fuses.\n \t// Ideally, we only check this every few seconds to avoid performance implications at competitions.\n\t\tif ((++m_loops%500) == 0) { // at 20ms/loop, 50 loops per second, so limit query to 500 loops per 10 seconds\n\t\t\tm_demoMode = SmartDashboard.getBoolean(\"Demo Mode\", false);// default to false if not found in the table\n\t\t}\n\t\tif (!m_demoMode) {\n\t\t\tRobot.driveTrain.octaCanumDriveWithJoysticks(Robot.oi.joyLeft, Robot.oi.joyRight);\n \t}\n \t\n }", "public synchronized void executeSuite( TestSuite suite ) {\n PrivilegeManager.enablePrivilege( \"UniversalFileAccess\" );\n PrivilegeManager.enablePrivilege( \"UniversalFileRead\" ); \n PrivilegeManager.enablePrivilege( \"UniversalFileWrite\" ); \n PrivilegeManager.enablePrivilege( \"UniversalPropertyRead\" );\n \n LiveNavEnv context;\n TestFile file;\n\n for ( int i = 0; i < suite.size(); i++ ) {\n synchronized ( suite ) {\n file = (TestFile) suite.elementAt( i );\n context = new LiveNavEnv( file, suite, this );\n context.runTest();\n\n writeFileResult( file, suite, OUTPUT_DIRECTORY );\n writeCaseResults(file, suite, OUTPUT_DIRECTORY );\n context.close();\n context = null;\n\n if ( ! file.passed ) {\n suite.passed = false;\n }\n }\n }\n writeSuiteResult( suite, OUTPUT_DIRECTORY );\n writeSuiteSummary( suite, OUTPUT_DIRECTORY );\n }", "@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}" ]
[ "0.6751448", "0.6576475", "0.6529692", "0.64715517", "0.6435364", "0.64157975", "0.62000436", "0.61984426", "0.6166907", "0.6148157", "0.6119208", "0.61120117", "0.6080702", "0.607315", "0.60357434", "0.6025387", "0.6024289", "0.60221666", "0.60118496", "0.600528", "0.59742486", "0.59728", "0.59604084", "0.595057", "0.5936053", "0.5929941", "0.5916727", "0.5908434", "0.5891058", "0.58864546", "0.58463454", "0.58428854", "0.5826493", "0.5822895", "0.58218676", "0.58112377", "0.5808662", "0.5799115", "0.57859707", "0.57715726", "0.57643276", "0.5760464", "0.57526267", "0.57384855", "0.57269746", "0.57263625", "0.5725536", "0.5719162", "0.5719162", "0.5719162", "0.5718518", "0.5717606", "0.5701144", "0.5696094", "0.56913877", "0.56905794", "0.5689216", "0.5687391", "0.56596524", "0.56550723", "0.5650937", "0.5649255", "0.564603", "0.56451803", "0.564416", "0.56216484", "0.56144303", "0.56056136", "0.56029606", "0.55995905", "0.55965805", "0.55963683", "0.5589887", "0.5588919", "0.5587518", "0.5586957", "0.55743045", "0.5564324", "0.5562328", "0.55602175", "0.5560018", "0.5551648", "0.554896", "0.55481684", "0.5536193", "0.5535858", "0.55331486", "0.553228", "0.5530283", "0.552934", "0.5528962", "0.5518619", "0.5513289", "0.5511616", "0.55055755", "0.5503323", "0.55013525", "0.5497746", "0.5495341", "0.5493757" ]
0.6701793
1
3. Write a Java program to divide two numbers and print on the screen. Go to the editor Test Data : 50/3 Expected Output : 16
public static void main(String[] args) { int div, num1 = 50, num2 = 3; div = num1/num2; System.out.println("Total " + div ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tint a=20;\n\t\tint b=0;\n\t\tint c=a/b;\n\t\tSystem.out.println(c);\n\t\tSystem.out.println(\"division=\"+c);\n\t\tSystem.out.println(c);\n\n\t}", "@Test\n\tvoid divide() {\n\t\tfloat result = calculator.divide(12, 4);\n\t\tassertEquals(3,result);\n\t}", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "public static double div() {\n System.out.println(\"Enter dividend\");\n double a = getNumber();\n System.out.println(\"Enter divisor\");\n double b = getNumber();\n\n return a / b;\n }", "public int division(int a, int b) {\n return a / b;\n }", "public static void main(String[] args) {\n\r\n\t\tint a;\r\n\t\tint b;\r\n\t\t\r\n\t\ta=20;\r\n\t\tb=10;\r\n\t\t\t\t\r\n\t\tint quotient;\r\n\t\t\r\n\t\tquotient = a/b;\r\n\t\t\r\n\t\tSystem.out.println(\"the quotient of the 2 numbers is:\" + quotient);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n int a=5;\n int b=0;\n\n System.out.println(\"a/b = \" + a/b);\n\n }", "public static void main(String[] args) {\n\n double fraction = 1/2.0;\n System.out.println(fraction);\n\n //Modules is the remainder of a division problem\n //25 % 6 = 1\n //31 % 5 = 1\n //17 % 3 = 2\n //4 % 2 = 0\n //5 % 2 = 1\n //6 % 2 = 0\n //121 % 100 = 21\n // 47 % 15 = 2\n //55 % 15 =10\n\n //5 + 2 * 4 =\n //12 / 2 - 4 =\n //4 + 17 % 2 -1 =\n //4 + 5 * 2 / 2 + 1 =\n //4 * (6 + 3 * 2) + 7 =\n\n System.out.println(5 + 2 * 4);\n System.out.println (12 / 2 -4);\n System.out.println(4 + 17 % 2 - 1);\n System.out.println(4 + 5 * 2 / 2 + 1);\n System.out.println(4 * (6 + 3 *2) + 7);\n\n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(divide(10, 5));\n\n\t\tSystem.out.println(divide(10, 0));\n\t}", "public void divide() {\n\t\t\n\t}", "double divide (double a, double b) {\n\t\tdouble result = a/b;\n\t\treturn result;\n\t}", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "@Test(priority=4)\n\n\tpublic void divisionTest() {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(\"20\", \"10\");\n\t\tandroidCalculator.division();\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), 20/10);\n\t}", "public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }", "static void diviser() throws IOException {\n\t Scanner clavier = new Scanner(System.in);\n\tdouble nb1, nb2, resultat;\n\tnb1 = lireNombreEntier();\n\tnb2 = lireNombreEntier();\n\tif (nb2 != 0) {\n\tresultat = nb1 / nb2;\n\tSystem.out.println(\"\\n\\t\" + nb1 + \" / \" + nb2 + \" = \" +\n\tresultat);\n\t} else\n\tSystem.out.println(\"\\n\\t le nombre 2 est nul, devision par 0 est impossible \");\n\t}", "@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint a,b;\n\t\tdouble resultado;\n\t\t\n\t\ta = 5;\n\t\tb = 2;\n\t\t\n\t\tresultado = (double) a / b;\n\t\t\n\t\tSystem.out.println(resultado);\n\t\t\n\t}", "public static double div(double a, double b){\r\n\t\treturn a/b;\r\n\t}", "public void divide()\r\n {\r\n if (fractionDisplay)\r\n {\r\n result = Operations.fractionFormat(leftOperand, rightOperand);\r\n resultDoubles = Operations.divide(leftOperand, rightOperand);\r\n divisionFormatResult = true;\r\n }\r\n else \r\n {\r\n resultDoubles = Operations.divide(leftOperand, rightOperand);\r\n }\r\n resultResetHelper();\r\n }", "public double divisao (double numero1, double numero2){\n\t}", "public static void main(String[] args) {\n\t\tint a = 2;\n\t\tint b = 10;\n\t\tint c = a-(a/b)*b;\n\t\tSystem.out.println(c);\n\t\tint result = a;\n\t\twhile(result-b>=0){\n\t\t\tresult-=b;\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"result:\"+result);\n\t}", "public int division(){\r\n return Math.round(x/y);\r\n }", "public static void main(String[] args) {\n int division = getDivision(10);\n System.out.println(division);\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"this is the division calculator\");\n\n\t\tScanner userInput = new Scanner(System.in);\n\n\n\n\t\tSystem.out.println(\"give me the first number\");\n\n\t\tint a = userInput.nextInt();\n\n\t\tSystem.out.println(\"give me the second number\");\n\t\t\t\n\t\t\tint b = userInput.nextInt();\n\t\t\t\n\t\t\tSystem.out.println(\"result: \" + a/b);\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tboolean flag = true;// true false value.memorie.concept clear koro.\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=a; i<=b; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(i);\n\t\t\t\t\n\t\t\t\tif(i==0) {\n\t\t\t\t\tflag= false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(flag) {\n\t\t\t\t\t\n\t\t\t\t\tif(i%3==0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"divisible by 3\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"total amount: \" + counter);\n\t\t\t\t\n\t\t\t}\n\t\t\t//divisible by 3 ,multiple of 3 like 15, 10,5//mod in jave mod sige is %.you can get a number without getting any reminder,\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n\n double x = 34.56;\n double y = 2.45;\n\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x * y);\n System.out.println(x / y);\n\n var a = 5;\n int b = 9;\n\n System.out.println(a + b);\n System.out.println(a - b);\n System.out.println(a * b);\n System.out.println(a / b);\n System.out.println(a / (double)b);\n\n System.out.println(a % b);\n\n }", "public static void main001(String[] args) {\n\t\tint numberOne\t= 20;\n\t\tint numberTwo\t= 3;\n\t\tint result;\n\n\t\t// +\n\t\tresult\t= numberOne + numberTwo;\n\t\tSystem.out.println(numberOne + \" + \" + numberTwo + \" = \" + result);\n\n\t\t// -\n\t\tresult\t= numberOne - numberTwo;\n\t\tSystem.out.println(numberOne + \" - \" + numberTwo + \" = \" + result);\n\n\t\t// *\n\t\tresult\t= numberOne * numberTwo;\n\t\tSystem.out.println(numberOne + \" * \" + numberTwo + \" = \" + result);\n\n\t\t// /\n\t\t// 20 / 3 = 6 du 2\n\t\tresult\t= numberOne / numberTwo;\n\t\tSystem.out.println(numberOne + \" / \" + numberTwo + \" = \" + result);\n\n\n\t\t// %\n\t\tresult\t= numberOne % numberTwo;\n\t\tSystem.out.println(numberOne + \" % \" + numberTwo + \" = \" + result);\n\t}", "@Test //expected exception assertThrows.\n\tvoid testDivide() throws Exception {\n\t\tassertEquals(2, mathUtils.divide(4,2));\n\t}", "public static void main(String[] args) {\n\n System.out.println(3 + 9);\n\n System.out.println(10 - 2);\n\n System.out.println(10 * 3);\n\n System.out.println(10 / 2);\n\n System.out.println(10 % 4); // 2\n\n int result = 10 % 3;\n\n System.out.println(\"result = \" + result);\n\n System.out.println(10 / 4); // 2\n System.out.println(10.0 / 4); // 2.5\n System.out.println(10 / 4.0); // 2.5\n\n double d1 = 10 / 4; // 2.0\n\n System.out.println(\"d1 = \" + d1);\n\n double d2 = 10 / 4.0f; // 2.5\n\n System.out.println(\"d2 = \" + d2);\n }", "@Test\n\tpublic void divisionTest() {\n\t\tMathOperation division = new Division();\n\n\t\tassertEquals(0, division.operator(ZERO, FIVE).intValue());\n\t\tassertEquals(4, division.operator(TWENTY, FIVE).intValue());\n\t}", "@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a/b;\r\n\t}", "public static void main(String[] args){\n\t\tSystem.out.println(1/1+1/2+1/3+1/4+1/5+1/6+1/7+1/8+1/9+1/10);\n\t\t//Computes the sum of 1/1+1/2+...+1/10 correctly.\n\t\tSystem.out.println(1/1.0+1/2.0+1/3.0+1/4.0+1/5.0+1/6.0+1/7.0+1/8.0+1/9.0+1/10.0);\n\t\t\t\t\n\t\t/* The second method prints a correct value because it is understood\n\t\t * to be a floating point. The values from the first method are truncated to\n\t\t * \"1+0+0+....+0\" respectively. */\n\t\n\t\t}", "public double divide(double a, double b) {\n\t\treturn a/b;\n\t}", "public static void main(String[] args) {\n\t\tint resultado=division(12,3);\r\n\t\tSystem.out.println(resultado);\r\n\t}", "public static void main(String[] args) {\n\t\tint num1=90;\n\t\tint num2=10;\n\t\t//syso +ctrl+space (short cut)\n\t\tSystem.out.println(num1+num2);\n\t\tSystem.out.println(num1-num2);\n\t\tSystem.out.println(num1*num2);\n\t\tSystem.out.println(num1/num2);\n\t\tint sum=num1+num2;\n\t\tSystem.out.println(sum);\n\t\tint sub=num1-num2;\n\t\tSystem.out.println(num1-num2);\n\t\tdouble n1=1.99;\n\t\tdouble n2=4.99;\n\t\tdouble total=n1+n2;\n\t\tSystem.out.println(total);\n\t\tdouble resultOfDivision=n1/n2;\n\t\tSystem.out.println(resultOfDivision);\n\t\tfloat f1=2.99f;\n\t\tfloat f2=4.05f;\n\t\tfloat floatDivision=f1/f2;\n\t\tSystem.out.println(floatDivision);\n\t\t//modulus %\n\t\tint number1, number2, mod;\n\t\tnumber1=10;\n\t\tnumber2=6;\n\t\tmod=number1%number2;\n\t\tSystem.out.println(mod);\n\t\t\n\t}", "BaseNumber divide(BaseNumber operand);", "@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }", "int division(int num1, int num2) {\n System.out.print(\"\\nIn Child Class : \");\n return num1 / num2;\n }", "public static void main(String args[]) {\nint a;\nint b;\na=100;\nSystem.out.println(\"variable a =\"+a);\nSystem.out.println(a);\nb=a/2;\nSystem.out.println(\"variable b=a/2=\" + b);\nSystem.out.println(\"Java drives the Web.\");\n}", "public static double div(double a, double b) {\n return a / b;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Enter numerator : \");\n\t\tint x = sc.nextInt();\n\t\tSystem.out.print(\"Enter denominator : \");\n\t\tint y = sc.nextInt();\n\t\tdivide(x, y);\n\t}", "public static void main(String[] args) throws ArithmeticException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter 1st integer number: \");\n\t\tint num1 = scan.nextInt();\n\t\tSystem.out.print(\"Enter 2nd integer number: \");\n\t\tint result = 0;\n\t\tint num2 = scan.nextInt();\n\t\ttry {\n\t\t\tresult = num1/num2;\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tSystem.out.println(\"Division is \" + result);\n\t}", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public double divide(double a, double b, boolean rem){ return rem? a%b: a/b; }", "public static void main( String[] args) {\n System.out.println( 3 + 5.0/2 + 5 * 2-3 );\n System.out.println( 3.0 + 5/2 + 5 * 2-3 );\n System.out.println( (int)(3.0 + 5)/(2 + 5.0) * 2-3); // -.2\n \n // initial variables\n double d1 = 37.9;\n double d2 = 1004.128;\n int i1 = 12;\n int i2 = 18;\n \n System.out.println( \"Problem 1: \" + (57.2 * (i1/i2) + 1) ); // 1.0\n System.out.println( \"Problem 2: \" + (57.2 * ((double)i1/i2) + 1) ); // 39.13333\n System.out.println( \"Problem 3: \" + (15 - i1 * (d1 * 3 ) + 4) ); // -1345.39999\n System.out.println( \"Problem 4: \" + (15 - i1 * (int)(d1 * 3) + 4) ); // -1337\n System.out.println( \"Problem 5: \" + (15 - i1 * ((int)d1 * 3) + 4) ); // -1313\n \n // Exercises 10-15 page 5-4\n System.out.println( \"Exercise 10\" );\n int p1 = 3;\n double d3 = 10.3;\n int j1 = (int)5.9;\n System.out.println( p1 + p1 * (int)d3 - 3 * j1 );\n \n System.out.println( \"Exercises 12-15\" );\n int dividend = 12, divisor = 4, quotient = 0, remainder = 0;\n int dividend2 = 13, divisor2 = 3, quotient2 = 0, remainder2 = 0;\n \n quotient = dividend/divisor; // 3\n remainder = dividend % divisor; // 0\n quotient2 = dividend / divisor2; // 4\n remainder2 = dividend2 % divisor2; //1\n \n System.out.println( quotient );\n System.out.println( remainder );\n System.out.println( quotient2 );\n System.out.println( remainder2 );\n \n // Exercise 17\n final String M = \"ugg\"; // constant String M\n // M = \"wow\"; // compile error\n \n // Math class methods\n \n /*\n * Math class methods:\n * \n * Math.abs(x); = Absolute value (int,double)\n * Math.pow(x,y); = Exponent (x to the power of y)\n * Math.sqrt(x); = Square root (double)\n * Math.ceil(x); = Ceiling (the next highest whol num 1.1 = 2\n * Math.floor(x); = Floor (the next lowest num 1.9 = 1)\n * Math.min(x,y); = Minimum of x or y \n * Math.max(x,y); = Maximum of x or y\n * Math.random(); = Returns a random num between 0<=x<1\n * Math.round(x); = Rounds the number\n * Math.PI = Constant variable, returns 3.14159265...\n */\n System.out.println( \"\\nMath class methods\" );\n System.out.println( Math.abs(-312.7) );\n System.out.println( Math.pow(5,5) );\n System.out.println( Math.sqrt(1.0) );\n System.out.println( Math.ceil(99.1));\n System.out.println( Math.floor(100.9) );\n System.out.println( Math.min(2, 25) );\n System.out.println( Math.max(2, 25) );\n System.out.println( Math.round(99.5) );\n System.out.println( Math.random() + \"\\t\" + Math.random() );\n System.out.println( Math.PI );\n \n /*\n * Other Math methods\n * \n * Math.log(x); == log base e of x\n * Math.sin(x); == sin of angle x in radians\n * Math.cos(x); == cos of angle x in radians\n * Math.tan(x); == tan of angle x in radians\n * Math.asin(x); == arcisne of x in radians -PI/2 to PI/2\n * Math.acos(x); == arccosine of x in radians -PI/2 to PI/2\n * Math.atan(x); == arctan of x in range -PI/2 to PI/2\n * Math.toDegrees(x); == converts radians to degrees\n * Math.toRadians(x); == converts degrees to radians\n */\n \n /*\n * Project: ComputeThis\n * \n * Print: d1 = 3PIsin(187deg) + |cos(122deg)| = -0.618672237585067\n * Print: d2 = (14.72)^3.801 + ln72 = 27496.9888867001543\n */\n \n double d10 = 3 * Math.PI * Math.sin(Math.toRadians(187)) + Math.abs( Math.cos( Math.toRadians(122) ) );\n double d20 = Math.pow(14.72, 3.801) + Math.log(72);\n System.out.println( \"d1 = \" + d10 );\n System.out.println( \"d2 = \" + d20 );\n \n \n \n }", "public double divide(double firstNumber, double secondNUmber){\n\t\tdouble result=0.0;\n\t\t\n\t\t\tresult = firstNumber / secondNUmber;\n\t\t\n\t\t\tSystem.out.println(\"hej \");\n\t\t\n\t\tif (Double.isInfinite(result)){\n\t\t\tSystem.out.println(\"7767878\");\n\t\t\treturn -1111.1111;\n\t\t}\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n\t\tScanner lector=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Ingrese numero A: \");\r\n\t\tint A = lector.nextInt();\r\n\t\tSystem.out.println(\"Ingrese numero B: \");\r\n\t\t int B=lector.nextInt();\r\n\t \r\n\t \tif(B>1) { \r\n\t \t\tdouble S=A/B;\r\n\t\t \tSystem.out.printf(\"La division es: %f\",+S);\r\n\t\t\t\r\n\t}else {\r\n\t\t\r\n\t\tSystem.out.println(\"La division es imposible !!!\");\r\n\t\t\r\n\t} \r\n\t \t\r\n\t}", "public int divide(int number1, int number2)\n\t\tthrows CalculatorOperationException;", "void div(double val) {\r\n\t\tresult = result / val;\r\n\t}", "public static void calcIntegersDivBy()\r\n\t{\r\n\t\tint x = 5;\r\n\t\tint y = 20;\r\n\t\tint p = 3;\r\n\t\tint result = 0;\r\n\t\tif (x % p == 0)\r\n\t\t\tresult = (y / p - x / p + 1);\r\n\t\telse\r\n\t\t\tresult = (y / p - x / p);\r\n\t\tSystem.out.println(result);\r\n\t}", "public static int division(int x, int y) {\n\t\treturn x/y;\n\t}", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "@Test\n\tpublic void testDivideTwoFractions() {\n\t\tFraction f1 = new Fraction(3,4);\n\t\tFraction f2 = new Fraction (3,4);\n\t\t\n\t\tFraction expected = new Fraction (1,1);\n\t\t\n\t\tassertEquals(expected, f1.divide(f2));\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(123/10);\n\t}", "@Test\n public void whenTryExecuteDivideShouldCheckThatIsWorkCorrect() {\n String[] answer = new String[]{\"100\", \"2\", \"y\"};\n StubIO stubIo = new StubIO(answer);\n MenuCalculator menuCalculator = new MenuCalculator(new Calculator(), stubIo, actions);\n menuCalculator.fillActions();\n String expected = String.format(\"%s + %s = %s\\n%s / %s = %s\\n\",\n 0.0, 100.0, 100.0, 100.0, 2.0, 50.0);\n final int firstCommand = 0;\n final int secondCommand = 3;\n\n menuCalculator.select(firstCommand);\n menuCalculator.select(secondCommand);\n\n assertThat(stubIo.getOut(), is(expected));\n }", "@Test\n\tpublic void quotientAndReminder(){\n\t\t\n\t\tint dividend = 80;\n\t\tint divider = 40;\n\t\t\n\t\tint quotient = dividend/divider;\n\t\tint remainder = dividend%divider;\n\t\t\n\t\tSystem.out.println(\"quotient is :\" +quotient);\n\t\tSystem.out.println(\"remainder is : \"+ remainder);\n\t}", "public void divide() {\n\t\ttry {\r\n\t\t\t//code that raised exception will be included inside the try block\r\n\t\t\tint result = 10/0;\r\n\t\t\tFileReader file = new FileReader(\"src/sample1.txt\");\r\n\t\t\tBufferedReader br = new BufferedReader(file);\r\n\t\t\tfor(int i=0;i<3;i++) {\r\n\t\t\t\tSystem.out.println(br.readLine());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfile.close();\r\n\t\t\r\n\t\t}catch(ArithmeticException e) {\r\n\t\t\tSystem.out.println(\"-=======================\");\r\n\t\t\tSystem.out.println(\"Arithmetic Exception = \"+ e.getMessage());\r\n\t\t}catch(IOException e) {\r\n\t\t\tSystem.out.println(\"-=======================\");\r\n\t\t\tSystem.out.println(\"IO Exception = \"+ e.getMessage());\r\n\t\t}catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}finally {\r\n\t\t\t//will executed in both cases either while exception or no exception\r\n\t\t\t//finally block is used to close the connections like\r\n\t\t\t//file close,db close,scaner close etc.,\r\n\t\t\tSystem.out.println(\"This is fnally block that executes in both cases\");\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(div(2,0));\n\t}", "public int div(int a, int b) {\n\t\t\treturn compute(a, b, OPER_DIV);\n\t\t}", "public static void main(String[] Args){\r\n\t\tint a=60;\r\n\t\tint b=51;\r\n\t\tint sum= a + b;\r\n\t\tint sub= a-b;\r\n\t\tint mut=a*b;\r\n\t\tdouble div= (double)a/b;\r\n\t\tint rem=a%b;\r\n\t\t// 30 + 20 = 50\r\n\t\tSystem.out.println(a +\" + \" + b+ \" = \" + sum);\r\n\t\tSystem.out.println(a +\" - \" + b+ \" = \" + sub);\r\n\t\tSystem.out.println(a +\" x \" + b+ \" = \" + mut);\r\n\t\tSystem.out.println(a +\" / \" + b+ \" = \" + div);\r\n\t\tSystem.out.println(a +\" % \" + b+ \" = \" + rem);\r\n\t\t\r\n\t\t\t\t\r\n\t}", "public static void main(String[] args) {\n int primeiroNumero = 10; // Armazena o valor 10 para o primeiro número\n int segundoNumero = 2; // Armazena o valor 10 para o segundo número\n int resultado = 0; // Armazena do resultado da operação\n \n // Forma de adição\n resultado = primeiroNumero + segundoNumero;\n \n //Apresenta o resultado da adição\n System.out.printf(\"Resultado da adição = %d\\n\", resultado);\n \n \n // Forma de subtração\n resultado = primeiroNumero - segundoNumero;\n \n //Apresenta o resultado da subtração\n System.out.printf(\"Resultado da subtração = %d\\n\", resultado);\n \n \n // Forma de multiplicação\n resultado = primeiroNumero * segundoNumero;\n \n //Apresenta o resultado da multiplicação\n System.out.printf(\"Resultado da multiplicação = %d\\n\", resultado);\n \n \n // Forma de divisão\n resultado = primeiroNumero / segundoNumero;\n \n //Apresenta o resultado da divisão\n System.out.printf(\"Resultado da divisão = %d\\n\", resultado);\n \n \n // Forma de resto\n resultado = primeiroNumero % segundoNumero;\n \n //Apresenta o resultado do resto da divisão\n System.out.printf(\"Resultado do resto da divisão = %d\\n\", resultado);\n \n }", "public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }", "public static void main(String args[])\r\n\t{\r\n\t\tint num1,num2;\r\n\t\tnum1=6;\r\n\t\tnum2=4;\r\n\t int addition = num1 + num2;\r\n\t int sub = num1-num2;\r\n\t int mul = num1 * num2;\r\n\t int div = num1 / num2; //division operaion will only give quotient value\r\n\t //to get decimal value we'll do casting\r\n\t double div1= (num1/num2);\r\n\t double div2= (double)num1/num2;\r\n\t //for remainder\r\n\t int remainder = num1%num2;\r\n\t \r\n//\t System.out.println(\"Addition: \" + addition);\r\n//\t System.out.println(\"Substraction: \" + sub);\r\n//\t System.out.println(\"Multiplycation: \" + mul);\r\n//\t System.out.println(\"Division: \" + div); //1\r\n//\t System.out.println(\"Decimal value of division: \"+div1); //1.0\r\n//\t System.out.println(\"Decimal value after casting: \"+div2); //1.5\r\n//\t System.out.println(\"Remainder: \"+remainder);\r\n\t \r\n\t int n=2;\r\n\t int m=4;\r\n\t //n+=m; //same as n = n+m\r\n\t //n+=1; // same as n++\r\n\t \r\n\t //pre increment\r\n\t m = ++n;\r\n\t \r\n\t System.out.println(\"----Pre Increment---\");\r\n\t System.out.println(\"Value of m= \" +m);//3\r\n\t System.out.println(\"Value of n= \" +n);//3\r\n\t \r\n\t //post increment\r\n\t m = n++;\r\n\t \r\n\t System.out.println(\"----Post Increment---\");\r\n\t System.out.println(\"Value of m= \" +m); //2\r\n\t System.out.println(\"Value of n= \" +n);//3\r\n\t \r\n\t //System.out.println(\"Value of n: \" +n);\r\n\t}", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n \tdouble num1 = 7.15;\n \tdouble num2 = 10.0;\n\t\t// 创建一个数值格式化对象\n\t\tNumberFormat numberFormat = NumberFormat.getInstance();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"#.00\");\n\t\t// 设置精确到小数点后2位\n\t\tnumberFormat.setMaximumFractionDigits(2);\n\t\tString result = numberFormat.format((num1 / num2 * 100));\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + result + \"%\");\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + decimalFormat.format(Double.valueOf(result)) + \"%\");\n\t}", "public static void main(String[] args) {\n int x = 10;\r\n int b = 8;\r\nint result = x + b;\r\nSystem.out.println(\"더하기 결과\" + result);\r\nresult = x - b;\r\nSystem.out.println(\"빼기\"+result);\r\n\r\nresult = x * b;\r\nSystem.out.println(\"*\"+result);\r\n\t\r\n\t\r\n\tresult = x / b;\r\n\tSystem.out.println(\"나누기\"+result);\r\n\t\r\n\tresult = x % b;\r\n\tSystem.out.println(\"나머지\"+result); //나누고 난 후 나머지 결과\r\n\t\r\n\ttry {\r\n\t\tresult = x / b;\r\n\t\tSystem.out.println(result);\r\n\t} catch (Exception e) {\r\n\t\tSystem.out.println(\"not\");\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t}", "public static void main(String[]args) {\n\t\tdouble d=10;\n\t\tint num=10;\n\t\t\n\t\tSystem.out.println(d);\n\t\tint i=(int) 12.99;\n\t\tSystem.out.println(i);\n\t\tbyte b=(byte)130;\n\t\tSystem.out.println(b);\n\t\t\n\t double number =12;\n\t\tdouble result = number/5;\n\t\tSystem.out.println(result);\n\t\t\n\t\tdouble newNum=10;\n\t\tnewNum=newNum/3;\n\t\tSystem.out.println(newNum);\n\t\t\n\t\tdouble num1=10+10.5;\n\t\t\n\t\tSystem.out.println(num1);\n\t\t\n\t\n\t\t\n\t}", "@Test\r\n public void testGetDivide() {\r\n System.out.println(\"getDivide\");\r\n int x = 0;\r\n int y = 0;\r\n Calculate instance = new Calculate();\r\n int expResult = 0;\r\n int result = instance.getDivide(x, y);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\ta= a*b;//36\r\n\t\tb=a/b;//9\r\n\t\ta=a/b;//4\r\n\t\t\r\n\t\tSystem.out.println(\"a=\"+a);\r\n\t\t\r\n\t\tSystem.out.println(\"b=\"+b);\r\n\t}", "private void divide()throws Exception{\n\t\tif(!(stackBiggerThanTwo())) throw new Exception(\"Stack hat zu wenig einträge mindestens 2 werden gebraucht!!\");\n\t\telse{\n\t\t\tvalue1=stack.pop();\n\t\t\tvalue2=stack.pop();\n\t\t\tif(value1==0) throw new Exception(\"Dividieren durch 0 nicht definiert\");\n\t\t\telse{\n\t\t\t\tstack.push(value2/value1);\n\t\t\t}\n\t\t}\n\t}", "private void divOperands() {\n\t\tif (text_Operand3.getText().isEmpty()) {\n\t\t\ttext_Operand3.setText(\"5\");\n\t\t}\n\t\tif (text_Operand4.getText().isEmpty()) {\n\t\t\ttext_Operand4.setText(\"5\");\n\t\t}\n\n\t\t/*\n\t\t * It will pass the value to the bussiness logic so trhat the further logics can\n\t\t * be performed on them.\n\t\t */\n\n\t\tif (conversionIsRequired(comboBox1.getSelectionModel().getSelectedItem(),\n\t\t\t\tcomboBox2.getSelectionModel().getSelectedItem())) {\n\t\t\tdouble op1 = Double.parseDouble(text_Operand1.getText());\n\t\t\tdouble op1et = Double.parseDouble(text_Operand3.getText());\n\t\t\tperform.setOperand1(String.valueOf(op1 * theFactor));\n\t\t\tperform.setOperand3(String.valueOf(op1et * theFactor));\n\t\t}\n\t\tif (binaryOperandIssues()) // If there are issues with the operands, return\n\t\t\treturn; // without doing the computation\n\t\tdouble x = Double.parseDouble(text_Operand2.getText());\n\t\tif (x == 0f) {\n\t\t\tlabel_errResult.setText(\"Divide by zero is not allowed\");\n\t\t\ttext_Result.setText(\"\");\n\n\t\t} else {\n\t\t\tString theAnswer = perform.division(); // Call the business logic Division method\n\t\t\tlabel_errResult.setText(\"\"); // Reset any result error messages from before\n\t\t\tString theAnswer1 = perform.division1(); // Call the business logic Division method\n\t\t\tlabel_errResulterr.setText(\"\"); // Reset any result error messages from before\n\n\t\t\tif (theAnswer.length() > 0 || theAnswer1.length() > 0) { // Check the returned String to see if it is okay\n\t\t\t\ttext_Result.setText(theAnswer); // If okay, display it in the result field and\n\t\t\t\tlabel_Result.setText(\"Quotient\"); // change the title of the field to \"Divide\".\n\t\t\t\tlabel_Result.setLayoutX(70);\n\t\t\t\tlabel_Result.setLayoutY(345);\n\t\t\t\ttext_Resulterr.setText(theAnswer1); // If okay, display it in the result field and\n\t\t\t\t// change the title of the field to \"Divide\"\n\t\t\t\tcomboBoxRes.getSelectionModel().select(comboBox1.getSelectionModel().getSelectedItem() + \"/\"\n\t\t\t\t\t\t+ comboBox2.getSelectionModel().getSelectedItem());\n\t\t\t} else { // Some error occurred while doing the division.\n\t\t\t\ttext_Result.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t\tlabel_Result.setText(\"Result\"); // Reset the result label if there is an error.\n\t\t\t\tlabel_errResult.setText(perform.getResultErrorMessage()); // Display the error message.\n\t\t\t\ttext_Resulterr.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t\t// Reset the result label if there is an error.\n\t\t\t\tlabel_errResulterr.setText(perform.getResulterrErrorMessage()); // Display the error message.\n\t\t\t}\n\n\t\t}\n\t}", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "public String division()\r\n {if (Second.compareTo(BigDecimal.ZERO)==0){\r\n throw new RuntimeException(\"Error\");\r\n }\r\n return First.divide(Second,5,BigDecimal.ROUND_UP).stripTrailingZeros().toString();\r\n }", "public static NumberP Division(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Division\n ); \t\n }", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"Quotient and remainder Problem\");\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter number 1\");\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(\"Enter number 2\");\n\t\tint b = sc.nextInt();\n\t\tint quotient = a/b;\n\t\tint remainder = a%b;\n\t\t\n\t System.out.println(\"Quotient is: \" + quotient);\n\t\tSystem.out.println(\"Remainder is: \" + remainder);\n\t\t \n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tdouble a=5;\n\t\t\n\t\tdouble b;\n\t\t\n\t\tb=7;\n\t\t\n\t\tdouble c=b+a;\n\t\tSystem.out.println(\"LA SUMA DE C ES : \"+c);\n\t\tc+=6;\n\t\tSystem.out.println(\"LA SUMA DE C ES : \"+c);\n\n\t\t//en tipo int\n\t\t c =b/a;\n\t\tSystem.out.println(\"LA DIVISION DE C ES : \"+c);\n\t\t\n\t\t//en float\n\t\tdouble c2=b/a;\n\t\tSystem.out.println(\"LA DIVISION DE C ES : \"+c2);\n\n\t\t\n\n\t\t \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\ttry\r\n\t\t{\r\n\t\t\tint a,b;\r\n\t\t\tint result;\r\n\t\t\tSystem.out.println(\"Enter the numbers:\");\r\n\t\t\tScanner sc=new Scanner(System.in);\r\n\t\t\ta=sc.nextInt();\r\n\t\t\tb=sc.nextInt();\r\n\t\t\tresult=a/b;\r\n\t\t\tSystem.out.println(result);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error in the code \"+e);\r\n\t\t}\r\n\t\t\r\n\t}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint devident = 30;\n\t\tint devide = 4;\n\t\tint Q = devident/devide;\n\t\tint R = devident%devide;\n\t\t\n\t\tSystem.out.println(\"Quotient is =\"+ Q);\n\t\tSystem.out.println(\"Remainder is =\"+ R);\n\n\t}", "public static NodeValue numDivide(NodeValue nv1, NodeValue nv2) {\n switch (classifyNumeric(\"divide\", nv1, nv2)) {\n case OP_INTEGER : {\n // Note: result is a decimal\n BigDecimal d1 = new BigDecimal(nv1.getInteger()) ;\n BigDecimal d2 = new BigDecimal(nv2.getInteger()) ;\n return decimalDivide(d1, d2) ;\n }\n case OP_DECIMAL : {\n BigDecimal d1 = nv1.getDecimal() ;\n BigDecimal d2 = nv2.getDecimal() ;\n return decimalDivide(d1, d2) ;\n }\n case OP_FLOAT :\n // No need to check for divide by zero\n return NodeValue.makeFloat(nv1.getFloat() / nv2.getFloat()) ;\n case OP_DOUBLE :\n // No need to check for divide by zero\n return NodeValue.makeDouble(nv1.getDouble() / nv2.getDouble()) ;\n default :\n throw new ARQInternalErrorException(\"Unrecognized numeric operation : (\" + nv1 + \" ,\" + nv2 + \")\") ;\n }\n }", "public static void main(String[] args) {\n\t\tfinal double d = 1 / 2; \n\t\tSystem.out.println(d); \n\t}", "private static void div(int[] numbers) {\n\t\tint sum=-1;\n\t\ttry {\n\t\t\tsum = numbers[0] / numbers[1];\n\t\t\tSystem.out.println(sum);\n\t\t} catch (ArithmeticException ex) {\n\t\t\tSystem.out.println(\"Sie dürfen um gottes Willen nicht durch NULL dividieren!\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static BinaryExpression divide(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\t\tint var1 = 3;\r\n\t\tint var2 = 2;\r\n\t\tint var3 = var1 / var2;\r\n\t\tdouble var4 = 3;\r\n\t\tdouble var5 = 2;\r\n\t\tdouble var6 = var4 / var5;\r\n\t\tSystem.out.print(var3);\r\n\t\tSystem.out.println(var6);\r\n\t}", "private static void divide(int[] n1, int[] n2, int[] quotient, int []remainder) {\n\t\tif (isZero(n2)) {\n\t\t\tthrow new ArithmeticException (\"Divide by Zero\");\n\t\t}\n\t\t\n\t\tclear (remainder);\n\t\tclear (quotient);\n\t\t\n\t\t// if clearly greater, then copy integer remainder\n\t\tif (compareTo(n2,n1) > 0) {\n\t\t\tint idx = remainder.length-1;\n\t\t\tfor (int i = 0; i < n1.length; i++ ) { \n\t\t\t\tremainder[idx--] = n1[i];\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// This returns a copy of n1/n2\n\t\tn1 = reduce(n1);\n\t\tn2 = reduce(n2);\n\n\t\t// we have to extend, and reduce length. Note that this WILL terminate because\n\t\t// we would have left earlier if n2 were greater than n1.\n\t\twhile (compareTo(n2,0,n2.length,n1,0) > 0) {\n\t\t\tn2 = expand(n2);\n\t\t}\n\t\t\n\t\t// return string \"quot+remainder\";\n\t\tString result = subProcess(n1, n2);\n\t\t\n\t\t// pack into quotient/remainder.\n\t\tint idx = result.indexOf(\"+\");\n\t\tif (idx == -1) {\n\t\t\tfor (int i = 0; i < quotient.length; i++) {\n\t\t\t\tquotient[i] = 0;\n\t\t\t}\n\t\t\tpack(remainder,result); // ever happen?\n\t\t} else {\n\t\t\tpack(quotient,result.substring(0,idx));\n\t\t\tpack(remainder,result.substring(idx+1));\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint a=ArithmeticUtils.gcd(361,285);\n\t\tSystem.out.println(a);\n\t}", "public static void main(String[] args) {\n\t\tScanner console = new Scanner(System.in);\n\t\tSystem.out.println(\"Hey give me a number or a fraction.\");\n\t\tString oneNumber = console.nextLine();\n\t\tSystem.out.println(\"Hey give me another number or a fraction.\");\n\t\tString twoNumber = console.nextLine();\n\t\tSystem.out.println(\"hey give me a number 1-4. 1=+, 2=-, 3=* 4=/\");\n\t\tString simble = console.nextLine();\n\t\tSystem.out.println(oneNumber);\n\t\tint v = Integer.parseInt(simble);\n\t\tif (v == 1) {\n\t\t\tSystem.out.println(\"+\");\n\t\t} else if (v == 2) {\n\t\t\tSystem.out.println(\"-\");\n\t\t} else if (v == 3) {\n\t\t\tSystem.out.println(\"*\");\n\t\t} else if (v == 4) {\n\t\t\tSystem.out.println(\"/\");\n\t\t} else\n\t\t\tSystem.out.println(\"\\\\('_')/\");\n\n\t\tSystem.out.println(twoNumber);\n\t\tSystem.out.println(\"=\");\n\t\tint numerator1;\n\t\tint denominator1;\n\t\tif (oneNumber.contains(\"/\")) {\n\t\t\tString numbers[] = oneNumber.split(\"/\");\n\t\t\tnumerator1 = Integer.parseInt(numbers[0]);\n\t\t\tdenominator1 = Integer.parseInt(numbers[1]);\n\n\t\t} else {\n\t\t\tnumerator1 = Integer.parseInt(oneNumber);\n\t\t\tdenominator1 = 1;\n\t\t\t}\n\t\t\tint numerator2;\n\t\t\tint denominator2;\n\t\tif (twoNumber.contains(\"/\")) {\n\t\t\tString numbers[] = twoNumber.split(\"/\");\n\t\t\tnumerator2 = Integer.parseInt(numbers[0]);\n\t\t\tdenominator2 = Integer.parseInt(numbers[1]);\n\t\t\t\n\t\t} else {\n\t\t\tnumerator2 = Integer.parseInt(twoNumber);\n\t\tdenominator2 = 1;\n\t\t}\n\t\tif (v == 1) {\n\t\t\tint r_numerator =(numerator1 * denominator2) + (numerator2 * denominator1);\n\t\t\tint r_denominator = denominator1 * denominator2;\n\t\t\tfraction_boy(r_numerator, r_denominator);\n\t\t} else if (v == 2) {\n\t\t\tint r_numerator =(numerator1 * denominator2) - (numerator2 * denominator1);\n\t\t\tint r_denominator = denominator1 * denominator2;\n\t\t\tfraction_boy(r_numerator, r_denominator);\n\t\t} else if (v == 3) {\n\t\t\tint r_numerator = numerator1 * numerator2;\n\t\t\tint r_denominator = denominator1 * denominator2;\n\t\t\tfraction_boy(r_numerator, r_denominator);\n\t\t} else if (v == 4) {\n\t\t\tint r_numerator = numerator1 * denominator2;\n\t\t\tint r_denominator = numerator2 * denominator1;\n\t\t\tfraction_boy(r_numerator, r_denominator);\n\t\t} else\n\t\t\tSystem.out.println(\"sorry man this is'nt going to work.\");\n\n\n\t\t}", "public void divide (int value) {\r\n\t\thistory = history + \" / \" + value;\r\n\t\tif (value == 0)\r\n\t\t\ttotal = 0;\r\n\t\telse\r\n\t\t\ttotal = total / value;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tSystem.out.printf(\"%.2f%n\",(a/b));\n \n\t}", "public static void main(String[] args) {\n\t\tint a = 47, b = 34;\r\n\t\tint c = a + b;\r\n\t\tSystem.out.println(c);\r\n\t\tSystem.out.println(a * b);\r\n\t\tSystem.out.println((float)a / b);\r\n\t}", "public static void main (String [] args) {\n\t\tint num1, num2; //int num1; int num2;\n\t\t\n\t\t//initialize - give a value\n\t\tnum1 = 25;\n\t\tnum2 = 4;\n\t\t\n\t\tint sum = 0;\n\t\tint mult = 0;\n\t\tint div = 0;\n\t\t\n\t\tsum = num1 + num2;\n\t\tmult = num1*num2;\n\t\tdiv = num1/num2;\n\t\t\n\t\tSystem.out.println(\"The sum of the numbers is: \"+ sum);\n\t\tSystem.out.println(\"The product of the numbers is: \"+ mult);\n\t\tSystem.out.println(\"The division of the numbers is: \"+ div);\n\t\t\n\t\t\n\t\tdouble d1, d2;\t\n\t\t\n\t\td1 = 6.99;\n\t\td2 = 3.5;\n\t\t\n\t\t\n\t\t//double will keep all the number but division will only hold the whole number\n\t\tdouble div_d = 0;\n\t\tdouble div_i = 0;\n\n\t\t\n\t\tdiv_d = d1/d2;\n\t\tSystem.out.println(\"The division of the double numbers is: \" + div_d);\n\t\t\n\t\t//not deciding on the right data types, you might loose information\n\t\tdiv_i = num1/num2;\n\t\tSystem.out.println(\"The division of the numbers is: \" + div_i);\n\t\t\n\t\t\n\t}", "public int division(int num1, int num2, int clientNo) {\n\t\ttry {\n\t\t\t// append details of request coming in\n\t\t\tserverDisplay.append(\"\\nRequest Coming in...\");\n\t\t\t// the client number and IP address\n\t\t\tserverDisplay.append(\"\\nClient: \" + clientNo + \" connected at IP: \" + InetAddress.getLocalHost().getHostAddress());\n\t\t\t// client instance number\n\t\t\tserverDisplay.append(\"\\nRequest from Client: \" + clientNo);\n\t\t\t// number 1 entered by client\n\t\t\tserverDisplay.append(\"\\nOperand 1: \" + num1);\n\t\t\t// number 2 entered by client\n\t\t\tserverDisplay.append(\"\\nOperand 2: \" + num2);\n\t\t\t// the chosen operator\n\t\t\tserverDisplay.append(\"\\nOperator: /\");\n\t\t\t// display to server coming in from client\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// append calculating\n\t\tserverDisplay.append(\"\\nCalculating...\");\n\t\t// append what the result is\n\t\tserverDisplay.append(\"\\nData to Client \" + clientNo + \": \" + (num1 / num2));\n\t\t// display answer\n\t\tserverDisplay.append(\"\\nAnswer :\" + (num1 / num2));\n\t\t// append sending back to the client\n\t\tserverDisplay.append(\"\\nSending result back to the client...\");\n\t\tserverDisplay.append(\"\\n================================================\");\n\t\t// return the two numbers divided\n\t\treturn (num1 / num2);\n\t}", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }", "public void testDivide() {\r\n System.out.println(\"Divide\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E100, 1.1E100}, \r\n {1., -1., 0., 0., 1., -1., 1.133333, 0.945945, 1., -1.}};\r\n for(int i = 0; i < 10; i++){\r\n try{\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Divide(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n catch(DividedByZeroException e){\r\n assertTrue(e instanceof DividedByZeroException);\r\n }\r\n }\r\n }", "public static void main(String[] args) {\r\n // int m = 6, n = 2;\r\n\r\n // int addition = m + n;\r\n // int subtract = m - n;\r\n // int multiplication = m * n;\r\n // int division = m / n;\r\n // int modulas = m % n;\r\n\r\n // n = 4;\r\n // double division1 = (double) m / n; // Typecasting\r\n // int division2 = m / n;\r\n\r\n // System.out.println(addition);\r\n // System.out.println(subtract);\r\n // System.out.println(multiplication);\r\n // System.out.println(division);\r\n // System.out.println(modulas);\r\n // System.out.println(division1);\r\n // System.out.println(division2);\r\n\r\n // System.out.println(n += m);\r\n\r\n // System.out.println(++n);\r\n // System.out.println(n++);\r\n\r\n // ++n; // pre increment\r\n // ++n; // post increment\r\n // int a = ++m;\r\n // System.out.println(a);\r\n // System.out.println(m);\r\n\r\n // int b = n++;\r\n // System.out.println(b);\r\n // System.out.println(n);\r\n\r\n }", "public static void main(String[] args) {\n\t\tint s = somme (458);\n\t\tSystem.out.println(s);\n\t\tSystem.out.println(estDiv3(451));\n\t}", "public static void main(String[] args) {\n\t\t float x=1;\r\n\t\t int y=2;\r\n\t\t float z=3;\r\n\t\t int a=4;\r\n\t\t int b=5;\r\n\t\t float result =x/y ;\r\n\t\t \r\n\t\t System.out.println (result);\r\n result =x+y ;\r\n\t\t \r\n\t\t System.out.println (\"9+2=\" +result);\t\r\n result =x-y ;\r\n\t\t \r\n\t\t System.out.println (\"9-2=\" +result);\r\n result =x*y ;\r\n\t\t \r\n\t\t System.out.println (\"9-2=\" +result);\r\n\t\t\r\n\t\t \r\n\t\t if (x==b)\r\n\t\t {\r\n\t\t\t System.out.println (\"true\");\r\n\t\t }\r\n\t\t else \r\n\t\t {\r\n\t\t\t System.out.println (\"false\"); \r\n\t\t }\r\n\t\t if (x!=a)\r\n\t\t {\r\n\t\t\t System.out.println (\"true\");\r\n\t\t }\r\n\t\t else \r\n\t\t {\r\n\t\t\t System.out.println (\"false\"); \r\n\t\t }\r\n\t\t if (z<b)\r\n\t\t {\r\n\t\t\t System.out.println (\"b is grather \");\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t System.out.println (\"b is less\"); \r\n\t\t }\r\n\t\t \r\n\t}", "public static void main(String[] args) {\n int int1 = 10, int2 = 20, int3 = 30;\n System.out.println(int1 % int2 * int3 + int1 / int2);\n \n }", "public void divide(int value) {\r\n\t\tif (value == 0) {\r\n\t\t\ttotal = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttotal /= value;\r\n\t\t}\r\n\t\thistory += \" / \" + value;\r\n\t}" ]
[ "0.7621226", "0.7609141", "0.74843115", "0.7463625", "0.7389748", "0.7378897", "0.7287303", "0.72180325", "0.7217124", "0.7189427", "0.7162514", "0.7148248", "0.70703614", "0.7016143", "0.7005096", "0.6999398", "0.6992544", "0.6983226", "0.69610673", "0.694755", "0.6934466", "0.693122", "0.69224423", "0.69010025", "0.6899244", "0.68770975", "0.6865573", "0.68543506", "0.6851435", "0.68462783", "0.6838965", "0.6812955", "0.6805492", "0.6804662", "0.68033", "0.67967075", "0.6793254", "0.6787059", "0.678482", "0.67821884", "0.6781949", "0.6766826", "0.6756371", "0.6756232", "0.67291427", "0.67129505", "0.6704053", "0.67028296", "0.66733223", "0.66694677", "0.66595167", "0.6648748", "0.6644797", "0.6638593", "0.6632569", "0.6622625", "0.6621455", "0.6607855", "0.66064584", "0.66027474", "0.6591253", "0.65715605", "0.6563088", "0.6557294", "0.6554807", "0.65407133", "0.65337944", "0.653311", "0.65327644", "0.65279526", "0.65276074", "0.650736", "0.65049446", "0.6498199", "0.6497234", "0.6496566", "0.649313", "0.64833766", "0.6475914", "0.64733714", "0.6469398", "0.64690983", "0.64605844", "0.6453774", "0.6452287", "0.6443836", "0.6442589", "0.643789", "0.6430725", "0.6426818", "0.6417521", "0.6411769", "0.6411691", "0.6406032", "0.6402978", "0.63956887", "0.6391516", "0.6391167", "0.63904005", "0.6383069" ]
0.75500095
2
TPLOC teleports player to given coordinates
public static Boolean run(CommandSender sender, String alias, String[] args) { if (PlayerHelper.checkIsPlayer(sender)) { Player player = (Player)sender; if (!Utils.checkCommandSpam(player, "tp-tploc")) { // first of all, check permissions if (Permissions.checkPerms(player, "cex.tploc")) { // alternative usage, all 3 coords separated by comma in 1 argument if (args.length == 1) { if (args[0].contains(",")) { args = args[0].split(","); } else { Commands.showCommandHelpAndUsage(sender, "cex_tploc", alias); return true; } } if (args.length <= 0) { // no coordinates Commands.showCommandHelpAndUsage(sender, "cex_tploc", alias); } else if (!(args.length == 3 || args.length == 4)) { // too few or too many arguments LogHelper.showWarning("tpMissingCoords", sender); return false; } else if (!args[0].matches(CommandsEX.intRegex) || !args[1].matches(CommandsEX.intRegex) || !args[2].matches(CommandsEX.intRegex)) { // one of the coordinates is not a number LogHelper.showWarning("tpCoordsMustBeNumeric", sender); } else { try { Player target = null; if (args.length == 4){ if (Bukkit.getPlayer(args[3]) != null){ target = Bukkit.getPlayer(args[3]); } else { LogHelper.showInfo("invalidPlayer", player, ChatColor.RED); return true; } } else { target = player; } delayedTeleport(target, new Location(player.getWorld(), new Double(args[0]), new Double(args[1]), new Double(args[2]))); LogHelper.showInfo("tpLocMsgToTarget#####[" + args[0].toString() + " " + args[1].toString() + " " + args[2].toString(), sender, ChatColor.AQUA); if (player != target){ LogHelper.showInfo("tpLocSuccess#####[" + target.getName() + " #####tpLocToCoords#####[" + args[0].toString() + " " + args[1].toString() + " " + args[2].toString(), sender, ChatColor.GREEN); } } catch (Throwable e) { LogHelper.showWarning("internalError", sender); LogHelper.logSevere("[CommandsEX]: TPLOC returned an unexpected error for player " + player.getName() + "."); LogHelper.logDebug("Message: " + e.getMessage() + ", cause: " + e.getCause()); e.printStackTrace(); return false; } } } } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean teleport(Player p1, Player p2, boolean change);", "public static void teleportPlayer(final Player player,\n \t\t\tfinal Location toLocation) {\n \t\tfinal Object networkManager = getNetServerHandler(getHandle(player));\n \t\ttry {\n \t\t\tnetworkManager.getClass().getMethod(\"teleport\", Location.class)\n \t\t\t\t\t.invoke(networkManager, toLocation);\n \t\t} catch (final Exception e) {\n \t\t\tthrow new RuntimeException(\"Can't teleport the player \" + player\n \t\t\t\t\t+ \" to \" + toLocation, e);\n \t\t}\n \t}", "public static void tpr(String world, Player player) {\n String msg = MessageManager.getMessageYml().getString(\"Tpr.Teleporting\");\n player.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', msg));\n Location originalLocation = player.getLocation();\n Random random = new Random();\n Location teleportLocation;\n int maxDistance = Main.plugin.getConfig().getInt(\"TPR.Max\");\n World w = Bukkit.getServer().getWorld(world);\n int x = random.nextInt(maxDistance) + 1;\n int y = 150;\n int z = random.nextInt(maxDistance) + 1;\n boolean isOnLand = false;\n teleportLocation = new Location(w, x, y, z);\n while (!isOnLand) {\n teleportLocation = new Location(w, x, y, z);\n if (teleportLocation.getBlock().getType() != Material.AIR) {\n isOnLand = true;\n } else {\n y--;\n }\n }\n player.teleport(new Location(w, teleportLocation.getX(), teleportLocation.getY() + 1.0D, teleportLocation.getZ()));\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Tpr\").equalsIgnoreCase(\"True\")) {\n int dis = (int) teleportLocation.distance(originalLocation);\n String dist = String.valueOf(dis);\n String original = (MessageManager.getMessageYml().getString(\"Tpr.Distance\").replaceAll(\"%distance%\", dist));\n String distance = (ChatColor.translateAlternateColorCodes('&', original));\n player.sendMessage(MessageManager.getPrefix() + distance);\n }\n }", "MazePoint getActivePlayerCoordinates();", "Location getPlayerLocation();", "private void teleport(Player player, ClanPlayerImpl clanPlayer, Location<World> teleportLocation) {\n player.setLocation(teleportLocation);\n clanPlayer.setLastClanHomeTeleport(new LastClanHomeTeleport());\n }", "public void teleportTo(int y, int x){\n\t\tthis.position[y][x] = 1;//makes the position here, used for other object room\n\t}", "public void teleportation(Vector2 posTp) {\n int distance = (int) Math.sqrt(Math.pow(posTp.x - position.x, 2) + Math.pow(posTp.y - position.y, 2));\n int coef = 50;\n if (wallet.getMoney() >= coef*distance) {\n position.set(posTp);\n position.x += WIDTH/2;\n resetMiner();\n wallet.withdraw(coef * distance);\n }\n }", "public void adjLocation(double l){this.PlayerLocation;}", "private Point move(Point[] players, int[] chat_ids, Point self)\n\t{\n\t\t//Move to a new position within the room anywhere within 6 meters of your current position. Any conversation you were previously engaged in is terminated: you have to be stationary to chat.\n\t\t//Initiate a conversation with somebody who is standing at a distance between 0.5 meters and 2 meters of you. In this case you do not move. You can only initiate a conversation with somebody on the next turn if they and you are both not currently engaged in a conversation with somebody else. \t\n\t\tint i = 0, target = 0;\n\t\twhile (players[i].id != self_id) i++;\n\t\t//look through players who are within 6 meters => Point[] players\n\t\tPoint p = self;\n for (target = 0; target<players.length; ++target) {\n\t\t\t//if we do not contain any information on them, they are our target => W[]\n\t\t\tif (W[p.id] != -1 || p.id == self.id) continue;\n p = players[target];\n }\n if (p.equals(self)) {\n for (target = 0; target < players.length; ++target) {\n if (W[p.id] == 0 || p.id == self.id) continue;\n p = players[target];\n }\n }\n if (!p.equals(self)) {\n\t\t\t// compute squared distance\n\t\t\tdouble dx1 = self.x - p.x;\n\t\t\tdouble dy1 = self.y - p.y;\n\t\t\tdouble dd1 = dx1 * dx1 + dy1 * dy1;\n\t\t\t//check if they are engaged in conversations with someone\n\t\t\tint chatter = 0;\n\t\t\twhile (chatter<players.length && players[chatter].id != chat_ids[target]) chatter++;\n\n\t\t\t//check if they are engaged in conversations with someone and whether that person is in our vicinity\n\t\t\tif(chat_ids[target]!=p.id && chatter!=players.length)\n\t\t\t{\n\t\t\t\t//if they are, we want to stand in front of them, .5 meters in the direction of who they're conversing with => check if result is within 6meters\n\t\t\t\tPoint other = players[chatter];\n\t\t\t\tdouble dx2 = self.x - other.x;\n\t\t\t\tdouble dy2 = self.y - other.y;\n\t\t\t\tdouble dd2 = dx2 * dx2 + dy2 * dy2;\n\n\t\t\t\tdouble dx3 = dx2-dx1;\n\t\t\t\tdouble dy3 = dy2-dy1;\n\t\t\t\tdouble dd3 = Math.sqrt(dx3 * dx3 + dy3 * dy3);\n\n\t\t\t\tdouble dx4 = (dx2 - 0.5*(dx3/dd3)) * -1;\n\t\t\t\tdouble dy4 = (dy2 - 0.5*(dy3/dd3)) * -1;\n\t\t\t\tdouble dd4 = dx4 * dx4 + dy4 * dy4;\n\n\t\t\t\tif (dd4 <= 2.0)\n\t\t\t\t\treturn new Point(dx4, dy4, self.id);\n }\n\t\t\t//if not chatting to someone or don't know position of chatter, just get as close to them as possible\n\t\t\telse return new Point((dx1-0.5*(dx1/dd1)) * -1, (dy1-0.5*(dy1/dd1)) * -1, self.id);\t\t\t\t\n\t\t}\n\n\t\t\tdouble dir = random.nextDouble() * 2 * Math.PI;\n\t\t\tdouble dx = 6 * Math.cos(dir);\n\t\t\tdouble dy = 6 * Math.sin(dir);\n\t\t\treturn new Point(dx, dy, self_id);\n\t}", "public static void teleportPlayer(GamePlayer player, List<Location> spawnpoint) {\r\n\t\tRandom rand = new Random();\r\n\t\tLocation spawn = spawnpoint.get(rand.nextInt(spawnpoint.size()));\r\n\t\t\r\n\t\tplayer.getPlayer().setSaturation(100000);\r\n\t\tplayer.getPlayer().setHealth(20);\r\n\t\tplayer.getPlayer().teleport(spawn);\r\n\t\tgiveStuff(player);\r\n\t}", "public Teleporter(Location location)\r\n\t{ this.destination = location; }", "public void pathFinding(GridCoordinate playerCoordinates)\r\n\t{\n\t\tplayerCoordinates = getCoordinates();\r\n\t\t\r\n\t\t//float playerX = PlayerCharacter.getOffsetX();\r\n\t\t\r\n\t}", "public void teleportPlayer(int x, int y){\n hero.setX(x);\n hero.setY(y);\n }", "public MessageTeleportPlayer(int x, int y, int z) \r\n\t{\r\n\t\tposX = x;\r\n\t\tposY = y;\r\n\t\tposZ = z;\r\n\t}", "public static void teleport(ServerPlayer player, ServerLevel world, BlockPos targetPos) {\n player.teleportTo(world, targetPos.getX() + 0.5, targetPos.getY() + 0.1, targetPos.getZ() + 0.5, player.yRotO, player.xRotO);\n }", "private static void goThroughPassage(Player player) {\n int x = player.getAbsX();\n player.getMovement().teleport(x == 2970 ? x + 4 : 2970, 4384, player.getHeight());\n }", "public void projectResponsePosition()\n {\n int width = Agar.GRID_SIZE.width;\n int height = Agar.GRID_SIZE.height;\n int nx, ny, sx, sy, wx, wy, ex, ey;\n\n nx = x;\n ny = ((y + 1) % height);\n wx = x - 1;\n if (wx < 0) { wx += width; }\n wy = y;\n ex = ((x + 1) % width);\n ey = y;\n sx = x;\n sy = y - 1;\n if (sy < 0) { sy += height; }\n switch (response)\n {\n case NORTHWEST:\n x2 = wx;\n y2 = ny;\n break;\n\n case NORTH:\n x2 = nx;\n y2 = ny;\n break;\n\n case NORTHEAST:\n x2 = ex;\n y2 = ny;\n break;\n\n case WEST:\n x2 = wx;\n y2 = wy;\n break;\n\n case STAY:\n x2 = x;\n y2 = y;\n break;\n\n case EAST:\n x2 = ex;\n y2 = ey;\n break;\n\n case SOUTHWEST:\n x2 = wx;\n y2 = sy;\n break;\n\n case SOUTH:\n x2 = sx;\n y2 = sy;\n break;\n\n case SOUTHEAST:\n x2 = ex;\n y2 = sy;\n break;\n }\n }", "public void movePlayersTo(int x, int y, int z)\r\n\t{\r\n\t\tif (_characterList == null)\r\n\t\t\treturn;\r\n\t\tif (_characterList.isEmpty())\r\n\t\t\treturn;\r\n\t\tfor (L2Character character : _characterList.values())\r\n\t\t{\r\n\t\t\tif (character == null)\r\n\t\t\t\tcontinue;\r\n\t\t\tif (character instanceof L2PcInstance && ((L2PcInstance)character).isOnline() == 1)\r\n\t\t\t{\r\n\t\t\t\tcharacter.teleToLocation(x, y, z);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void sendTeleportPacket(int entityId, Vector destination, byte yaw, byte pitch) {\n Object packet = ReflectUtils.newInstance(\"PacketPlayOutEntityTeleport\");\n ReflectUtils.setField(packet, \"a\", entityId);\n\n // Set the teleport location to the position of the entity on the player's side of the portal\n ReflectUtils.setField(packet, \"b\", destination.getX());\n ReflectUtils.setField(packet, \"c\", destination.getY());\n ReflectUtils.setField(packet, \"d\", destination.getZ());\n ReflectUtils.setField(packet, \"e\", yaw);\n ReflectUtils.setField(packet, \"f\", pitch);\n\n sendPacket(packet);\n }", "public void sendTeleport(final Player player) {\r\n player.lock();\r\n World.submit(new Pulse(1) {\r\n\r\n int delay = 0;\r\n\r\n @Override\r\n public boolean pulse() {\r\n if (delay == 0) {\r\n player.getActionSender().sendMessage(\"You've been spotted by an elemental and teleported out of its garden.\");\r\n player.graphics(new Graphics(110, 100));\r\n player.getInterfaceState().openComponent(8677);\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 2));\r\n face(player);\r\n } else if (delay == 6) {\r\n player.getProperties().setTeleportLocation(Location.create(getRespawnLocation()));\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 0));\r\n player.getInterfaceState().close();\r\n face(null);\r\n player.unlock();\r\n return true;\r\n }\r\n delay++;\r\n return false;\r\n }\r\n });\r\n }", "public boolean teleport(Entity destination) {\n/* 571 */ return teleport(destination.getLocation());\n/* */ }", "private void setupPlayerPosition() {\n\t\tHashMap<Suspect, Coordinates> startPositions = new HashMap<Suspect, Coordinates>();\r\n\t\tstartPositions.put(Suspect.KasandraScarlet, new Coordinates(18, 28));\r\n\t\tstartPositions.put(Suspect.JackMustard, new Coordinates(7, 28));\r\n\t\tstartPositions.put(Suspect.DianeWhite, new Coordinates(0, 19));\r\n\t\tstartPositions.put(Suspect.JacobGreen, new Coordinates(0, 9));\r\n\t\tstartPositions.put(Suspect.EleanorPeacock, new Coordinates(6, 0));\r\n\t\tstartPositions.put(Suspect.VictorPlum, new Coordinates(20, 0));\r\n\r\n\t\tfor (int i = 0; i < this.listOfPlayer.size(); i++) {\r\n\t\t\tPlayer p = this.listOfPlayer.get(i);\r\n\t\t\tSuspect sus = p.getSuspect().getData();\r\n\t\t\tboolean b = p.setCoord(startPositions.get(sus), this.grid);\r\n\t\t\t// should always be able to put character on starting position\r\n\t\t}\r\n\t\tSystem.out.println(\"Initial player starting positions set\");\r\n\t}", "public boolean teleport(Location location) {\n/* 508 */ return teleport(location, PlayerTeleportEvent.TeleportCause.PLUGIN);\n/* */ }", "public static void teleportPlayersToArena(Arena a, Player... players) {\n for (Player p : players) {\n p.teleport(a.getSpawnInPoint());\n }\n }", "@Override\n public Location getLocation() {\n if (type == TeleportType.TPA) {\n return target.getPlayerReference(Player.class).getLocation();\n } else if (type == TeleportType.TPHERE) {\n return toTeleport.getPlayerReference(Player.class).getLocation();\n }\n\n return null;\n }", "private void resendPosition(Player player) {\r\n\t\tPacketContainer positionPacket = protocolManager.createPacket(PacketType.Play.Server.POSITION);\r\n\t\tLocation location = player.getLocation();\r\n\r\n\t\tpositionPacket.getDoubles().write(0, location.getX());\r\n\t\tpositionPacket.getDoubles().write(1, location.getY());\r\n\t\tpositionPacket.getDoubles().write(2, location.getZ());\r\n\t\tpositionPacket.getFloat().write(0, 0f); // No change in yaw\r\n\t\tpositionPacket.getFloat().write(1, 0f); // No change in pitch\r\n\t\tgetFlagsModifier(positionPacket).write(0, EnumSet.of(PlayerTeleportFlag.X_ROT, PlayerTeleportFlag.Y_ROT)); // Mark pitch and yaw as relative\r\n\r\n\t\tPacketContainer velocityPacket = protocolManager.createPacket(PacketType.Play.Server.ENTITY_VELOCITY);\r\n\t\tvelocityPacket.getIntegers().write(0, player.getEntityId());\r\n\t\tvelocityPacket.getIntegers().write(1, 0).write(2, 0).write(3, 0); // Set velocity to 0,0,0\r\n\r\n\t\ttry {\r\n\t\t\tprotocolManager.sendServerPacket(player, positionPacket);\r\n\t\t\tprotocolManager.sendServerPacket(player, velocityPacket);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(\"Failed to send position and velocity packets\", e);\r\n\t\t}\r\n\t}", "public void teleport(boolean penalty) { \n\t\tPublisher teleport_h = new Publisher(\"/ariac_human/go_home\", \"std_msgs/Bool\", bridge);\n\t\tif(penalty)\t\n\t\t\tteleport_h.publish(new Bool(true));\t\n\t\telse\n\t\t\tteleport_h.publish(new Bool(false));\t\n\n\t\t// Reset \"smart\" orientation variables\n\t\tlastHumanState_MsgT = System.currentTimeMillis();\n\t\tlastUnsafeD_MsgT = System.currentTimeMillis();\n\t\tpreviousDistance = 50.0;\n\t\tisAproximating = false;\n\t}", "public static void sendTo(Player player, OwnedWarp warp) {\n if(warp == null)\n return;\n try {\n Points.teleportTo(player, warp.getTarget(), warp.getName());\n } catch (InvalidDestinationException ex) {\n player.sendMessage(ex.getMessage());\n Stdout.println(ex.getMessage(), Level.ERROR);\n }\n }", "public Player getToTeleportTo(){\n\t\treturn toTeleportTo;\n\t}", "private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}", "private void setSpawnLocation(Object packet, Vector location, String xName, String yName, String zName) {\n ReflectUtils.setField(packet, xName, location.getX());\n ReflectUtils.setField(packet, yName, location.getY());\n ReflectUtils.setField(packet, zName, location.getZ());\n }", "@Override\n public void execute() {\n vars.setState(\"Teleporting...\");\n Methods.teleToFlameKing();\n }", "public void spawn(Location location) {\r\n Packet<?>[] packets = {\r\n new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER),\r\n new PacketPlayOutNamedEntitySpawn(),\r\n new PacketPlayOutEntityHeadRotation()\r\n };\r\n\r\n setFieldCastValue(packets[0], \"b\", Collections.singletonList(this.getPlayerInfoData((PacketPlayOutPlayerInfo) packets[0])));\r\n\r\n setFieldValue(packets[1], \"a\", this.entityId); // Just change entity id to prevent client-side problems\r\n setFieldValue(packets[1], \"b\", this.profile.getId());\r\n setFieldValue(packets[1], \"c\", location.getX());\r\n setFieldValue(packets[1], \"d\", location.getY());\r\n setFieldValue(packets[1], \"e\", location.getZ());\r\n setFieldValue(packets[1], \"f\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"g\", (byte) (location.getPitch() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"h\", this.player.getPlayer().getHandle().getDataWatcher());\r\n\r\n setFieldValue(packets[2], \"a\", this.entityId);\r\n setFieldValue(packets[2], \"b\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n\r\n for (GamePlayer player : this.plugin.getGameManager().getAllPlayers())\r\n for (Packet<?> packet : packets)\r\n player.sendPacket(packet);\r\n }", "public void snapToGrid(Player pl) {\n\t\t// Find the closest spot\n\t\t\n\t\tif(pl.getVelocity().x == 0 && pl.getLocation().x - 2 % 16 != 0)\n\t\t{\n\t\t\tfloat locationX = Math.round(pl.getLocation().x / 16f);\n\t\t\tfloat preferredX = (locationX * 16) + 2f;\n\t\t\t\n\t\t\tfloat move = preferredX - pl.getLocation().x;\n\t\t\tif(Math.abs(move) > 0.1f)\n\t\t\t\tmove = 0.1f * Math.signum(move);\n\t\t\tpl.getLocation().x += move;\n\t\t}\n\t\t\n\t\tif(pl.getVelocity().y == 0 && pl.getLocation().y - 2 % 16 != 0)\n\t\t{\n\t\t\tfloat locationY = Math.round(pl.getLocation().y / 16f);\n\t\t\tfloat preferredY = (locationY * 16) + 2f;\n\t\t\t\n\t\t\tfloat move = preferredY - pl.getLocation().y;\n\t\t\tif(Math.abs(move) > 0.1f)\n\t\t\t\tmove = 0.1f * Math.signum(move);\n\t\t\tpl.getLocation().y += move;\n\t\t}\n\t\t\n\t}", "boolean aTeleport(int[] coor) {\n System.out.println(\"I found a teleport point at: \" + Arrays.toString(coor));\n if(teleport.size() == 0)return false;\n\n for (int i = 0; i < teleport.size(); i++) {\n int coorX = teleport.get(i)[0];\n int coorY = teleport.get(i)[1];\n\n int[] teleporter = new int[]{coorX,coorY};\n\n if(Arrays.equals(teleporter, coor))return true;\n\n }\n\n return false;\n }", "public Point performTeleport(String name, Point oldPos, boolean safeTeleport) {\n\t\tPoint newPos \t= new Point();\n\t\tif(safeTeleport)\n\t\t\tnewPos = getSafeTeleportPosition();\n\t\telse\n\t\t\tnewPos = getUnsafeTeleportPosition();\n\t\t\n\t\tmovePlayer(name, oldPos, newPos, true);\n\t\treturn newPos;\n\t}", "MapLocation getPosition(Unit unit);", "void updateSignToPlayer(Player player, Location location, String[] lines);", "public static void movePlayerToStartingLocation(Map map) {\n movePlayer(map, 2, 2); // or instead of 0,0 you can select a different starting location\r\n }", "public static void teleportWithChunkCheck(final Player player, final Location loc) {\n\t\tDebugLog.beginInfo(\"Teleport player (\" + player.getName() + \")\");\n\t\tDebugLog.addInfo(\"[TO] \" + loc);\n\t\ttry {\n\t\t\tfinal PlayerTeleportEvent event = new ACTeleportEvent(player, player.getLocation(), loc, TeleportCause.PLUGIN);\n\t\t\tBukkit.getPluginManager().callEvent(event);\n\t\t\tif (event.isCancelled()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinal Location toLocation = event.getTo();\n\t\t\tfinal int x = toLocation.getBlockX() >> 4;\n\t\t\tfinal int z = toLocation.getBlockZ() >> 4;\n\t\t\tif (!toLocation.getWorld().isChunkLoaded(x, z)) {\n\t\t\t\ttoLocation.getWorld().loadChunk(x, z);\n\t\t\t}\n\t\t\tfinal Location playerLoc = player.getLocation();\n\t\t\tACPluginManager.runTaskLaterAsynchronously(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\tACPlayer.getPlayer(player).setLastLocation(playerLoc);\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tTeleportCommand.teleport(player, toLocation);\n\t\t} finally {\n\t\t\tDebugLog.endInfo();\n\t\t}\n\n\t}", "private void pointTowardsPlayer(Direction dir, Position playerPos, Position enemyPos)\n {\n dir.x = playerPos.x - enemyPos.x;\n dir.y = playerPos.y - enemyPos.y;\n\n // Normalize direction vector\n double length = Math.sqrt(dir.x * dir.x + dir.y * dir.y);\n dir.x /= length;\n dir.y /= length;\n }", "public static void teleport(PlayerEntity player, BlockPos pos, int dim) {\n teleport(player, pos, dim, p -> {\n });\n }", "private void sendRequest() {\n double origLat = currLatLng.latitude;\n double origLong = currLatLng.longitude;\n double destLat = destLatLng.latitude;\n double destLong = destLatLng.longitude;\n String origin = origLat + \",\" + origLong;\n String destination = destLat + \",\" + destLong;\n Log.d(TAG, \"sendRequest: origin LatLong- \" + \" destination LaatLng- \" + destLatLng);\n try {\n new DirectionFinder(this, origin, destination).execute();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "public void teleportToAlien() {\n\t\tAlien a;\n\t\tSpaceship sp;\n\t\tif(roamingAliens > 0){\n\t\t\tsp = getTheSpaceship();\n\t\t\ta = getRandomAlien();\n\t\t\tsp.setLocation(a.getLocation());\n\t\t\tSystem.out.println(\"You've teleported to an alien\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Error: There were no aliens to jump to.\");\n\t}", "public abstract void changePlayerAt(ShortPoint2D pos, Player player);", "public static void command() throws Exception{\n\t\tint dest = 505;\n\t\tif (pastrs.length > 0){\n\t\t\tMapLocation nearest = Util.nearest(pastrs, rc.getLocation());\n\t\t\tdest = Util.encodeLocation(nearest);\n\t\t}\n\t\t\n\t\trc.broadcast(100,dest);\n\t}", "private void handleTeleport(GameGUI gui) {\r\n\t\tif (gui.isTeleportPressed()) {\r\n\t\t\tteleport();\r\n\t\t}\r\n\t}", "public boolean teleport ( Location location ) {\n\t\treturn invokeSafe ( \"teleport\" , location );\n\t}", "public void setStartingPosition(GameTile [][] visibleMap) {\r\n\t\t//method to set the starting position of our player.\r\n\t\tfor(int i=0; i<visibleMap.length; i++) {\r\n\t\t\tfor(int j=0; j<visibleMap[i].length; j++) {\r\n\t\t\t\tif(visibleMap[i][j] != null && visibleMap[i][j].hasPlayer()) {\r\n\t\t\t\t\tplayerX = i;\r\n\t\t\t\t\tplayerY = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "@Override\n\tpublic boolean teleport(final Location location) {\n\t\tGuard.ArgumentNotNull(location, \"location\");\n\t\t\n\t\tif (isOnline()) {\n\t\t\treturn bukkitPlayer.teleport(location);\n\t\t}\n\t\treturn false;\n\t}", "public void sendMessage() {\n\t\tString myPosition=this.agent.getCurrentPosition();\n\t\tif (myPosition!=null){\n\t\t\t\n\t\t\tList<String> wumpusPos = ((CustomAgent)this.myAgent).getStenchs();\n\t\t\t\n\t\t\tif(!wumpusPos.isEmpty()) {\n\t\t\t\tList<String> agents =this.agent.getYellowpage().getOtherAgents(this.agent);\n\t\t\t\t\n\t\t\t\tACLMessage msg=new ACLMessage(ACLMessage.INFORM);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setProtocol(\"WumpusPos\");\n\t\t\t\tmsg.setContent(wumpusPos.get(0)+\",\"+myPosition);\n\t\t\t\t\n\t\t\t\tfor(String a:agents) {\n\t\t\t\t\tif(this.agent.getConversationID(a)>=0) {\n\t\t\t\t\t\tif(a!=null) msg.addReceiver(new AID(a,AID.ISLOCALNAME));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.agent.sendMessage(msg);\n\t\t\t\tthis.lastPos=myPosition;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "@Override\r\n public void setupMove(double localTime) {\n if (mEntityMap.containsKey(mLocalCharId)) {\r\n Character localChar = (Character)mEntityMap.get(mLocalCharId);\r\n localChar.setController(Game.mCamera);\r\n ((Client)mEndPoint).sendUDP(localChar.getControl());\r\n\r\n ChatMessage chat = localChar.getChat();\r\n if (chat != null && chat.s != null) {\r\n System.err.println(\"Sending chat to server:\" + chat.s);\r\n ((Client)mEndPoint).sendTCP(chat);\r\n chat.s = null;\r\n }\r\n }\r\n\r\n // receive world state from server\r\n TransmitPair pair;\r\n for (;;) {\r\n pair = pollHard(localTime, 0);\r\n if (pair == null)\r\n break;\r\n\r\n if (pair.object instanceof StateMessage) {\r\n // Server updates client with state of all entities\r\n StateMessage state = (StateMessage) pair.object;\r\n applyEntityChanges(state.timestamp, state.data);\r\n\r\n // update clock correction based on packet timestamp, arrival time\r\n if (mClockCorrection == Double.MAX_VALUE) {\r\n mClockCorrection = state.timestamp - localTime;\r\n } else {\r\n mClockCorrection = Config.CORRECTION_WEIGHT * (state.timestamp - localTime)\r\n + (1 - Config.CORRECTION_WEIGHT) * mClockCorrection;\r\n }\r\n } else if (pair.object instanceof StartMessage) {\r\n // Server tells client which character the player controls\r\n mLocalCharId = ((StartMessage) pair.object).characterEntity;\r\n System.err.println(\"Client sees localid, \" + mLocalCharId);\r\n } else if (pair.object instanceof ChatMessage) {\r\n ChatMessage chat = (ChatMessage) pair.object;\r\n mChatDisplay.addChat(localTime, chat.s, Color.white);\r\n } else if (pair.object instanceof ChunkMessage) {\r\n ChunkMessage chunkMessage = (ChunkMessage) pair.object;\r\n ChunkModifier.client_putModified(chunkMessage);\r\n }\r\n }\r\n\r\n // move local char\r\n if (mEntityMap.containsKey(mLocalCharId)) {\r\n Character localChar = (Character)mEntityMap.get(mLocalCharId);\r\n localChar.setupMove(localTime);\r\n }\r\n }", "public static void teleport(LivingEntity ent, Location to) {\n\t\tteleport(ent, to, true, true);\n\t}", "public Teleporter(Vector2D teleporterPos, Vector2D teleportsToPos, int id, float elevation,\n\t\t\tString description, String name,boolean canInteract) {\n\t\tsuper(teleporterPos, id, elevation, description, name);\n\t\tthis.teleportsToPos = teleportsToPos;\n\t\tthis.canInteract = canInteract;\n\t}", "godot.wire.Wire.Vector3 getPosition();", "public void myLocationClick() {\n\n //Set the initial camera position to the current location\n GridPoint gridPoint = myGridPoint();\n float mpp = 1;\n\n if (gridPoint != null) {\n\n CameraPosition cameraPosition = new CameraPosition(gridPoint, mpp);\n mMap.moveCamera(cameraPosition, true);\n\n } else {\n\n //If GPS is off, notify the user to turn it on\n Toast.makeText(MainActivity.this,\"Turn on GPS.\",Toast.LENGTH_SHORT).show();\n\n }\n\n }", "void playerPositionChanged(Player player);", "public StringTeleporter(float xp, float zp, float tx, float tz, float size, String code, TargetDelegate t) {\n super(xp, zp, tx, tz, size);\n this.code = code;\n target = t;\n }", "godot.wire.Wire.Vector2 getPosition();", "public void teleportToAstronaut() {\n\t\tAstronaut a;\n\t\tSpaceship sp;\n\t\tif(roamingAstronauts > 0) {\n\t\t\tsp = getTheSpaceship();\n\t\t\ta = getRandomAstronaut();\n\t\t\tsp.setLocation(a.getLocation());\n\t\t\tSystem.out.println(\"You've teleported to an astronaut. \\n Hope you didn't hit them.\");\n\t\t}\n\t\telse \n\t\t\tSystem.out.println(\"Error: Ther were no astronauts to jump to.\");\n\t}", "private void sendUserLocationQuery(LocationResult locationResult) {\r\n Log.i(TAG, \"player being sent \" + (player == null ? \"null\" : player.toString()));\r\n UpdatePlayerInput updatePlayerInput = UpdatePlayerInput.builder()\r\n .id(playerID)\r\n .playerSessionId(sessionId)\r\n .lat(locationResult.getLastLocation().getLatitude())\r\n .lon(locationResult.getLastLocation().getLongitude())\r\n .isIt(player.getIt())\r\n .build();\r\n\r\n UpdatePlayerMutation updatePlayerMutation = UpdatePlayerMutation.builder()\r\n .input(updatePlayerInput).build();\r\n\r\n awsAppSyncClient.mutate(updatePlayerMutation)\r\n .enqueue(new GraphQLCall.Callback<UpdatePlayerMutation.Data>() {\r\n @Override\r\n public void onResponse(@Nonnull Response<UpdatePlayerMutation.Data> response) {\r\n Log.i(TAG, \"update success\");\r\n }\r\n\r\n @Override\r\n public void onFailure(@Nonnull ApolloException e) {\r\n Log.e(TAG, \"update not successful\");\r\n }\r\n });\r\n }", "int remoteTp(Player p1, Player p2);", "public void sendData() {\r\n\t\t// HoverBot specific implementation of sendData method\r\n\t\tSystem.out.println(\"Sending location information...\");\r\n\t}", "public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } \r\n pos = Main.player1.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0.1;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false) {\r\n \tMain.player1.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player1.Size()[0],Main.player1.Size()[1])==false)\r\n {\r\n \tMain.player1.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n Main.Fase.repinta(); \r\n }\r\n else {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)) {\r\n \tMain.player2.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player2.MudaLado(false,true);\r\n } \r\n pos = Main.player2.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false) {\r\n \tMain.player2.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false)\r\n {\r\n \tMain.player2.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n }\r\n }", "public static void teleport(LivingEntity ent, Location to, boolean saveYaw, boolean savePitch) {\n\t\tLocation tp = to.clone();\n\t\tif(saveYaw) tp.setYaw(ent.getLocation().getYaw());\n\t\tif(savePitch) tp.setPitch(ent.getLocation().getPitch());\n\t\tent.teleport(tp);\n\t}", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "@Test\n public void test_SuccessfulTravel() {\n \n // Test 1: Setting up planets with a pythagorean triplet\n setup(154, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(141, player.getFuel());\n \n // Tests the player's current location after travel.\n assertEquals(SolarSystems.SHALKA, player.getSolarSystems());\n \n //----------------------------------------------------------------------\n \n // Test 2: Setting up coordinates with a random triangle\n setup(777, 2);\n \n SolarSystems.ERMIL.changeLocation(SolarSystems.SHIBI);\n \n // Tests the player's current fuel.\n assertEquals(646, player.getFuel());\n \n // Tests the player's current location after travel.\n assertEquals(SolarSystems.SHIBI, player.getSolarSystems());\n \n }", "private void placeRobot(List<String> args) {\n int x;\n int y;\n Position.Direction direction;\n\n try {\n x = Integer.parseInt(args.get(0));\n y = Integer.parseInt(args.get(1));\n direction = Position.Direction.valueOf(args.get(2));\n } catch (NumberFormatException e) {\n System.out.println(\"x and y accept only numbers\");\n return;\n } catch (IllegalArgumentException e) {\n System.out.println(args.get(2) + \" looks an unsupported direction\");\n return;\n }\n\n if(x >= lowerBound.getX() && y >= lowerBound.getY() &&\n x <= upperBound.getX() && y <= upperBound.getY() ) {\n currentPosition.setX(x);\n currentPosition.setY(y);\n currentPosition.setDirection(direction);\n } else {\n System.out.println(\"Cannot position the robot outside the table\");\n }\n }", "public Point getRobotLocation();", "public static void main(String[] args){\n\t\tint port = 6677;\n\t\tboolean done = false;\n\t\tboolean connected = false;\n\t\tboolean ourTurnToSend = true;\n\t\tString clientTextSent = new String();\n\t\tString emptyString = new String();\n\t\tString ip = new String(\"\");\n\t\tScanner in;\n\t\tScanner terminalText = new Scanner(System.in);\n\t\tPrintWriter out;\n\t\ttry{\n\t\t\tSocket chatSocket;\n\t\t\tchatSocket = new Socket(ip,3000);\n\t//------------------------------------------------------------------------I have a chat socket, HOHOHO--------------------------\n\t\t\tin = new Scanner(chatSocket.getInputStream());\n\t\t\tout = new PrintWriter(chatSocket.getOutputStream());\n\t//------------------------------------------------------------------------Fully initialised, front-back chat possible------------\n\t\t\twhile(done == false){\n\t\t\t\tout.println(\"{\\\"PLAYER_NUMBER\\\":\\\"P1\\\",\\\"PROTOCOL\\\":\\\"PADDLE_MOVEMENT\\\",\\\"X\\\":-293.3333333333334,\\\"Y\\\":-230}\");out.flush();\n\t\t\t}\n\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Shit be whack Yo\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void setPlayerLocation(Player p, int bp) {\n\t\t\tplayerLocationRepo.put(p, bp);\n\t\t}", "public static void worldLocsInsert(Player player) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tLocation pLoc = player.getLocation();\n\t\t\tint x = pLoc.getBlockX();\n\t\t\tint y = pLoc.getBlockY();\n\t\t\tint z = pLoc.getBlockZ();\n\t\t\tUUID uuid = player.getUniqueId();\n\n\t\t\t/* This is easier... */\n\t\t\tst.executeUpdate(\"DELETE FROM worldlocs WHERE uuid='\" + uuid + \"';\");\n\t\t\tst.executeUpdate(\"INSERT INTO worldlocs(uuid, x, y, z) VALUES ('\" + uuid + \"', '\" + x + \"', '\" + y + \"', '\" + z + \"');\");\n\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}", "Point position(String installationId, List<String> scannersAddr, List<BeaconEvent> events);", "void playRoadCard(EdgeLocation spot1, EdgeLocation spot2);", "private void createPosition() {\n\n switch (new Random().nextInt(4)) {\n\n case 0:\n sendString = enemyPositionX.nextInt(Window.WIDTH) + \":-90\";\n break;\n\n case 1:\n sendString = enemyPositionX.nextInt(Window.WIDTH) + \":\" + (Window.HEIGHT + 90);\n break;\n\n case 2:\n sendString = \"-90:\" + enemyPositionY.nextInt(Window.HEIGHT);\n break;\n\n case 3:\n sendString = (Window.WIDTH + 90) + \":\" + enemyPositionY.nextInt(Window.HEIGHT);\n break;\n }\n sendString += \":\" + new Random().nextInt(4);\n sendString += \":\" + new Random().nextInt(2);\n }", "@Override\n\tpublic String tick(Point2D myPosition, Set<Observation> whatYouSee,\n\t\t\tSet<iSnorkMessage> incomingMessages,\n\t\t\tSet<Observation> playerLocations) {\n ticks++;\n currentLocation = myPosition;\n\t\tcarto.update(myPosition,whatYouSee,playerLocations,incomingMessages); \n\t\tcarto.getNextDirection();\n\t\treturn carto.getMessage();\n\t}", "@Override\n public void run() {\n if (pendingTeleports.containsKey(sender.getName())) {\n pendingTeleports.remove(sender.getName(),originalSender);\n if (senderPlayer.dimension != teleportee.dimension) {\n TeleportHelper.transferPlayerToDimension(teleportee,senderPlayer.dimension,server.getPlayerList());\n }\n teleportee.setPositionAndUpdate(senderPlayer.posX,senderPlayer.posY,senderPlayer.posZ);\n sender.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n teleportee.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n } //if not, the teleportee moved\n }", "public void moveRobber(HexLocation loc) {\n\n\t}", "public void initSpawnPoints() {\n this.spawnPointList = new ArrayList<Node>();\n \n //Player spawn point location (5,0,47) In Ready Room\n this.addSpawnPoint(5.5f,0,47.5f,90, true);\n //Mob spawn point location (16,0,47) In Zone 2\n this.addSpawnPoint(16.5f, 0, 47.5f, 270, false); \n //Mob spawn point location (21,0,43)\n this.addSpawnPoint(21.5f, 0, 43.5f, 0,false);\n \n //Mob spawners in Zone 3\n this.addSpawnPoint(17.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(29.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(17.5f, 0, 29.5f, 270, false);\n \n //Mob spawners in Zone 4\n this.addSpawnPoint(12.5f, 0, 29.5f, 90, false);\n this.addSpawnPoint(6.5f, 0, 20.5f, 0, false);\n \n //Mob spawners in Zone 5\n this.addSpawnPoint(9.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(17.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(24.5f, 0, 8.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 11.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 14.5f, 270, false);\n }", "public void setUserLocation(Room setRoom)\n {\n\n // Gets each person from the characters' array list.\n for(Person person: characters){\n\n // Check if found the player.\n if(person.getName().equals(PLAYER)){\n\n // sets the location of the player to the specifed room.\n person.setLocation(setRoom);\n }\n }\n }", "public Packet00Login(String username,float x, float y, Direction direction){\r\n super();\r\n this.username = username;\r\n this.x = x;\r\n this.y = y;\r\n this.direction = direction;\r\n }", "public interface GPScoordinates {\n public void sendCoordinates(double myLat, double myLong);\n}", "Tower(Point location)\r\n\t{\r\n\t\tthis.location=location;\r\n\t}", "public Position(TrackSession trackSession, String positionBody) {\r\n final String DELIMITER_TOKEN = \",\";\r\n\r\n // Parse positionBody\r\n String aux;\r\n StringTokenizer tk = new StringTokenizer(positionBody, DELIMITER_TOKEN);\r\n aux = tk.nextToken();\r\n String ltStr = aux.substring(0, aux.length() - 1);\r\n char cardinal = aux.charAt(aux.length() - 1);\r\n int factorLt = (cardinal == 'N' ? 1 : -1);\r\n double lt = Double.parseDouble(ltStr);\r\n int ltInt = (int) (lt / 100);\r\n double ltMinutes = lt % 100;\r\n double ltDegrees = ltInt + ltMinutes / 60;\r\n ltDegrees = ltDegrees * factorLt;\r\n aux = tk.nextToken();\r\n String lgStr = aux.substring(0, aux.length() - 1);\r\n cardinal = aux.charAt(aux.length() - 1);\r\n int factorLg = (cardinal == 'E' ? 1 : -1);\r\n double lg = Double.parseDouble(lgStr);\r\n int lgInt = (int) (lg / 100);\r\n double lgMinutes = lg % 100;\r\n double lgDegrees = lgInt + lgMinutes / 60;\r\n lgDegrees = lgDegrees * factorLg;\r\n String timeStr = tk.nextToken();\r\n int hour = Character.digit(timeStr.charAt(0), 10);\r\n hour = hour * 10 + Character.digit(timeStr.charAt(1), 10);\r\n int minute = Character.digit(timeStr.charAt(2), 10);\r\n minute = minute * 10 + Character.digit(timeStr.charAt(3), 10);\r\n int second = Character.digit(timeStr.charAt(4), 10);\r\n second = second * 10 + Character.digit(timeStr.charAt(5), 10);\r\n int secondsOfDay = hour * 60 * 60 + minute * 60 + second;\r\n Date time = new Date(secondsOfDay * 1000);\r\n //String dummy = tk.nextToken(); // Not used\r\n String altStr = tk.nextToken();\r\n double alt = Double.parseDouble(altStr);\r\n //String velStr = tk.nextToken(); // Not used\r\n String satStr = tk.nextToken();\r\n int nSat = Integer.parseInt(satStr);\r\n String hDopStr = tk.nextToken();\r\n double hDop = Double.parseDouble(hDopStr);\r\n String fixedStr = tk.nextToken();\r\n int fixed = Integer.parseInt(fixedStr);\r\n\r\n // Initialize object fields.\r\n mTrackSession = trackSession;\r\n if (mTrackSession != null)\r\n mTrackSessionId = trackSession.get_id();\r\n mLatitude = ltDegrees;\r\n mLongitude = lgDegrees;\r\n mTime = time;\r\n mAltitude = alt;\r\n mSat = nSat;\r\n mHdop = hDop;\r\n mFixed = fixed;\r\n\r\n// A inserção na base de dados é realizada fora do constructor.\r\n// // Add new Object into database\r\n// // Read GuardTracker database helper\r\n// GuardTrackerDbHelper dbHelper = new GuardTrackerDbHelper(context);\r\n// // Initialize database for write\r\n// final SQLiteDatabase db = dbHelper.getWritableDatabase();\r\n// // Prepare values to write to database\r\n// int latRaw = (int) (mLatitude * GPS_DEGREES_PRECISION);\r\n// int lngRaw = (int) (mLongitude * GPS_DEGREES_PRECISION);\r\n// int altRaw = (int) (mAltitude * GPS_ALTITUDE_PRECISION);\r\n// int hDopRaw = (int) (mHdop * GPS_HDOP_PRECISION);\r\n// int timeRaw = (int) time.getTime();\r\n// ContentValues contentValues = new ContentValues();\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_SESSION, mTrackSessionId == 0 ? null : mTrackSessionId);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_LT, latRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_LG, lngRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_TIME, timeRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_ALTITUDE, altRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_NSAT, mSat);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_HDOP, hDopRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_FIXED, mFixed);\r\n// long pkId = db.insertOrThrow(GuardTrackerContract.PositionTable.TABLE_NAME, null, contentValues);\r\n//\r\n// _id = (int) pkId;\r\n//\r\n// db.close();\r\n\r\n }", "default void interactWith(Teleporter tp) {\n\t}", "public boolean teleport ( Location location , PlayerTeleportEvent.TeleportCause cause ) {\n\t\treturn invokeSafe ( \"teleport\" , location , cause );\n\t}", "private void location(String[] command) {\n\t\tSystem.out\n\t\t\t\t.println(\"Sending last known location information via Twitter.\");\n\t\tTwitterComm.sendDirectMessage(Constants.AUTH_USER,\n\t\t\t\tConstants.CH_LOCATIONTEXT + \"\\n\"\n\t\t\t\t\t\t+ Alfred.getLocation().toString());\n\t}", "public void randomTeleport() {\n Random random = new Random(seed);\n seed = random.nextInt(10000);\n int randomY = RandomUtils.uniform(random, 0, worldHeight);\n int randomX = RandomUtils.uniform(random, 0, worldWidth);\n int randomDirection = RandomUtils.uniform(random, 0, 4);\n move(randomX, randomY);\n turn(randomDirection);\n }", "public void setRobotLocation(Point p);", "void makeMove(Location loc);", "@Override\n public CommandResult execute(CommandSource src, CommandContext commandContext) throws CommandException {\n return CommandResult.success();\n\n /*if (src instanceof Player) {\n Player sender = (Player) src;\n if(!commandContext.hasAny(\"target\")) {\n src.sendMessage(Text.of(new Object[]{TextColors.RED, \"Invalid arguments\"}));\n return CommandResult.success();\n } else {\n User user = commandContext.<User>getOne(\"target\").get();\n if (user.isOnline()) {\n sender.sendMessage(Text.of(TextColors.RED, \"Player is online, Please use /teleport\"));\n } else {\n GameProfileManager gameProfileManager = Sponge.getGame().getServer().getGameProfileManager();\n Optional<UserStorageService> userStorage = Sponge.getServiceManager().provide(UserStorageService.class);\n UUID uuid = null;\n try {\n uuid = userStorage.get().getOrCreate(gameProfileManager.get(user.getName(), false).get()).getUniqueId();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n if (userStorage.isPresent()) {\n UserStorageService userStorage2 = userStorage.get();\n Optional<User> userOptional = userStorage2.get(uuid);\n if (userOptional.isPresent()) {\n User user2 = userOptional.get();\n double x = user2.getPlayer().get().getLocation().getX();\n double y = user2.getPlayer().get().getLocation().getY();\n double z = user2.getPlayer().get().getLocation().getZ();\n sender.sendMessage(Text.of(\"Loc: x:\", x, \" y:\", y, \" z:\", z));\n Vector3d vector = new Vector3d(x, y, z);\n sender.setLocation(sender.getLocation().setPosition(vector));\n } else {\n // error?\n }\n }\n }\n return CommandResult.success();\n }\n } else {\n src.sendMessage(Text.of(\"Only a player Can run this command!\"));\n return CommandResult.success();\n }*/\n }", "public void callOnTeleport() {\n\t\tif (summonedFamiliar != null && c.getInstance().summoned != null) {\n\t\t\tc.getInstance().summoned.killerId = 0;\n\t\t\tc.getInstance().summoned.underAttackBy = 0;\n\t\t\tc.getInstance().summoned.npcTeleport(0, 0, 0);\n\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0, c.getInstance().summoned.HP, 1, 1,\n\t\t\t\t\t1);\n\t\t\tcallFamiliar();\n\t\t} else {\n\t\t\tc.getPA().sendSummOrbDetails(false, \"\");\n\t\t}\n\t}", "private void comenzarLocalizacion()\n {\n \tlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n \t\n \t//Obtiene Ultima Ubicacion\n \t//Location loc = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n \t \t\n \t//Nos registramos para recibir actualizaciones de la posici�n\n \tlocListener = new LocationListener() {\n\t \tpublic void onLocationChanged(Location location) {\n\t \t\t\n\t \t}\n\t \tpublic void onProviderDisabled(String provider){\n\t \t\t\n\t \t}\n\t \tpublic void onProviderEnabled(String provider){\n\t \t\n\t \t}\n\t \tpublic void onStatusChanged(String provider, int status, Bundle extras){\n\t \t\n\t \t\t\n\t \t}\n \t};\n \t\n \tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30000, 0, locListener);\n }", "private void movePlayer(String position, HttpSession session, HttpServletResponse response) throws IOException {\r\n String coord = \"xy\";\r\n char x = coord.charAt(0);\r\n char y = coord.charAt(1);\r\n // Get game state from session\r\n String[][] gameState = (String[][]) session.getAttribute(\"Game\");\r\n // Check for any bad request\r\n if (position.length() > 5 || position.length() < 4 || position.charAt(1) != x || position.charAt(3) != y || Character.getNumericValue(position.charAt(2)) > 3\r\n || Character.getNumericValue(position.charAt(4)) > 3 || Character.getNumericValue(position.charAt(4)) < 1 || Character.getNumericValue(position.charAt(2)) < 1) {\r\n badMove(response);\r\n }\r\n else \r\n {\r\n int xPosition = Character.getNumericValue(position.charAt(2)) - 1;\r\n int yPosition = Character.getNumericValue(position.charAt(4)) - 1;\r\n // Check if spot has already been filled\r\n if (!(\"\".equals(gameState[yPosition][xPosition]) || \"_\".equals(gameState[yPosition][xPosition]))) {\r\n badMove(response);\r\n } else {\r\n // Set x at position\r\n gameState[yPosition][xPosition] = \"x\";\r\n // Check if player has won\r\n if (!won.checkWin(gameState).equals(\"none\")) {\r\n gameOver = true;\r\n } else {\r\n moveComputer(gameState);\r\n // Check if Computer has won\r\n if (!won.checkWin(gameState).equals(\"none\")) {\r\n gameOver = true;\r\n }\r\n }\r\n }\r\n }\r\n }", "private Future sendDataServerLocation(final Location clientLocation,final Location serverLocation) {\n return executor.submit(new Runnable() {\n public void run() {\n try {\n byte[] sendDataServerAddress = serialize(serverLocation);\n DatagramSocket clientSocket = new DatagramSocket();\n DatagramPacket pongPacket = new DatagramPacket(sendDataServerAddress,\n sendDataServerAddress.length,\n clientLocation.getLocation());\n clientSocket.send(pongPacket);\n clientSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n }", "private void move() {\n\t\t\tx += Math.PI/12;\n\t\t\thead.locY = intensity * Math.cos(x) + centerY;\n\t\t\thead.yaw = spinYaw(head.yaw, 3f);\n\t\t\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, head.getId(), \n\t\t\t\tnew Location(player.getWorld(), head.locX, head.locY, head.locZ, head.yaw, 0));\n\t\t}" ]
[ "0.6400738", "0.6286519", "0.6149206", "0.60311687", "0.60072094", "0.59542364", "0.5939122", "0.59360844", "0.59049565", "0.58795065", "0.58693844", "0.5867527", "0.58575", "0.58483875", "0.5729473", "0.5708273", "0.57002646", "0.56987286", "0.56836146", "0.5677309", "0.5646666", "0.5634768", "0.5629753", "0.5597884", "0.55977553", "0.55916613", "0.5527884", "0.5509006", "0.5431264", "0.5415497", "0.54064494", "0.5403998", "0.5403392", "0.53864884", "0.53843766", "0.53627634", "0.53459626", "0.53335065", "0.5318619", "0.5317668", "0.53174573", "0.5307625", "0.52896243", "0.5288176", "0.52754325", "0.5270017", "0.52597344", "0.5255373", "0.52489305", "0.5246838", "0.52466613", "0.5241589", "0.5236015", "0.52325344", "0.52274996", "0.52161884", "0.5184635", "0.51827836", "0.5181467", "0.5178697", "0.51767504", "0.5153467", "0.5151903", "0.51501125", "0.5147887", "0.5139136", "0.5130518", "0.5128251", "0.5126415", "0.5109635", "0.5106498", "0.5101692", "0.5099121", "0.50945157", "0.50931835", "0.50847477", "0.5083296", "0.50821954", "0.50769126", "0.50750273", "0.5074704", "0.50746995", "0.50719106", "0.5071018", "0.5070321", "0.5070044", "0.5069939", "0.5067779", "0.5067361", "0.5066855", "0.5065768", "0.5058109", "0.5051935", "0.50496554", "0.50493103", "0.5048937", "0.5043661", "0.5026495", "0.50180215", "0.50178313" ]
0.5891291
9
Defines the interface of a datastore.
public interface Datastore<DatastoreSession extends com.buschmais.cdo.spi.datastore.DatastoreSession, EntityMetadata extends DatastoreEntityMetadata<Discriminator>, Discriminator> extends AutoCloseable { /** * Initialize the datastore. * * @param registeredMetadata A collection of all registerted types. */ void init(Collection<TypeMetadata<EntityMetadata>> registeredMetadata); /** * Return the datastore specific metadata factory. * * @return The metadata factory. */ DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory(); /** * Create a datastore session, e.g. open a connection to the datastore. * * @return The session. */ DatastoreSession createSession(); /** * Close the datastore. */ void close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DatastoreText {\n\n /**\n * Stores a property.. The kind, name and property can be thought of as\n * corresponding roughly to table,column, row key.\n * \n * @param kind\n * @param name\n * @param property\n * @param value\n */\n void put(String kind, String name, String property, String value);\n\n /**\n * Returns a property value keyed by kind,name and property.\n * \n * @param kind\n * @param name\n * @param property\n * @return\n */\n String get(String kind, String name, String property);\n\n}", "public interface DataStore {\n\n Bucket loadBucket(String bucketName);\n\n List<Bucket> loadBuckets();\n\n void saveBucket(Bucket bucket);\n\n void deleteBucket(String bucketName);\n\n Blob loadBlob(String bucketName, String blobKey);\n\n List<Blob> loadBlobs(String bucketName);\n\n void saveBlob(String bucketName, Blob blob);\n\n void deleteBlob(String bucketName, String blobKey);\n}", "public interface TrackDatasource {\n\n}", "public interface DataManager extends DbHelper {\n}", "public interface DataAccessObject {\n\n}", "public interface Store {\n\n}", "public interface KeyValueStore {\n\n\t/**\n\t * Put a value into the database with an associated key\n\t * @param key The key of the value\n\t * @param value The value to store\n\t * @return True if successful\n\t */\n\tpublic HasID put(@SuppressWarnings(\"rawtypes\") Class type, HasID value);\n\t\n\t/**\n\t * Get a value using the associated key\n\t * @param key The key\n\t * @return The value or null\n\t */\n\tpublic HasID get(@SuppressWarnings(\"rawtypes\") Class type, String key);\n\t\n\t/**\n\t * \n\t * @param c\n\t * @return\n\t */\n\tpublic List<HasID> getAll(@SuppressWarnings(\"rawtypes\") Class type);\n\t\n\t/**\n\t * Delete a value in the store\n\t * @param key The key of the value\n\t * @return True if removed\n\t */\n\tpublic boolean delete(@SuppressWarnings(\"rawtypes\") Class type, String key);\n\t\n}", "public interface BaseDataInterface {\r\n}", "public interface IDBPOI {\n\t/** Name of the database */\n static final String DB_NAME = \"discoveryRallye\";\n \n /** Name of the table */\n static final String DB_TABLE_POIS = \"pois\";\n \n /** version number of the database */\n static final int DB_VERSION \t\t= 1;\n \n /** name of the id column */\n static final String ATTR_ID = \"_id\";\n \n /** name of the name column */\n static final String ATTR_NAME = \"name\";\n \n /** name of the longitude column */\n static final String ATTR_LON = \"longitude\";\n \n /** name of the latitude column */\n static final String ATTR_LAT = \"latitude\";\n}", "public interface DBManager {\n\n\t// Populate Data can have different Implementations\n\tvoid populateData();\n}", "public interface Storage {\n\n String getId();\n}", "public interface DataBase {\n public void save(BuzzTalkData data);\n\n public ArrayList<OpenCalaisTag> getAllTags();\n\n public ArrayList<Publication> getAllPublications();\n}", "public interface DataStore {\n\n void storeTokenEntry(TokenEntry tokenEntry);\n\n TokenEntry getTokenEntry(byte[] keyHandle);\n\n int incrementCounter(byte[] keyHandle);\n\n List<byte[]> getKeyHandlesByIssuerAndAppId(String application, String issuer);\n\n List<byte[]> getAllKeyHandles();\n\n List<String> getTokenEntries();\n\n void deleteTokenEntry(byte[] keyHandle);\n\n //Methods for logs (save, get, delete, ....)\n\n void saveLog(LogInfo logText);\n List<LogInfo>getLogs();\n void deleteLogs();\n void deleteLogs(OxPush2Request... logInfo);\n void deleteLogs(List<LogInfo> logInfo);\n void changeKeyHandleName(TokenEntry tokenEntry, String newName);\n void deleteKeyHandle(TokenEntry tokenEntry);\n}", "public interface IStoreMixin {\n\n\t/**\n\t * store: Object\n\t * <p>\n\t * Reference to data provider object used by this widget.\n\t */\n\tpublic static final String STORE = \"store\";\n\n\t/**\n\t * query: Object\n\t * <p>\n\t * A query that can be passed to 'store' to initially filter the items.\n\t */\n\tpublic static final String QUERY = \"query\";\n\n\t/**\n\t * queryOptions: Object\n\t * <p>\n\t * An optional parameter for the query.\n\t */\n\tpublic static final String QUERYOPTIONS = \"queryOptions\";\n\n\t/**\n\t * labelProperty: String (default: \"label\")\n\t * <p>\n\t * A property name (a property in the dojo/store item) that specifies that\n\t * item's label.\n\t */\n\tpublic static final String LABELPROPERTY = \"labelProperty\";\n\n\t/**\n\t * childrenProperty: String (default: \"children\")\n\t * <p>\n\t * A property name (a property in the dojo/store item) that specifies that\n\t * item's children.\n\t */\n\tpublic static final String CHILDRENPROPERTY = \"childrenProperty\";\n}", "interface Database {\n\tpublic void persist(String data); \n\t\n}", "public interface DataDictionaryService {\n}", "public interface DataManager {\n void saveData(String key, String data);\n String getData(String key);\n}", "public interface IDbCollection<T extends IEntity> extends ICrud<T> {\n IDb getDb();\n String getCollectionName();\n}", "public interface IDBStorableModel {\n\n\t/**\n\t * Saves the model to db\n\t * \n\t * @param db\n\t * @return\n\t */\n\tpublic void store(DBConnection db) throws IOException;\n\t\n}", "public interface AssetClassDatastore {\r\n\r\n\t/**\r\n\t * Creates Asset Class in the Datastore \r\n\t * @param assetClass_ Asset Class to be Created \r\n\t * @return Name of Asset Class\r\n\t */\r\n\tpublic String createAssetClass(AssetClass assetClass_);\r\n\t\r\n\t/**\r\n\t * Finds Asset Class by Name \r\n\t * @param name_ Name \r\n\t * @return Asset Class\r\n\t */\r\n\tpublic AssetClass findAssetClassByName(String name_);\r\n\t\r\n\t/**\r\n\t * Finds All Asset Classes\r\n\t * @param cursorString_ Cursor String for continuing a Paged Query or Null for a new Paged Query\r\n\t * @param maxNumberOfAssetClassesOnPage_ Max Number of Asset Classes on a Page \r\n\t * @return Paged Asset Class List\r\n\t */\r\n\tpublic PagedAssetClassList findAllAssetClassesFromCursor(String cursorString_, int maxNumberOfAssetClassesOnPage_);\r\n\t\r\n\t/**\r\n\t * Finds All Top-Level Asset Classes (that have no Parent)\r\n\t * @param cursorString_ Cursor String for continuing a Paged Query or Null for a new Paged Query\r\n\t * @param maxNumberOfAssetClassesOnPage_ Max Number of Asset Classes on a Page \r\n\t * @return Paged Asset Class List\r\n\t */\r\n\tpublic PagedAssetClassList findAllTopLevelAssetClassesFromCursor(String cursorString_, int maxNumberOfAssetClassesOnPage_);\r\n\t\r\n\t\r\n\t/**\r\n\t * Finds Asset Classes by Parent\r\n\t * @param parentAssetClassName_ Name of the Parent Asset Class \r\n\t * @param cursorString_ Cursor String for continuing a Paged Query or Null for a new Paged Query\r\n\t * @param maxNumberOfAssetClassesOnPage_ Max Number of Asset Classes on a Page \r\n\t * @return Paged Asset Class List\r\n\t */\r\n\tpublic PagedAssetClassList findAssetClassesFromCursorByParent(String parentAssetClassName_, String cursorString_, int maxNumberOfAssetClassesOnPage_);\r\n\t\r\n\t/**\r\n\t * Deletes Asset Class by Name \r\n\t * @param name_ Name of Asset Class to be Deleted\r\n\t */\r\n\tpublic void deleteAssetClass(String name_);\r\n\r\n\t/**\r\n\t * Explicitly updates Asset Class in the Datastore with instance provided \r\n\t * @param changedAssetClassModel_ Asset Class to be updated \r\n\t * @return the updated object \r\n\t */\r\n\tpublic AssetClass updateAssetClass(AssetClass changedAssetClassModel_);\r\n}", "public interface StorageModel {\n}", "public interface DataManager {\n\n void saveData(String key, String value);\n\n String getData(String key);\n}", "public interface DatabaseOperations {\n\n public static final String DATABASE_NAME = \"ghost_database\";\n\n public static final String TABLE_SIGHTINGS = \"SIGHTINGS\";\n\n public static final String ROW_ID = \"_id\";\n\n public static final String TITLE = \"title\";\n public static final String DESCRIPTION = \"DESCRIPTION\";\n public static final String LATITUDE = \"lat\";\n public static final String LONGITUDE = \"lon\";\n public static final String RATING = \"rating\";\n}", "public interface DataAPI {\n\t// Query\n\tDataTree getDataHierarchy(); // Tree List of Data and Datatypes\n\t\n\tDataTree getDatatypeHierarchy(); // Tree List of Datatypes\n\n\tDataTree getMetricsHierarchy(); // Tree List of Metrics and Metric\n\t\t\t\t\t\t\t\t\t\t\t// types\n\n\tArrayList<String> getAllDatatypeIds();\n\n\tMetadataProperty getMetadataProperty(String propid);\n\n\tArrayList<MetadataProperty> getMetadataProperties(String dtypeid, boolean direct);\n\n\tArrayList<MetadataProperty> getAllMetadataProperties();\n\n\tDataItem getDatatypeForData(String dataid);\n\n\tArrayList<DataItem> getDataForDatatype(String dtypeid, boolean direct);\n\n\tString getTypeNameFormat(String dtypeid);\n\n\tString getDataLocation(String dataid);\n\n\tArrayList<MetadataValue> getMetadataValues(String dataid, ArrayList<String> propids);\n\n\t// Write\n\tboolean addDatatype(String dtypeid, String parentid);\n\n\tboolean removeDatatype(String dtypeid);\n\n\tboolean renameDatatype(String newtypeid, String oldtypeid);\n\n\tboolean moveDatatypeParent(String dtypeid, String fromtypeid, String totypeid);\n\n\tboolean addData(String dataid, String dtypeid);\n\n\tboolean renameData(String newdataid, String olddataid);\n\n\tboolean removeData(String dataid);\n\n\tboolean setDataLocation(String dataid, String locuri);\n\n\tboolean setTypeNameFormat(String dtypeid, String format);\n\n\tboolean addObjectPropertyValue(String dataid, String propid, String valid);\n\n\tboolean addDatatypePropertyValue(String dataid, String propid, Object val);\n\n\tboolean addDatatypePropertyValue(String dataid, String propid, String val, String xsdtype);\n\n\tboolean removePropertyValue(String dataid, String propid, Object val);\n\n\tboolean removeAllPropertyValues(String dataid, ArrayList<String> propids);\n\n\tboolean addMetadataProperty(String propid, String domain, String range);\n\t\n\tboolean addMetadataPropertyDomain(String propid, String domain);\n\n\tboolean removeMetadataProperty(String propid);\n\t\n\tboolean removeMetadataPropertyDomain(String propid, String domain);\n\n\tboolean renameMetadataProperty(String oldid, String newid);\n\n\t// Sync/Save\n\tboolean save();\n\t\n\tvoid end();\n\t\n\tvoid delete();\n}", "public interface IDataIslem {\n <T> void addOrUpdate(T data, String serviceUrl,\n EnumUtil.SendingDataType dataType, Context ctx);\n\n <T> List<T> get(String serviceUrl, Class clazz, Context ctx);\n\n <T> void updateDeleteCreateProcess(EnumUtil.SendingDataType sendingDataType, String message, Context context,\n T data, String serviceUrl);\n}", "public interface OpenNetworkDB extends Database, CRUD<OpenNetwork, Integer>{\r\n\r\n Collection<OpenNetwork> getAllFromCity( String city ) throws DatabaseException;\r\n}", "public interface ObjectHandler<T> {\r\n\r\n /**\r\n * Creates a new entity record into the datastore\r\n *\r\n * @return\r\n */\r\n T insert(T entity) throws Exception;\r\n\r\n /**\r\n * Updates the given entity record on the datastore\r\n *\r\n * @return\r\n */\r\n boolean update(T entity) throws Exception;\r\n\r\n /**\r\n * Removes an entity from the datastore\r\n *\r\n * @return\r\n */\r\n boolean delete(T entity) throws Exception;\r\n\r\n /**\r\n * List all entities from the datastore\r\n *\r\n * @return\r\n */\r\n <K extends T> List<K> listAll(Class<K> clazz);\r\n\r\n /**\r\n * List all entities from the datastore\r\n *\r\n * @return\r\n */\r\n <K extends BasicEntity> K get(Class<K> clazz, Object id);\r\n}", "public interface DBManager {\n public void add(Context c,String... arg0);\n public void add(Context c,Patient p,String... arg0);\n public void change(Context c, Patient p, String... arg0);\n public void change(Context c, Patient p, Appointment a, String... arg0);\n public void delete(Context c, Patient p, Appointment a);\n}", "public interface IDBQuery {\n String query();\n}", "public interface EntryStoreDb<K> {\n\n void serializeKey(final ByteBuffer keyBuffer, K key);\n\n /**\n * @param writeTxn\n * @param keyBuffer\n * @param valueBuffer\n * @param overwriteExisting\n * @param isAppending Only set to true if you are sure that the key will be at the end of the db\n * @return\n */\n PutOutcome put(final Txn<ByteBuffer> writeTxn,\n final ByteBuffer keyBuffer,\n final ByteBuffer valueBuffer,\n final boolean overwriteExisting,\n final boolean isAppending);\n\n boolean delete(final Txn<ByteBuffer> writeTxn, final ByteBuffer keyBuffer);\n\n Optional<ByteBuffer> getAsBytes(Txn<ByteBuffer> txn, final ByteBuffer keyBuffer);\n\n Optional<UID> getMaxUid(final Txn<ByteBuffer> txn, PooledByteBuffer pooledByteBuffer);\n}", "public interface IDao {\r\n\r\n}", "public interface CommentDB extends Database, CRUD<Comment, Integer>{\r\n}", "public interface DataBase {\n boolean add(User user);\n}", "DataStore getDataStore ();", "public KVCommInterface getStore();", "public interface IDBContext {\n IUsers getUsers();\n}", "public interface ISchemaEntity {\n\t\n\tpublic static final String KEY_NAME = \"Name\";\n\t\n\t\n\t/**\n\t * Vraca sucelje sklopa koji se modelira\n\t * u schematicu - broj i vrstu portova.\n\t * \n\t */\n\tCircuitInterface getCircuitInterface(ISchemaInfo info);\n\t\n\t\n\t/**\n\t * Vraca mapu parametara komponente\n\t * koja se modelira u schematicu.\n\t * Na temelju dijela ove kolekcije biti ce kasnije\n\t * izgraden generic blok pri generiranju\n\t * strukturnog VHDLa.\n\t * \n\t */\n\tIParameterCollection getParameters();\n\t\n\t/**\n\t * Postavlja parametre (vidi metodu\n\t * getParameters()).\n\t * \n\t * @param parameters\n\t */\n\tvoid setParameters(IParameterCollection parameters);\n\t\n\t/**\n\t * Vraca vrijednost uvijek prisutnog parametra pod kljucem KEY_NAME,\n\t * koji oznacava ime entity-a.\n\t */\n\tCaseless getName();\n\t\n\t/**\n\t * Dohvaca portove sucelja modelirane komponente.\n\t * \n\t */\n\tpublic List<Port> getPorts(ISchemaInfo info);\n\t\n\t/**\n\t * Brise portove i ne-defaultne parametre.\n\t *\n\t */\n\tvoid reset();\n\t\n}", "public interface DataManager extends PreferencesHelper, KamusEngIndHelper, KamusIndEngHelper {\n}", "public interface Store {\n\n void addPeople(List<Person> people);\n\n void addEvents(List<Event> events);\n\n List<Person> getNewPeople();\n\n Map<String, Event> getEvents();\n\n Map<Person,String[]> getPreferences();\n\n void addPreference(String personId, String[] split);\n\n void save();\n\n}", "public interface GroupsDataSource extends DbDataSource<Group> {\n}", "public interface ContentStoreIF {\n\n /**\n * INTERNAL: Returns true if the content store contains an entry with\n * the specified key.\n */\n boolean containsKey(int key) throws ContentStoreException;\n\n /**\n * INTERNAL: Gets the data value associated with the specified key.\n */\n ContentInputStream get(int key) throws ContentStoreException;\n \n /**\n * INTERNAL: Creates an entry for the specified data value.\n */\n int add(ContentInputStream data) throws ContentStoreException;\n \n /**\n * INTERNAL: Creates an entry for the specified data value.\n */\n int add(InputStream data, int length) throws ContentStoreException;\n\n /**\n * INTERNAL: Removes the entry associated with the key. If the key\n * is not present the call has no effect.\n *\n * @return true if the key was present; false otherwise\n */\n boolean remove(int key) throws ContentStoreException;\n\n /**\n * INTERNAL: Closes the content store. This allows all internal\n * resources to be released.\n */\n void close() throws ContentStoreException;\n \n}", "public interface EntityDAOInterface {\n}", "public interface DaoInterface {}", "public interface IStore\n{\n /**\n * Returns true if the store only supports reading.\n * If true, user can not change information in the Store and\n * \"commit()\" method throws IOException if called.\n */\n boolean isReadOnly();\n\n /**\n * Populate AIDA Tree: create appropriate AIDA objects in the Tree\n * and fill them with data from the Store.\n * This method is called only once, during Tree-Store association, to\n * populate the Tree. \n * Tree relies on IStore calling IDevTree.hasBeenFilled(String path) method,\n * to let Tree know that a particular folder has been filled.\n *\n * @throws IOException If there are problems reading from the Store\n */\n void read(IDevTree tree, Map options, boolean readOnly, boolean createNew) throws IOException;\n\n /**\n * Copy data from Tree to the Store.\n *\n * @throws IOException If there are problems writing to the Store or the Store is Read-Only.\n */\n void commit(IDevTree tree, Map options) throws IOException; \n\n /**\n * Close Store and free all resources associated with it.\n * Should be called from ITree.close() method only.\n * After the Store is closed, the Tree associated with it becomes unusable.\n */\n void close() throws IOException;\n}", "public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}", "public interface IDao<EntityType> {\n boolean save(EntityType entity);\n\n int update(EntityType entity);\n\n EntityType queryById(EntityType entity);\n\n int delete(EntityType entity);\n\n int deleteAll();\n\n List<EntityType> getAll();\n\n boolean isEmpty();\n}", "public interface DataAccess {\n String USER_PATH = \"user/%s\";\n String CARS_PATH = USER_PATH + \"/cars/%s\";\n String FUELENTRY_PATH = CARS_PATH + \"/fuel_entries/%s\";\n String REPAIRENTRY_PATH = CARS_PATH + \"/repair_entries/%s\";\n String OTHERENTRY_PATH = CARS_PATH + \"/other_entries/%s\";\n String REMINDERENTRY_PATH = USER_PATH + \"/reminders/%s\";\n\n\n void update(String path, Object object);\n void push(String path, Object object);\n void delete(String path);\n\n <T> void getAll(String path, MyList<T> list, Type typeOfT);\n\n String getUid();\n}", "public abstract interface DataBaseCore {\n\n\n public void obtenerPuntuacion(String score);\n\n}", "public interface StoreDao<T> {\n void updateOrInsert(DataWrap<T> dataWrap);\n\n void updateOrInsert(List<? extends DataWrap<T>> data);\n\n void delete(String key);\n\n void deleteLike(String keyLike);\n\n void delete(List<String> key);\n\n DataWrap<T> select(String key);\n\n List<DataWrap<T>> select(List<String> key);\n\n List<DataWrap<T>> selectByTypeStr(String typeStr);\n\n boolean contains(String key);\n\n void clear();\n}", "public PersistentDataStore() {\n datastore = DatastoreServiceFactory.getDatastoreService();\n }", "public interface DealsWithPlatformDatabaseSystem {\n\n public void setPlatformDatabaseSystem(PlatformDatabaseSystem platformDatabaseSystem);\n \n}", "public interface DAOAvaliadorInterface extends DAOGenericoInterface{\n \n /**\n * Método para listar os avaliadores cadastrados no sistema.\n * @return \n */\n public List<AvaliadorDB> listar();\n \n /**\n * Método para inserir um avaliador no sistema.\n * @param avaliador \n */\n public void inserir(AvaliadorDB avaliador);\n \n /**\n * Método para alterar um avaliador cadastrado no sistema.\n * @param avaliador \n */\n public void alterar(AvaliadorDB avaliador);\n \n}", "public interface StoreDao {\n\n public List<Store> getStoreList();\n\n public Store getStore(int idStore);\n}", "public interface ContentDAOInterface<T> {\r\n // 根据站名获取广播词列表\r\n List<T> getContentList(String stationName, Object kind);\r\n\r\n // 增加广播词\r\n boolean insertContent(T content);\r\n\r\n // 修改广播词\r\n boolean modifyContent(T content);\r\n\r\n // 删除广播词\r\n boolean delContent(long id);\r\n}", "public VotingService(DataStoreInterface ds) {\r\n this.dataStore = ds;\r\n }", "public interface DBStorage {\n \n /**\n * Get the name of the storage vendor (DB vendor name)\n *\n * @return name of the storage vendor (DB vendor name)\n */\n String getStorageVendor();\n \n /**\n * Can this storage handle the requested database?\n *\n * @param dbm database meta data\n * @return if storage can handle the requested database\n */\n boolean canHandle(DatabaseMetaData dbm);\n \n /**\n * Get the ContentStorage singleton instance\n *\n * @param mode used storage mode\n * @return ContentStorage singleton instance\n * @throws FxNotFoundException if no implementation was found\n */\n ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;\n \n /**\n * Get the EnvironmentLoader singleton instance\n *\n * @return EnvironmentLoader singleton instance\n */\n EnvironmentLoader getEnvironmentLoader();\n \n /**\n * Get the SequencerStorage singleton instance\n *\n * @return SequencerStorage singleton instance\n */\n SequencerStorage getSequencerStorage();\n \n /**\n * Get the TreeStorage singleton instance\n *\n * @return TreeStorage singleton instance\n */\n TreeStorage getTreeStorage();\n \n /**\n * Get the LockStorage singleton instance\n *\n * @return LockStorage singleton instance\n */\n LockStorage getLockStorage();\n \n /**\n * Get a data selector for a sql search\n *\n * @param search current SqlSearch to operate on\n * @return data selector\n * @throws FxSqlSearchException on errors\n */\n DataSelector getDataSelector(SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get a data filter for a sql search\n *\n * @param con an open and valid connection\n * @param search current SqlSearch to operate on\n * @return DataFilter\n * @throws FxSqlSearchException on errors\n */\n DataFilter getDataFilter(Connection con, SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get the CMIS SQL Dialect implementation\n *\n * @param environment environment\n * @param contentEngine content engine in use\n * @param query query\n * @param returnPrimitives return primitives?\n * @return CMIS SQL Dialect implementation\n */\n SqlDialect getCmisSqlDialect(FxEnvironment environment, ContentEngine contentEngine, CmisSqlQuery query, boolean returnPrimitives);\n \n /**\n * Get the database vendor specific Boolean expression\n *\n * @param flag the flag to get the expression for\n * @return database vendor specific Boolean expression for <code>flag</code>\n */\n String getBooleanExpression(boolean flag);\n \n /**\n * Get the boolean <code>true</code> expression string for the database vendor\n *\n * @return the boolean <code>true</code> expression string for the database vendor\n */\n String getBooleanTrueExpression();\n \n /**\n * Get the boolean <code>false</code> expression string for the database vendor\n *\n * @return the boolean <code>false</code> expression string for the database vendor\n */\n String getBooleanFalseExpression();\n \n /**\n * Escape reserved words properly if needed\n *\n * @param query the query to escape\n * @return escaped query\n */\n String escapeReservedWords(String query);\n \n /**\n * Get a database vendor specific \"IF\" function\n *\n * @param condition the condition to check\n * @param exprtrue expression if condition is true\n * @param exprfalse expression if condition is false\n * @return database vendor specific \"IF\" function\n */\n String getIfFunction(String condition, String exprtrue, String exprfalse);\n \n /**\n * Get the database vendor specific operator to query regular expressions\n *\n * @param column column to match\n * @param regexp regexp to match the column against\n * @return database vendor specific operator to query regular expressions\n */\n String getRegExpLikeOperator(String column, String regexp);\n \n /**\n * Get the database vendor specific statement to enable or disable referential integrity checks.\n * When in a transaction, be sure to check {@link #isDisableIntegrityTransactional()}\n * since not all databases support this in a transactional context.\n *\n * @param enable enable or disable checks?\n * @return database vendor specific statement to enable or disable referential integrity checks\n */\n String getReferentialIntegrityChecksStatement(boolean enable);\n \n /**\n * Return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context.\n *\n * @return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context\n */\n boolean isDisableIntegrityTransactional();\n \n /**\n * Get the sql code of the statement to fix referential integrity when removing selectlist items\n *\n * @return sql code of the statement to fix referential integrity when removing selectlist items\n */\n String getSelectListItemReferenceFixStatement();\n \n /**\n * Get a database vendor specific timestamp of the current time in milliseconds as Long\n *\n * @return database vendor specific timestamp of the current time in milliseconds as Long\n */\n String getTimestampFunction();\n \n /**\n * Get a database vendor specific concat statement\n *\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat(String... text);\n \n /**\n * Get a database vendor specific concat_ws statement\n *\n * @param delimiter the delimiter to use\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat_ws(String delimiter, String... text);\n \n /**\n * If a database needs a \" ... from dual\" to generate valid queries, it is returned here\n *\n * @return from dual (or equivalent) if needed\n */\n String getFromDual();\n \n /**\n * Get databas evendor specific limit statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @return limit statement\n */\n String getLimit(boolean hasWhereClause, long limit);\n \n /**\n * Get database vendor specific limit/offset statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffset(boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get database vendor specific limit/offset statement using the specified variable name\n *\n * @param var name of the variable to use\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get the statement to get the last content change timestamp\n *\n * @param live live version included?\n * @return statement to get the last content change timestamp\n */\n String getLastContentChangeStatement(boolean live);\n \n /**\n * Format a date to be used in a query condition (properly escaped)\n *\n * @param date the date to format\n * @return formatted date\n */\n String formatDateCondition(Date date);\n \n /**\n * Correctly escape a flat storage column if needed\n *\n * @param column name of the column\n * @return escaped column (if needed)\n */\n String escapeFlatStorageColumn(String column);\n \n /**\n * Returns true if the SqlError is a foreign key violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a foreign key violation\n */\n boolean isForeignKeyViolation(Exception exc);\n \n /**\n * Returns true if the given exception was caused by a query timeout.\n *\n * @param e the exception to be examined\n * @return true if the given exception was caused by a query timeout\n * @since 3.1\n */\n boolean isQueryTimeout(Exception e);\n \n /**\n * Does the database rollback a connection if it encounters a constraint violation? (eg Postgres does...)\n *\n * @return database rollbacks a connection if it encounters a constraint violation\n */\n boolean isRollbackOnConstraintViolation();\n \n /**\n * Returns true if the SqlError is a unique constraint violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a unique constraint violation\n */\n boolean isUniqueConstraintViolation(Exception exc);\n \n /**\n * Returns true if the given SqlException indicates a deadlock.\n *\n * @param exc the exception\n * @return true if the given SqlException indicates a deadlock.\n * @since 3.1\n */\n boolean isDeadlock(Exception exc);\n \n /**\n * When accessing the global configuration - does the config table has to be prefixed with the schema?\n * (eg in postgres no schemas are supported for JDBC URL's hence it is not required)\n *\n * @return access to configuration tables require the configuration schema to be prepended\n */\n boolean requiresConfigSchema();\n \n /**\n * Get a connection to the database using provided parameters and (re)create the database and/or schema\n *\n * @param database name of the database\n * @param schema name of the schema\n * @param jdbcURL JDBC connect URL\n * @param jdbcURLParameters optional JDBC URL parameters\n * @param user name of the db user\n * @param password password\n * @param createDB create the database?\n * @param createSchema create the schema?\n * @param dropDBIfExist drop the database if it exists?\n * @return an open connection to the database with the schema set as default\n * @throws Exception on errors\n */\n Connection getConnection(String database, String schema, String jdbcURL, String jdbcURLParameters, String user, String password, boolean createDB, boolean createSchema, boolean dropDBIfExist) throws Exception;\n \n /**\n * Initialize a configuration schema\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initConfiguration(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Initialize a division\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initDivision(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Export all data of a division to an OutputStream as ZIP\n *\n * @param con an open and valid connection to the database to be exported\n * @param out OutputStream that will be used to create the zip file\n * @throws Exception on errors\n */\n void exportDivision(Connection con, OutputStream out) throws Exception;\n \n /**\n * Import a complete division from a zip stream\n *\n * @param con an open and valid connection\n * @param zip zip archive that contains an exported divison\n * @throws Exception on errors\n */\n void importDivision(Connection con, ZipFile zip) throws Exception;\n }", "public interface Database {\n\n /**\n * connect mongo\n */\n public void connect();\n\n\n public void load();\n\n\n /**\n * close connection\n */\n public void close();\n\n\n\n}", "public interface Specs2KeyDao extends BaseDAO<Specs2Key> {\r\n}", "public interface IPersistenceController {\n\n}", "public interface DBController {\n// String getUserByName(String Name);\n// String getAppleByName(String name);\n}", "public interface DatabaseInterface {\r\n\r\n public void insert(String tableName, ContentValues contentValues);\r\n\r\n public Cursor executeQuery(String query, String[] selectionArgs);\r\n\r\n public void executeUpdate(String tableName, ContentValues contentValues, String query, String[] selectionArgs);\r\n\r\n public void executeDelete(String tableName, String query, String[] selectionArgs);\r\n}", "public interface Entity {\n}", "public interface EntradaPontosDAO extends EntradaPontosSQL{\n\n}", "public interface AppVersionStore\n extends GenericDao<AppVersion>\n{\n}", "public interface IPersistence\n{\n\t/**\n\t * When overridden in a child class, determines whether data exists which\n\t * can be loaded\n\t * @pre (none)\n\t * @post (none)\n\t * @return True if data can be loaded. Otherwise, false.\n\t */\n\tboolean canLoadData();\n\n\t/**\n\t * When overridden in a child class, loads all data from specified store to\n\t * the passed Inventory\n\t * @pre inventory is not null. storeName refers to a valid data store.\n\t * @post inventory's original contents have been cleared and replaced with\n\t * the data from the specified data store\n\t * @throws SerializerException\n\t */\n\tvoid loadData() throws SerializerException;\n\n\t/**\n\t * When overridden in a child class, saves all data from the Inventory with\n\t * the specified name\n\t * @pre storeName is a valid string for the system we are saving to\n\t * @post The passed Inventory has been saved under the passed name\n\t * @throws SerializerException\n\t */\n\tvoid saveData() throws SerializerException;\n}", "public interface LanguageDAO extends CommonEntityDAO {\r\n}", "public interface Storage {\n\n public Collection<Developers> values();\n\n public int add(final Developers developer);\n\n public void edit(final Developers developer);\n\n public void delete(final int id);\n\n public Developers get(final int id);\n\n public Developers findByName(String name);\n\n public void close();\n}", "public interface IDataBaseRepository {\r\n\r\n /**\r\n * Get DataBase object\r\n *\r\n * @return obj\r\n */\r\n //DataBase getDataBase();\r\n\r\n /**\r\n * Save new clothes\r\n *\r\n * @param clothes obj\r\n */\r\n void save(Clothes clothes);\r\n\r\n /**\r\n * Delete clothes\r\n *\r\n * @param clothes obj\r\n */\r\n void delete(Clothes clothes);\r\n\r\n /**\r\n * Update clothes\r\n *\r\n * @param oldClothes obj\r\n * @param newClothes ojb\r\n */\r\n void update(Clothes oldClothes, Clothes newClothes);\r\n\r\n /**\r\n * Get all clothes\r\n *\r\n * @return list\r\n */\r\n List<Clothes> getAll();\r\n\r\n /**\r\n * Get all clothes by type of the office\r\n *\r\n * @param officeType obj\r\n * @return list\r\n */\r\n List<Clothes> getByOffice(OfficeType officeType);\r\n\r\n /**\r\n * Get clothes by ID\r\n *\r\n * @param id int\r\n * @return clothes obj\r\n */\r\n Clothes getById(int id);\r\n\r\n}", "public interface EntityStoreManager {\n\n /**\n * Stores the given information of a website in database.\n *\n * @param data the object containing website information that has to be saved in database\n */\n void store(WebCrawlerData data);\n\n\n /**\n * Retrieves the information of given url from database.\n *\n * @param url the url of the website whose data has to be retrieved from the database\n * @return the object containing all the information related to the given url\n */\n WebCrawlerData retrieve(String url);\n\n\n /**\n * Returns the list of all websites from database along with their information.\n *\n * @return the list of all websites from database\n */\n List<WebCrawlerData> retrieveAllEntity();\n}", "public interface ActionItemDAO\r\n extends GenericDAO<ActionItem, Long>\r\n{\r\n\r\n /**\r\n * Nom du service\r\n * \r\n */\r\n public final static String SERVICE_NAME = \"ActionItemDAO\";\r\n\r\n}", "public interface IDataStore {\n\n boolean newCycle(Cycle cycle);\n\n List<Cycle> getQueue();\n\n List<Cycle> getHistory();\n\n Temperature getTemperature();\n\n List<Temperature> getTemperatures();\n\n boolean logTemperature(Temperature temp);\n\n boolean updateCycle(Cycle cycle);\n\n boolean cancelCycle(String cycleID);\n\n boolean moveToHistory(String cycleID);\n}", "public interface Storage extends ClientListStorage, UserPrefsStorage, PolicyListStorage {\n\n @Override\n Optional<UserPrefs> readUserPrefs() throws DataConversionException, IOException;\n\n @Override\n void saveUserPrefs(ReadOnlyUserPrefs userPrefs) throws IOException;\n\n @Override\n Path getClientListFilePath();\n\n @Override\n Optional<ReadOnlyClientList> readClientList() throws DataConversionException, IOException;\n\n @Override\n void saveClientList(ReadOnlyClientList clientList) throws IOException;\n\n @Override\n Path getPolicyListFilePath();\n\n @Override\n Optional<PolicyList> readPolicyList() throws DataConversionException, IOException;\n\n @Override\n void savePolicyList(PolicyList policyList) throws IOException;\n}", "public interface DispersionDataSource {\n\n}", "public interface IDAO {\n public void salvar(EntidadeDominio entidade);\n public void alterar(EntidadeDominio entidade);\n public void excluir(EntidadeDominio entidade);\n public List<EntidadeDominio> consultar(EntidadeDominio entidade);\n}", "public interface IWilayaDatasource {\n\n Flowable<Wilaya> getWilayaById(int wilayaID);\n\n Flowable<List<Wilaya>> getAllWilaya();\n\n void insertWilaya(Wilaya... wilayas);\n\n void updateWilaya(Wilaya... wilayas);\n\n void deleteWilaya(Wilaya wilaya);\n\n void deleteAllWilaya();\n}", "public interface ITeamRuleDAO extends IDAO<ITeamRuleEntity> {\n\n}", "public interface IEntity<TPrimaryKey> {\n TPrimaryKey getId();\n void setId(TPrimaryKey id);\n\n}", "public interface IdbLocation {\n\n Location createLocation(int _id, String _name); //throws DBException;\n Location setLocation(int _id, String _name);\n boolean deleteLocation(int _id);\n\n static Location getLocation(int _id) {\n return new Location();\n }\n\n static HashMap<Integer, Location> getLocations() { // <id_Location, Location object itself>\n return new HashMap<Integer, Location>();\n }\n \n}", "public interface IDatabase {\n void createIfNotCreated();\n void openDatabase();\n void closeDatabase();\n\n Day loadDay(Date date);\n Day loadLatestDay();\n List<Day> loadMonth(Date date);\n List<Day> loadYear(Date date);\n List<Day> getAllEntries();\n\n void saveDay(Day day);\n void saveMonth(List<Day> days);\n void saveYear(List<Day> days);\n\n void deleteDay(Date date);\n void deleteMonth(Date date);\n void deleteYear(Date date);\n void deleteAll();\n void deleteMeterList();\n void deleteMeterPref();\n\n void savePreferences(MyPreferences pref);\n MyPreferences loadPreferences();\n}", "public interface ReferentialItem extends Persistable<Long>, SecuredObject {\n\n boolean isEnabled();\n void setEnabled(boolean enabled);\n int getOrder();\n void setOrder(int order);\n String getDescription();\n void setDescription(String description);\n String getName();\n void setName(String name);\n String getShortName();\n void setShortName(String shortName);\n\n}", "public interface DBHelper {\n}", "public interface DataStoreManager {\n\n\t/**\n\t * Create a database file.\n\t * \n\t * If only a file name is given, the database will create in %USER_HOME%/zoodb on Windows \n\t * or ~/zoodb on Linux/UNIX.\n\t * \n\t * If a full path is given, the full path will be used instead.\n\t * \n * Any necessary parent folders are created automatically.\n\n * It is recommended to use <code>.zdb</code> as file extension, for example \n * <code>myDatabase.zdb</code>.\n * \n\t * @param dbName The database file name or path \n\t * @see ZooJdoProperties#ZooJdoProperties(String)\n\t */\n\tvoid createDb(String dbName);\n\t\n\t/**\n\t * Check if a database exists. This checks only whether the file exists, not whether it is a \n\t * valid database file.\n\t * \n\t * @param dbName The database file name or path \n\t * @return <code>true</code> if the database exists.\n\t */\n\tboolean dbExists(String dbName);\n\n /**\n * Delete a database(-file).\n * @param dbName The database file name or path \n * @return {@code true} if the database could be removed, otherwise false\n */\n\tboolean removeDb(String dbName);\n\t\n /**\n * \n * @return The default database folder.\n */\n\tString getDefaultDbFolder();\n\t\n\t/**\n\t * Calculates the full path for the given database name, whether the database exists or not.\n\t * @param dbName The database file name or path \n\t * @return The full path of the database given by <code>dbName</code>.\n\t */\n\tString getDbPath(String dbName);\n}", "public interface DataBasePresent {\n void setDistrict(List<Name_Id> list);\n\n void setLocalBodyType(List<Name_Id> list);\n\n void setLocalBodyName(List<LocalBody> list);\n\n List<Name_Id> getDistrict();\n\n List<Name_Id> getLocalBodyType();\n\n List<LocalBody> getLocalBodyName(String districId ,String locatType);\n}", "public interface IIndexerDAO {\n\t\n\t/**\n\t * Inizializzazione dell'indicizzatore.\n\t * @param dir La cartella locale contenitore dei dati persistenti.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void init(File dir) throws ApsSystemException;\n\t\n\t/**\n\t * Aggiunge un contenuto nel db del motore di ricerca.\n * @param entity Il contenuto da aggiungere.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void add(IApsEntity entity) throws ApsSystemException;\n\t\n\t/**\n * Cancella un documento indicizzato.\n * @param name Il nome del campo Field da utilizzare per recupero del documento.\n * @param value La chiave mediante il quale è stato indicizzato il documento.\n * @throws ApsSystemException In caso di errori.\n */\n public void delete(String name, String value) throws ApsSystemException;\n \n public void close();\n\t\n\tpublic void setLangManager(ILangManager langManager);\n \n\tpublic static final String FIELD_PREFIX = \"entity:\"; \n public static final String CONTENT_ID_FIELD_NAME = FIELD_PREFIX + \"id\";\n public static final String CONTENT_TYPE_FIELD_NAME = FIELD_PREFIX + \"type\";\n public static final String CONTENT_GROUP_FIELD_NAME = FIELD_PREFIX + \"group\";\n public static final String CONTENT_CATEGORY_FIELD_NAME = FIELD_PREFIX + \"category\";\n\tpublic static final String CONTENT_CATEGORY_SEPARATOR = \"/\";\n\tpublic static final String ATTACHMENT_FIELD_SUFFIX = \"_attachment\";\n\t\n}", "public interface IDatabaseManager {\n\tString USERNAME = \"spring.datasource.username\";\n\n\tString PASSWORD = \"spring.datasource.password\";\n\n\tString URL = \"spring.datasource.url\";\n\n\tpublic Connection getConnection() throws SQLException ;\n\t\n\t}", "public interface DB2PermataFavoriteService {\n\n public abstract List<PermataFavorite> getPermataFavorite(int data);\n public abstract List<PermataFavorite> getPermataFavoriteByGcn(String gcn);\n public abstract List<PermataFavorite> getPermataFavoriteduplicate(int data);\n public abstract PermataFavorite savePermataFavorite(PermataFavorite permataFavorite);\n public abstract List<PermataFavorite> getAllPermataFavorite();\n}", "public interface Data {\n String DATABASE = \"Database\";\n String ONLINE = \"Online\";\n\n @StringDef({DATABASE, ONLINE})\n @interface Type{}\n\n int DATABASE_ID = 0;\n int ONLINE_ID = 1;\n @IntDef({DATABASE_ID, ONLINE_ID})\n @interface Id{}\n}", "public interface GameServerState<Data> extends ServerState {\n void setId(int id);\n int getId();\n Data getClusterEntry();\n}", "public interface DataStoreIntegrityService {\n\t\n\t/**\n\t * The function expects 3 hashmaps to be available in RequestScope and a map of defaultValues for create/merge\n\t * Map<ModelNode,QName> -> 3 such maps for Create/Delete/Merge list of nodes. \n\t * Map<SchemaPath,String> -> a map of defaultValues. \n\t */\n\tpublic List<EditConfigRequest> createInternalEditRequests(EditConfigRequest sourceRequest, NetconfClientInfo clientInfo, DSValidationContext validationContext) throws GetAttributeException;\n}", "public interface SPARQLService {\n // TODO: Create methods for at least CRUD \n}", "@Document(collection = DbTableNames.APPLICATIONS)\npublic interface DbApplication extends DbEntity {\n\n /**\n * Returns the id of the application.\n * \n * @return the id of the application\n */\n public String getApplicationId();\n\n /**\n * Returns the authentication token of this application.\n * \n * @return the authentication token\n */\n public String getAccessToken();\n\n}", "public interface IDSManager {\n Boolean addUser(ContentValues user);\n Boolean addBusiness(ContentValues business);\n Boolean addActivity(ContentValues activity);\n Boolean checkChangeInBusinessesAndActivities();\n Cursor getUsers();\n Cursor getBusinesses();\n Cursor getActivities();\n Boolean checkChangeInDataSource();\n Boolean dbChange();\n //Content Provider to check what that means.\n}", "void initialize(Datastore datastore) throws InvalidDatastoreException;", "public interface IDataSource {\r\n\t\r\n\t/**\r\n\t * Method to check if there are any stored credential in the data store for the user.\r\n\t * @param userId\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public boolean checkAuth(String userId) throws IOException;\r\n\t\r\n\t/**\r\n\t * Method to build the Uri used to redirect the user to the service provider site to give authorization.\r\n\t * @param userId\r\n\t * @param authCallback callback URL used when the app was registered on the service provider site. Some providers require\r\n\t * to specify it with every request.\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String buildAuthRequest(String userId, String authCallback) throws IOException;\r\n\t\r\n\t/**\r\n\t * Once the user has authorized the application, the provider redirect it on the app using the callback URL. This method \r\n\t * saves the credentials sent back with the request in the data store.\r\n\t * @param userId\r\n\t * @param params HashMap containing all the parameters of the request\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public void saveAuthResponse(String userId, HashMap<String, String> params) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of a single resource\r\n\t * @param userId\r\n\t * @param name resource name as in the XML config file\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String updateData(String userId, String resourceName, long lastUpdate) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of all resources\r\n\t * @param userId\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String[] updateAllData(String userId, long lastUpdate) throws IOException;\r\n\t\r\n}", "@Repository\npublic interface IStoreDao extends JpaRepository<Store,String> {\n}", "public interface FeedbackOptionDAO extends DAO{\r\n \r\n}", "public interface Store {\n\n void put(String accountId, Account account);\n Account get(String accountId);\n void delete(String accountId);\n\n}", "public interface StoreFront {\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic String getLocation();\n\tpublic void setLocation(String location);\n\tpublic InventoryManager getInventoryManager();\n\tpublic void setInventoryManager(InventoryManager inventoryManager);\n}", "public interface DBConnector {\n\n /**\n * Initializer for storage driver\n */\n default void init() {\n System.out.println(\"Init connector object...\");\n }\n\n /**\n * Connect with data-storage\n * @return true if connected, false if not connected\n */\n boolean connect();\n\n /**\n * Disconnect from data-storage\n */\n void disconnect();\n}", "public interface ModeloProdutoProduto extends DCIObjetoDominio , ModeloProdutoProdutoAgregadoI , ModeloProdutoProdutoDerivadaI\n{\n\n\t\n\tpublic long getIdModeloProdutoProduto();\n\tpublic void setIdModeloProdutoProduto(long valor);\n\t\n\t\n\tpublic long getIdModeloProdutoRa();\n\tpublic void setIdModeloProdutoRa(long valor);\n\t\n\t\n\tpublic long getIdProdutoRa();\n\tpublic void setIdProdutoRa(long valor);\n\t\n\t\n}" ]
[ "0.67311555", "0.64310664", "0.63491595", "0.6345447", "0.63184834", "0.631016", "0.62786216", "0.62723386", "0.626399", "0.6191232", "0.6166828", "0.61223024", "0.6102227", "0.60942364", "0.6091337", "0.609091", "0.60712713", "0.6032017", "0.6031069", "0.6018788", "0.6002208", "0.59879565", "0.5987041", "0.59767246", "0.5972332", "0.59608644", "0.59502286", "0.5943321", "0.59339267", "0.5931536", "0.59271884", "0.5925494", "0.5921223", "0.59136623", "0.59039867", "0.5903667", "0.5901914", "0.5897683", "0.5895498", "0.58942914", "0.58844507", "0.5877048", "0.58756423", "0.5871238", "0.58590037", "0.5848746", "0.5834355", "0.58219427", "0.58142614", "0.5809365", "0.5794671", "0.57942957", "0.57925135", "0.5790082", "0.5784369", "0.5781309", "0.57811844", "0.57742065", "0.5769385", "0.576913", "0.5759367", "0.57499796", "0.57484055", "0.57416344", "0.5728236", "0.5727596", "0.57238656", "0.5721607", "0.5717087", "0.57050323", "0.5703363", "0.569889", "0.56972474", "0.569559", "0.5695531", "0.5691926", "0.56887704", "0.568811", "0.56880313", "0.5667273", "0.56613743", "0.56423646", "0.563911", "0.5634035", "0.5623623", "0.56222", "0.56191134", "0.5617268", "0.56126285", "0.56103784", "0.5603577", "0.55975574", "0.55919904", "0.55909866", "0.55701625", "0.5569985", "0.55658066", "0.5562355", "0.5560564", "0.5557437" ]
0.7359472
0
Return the datastore specific metadata factory.
DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OBStoreFactory getFactory();", "@objid (\"0078ca26-5a20-10c8-842f-001ec947cd2a\")\n GenericFactory getGenericFactory();", "DTMCFactory getDTMCFactory();", "public MetaDataManager createMetaDataManager() throws ServiceException {\r\n initialize(); \r\n return new MetaDataManager(multiDomainMetaService); \r\n\t}", "public StoreFactory getStoreFactory()\r\n {\r\n return (StoreFactory)getEFactoryInstance();\r\n }", "DataFactory getDataFactory();", "public EdmDataServices getMetadata() {\n try {\n final EdmDataServices metadata = super.getMetadata();\n \n // here we decorate the metadata so we can properly get things routed to registered service-operation handlers\n EdmDataServices result = new EdmDataServicesDecorator() {\n protected EdmDataServices getDelegate() { return metadata; } // most is passed thru to the super-class metadata\n public EdmFunctionImport findEdmFunctionImport(String functionImportName) {\n Map.Entry<EdmFunctionImport,ServiceOperationHandler> descriptor = _functionDescriptors.get(functionImportName);\n return descriptor != null ? descriptor.getKey() : null;\n }\n };\n return result;\n } catch (Throwable ex) {\n _log.error(\"failed to getMetadata()\", ex);\n throw new RuntimeException(ex.toString(), ex);\n }\n }", "private static Class<? extends DataStore> getSpecificDataStore(\n Type datastoreType) {\n switch (datastoreType) {\n case DYNAMODB:\n return DynamoDBStore.class;\n case CASSANDRA:\n case HBASE:\n case ACCUMULO:\n case MONGO:\n //return MongoStore.class;\n default:\n throw new IllegalStateException(\"DataStore not supported yet.\");\n }\n }", "public interface Datastore<DatastoreSession extends com.buschmais.cdo.spi.datastore.DatastoreSession, EntityMetadata extends DatastoreEntityMetadata<Discriminator>, Discriminator> extends AutoCloseable {\n\n /**\n * Initialize the datastore.\n *\n * @param registeredMetadata A collection of all registerted types.\n */\n void init(Collection<TypeMetadata<EntityMetadata>> registeredMetadata);\n\n /**\n * Return the datastore specific metadata factory.\n *\n * @return The metadata factory.\n */\n DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();\n\n /**\n * Create a datastore session, e.g. open a connection to the datastore.\n *\n * @return The session.\n */\n DatastoreSession createSession();\n\n /**\n * Close the datastore.\n */\n void close();\n\n}", "public static Factory factory() {\n return ext_dbf::new;\n }", "public AppEngineDataStoreFactory build() {\n return new AppEngineDataStoreFactory(this);\n }", "public DataSourceFactory getDataSourceFactory() {\n return database;\n }", "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "public abstract ProductFactory getFactory();", "Factory getFactory()\n {\n return configfile.factory;\n }", "BusinessEntityFactory getBusinessEntityFactory();", "GramaticaFactory getGramaticaFactory();", "public static DAOFactory getDAOFactory(\n int whichFactory) {\n\n switch (whichFactory) {\n case XML:\n return new XmlDAOFactory();\n case MySQL:\n return new MySqlDAOFactory();\n default:\n return null;\n }\n }", "public static DataFactory init() {\n\t\ttry {\n\t\t\tDataFactory theDataFactory = (DataFactory)EPackage.Registry.INSTANCE.getEFactory(DataPackage.eNS_URI);\n\t\t\tif (theDataFactory != null) {\n\t\t\t\treturn theDataFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new DataFactoryImpl();\n\t}", "public Factory getFactory()\r\n {\r\n if( m_factory != null ) return m_factory;\r\n m_factory = FactoryHelper.narrow( m_primary );\r\n return m_factory;\r\n }", "@Bean\n public MetadataGenerator metadataGenerator() {\n final MetadataGenerator metadataGenerator = new MetadataGenerator();\n metadataGenerator.setEntityId(this.samlProperties.getSp().getEntityId());\n metadataGenerator.setExtendedMetadata(extendedMetadata());\n metadataGenerator.setIncludeDiscoveryExtension(false);\n metadataGenerator.setKeyManager(keyManager());\n if (this.samlProperties.getSp().getEntityBaseURL() != null) {\n metadataGenerator.setEntityBaseURL(this.samlProperties.getSp().getEntityBaseURL());\n }\n return metadataGenerator;\n }", "public static Factory factory() {\n return ext_h::new;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static XmlEntityObjectFactory getFactory() {\n\t\tif (factory == null) {\n\t\t\tfactory = new XmlEntityObjectFactory();\n\t\t\ttry {\n\t\t\t\tClass<IXmlEntityResolverLoader> loaderClass = (Class<IXmlEntityResolverLoader>) Class\n\t\t\t\t\t\t.forName(defaulEntityResolverLoaderClassName);\n\t\t\t\tIXmlEntityResolverLoader loader;\n\t\t\t\tloader = loaderClass.newInstance();\n\t\t\t\tloader.loadTo(factory);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tthrow new UnexpectedRuntimeException(ex);\n\t\t\t}\n\t\t}\n\t\treturn factory;\n\t}", "SemanticFactory getSemanticFactory();", "public interface PersistenceFactory {\n /* Fields */\n\n /**\n * The property name for all classes stored at the column:row level to introspect the entity that contains the\n * properties persisted in a row's columns\n */\n String CLASS_PROPERTY = \"___class\";\n\n /* Misc */\n\n /**\n * Deletes columns by name from column family\n *\n * @param columnFamily the column family\n * @param key the key\n * @param columns the columns to be deleted by name\n */\n void deleteColumns(String columnFamily, String key, String... columns);\n\n /**\n * Executes a query\n *\n * @param expectedResult the result expected from the query execution\n * @param query the query\n * @param <T> the result type\n * @return the result\n */\n <T> T executeQuery(Class<T> expectedResult, Query query);\n\n /**\n * @param entityClass the class\n * @param key the id\n * @param <T> the entity type\n * @return an entity from the data store looked up by its id\n */\n <T> T get(Class<T> entityClass, String key);\n\n /**\n * Fetch a map of columns and their values\n *\n * @param columnFamily the column family\n * @param key the column family key\n * @param reversed if the order should be reversed\n * @param columns the column names\n * @return a map of columns and their values\n */\n Map<String, ByteBuffer> getColumns(String columnFamily, String key, boolean reversed, String... columns);\n\n /**\n * Fetch a map of columns and their values\n *\n * @param columnFamily the column family\n * @param key the column family key\n * @param limit of columns\n * @param reversed if the order should be reversed\n * @param fromColumn from column\n * @param toColumn to column\n * @return a map of columns and their values\n */\n Map<String, ByteBuffer> getColumns(String columnFamily, String key, int limit, boolean reversed, String fromColumn, String toColumn);\n\n /**\n * @return the default consistency level\n */\n ConsistencyLevel getDefaultConsistencyLevel();\n\n /**\n * @return the default keyspace\n */\n String getDefaultKeySpace();\n\n /**\n * @param entityClass the class type for this instance\n * @param <T> the type of class to be returned\n * @return an instance of this type after transformation of its accessors to notify the persistence context that there are ongoing changes\n */\n <T> T getInstance(Class<T> entityClass);\n\n /**\n * Obtains an entity key\n *\n * @param entity the entity\n * @return the key\n */\n String getKey(Object entity);\n\n /**\n * The list of managed class by this factory\n *\n * @return The list of managed class by this factory\n */\n List<Class<?>> getManagedClasses();\n\n /**\n * Get a list of entities given a query\n *\n * @param type the type of objects to expect back\n * @param query the query\n * @param <T> the result type\n * @return the list of entities\n */\n <T> List<T> getResultList(Class<T> type, Query query);\n\n /**\n * Get a single result from a CQL query\n *\n * @param type the type of objects to expect back\n * @param query the query\n * @param <T> the entity type\n * @return the resulting entity\n */\n <T> T getSingleResult(Class<T> type, Query query);\n\n /**\n * Inserts columns based on a map representing keys with properties and their corresponding values\n *\n * @param columnFamily the column family\n * @param key the column family key\n * @param keyValuePairs the map with keys and values\n */\n void insertColumns(String columnFamily, String key, Map<String, Object> keyValuePairs);\n\n /**\n * Entry point method to persist and arbitrary list of objects into the datastore\n *\n * @param entities the entities to be persisted\n */\n <T> void persist(T... entities);\n\n /**\n * @param entities the entities to be removed from the data store\n */\n <T> void remove(T... entities);\n \n /**\n * return cluster\n */\n Cluster getCluster(); \n}", "public SystemMetadataDaoMetacatImpl() {\n this(MetacatDataSourceFactory.getMetacatDataSource());\n }", "public DataTypeManager getDataTypeManager();", "public ValueFactory<K, V> getFactory()\n {\n return factory;\n }", "@Override\r\n protected DBMetaProvider xgetDBMetaProvider() {\r\n return DBMetaInstanceHandler.getProvider();\r\n }", "ProvenanceFactory getProvenanceFactory();", "public static MgtFactory init()\n {\n try\n {\n MgtFactory theMgtFactory = (MgtFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://mgt/1.0\"); \n if (theMgtFactory != null)\n {\n return theMgtFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new MgtFactoryImpl();\n }", "public interface DatabaseFactory {\r\n\r\n Database makeDatabase();\r\n}", "interface Factory {\n KeyExtractor create(Class<?> entity);\n }", "@Bean\n @Qualifier(\"metadata\")\n public CachingMetadataManager metadata(\n final ExtendedMetadataDelegate ssoCircleExtendedMetadataProvider\n ) throws MetadataProviderException {\n return new CachingMetadataManager(Lists.newArrayList(ssoCircleExtendedMetadataProvider));\n }", "ManagerFactory getManagerFactory();", "public static Factory factory() {\n return ext_accdt::new;\n }", "public static synchronized DAOFactory getDAOFactory() {\r\n if (daof == null) {\r\n daoType = JDBCDAO;\r\n switch (daoType) {\r\n case JDBCDAO:\r\n daof = new JDBCDAOFactory();\r\n break;\r\n case DUMMY_DAO:\r\n daof = new InMemoryDAOFactory();\r\n break;\r\n default:\r\n daof = null;\r\n }\r\n }\r\n return daof;\r\n }", "public static BackendFactory getInstance() {\n return INSTANCE;\n }", "@Override\n IDeviceFactory getFactory();", "private CachingMetadataManager getMetadata(ParserPool parserPool, KeyManager keyManager) throws Exception {\n\t\tList<MetadataProvider> providers = new ArrayList<>();\n\t\tMetadataProvider provider = getIdpExtendedMetadataProvider(parserPool);\n\t\tif (provider != null) {\n\t\t\tproviders.add(provider);\n\t\t}\n\n\t\tExtendedMetadataDelegate spMetadataProvider = getSpExtendedMetadataProvider(parserPool);\n\t\tif (spMetadataProvider != null) {\n\t\t\tproviders.add(spMetadataProvider);\n\t\t}\n\n\t\tCachingMetadataManager metadata = new CachingMetadataManager(providers);\n\t\tmetadata.setDefaultIDP(samlProps.get(\"defaultIdp\"));\n\t\tmetadata.setKeyManager(keyManager);\n\t\tmetadata.setTLSConfigurer(getTlsProtocolConfigurer(keyManager));\n\n\t\tmetadata.afterPropertiesSet();\n\t\treturn metadata;\n\t}", "@Override\n protected MetaData makeMetaData() {\n return new MetaData();\n }", "cdfgFactory getcdfgFactory();", "public static CDOServerDefsFactory init() {\r\n\t\ttry {\r\n\t\t\tCDOServerDefsFactory theCDOServerDefsFactory = (CDOServerDefsFactory) EPackage.Registry.INSTANCE\r\n\t\t\t\t\t.getEFactory(\"http://www.eclipse.org/emf/CDO/server/defs/1.0.0\");\r\n\t\t\tif (theCDOServerDefsFactory != null) {\r\n\t\t\t\treturn theCDOServerDefsFactory;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new CDOServerDefsFactoryImpl();\r\n\t}", "ProfileFactory getProfileFactory( DataSourceMetadata dataSourceMetadata );", "protected static HttpDataFactory getHttpDataFactory() {\n return httpDataFactory;\n }", "public DelegatingMetaStore getDefaultMetaStore() {\n\t\treturn metaStore;\n\t}", "ContentFactory getContentFactory();", "AtomFactory getAtomFactory();", "public static DAOFactory getDAOFactory(int factoryCode) {\n\n\t\tswitch (factoryCode) {\n\t\tcase H2:\n\t\t\treturn new H2DAOFactory();\n\t\tdefault:\n\t\t\t// by default using H2 in memory database\n\t\t\treturn new H2DAOFactory();\n\t\t}\n\t}", "public EntityManagerFactory newEMFactory() {\n emFactory = Persistence.createEntityManagerFactory(\"Exercici1-JPA\");\n return emFactory;\n }", "AndroidFactory getAndroidFactory();", "public static EntityFactory init() {\n\t\ttry {\n\t\t\tEntityFactory theEntityFactory = (EntityFactory)EPackage.Registry.INSTANCE.getEFactory(EntityPackage.eNS_URI);\n\t\t\tif (theEntityFactory != null) {\n\t\t\t\treturn theEntityFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new EntityFactoryImpl();\n\t}", "public static MetaDataManager getInstance() {\n return instance;\n }", "public static MystFactory init()\r\n {\r\n try\r\n {\r\n MystFactory theMystFactory = (MystFactory)EPackage.Registry.INSTANCE.getEFactory(MystPackage.eNS_URI);\r\n if (theMystFactory != null)\r\n {\r\n return theMystFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new MystFactoryImpl();\r\n }", "EpkDSLFactory getEpkDSLFactory();", "protected static final SchemaFactory getSchemaFactory() {\r\n if (schemaFactory == null) {\r\n\r\n // 1. Lookup a factory for the W3C XML Schema language\r\n schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\r\n\r\n // 2. Set the custom XML catalog resolver :\r\n schemaFactory.setResourceResolver(CustomXmlCatalogResolver.getInstance());\r\n }\r\n\r\n return schemaFactory;\r\n }", "public static MetadataContext get() {\n if (null == METADATA_CONTEXT.get()) {\n MetadataContext metadataContext = new MetadataContext();\n if (metadataLocalProperties == null) {\n metadataLocalProperties = (MetadataLocalProperties) ApplicationContextAwareUtils\n .getApplicationContext().getBean(\"metadataLocalProperties\");\n }\n\n // init custom metadata and load local metadata\n Map<String, String> transitiveMetadataMap = getTransitiveMetadataMap(metadataLocalProperties.getContent(),\n metadataLocalProperties.getTransitive());\n metadataContext.putAllTransitiveCustomMetadata(transitiveMetadataMap);\n\n // init system metadata\n metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.LOCAL_NAMESPACE,\n LOCAL_NAMESPACE);\n metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.LOCAL_SERVICE,\n LOCAL_SERVICE);\n\n METADATA_CONTEXT.set(metadataContext);\n }\n return METADATA_CONTEXT.get();\n }", "JUnitDomainFactory getJUnitDomainFactory();", "public static CLONDATAFactory init() {\n\t\ttry {\n\t\t\tCLONDATAFactory theCLONDATAFactory = (CLONDATAFactory) EPackage.Registry.INSTANCE.getEFactory(\n\t\t\t\tCLONDATAPackage.eNS_URI);\n\t\t\tif (theCLONDATAFactory != null) {\n\t\t\t\treturn theCLONDATAFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CLONDATAFactoryImpl();\n\t}", "Class<?> getFactoryClass();", "Metadata getMetaData();", "public ConfigurableCacheFactory getCacheFactory();", "public interface StorageFactory {\n\n\t<T> List<T> createList();\n\t\n\t<T> Set<T> createSet();\n\t\n\t<V> Map<Character, V> createMap();\n\t\n}", "IotdslFactory getIotdslFactory();", "DocumentationFactory getDocumentationFactory();", "@Override\n\tpublic Factory get(Serializable id) {\n\t\treturn mapper.get(id);\n\t}", "public static SessionFactory getSessionFactory() {\n\n if(sessionFactory == null) {\n try {\n MetadataSources metadataSources = new MetadataSources(configureServiceRegistry());\n\n addEntityClasses(metadataSources);\n\n sessionFactory = metadataSources.buildMetadata()\n .getSessionFactoryBuilder()\n .build();\n\n } catch (Exception e) {\n e.printStackTrace();\n if(registry != null)\n StandardServiceRegistryBuilder.destroy(registry);\n }\n }\n\n return sessionFactory;\n }", "public GeoTiffIIOMetadataDecoder getMetadata() {\n GeoTiffIIOMetadataDecoder metadata = null;\n ImageReader reader = null;\n boolean closeMe = true;\n ImageInputStream stream = null;\n\n try {\n if ((source instanceof InputStream) || (source instanceof ImageInputStream)) {\n closeMe = false;\n }\n if (source instanceof ImageInputStream) {\n stream = (ImageInputStream) source;\n } else {\n inStreamSPI = ImageIOExt.getImageInputStreamSPI(source);\n if (inStreamSPI == null) {\n throw new IllegalArgumentException(\"No input stream for the provided source\");\n }\n stream =\n inStreamSPI.createInputStreamInstance(\n source, ImageIO.getUseCache(), ImageIO.getCacheDirectory());\n }\n if (stream == null) {\n throw new IllegalArgumentException(\"No input stream for the provided source\");\n }\n stream.mark();\n reader = READER_SPI.createReaderInstance();\n reader.setInput(stream);\n final IIOMetadata iioMetadata = reader.getImageMetadata(0);\n metadata = new GeoTiffIIOMetadataDecoder(iioMetadata);\n } catch (IOException e) {\n if (LOGGER.isLoggable(Level.SEVERE)) {\n LOGGER.log(Level.SEVERE, e.getMessage(), e);\n }\n } finally {\n if (reader != null)\n try {\n reader.dispose();\n } catch (Throwable t) {\n }\n\n if (stream != null) {\n try {\n stream.reset();\n } catch (Throwable t) {\n }\n if (closeMe) {\n try {\n stream.close();\n } catch (Throwable t) {\n }\n }\n }\n }\n return metadata;\n }", "public Map<String, Factory> getFactoryMap(){\n\t\treturn factoryMap;\n\t}", "public PersistenceManagerFactory getPersistenceManagerFactory() {\n return pmf;\n }", "Class<? extends EntityPersister> getEntityPersisterClass(PersistentClass metadata);", "private MetaEntityImpl createMetaEntity(Class<?> entityType) {\n String className = entityType.getSimpleName();\n MetaEntityImpl managedEntity = new MetaEntityImpl();\n managedEntity.setEntityType(entityType);\n managedEntity.setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setKeySpace(environment.getConfiguration().getKeySpace());\n return managedEntity;\n }", "public MetaData getMetaData();", "@Bean\n\tpublic DataSourceDao dataSourceDao() {\n\t\tDataSourceDao metadata = new DataSourceDao();\n\t\tmetadata.put(\"rslite\", dsRSLite());\n\t\tmetadata.put(\"rastreosat\", dsRS());\n\t\tmetadata.put(\"entel\", dsEntel());\n\t\tmetadata.put(\"mongo\", dsMongo());\n\t\treturn metadata;\n\t}", "public static EntityManagerFactory getEntityManagerFactory()\n\t\t\tthrows PersistenceException, UnsupportedUserAttributeException, NamingException {\n\t\tif (emf == null)\n\t\t\temf = createNewEntityManagerFactory();\n\t\treturn emf;\n\t}", "static DataFrameFactory factory() {\n return DataFrameFactory.getInstance();\n }", "public String getMetadataHandle(String collectionSetSpec) throws Exception;", "public interface BackingStoreFactory {\n\n /**\n * This method is called to create a BackingStore that will store\n * <code>SimpleMetadata</code> or <code>CompositeMetadata</code>. This\n * class must be thread safe.\n * <p>\n * The factory must return a fully initialized and operational BackingStore\n * \n * @param type\n * The type of data that will be saved (using the\n * <code>save()</code> method in BackingStore) in the store.\n * @param appId\n * the application id for which this store is created\n * @param env\n * Properties that contain any additional configuration paramters\n * to successfully initialize and use the store.\n * @return a BackingStore. The returned BackingStore will be used only to\n * store data of type K. The returned BackingStore must be thread\n * safe.\n * @throws BackingStoreException\n * If the store could not be created\n */\n public <K extends Metadata> BackingStore<K> createBackingStore(\n Class<K> type, String appId, Properties env)\n throws BackingStoreException;\n\n /**\n * This method is called to store a set of BatchMetadata objects atomically.\n * The factory must return a fully initialized and operational\n * BatchBackingStore\n * <p>\n * The factory must return a fully initialized and operational\n * BatchBackingStore\n * \n * @param env\n * Properties that contain any additional configuration paramters\n * to successfully initialize and use the store.\n * @return A BatchBackingStore\n * @throws BackingStoreException\n * If the store could not be created\n */\n public BatchBackingStore createBatchBackingStore(Properties env)\n throws BackingStoreException;\n\n}", "default <T extends MetaManipulator> T obtain(Class<T> clazz) {\n return MetaRegistry.get(this, clazz);\n }", "@Override\r\n\tpublic Idao getDao() {\n\t\treturn new FilesystemIdao();\r\n\t}", "@Override\n\tpublic DocumentWithMeta getSysDocumentMeta(CallingContext context,\n\t\t\tString raptureURI) {\n\t\tRaptureURI uri = new RaptureURI(raptureURI);\n\t\tswitch(uri.getScheme()) {\n\t\tcase SCRIPT:\n\t\t\treturn RaptureScriptStorage.getDocumentWithMeta(uri);\n\t\tcase WORKFLOW:\n\t\t\treturn WorkflowStorage.getDocumentWithMeta(uri);\n\t\tcase WORKORDER:\n\t\t\treturn WorkOrderStorage.getDocumentWithMeta(uri);\n\t\tcase JAR:\n\t\t\treturn JarStorage.getDocumentWithMeta(uri);\n\t\tcase USER:\n\t\t\treturn RaptureUserStorage.getDocumentWithMeta(uri);\n\t\tdefault:\n\t\t\tlog.error(\"Do not currently support reading metadata for \" + uri);\n\t\t\treturn null;\n\t\t}\n\t}", "public ServiceFactory getServiceFactory() {\n return serviceFactory;\n }", "public static EpitrelloDataServerice creator() {\n\t\tif(dataServerice == null) {\n\t\t\tdataServerice = new DataService();\n\t\t}\n\t\treturn dataServerice;\n\t}", "public static Object getFactory(String propName, Hashtable<?, ?> env, Context ctx, String classSuffix,\n String defaultPkgPrefix) throws NamingException {\n\n // Merge property with provider property and supplied default\n String facProp = getProperty(propName, env, ctx, true);\n if (facProp != null)\n facProp += (\":\" + defaultPkgPrefix);\n else\n facProp = defaultPkgPrefix;\n\n // Cache factory based on context class loader, class name, and\n // property val\n ClassLoader loader = helper.getContextClassLoader();\n String key = classSuffix + \" \" + facProp;\n\n Map<String, WeakReference<Object>> perLoaderCache = null;\n synchronized (urlFactoryCache) {\n perLoaderCache = urlFactoryCache.get(loader);\n if (perLoaderCache == null) {\n perLoaderCache = new HashMap<>(11);\n urlFactoryCache.put(loader, perLoaderCache);\n }\n }\n\n synchronized (perLoaderCache) {\n Object factory = null;\n\n WeakReference<Object> factoryRef = perLoaderCache.get(key);\n if (factoryRef == NO_FACTORY) {\n return null;\n } else if (factoryRef != null) {\n factory = factoryRef.get();\n if (factory != null) { // check if weak ref has been cleared\n return factory;\n }\n }\n\n // Not cached; find first factory and cache\n StringTokenizer parser = new StringTokenizer(facProp, \":\");\n String className;\n while (factory == null && parser.hasMoreTokens()) {\n className = parser.nextToken() + classSuffix;\n try {\n // System.out.println(\"loading \" + className);\n factory = helper.loadClass(className, loader).newInstance();\n } catch (InstantiationException e) {\n NamingException ne = new NamingException(\"Cannot instantiate \" + className);\n ne.setRootCause(e);\n throw ne;\n } catch (IllegalAccessException e) {\n NamingException ne = new NamingException(\"Cannot access \" + className);\n ne.setRootCause(e);\n throw ne;\n } catch (Exception e) {\n // ignore ClassNotFoundException, IllegalArgumentException,\n // etc.\n }\n }\n\n // Cache it.\n perLoaderCache.put(key, (factory != null) ? new WeakReference<>(factory) : NO_FACTORY);\n return factory;\n }\n }", "public IIOMetadataFormat getMetadataFormat(String formatName) {\n\t\tif (formatName.equals(nativeMetadataFormatName)) {\n\t\t\treturn null;\n\t\t\t// return (IIOMetadataFormat) nativeDoc;\n\t\t} else if (formatName.equals(commonMetadataFormatName)) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Not a recognized format!\");\n\t\t}\n\t}", "public static <K, T extends Persistent> DataStore<K, T> createSpecificDataStore(\n String pDataStoreName, Type dsType, Class<K> pKeyClass,\n Class<T> pValueClass) throws GoraException {\n Class<? extends DataStore> dataStoreClass = getSpecificDataStore(dsType);\n return createDataStore(pKeyClass, pValueClass, dataStoreClass);\n }", "public TableFactory getTableFactory() { return new BasicTableFactory(); }", "@Bean\n EntityManagerFactory entityManagerFactoryProvider() {\n \tEntityManagerFactory emf = Persistence.createEntityManagerFactory(DATA_SOURCE_NAME);\n return emf;\n }", "ModelsFactory getModelsFactory();", "public MetadataStore getMetadataStoreForDisplay() {\n MetadataStore store = getMetadataStore();\n if (service.isOMEXMLMetadata(store)) {\n service.removeBinData((OMEXMLMetadata) store);\n for (int i=0; i<getSeriesCount(); i++) {\n if (((OMEXMLMetadata) store).getTiffDataCount(i) == 0) {\n service.addMetadataOnly((OMEXMLMetadata) store, i);\n }\n }\n }\n return store;\n }", "private DatabaseProvider getDatabaseProvider() {\n return new DatabaseProvider(\n System.getProperty(\"url\"),\n System.getProperty(\"user\"),\n System.getProperty(\"password\")\n );\n }", "@Override\r\n\tpublic MedicalPersonnelDaoImpl concreteDaoCreator() {\n\t\treturn new MedicalPersonnelDaoImpl();\r\n\t}", "KdmRelationsFactory getKdmRelationsFactory();", "public static MmapFactory init() {\n\t\ttry {\n\t\t\tMmapFactory theMmapFactory = (MmapFactory) EPackage.Registry.INSTANCE.getEFactory(MmapPackage.eNS_URI);\n\t\t\tif (theMmapFactory != null) {\n\t\t\t\treturn theMmapFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new MmapFactoryImpl();\n\t}", "private static EntityManagerFactory createNewEntityManagerFactory()\n\t\t\tthrows NamingException, PersistenceException, UnsupportedUserAttributeException {\n\n\t\tInitialContext ctx = new InitialContext();\n\t\tDataSource ds = (DataSource) ctx.lookup(DATA_SOURCE_NAME);\n\n\t\tMap<String, Object> properties = new HashMap<String, Object>();\n\t\tproperties.put(PersistenceUnitProperties.NON_JTA_DATASOURCE, ds);\n\n\t\t// As replication will change the underlying database without\n\t\t// notifying the hub the JPA cache needs to be disabled.\n\t\t// Else the hub might provide outdated data\n\t\tproperties.put(PersistenceUnitProperties.CACHE_SHARED_DEFAULT, \"false\");\n\n\t\treturn Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME, properties);\n\t}", "GraphFactory getGraphFactory();", "public PersistentDataStore() {\n datastore = DatastoreServiceFactory.getDatastoreService();\n }", "public static synchronized ANSSRegionsFactory getFactory() {\n return getFactory(true);\n }", "public static CallMetaDataProvider createMetaDataProvider(DataSource dataSource, CallMetaDataContext context)\r\n/* 22: */ {\r\n/* 23: */ try\r\n/* 24: */ {\r\n/* 25: 71 */ (CallMetaDataProvider)JdbcUtils.extractDatabaseMetaData(dataSource, new DatabaseMetaDataCallback()\r\n/* 26: */ {\r\n/* 27: */ public Object processMetaData(DatabaseMetaData databaseMetaData)\r\n/* 28: */ throws SQLException, MetaDataAccessException\r\n/* 29: */ {\r\n/* 30: 73 */ String databaseProductName = JdbcUtils.commonDatabaseName(databaseMetaData.getDatabaseProductName());\r\n/* 31: 74 */ boolean accessProcedureColumnMetaData = CallMetaDataProviderFactory.this.isAccessCallParameterMetaData();\r\n/* 32: 75 */ if (CallMetaDataProviderFactory.this.isFunction())\r\n/* 33: */ {\r\n/* 34: 76 */ if (!CallMetaDataProviderFactory.supportedDatabaseProductsForFunctions.contains(databaseProductName))\r\n/* 35: */ {\r\n/* 36: 77 */ if (CallMetaDataProviderFactory.logger.isWarnEnabled()) {\r\n/* 37: 78 */ CallMetaDataProviderFactory.logger.warn(databaseProductName + \" is not one of the databases fully supported for function calls \" + \r\n/* 38: 79 */ \"-- supported are: \" + CallMetaDataProviderFactory.supportedDatabaseProductsForFunctions);\r\n/* 39: */ }\r\n/* 40: 81 */ if (accessProcedureColumnMetaData)\r\n/* 41: */ {\r\n/* 42: 82 */ CallMetaDataProviderFactory.logger.warn(\"Metadata processing disabled - you must specify all parameters explicitly\");\r\n/* 43: 83 */ accessProcedureColumnMetaData = false;\r\n/* 44: */ }\r\n/* 45: */ }\r\n/* 46: */ }\r\n/* 47: 88 */ else if (!CallMetaDataProviderFactory.supportedDatabaseProductsForProcedures.contains(databaseProductName))\r\n/* 48: */ {\r\n/* 49: 89 */ if (CallMetaDataProviderFactory.logger.isWarnEnabled()) {\r\n/* 50: 90 */ CallMetaDataProviderFactory.logger.warn(databaseProductName + \" is not one of the databases fully supported for procedure calls \" + \r\n/* 51: 91 */ \"-- supported are: \" + CallMetaDataProviderFactory.supportedDatabaseProductsForProcedures);\r\n/* 52: */ }\r\n/* 53: 93 */ if (accessProcedureColumnMetaData)\r\n/* 54: */ {\r\n/* 55: 94 */ CallMetaDataProviderFactory.logger.warn(\"Metadata processing disabled - you must specify all parameters explicitly\");\r\n/* 56: 95 */ accessProcedureColumnMetaData = false;\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ CallMetaDataProvider provider;\r\n/* 60: */ CallMetaDataProvider provider;\r\n/* 61:101 */ if (\"Oracle\".equals(databaseProductName))\r\n/* 62: */ {\r\n/* 63:102 */ provider = new OracleCallMetaDataProvider(databaseMetaData);\r\n/* 64: */ }\r\n/* 65: */ else\r\n/* 66: */ {\r\n/* 67: */ CallMetaDataProvider provider;\r\n/* 68:104 */ if (\"DB2\".equals(databaseProductName))\r\n/* 69: */ {\r\n/* 70:105 */ provider = new Db2CallMetaDataProvider(databaseMetaData);\r\n/* 71: */ }\r\n/* 72: */ else\r\n/* 73: */ {\r\n/* 74: */ CallMetaDataProvider provider;\r\n/* 75:107 */ if (\"Apache Derby\".equals(databaseProductName))\r\n/* 76: */ {\r\n/* 77:108 */ provider = new DerbyCallMetaDataProvider(databaseMetaData);\r\n/* 78: */ }\r\n/* 79: */ else\r\n/* 80: */ {\r\n/* 81: */ CallMetaDataProvider provider;\r\n/* 82:110 */ if (\"PostgreSQL\".equals(databaseProductName))\r\n/* 83: */ {\r\n/* 84:111 */ provider = new PostgresCallMetaDataProvider(databaseMetaData);\r\n/* 85: */ }\r\n/* 86: */ else\r\n/* 87: */ {\r\n/* 88: */ CallMetaDataProvider provider;\r\n/* 89:113 */ if (\"Sybase\".equals(databaseProductName))\r\n/* 90: */ {\r\n/* 91:114 */ provider = new SybaseCallMetaDataProvider(databaseMetaData);\r\n/* 92: */ }\r\n/* 93: */ else\r\n/* 94: */ {\r\n/* 95: */ CallMetaDataProvider provider;\r\n/* 96:116 */ if (\"Microsoft SQL Server\".equals(databaseProductName)) {\r\n/* 97:117 */ provider = new SqlServerCallMetaDataProvider(databaseMetaData);\r\n/* 98: */ } else {\r\n/* 99:120 */ provider = new GenericCallMetaDataProvider(databaseMetaData);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ }\r\n/* 103: */ }\r\n/* 104: */ }\r\n/* 105: */ }\r\n/* 106:122 */ if (CallMetaDataProviderFactory.logger.isDebugEnabled()) {\r\n/* 107:123 */ CallMetaDataProviderFactory.logger.debug(\"Using \" + provider.getClass().getName());\r\n/* 108: */ }\r\n/* 109:125 */ provider.initializeWithMetaData(databaseMetaData);\r\n/* 110:126 */ if (accessProcedureColumnMetaData) {\r\n/* 111:127 */ provider.initializeWithProcedureColumnMetaData(\r\n/* 112:128 */ databaseMetaData, CallMetaDataProviderFactory.this.getCatalogName(), CallMetaDataProviderFactory.this.getSchemaName(), CallMetaDataProviderFactory.this.getProcedureName());\r\n/* 113: */ }\r\n/* 114:130 */ return provider;\r\n/* 115: */ }\r\n/* 116: */ });\r\n/* 117: */ }\r\n/* 118: */ catch (MetaDataAccessException ex)\r\n/* 119: */ {\r\n/* 120:135 */ throw new DataAccessResourceFailureException(\"Error retreiving database metadata\", ex);\r\n/* 121: */ }\r\n/* 122: */ }" ]
[ "0.64882874", "0.6013483", "0.59965307", "0.59584016", "0.5914041", "0.5819468", "0.5763684", "0.5759208", "0.57556605", "0.5742335", "0.56786776", "0.5672955", "0.56709135", "0.56663114", "0.5657093", "0.5652939", "0.5641408", "0.5616318", "0.56142205", "0.56019026", "0.5594024", "0.55522454", "0.5535243", "0.5532232", "0.5510403", "0.5501874", "0.54976034", "0.54905903", "0.5483039", "0.54774016", "0.5462246", "0.5446623", "0.54279846", "0.5427024", "0.54118484", "0.5401078", "0.5379748", "0.532871", "0.53272974", "0.5327184", "0.5315383", "0.531044", "0.5301457", "0.52966595", "0.52899", "0.5281101", "0.52799237", "0.5275732", "0.52520543", "0.5243308", "0.5240564", "0.522209", "0.52152026", "0.5212439", "0.5200025", "0.5196013", "0.5195793", "0.51956636", "0.5183988", "0.5174193", "0.5171468", "0.5168177", "0.5160924", "0.51605546", "0.5156022", "0.5148842", "0.5138035", "0.5133386", "0.51201576", "0.51038593", "0.5100903", "0.50920075", "0.5089427", "0.50870633", "0.5086558", "0.5077443", "0.5075733", "0.5075028", "0.5074139", "0.50713646", "0.5071186", "0.5064122", "0.50589204", "0.5054777", "0.5047863", "0.5047478", "0.504593", "0.5045454", "0.5044439", "0.5041888", "0.5034537", "0.50320035", "0.5022377", "0.5018879", "0.50176835", "0.5010481", "0.50082767", "0.5003371", "0.49999616", "0.49994376" ]
0.77758396
0
Create a datastore session, e.g. open a connection to the datastore.
DatastoreSession createSession();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Session createSession() {\n\t\tSession session = new Session();\n\t\tput(session.getId(), session);\n\t\treturn session;\n\t}", "DefaultSession createSession(String id);", "public Session createSession() {\n\t\treturn this.session;\n\t}", "@Override\n\tpublic Session createSession(SessionBasicInfo sessionBasicInfo) {\n\t\tSession session = sessionStore.createSession( sessionBasicInfo);\n\t\tif(session == null)\n\t\t\treturn null;\n\t\tsession._setSessionStore(this);\n\t\tsession.putNewStatus();\n\t\t\n\t\treturn session;\n\t}", "public Session createSession(String id)\n\t{\n\t\tif (id == null)\n\t\t\tid = generateSessionId();\n\t\tSession session = new SessionImpl(id);\n\t\t_sessions.put(id, session);\n\t\treturn session;\n\t}", "DatabaseSession openSession();", "Session createSession(Long courseId, Long studentId, Session session);", "public static Session openSession() {\n \treturn sessionFactory.openSession();\n }", "protected abstract SESSION newSessionObject() throws EX;", "public Session create() {\n // Attempt to generate a random session 5 times then fail\n final int MAX_ATTEMPTS = 5; \n \n // Loop until we have outdone our max attempts\n for(int x = 0; x < MAX_ATTEMPTS; x++) {\n String sessionKey = randomString(SESSION_KEY_SIZE); // SESSION_KEY_SIZE characters\n\n // The session key exists\n if (exists(sessionKey))\n continue;\n\n // Create the new session\n Session session = new Session(sessionKey);\n sessions.put(sessionKey, session, POLICY, EXPIRATION_TIME, EXPIRATION_UNIT); \n return session;\n }\n\n // Failed to generate new session key\n return null;\n }", "public Session createSession(String sessionId);", "synchronized public Session newSysSession() {\n\n Session session = new Session(sysSession.database,\n sysSession.getUser(), false, false,\n sessionIdCount, null, 0);\n\n session.currentSchema =\n sysSession.database.schemaManager.getDefaultSchemaHsqlName();\n\n sessionMap.put(sessionIdCount, session);\n\n sessionIdCount++;\n\n return session;\n }", "public static Session createSession(SessionFactory factory){\n Session s;\n\n if((s = (Session) _sessionRef.get()) == null) {\n s = factory.openSession();\n _sessionRef.set(s);\n }\n else{\n if(!s.isConnected())s.reconnect();\n }\n\n return s; \n }", "public static Session getSession() {\n if(sesh == null) {\n return sesh = sf.openSession();\n }\n\n return sesh;\n }", "public PersistentDataStore() {\n datastore = DatastoreServiceFactory.getDatastoreService();\n }", "public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}", "IDAOSession createNewSession();", "public static DynaStoreSession getDynaStoreSession(RequestContext req,Map mapData){\r\n\t\tDynaStoreSession dynaSession=new DynaStoreSession(req,mapData);\r\n\t\treturn dynaSession;\r\n\t}", "@Override\n public synchronized SessionImpl getConnection() {\n if (Framework.getRuntime().isShuttingDown()) {\n throw new IllegalStateException(\"Cannot open connection, runtime is shutting down\");\n }\n SessionPathResolver pathResolver = new SessionPathResolver();\n Mapper mapper = newMapper(pathResolver, true);\n SessionImpl session = newSession(model, mapper);\n pathResolver.setSession(session);\n sessions.add(session);\n sessionCount.inc();\n return session;\n }", "private Session createSession(final String protocol, final Properties additionalProperties, final boolean isGmail,\n final boolean autoTrustSsl)\n {\n Properties props = new Properties(additionalProperties);\n // necessary to work with Gmail\n if (isGmail && !props.containsKey(\"mail.imap.partialfetch\") && !props.containsKey(\"mail.imaps.partialfetch\")) {\n props.put(\"mail.imap.partialfetch\", \"false\");\n props.put(\"mail.imaps.partialfetch\", \"false\");\n }\n props.put(\"mail.store.protocol\", protocol);\n // TODO set this as an option (auto-trust certificates for SSL)\n props.put(\"mail.imap.ssl.checkserveridentity\", \"false\");\n props.put(\"mail.imaps.ssl.trust\", \"*\");\n /*\n * MailSSLSocketFactory socketFactory = new MailSSLSocketFactory(); socketFactory.setTrustAllHosts(true);\n * props.put(\"mail.imaps.ssl.socketFactory\", socketFactory);\n */\n Session session = Session.getInstance(props, null);\n session.setDebug(true);\n\n return session;\n }", "InternalSession createSession(String sessionId);", "public Session createEmptySession();", "protected Session createSession (ServerChannel channel) {\n return new Session (channel);\n }", "Session getSession();", "Session getSession();", "public Session(){\n\t\tdb = ALiteOrmBuilder.getInstance().openWritableDatabase();\n\t\texternalsCallbacks = new ArrayList<EntityListener>();\n\t}", "public static Session getSession() throws HException {\r\n\t\tSession s = (Session) threadSession.get();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (s == null) {\r\n\t\t\t\tlog.debug(\"Opening new Session for this thread.\");\r\n\t\t\t\tif (getInterceptor() != null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\ts = getSessionFactory().withOptions().interceptor(getInterceptor()).openSession();\r\n\t\t\t\t} else {\r\n\t\t\t\t\ts = getSessionFactory().openSession();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthreadSession.set(s);\r\n\t\t\t\tsetConnections(1);\r\n\t\t\t}\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tthrow new HException(ex);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public void createDataStore (){\n\t\tcloseActiveStoreData ();\n\t\tif (_usablePersistenceManager){\n\t\t\tclosePersistence ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tthis.pm = DataStoreUtil.createDataStore (getDataStoreEnvironment (), true);\n\t\t_usablePersistenceManager = true;\n\t}", "public Session createManagedClientSession() {\n\t\tthrow new UnsupportedOperationException(\"SingleSessionFactory does not support managed client Sessions\");\n\t}", "public static DefaultSessionIdentityMaker newInstance() { return new DefaultSessionIdentityMaker(); }", "public static Session getSession() {\n\n if (serverRunning.get() && !session.isClosed()) {\n return session;\n } else {\n if (session.isClosed()) {\n throw new IllegalStateException(\"Session is closed\");\n } else {\n throw new IllegalStateException(\"Cluster not running\");\n }\n }\n }", "public Session openSession() {\r\n //Interceptor interceptor= new Interceptor();\r\n //Session regresar = sessionFactory.withOptions().interceptor(interceptor).openSession();\r\n Session regresar = sessionFactory.openSession();\r\n //interceptor.setSession(regresar);\r\n return regresar;\r\n }", "com.google.spanner.v1.Session getSessionTemplate();", "protected Session newSession(URI serverUri) throws QueryException {\n try {\n // The factory won't be in the cache, as a corresponding session would have already been created.\n SessionFactory sessionFactory = SessionFactoryFinder.newSessionFactory(serverUri, true);\n factoryCache.add(sessionFactory);\n // now create the session\n Session session = sessionFactory.newSession();\n sessionCache.put(serverUri, session);\n return session;\n } catch (NonRemoteSessionException nrse) {\n throw new QueryException(\"State Error: non-local URI was mapped to a local session\", nrse);\n } catch (SessionFactoryFinderException sffe) {\n throw new QueryException(\"Unable to get a session to the server\", sffe);\n }\n }", "private Session session(Properties props) {\n return Session.getInstance(props,\n new Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"happinessbarometer2014\");\n }\n }\n );\n }", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "public SessionDao() {\n super(Session.SESSION, com.scratch.database.mysql.jv.tables.pojos.Session.class);\n }", "protected Session buildOrObtainSession() {\r\n\t\tLOGGER.fine(\"Opening a new Session\");\r\n\t\tSession s = super.buildOrObtainSession();\r\n\r\n\t\tLOGGER.fine(\"Disabling automatic flushing of the Session\");\r\n\t\ts.setFlushMode(FlushMode.MANUAL);\r\n\r\n\t\treturn s;\r\n\t}", "@Inject\n private DataStore() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure()\n .build();\n try {\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n } catch (Exception e) {\n LOGGER.error(\"Fehler beim initialisieren der Session\", e);\n StandardServiceRegistryBuilder.destroy(registry);\n }\n \n }", "public Session getSession() {\n if (this.session == null) {\n this.logger.error(\"Sessão não iniciada.\");\n throw new IllegalStateException(\"A sessão não foi criada antes do uso do DAO\");\n }\n return this.session;\n }", "public Session getSession();", "public void createSession(int uid);", "private static void sessionFromCurrentSession(final Context context) {\n\n \t// The session itself\n final Session newSession = Session.getInstance();\n \n // The service\n Service newService = new Service();\n newSession.setService(newService);\n\n // The shared preferences\n Preferences preferences = new Preferences(context);\n newSession.setPreferences(preferences);\n\n // The database\n RestaurantDBAdapter restaurantDBAdapter = new RestaurantDBAdapter(context);\n newSession.setRestaurantDBAdapter(restaurantDBAdapter);\n\n // The hashmap of all the restaurants\n HashMap<String, Restaurant> restaurants = restaurantDBAdapter.getAllRestaurants();\n newSession.setRestaurants(restaurants);\n\n //Save the current session\n Session.setCurrentSession(newSession);\n Session.currentSession.saveAsCurrentSession(context);\n }", "@Override\r\n\tpublic HttpSession getSession(boolean create)\r\n\t{\r\n\t\treturn getSession();\r\n\t}", "public void startSession(){\n sessionID = client.startSession();\n \n //Get system temporary files path\n String temporaryPath = System.getProperty(\"java.io.tmpdir\").replaceAll(\"\\\\\\\\\",\"/\");\n \n //If temporary file path does not end with /, add it\n if(!temporaryPath.endsWith(\"/\"))\n temporaryPath = temporaryPath + \"/\";\n \n //Create session directory\n sessionDirectory = new File(temporaryPath+sessionID);\n sessionDirectory.mkdir();\n \n }", "private Session getSession (String sessionID) {\n\t\tSession session;\n\t\tif (get(sessionID) != null) {\n\t\t\tsession = get(sessionID);\n\t\t} else {\n\t\t\tsession = new Session();\n\t\t\tput(session.getId(), session);\n\t\t}\n\t\treturn session;\n\t}", "DefaultSession getSession(String id);", "public interface Datastore<DatastoreSession extends com.buschmais.cdo.spi.datastore.DatastoreSession, EntityMetadata extends DatastoreEntityMetadata<Discriminator>, Discriminator> extends AutoCloseable {\n\n /**\n * Initialize the datastore.\n *\n * @param registeredMetadata A collection of all registerted types.\n */\n void init(Collection<TypeMetadata<EntityMetadata>> registeredMetadata);\n\n /**\n * Return the datastore specific metadata factory.\n *\n * @return The metadata factory.\n */\n DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();\n\n /**\n * Create a datastore session, e.g. open a connection to the datastore.\n *\n * @return The session.\n */\n DatastoreSession createSession();\n\n /**\n * Close the datastore.\n */\n void close();\n\n}", "public Session getSession(boolean create) throws LeaseException {\n return entity.getSession(create);\n }", "InternalSession createEmptySession();", "SessionManagerImpl() {\n }", "public static DynaStoreSession getDynaStoreSession(RequestContext req,String sessionId,Map mapData){\r\n\t\tDynaStoreSession dynaSession=new DynaStoreSession(req,sessionId,mapData);\r\n\t\treturn dynaSession;\r\n\t}", "private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }", "public Session openSession() {\r\n\t\treturn sessionFactory.openSession();\r\n\t}", "private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}", "private Session createMailingSession() {\n final String username = \"EMAIL\";\r\n final String password = \"PASSWORD\";\r\n Properties prop = new Properties();\r\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n prop.put(\"mail.smtp.port\", \"587\");\r\n prop.put(\"mail.smtp.auth\", \"true\");\r\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\r\n return Session.getInstance(prop,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(username, password);\r\n }\r\n });\r\n }", "public Session getSession() throws DAOException {\n // Injection fails for this non-managed class.\n DAOException ex = null;\n String pu = PERSISTENCE_UNIT;\n if(session == null || !em.isOpen()) {\n session = null;\n try {\n em = (EntityManager)new InitialContext().lookup(pu);\n } catch(Exception loopEx) {\n ex = new DAOException(loopEx);\n logger.error(\"Persistence unit JNDI name \" + pu + \" failed.\");\n }\n }\n\n getHibernateSession();\n if(ex != null) {\n ex.printStackTrace();\n }\n return session;\n }", "static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }", "private Session openSession() {\n return sessionFactory.getCurrentSession();\n }", "public Session getSession(){\n\t\treturn sessionFactory.openSession();\n\t}", "@Override\n public Session getSession() throws HibernateException {\n Session session = threadLocal.get();\n\n if (session == null || !session.isOpen()) {\n session = (sessionFactory != null) ? sessionFactory.openSession()\n : null;\n threadLocal.set(session);\n }\n return session;\n }", "public static CourseSession createSession(String classNumber) {\n CourseSession session = new CourseSession();\n session.setClassNumber(classNumber);\n CourseInstructor instructor = new CourseInstructor();\n instructor.setId(\"1\");\n instructor.setFirstName(\"Steve\");\n instructor.setLastName(\"Jobs\");\n session.setInstructor(instructor);\n return session;\n }", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "public Session getSafeSession()\n {\n beginSession(false);\n return session;\n }", "public static synchronized Datastore getDataStore() {\n\n if (datastore == null) {\n synchronized (ConnectionHelper.class) {\n \t/*\n \t * Check again to guarantee an unique datastore instance is created, if any thread was preempted.\n \t */\n if (datastore == null) {\n \tdatastore = getMorphia().createDatastore(new MongoClient(), database);\n }\n }\n }\n\n return datastore;\n }", "public Session getOrCreate(String sessionKey, boolean forceCreateNew) {\n // Create new session if does not exists or replace\n if (!this.exists(sessionKey) || forceCreateNew) {\n // Create a new session with a new key if its invalid\n if (!validateKey(sessionKey))\n return create();\n\n Session session = new Session(sessionKey);\n sessions.put(sessionKey, session, POLICY, EXPIRATION_TIME, EXPIRATION_UNIT); \n return session;\n }\n\n // Return the session\n return sessions.get(sessionKey);\n }", "public static Session getSession() {\n return session;\n }", "private DefaultSession createDefaultSession(CommandHandler commandHandler) {\n stubSocket = createTestSocket(COMMAND.getName());\n commandHandlerMap.put(commandToRegister, commandHandler);\n initializeConnectCommandHandler();\n return new DefaultSession(stubSocket, commandHandlerMap);\n }", "@Override\n\tpublic Session getSession(String appKey,String contextpath, String sessionid) {\n\t\tSession session = this.sessionStore.getSession(appKey, contextpath, sessionid);\n\t\tif(session != null)\n\t\t\tsession._setSessionStore(this);\n\t\treturn session;\n\t}", "public static Session getSessionWithKeyspace() {\n\n if (serverRunning.get() && keyspaceCreated.get() && !sessionWithKeyspace.isClosed()) {\n return sessionWithKeyspace;\n } else {\n if (sessionWithKeyspace.isClosed()) {\n throw new IllegalStateException(\"Session is closed\");\n } else {\n throw new IllegalStateException(\"Cluster not running or keyspace has not been created\");\n }\n }\n }", "@Override\n public CreateSessionResponse createSession()\n throws EwalletException {\n return null;\n }", "Observable<Session> createSession(RelyingParty relyingParty, Map<String, Object> userInfo, Set<String> scopes, AcrValues acrValues, String redirectUrl);", "public EhcacheSessionDataStorage() {\n this(SESSION_NAME);\n }", "public Session openSession() {\r\n return sessionFactory.openSession();\r\n }", "Object getNativeSession();", "public static SessionManager get(Context context) {\n \tif (self == null) {\n \t\tself = new SessionManager(context);\n \t}\n \treturn self;\n }", "public ShoppingSessionClient() {\n\t\t/* TODO: instantiate the proxy using the EJBProxyFactory (see the other client classes) */\n\t}", "Session begin();", "private Session establishSession(String sessionid) throws AxisFault {\n Session s = sessionManager.getSession(sessionid);\n\n if (s == null) {\n throw new AxisFault(\"Session \\\"\" + sessionid + \"\\\" is not active\");\n }\n s.setActive();\n sessionManager.setCurrentSession(s);\n return s;\n }", "public Session getSession() {\n\t\tSession session = this.session;\r\n\t\tif (session == null) {\r\n\t\t\t// 2. altrimenti genera una nuova sessione utilizzando la factory (e.g. Spring MVC)\r\n\t\t\tsession = this.sessionFactory.getCurrentSession();\r\n\t\t}\r\n\t\treturn session;\r\n\t}", "public void createSession(final String targetName) throws Exception;", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "private Store openStore() throws MessagingException {\n\t\tStore store = getStore();\n\t\tstore.connect(host, port, name, password);\n\t\treturn store;\n\t}", "public Session openOrRetrieveSessionForThread() {\n Session session = THREADED_SESSION.get();\n if (session == null) {\n session = getSessionFactory().openSession();\n THREADED_SESSION.set(session);\n }\n return session;\n }", "protected final void openSession() {\n openSessionForRead(null, null);\n }", "public interface Database\r\n{\r\n\t/**\r\n\t * Opens a new database session.\r\n\t *\r\n\t * @return a database session\r\n\t */\r\n\tDatabaseSession openSession();\r\n}", "@Override\n @SessionRequired\n public UserSession newSession(final User user, final boolean isDeviceTrusted) {\n final String seriesId = crypto.nextSessionId();\n final UserSession session = user.getEntityFactory().newByKey(UserSession.class, user, seriesHash(seriesId));\n session.setTrusted(isDeviceTrusted);\n final Date expiryTime = calcExpiryTime(isDeviceTrusted);\n session.setExpiryTime(expiryTime);\n session.setLastAccess(constants.now().toDate());\n\n // authenticator needs to be computed and assigned after the session has been persisted\n // assign authenticator in way not to disturb the entity meta-state\n final UserSession saved = save(session);\n saved.beginInitialising();\n saved.setAuthenticator(mkAuthenticator(saved.getUser(), seriesId /* un-hashed */, saved.getExpiryTime()));\n saved.endInitialising();\n\n // need to cache the established session in associated with the generated authenticator\n cache.put(saved.getAuthenticator().get().toString(), saved);\n\n return saved;\n }", "@Override\n public Single<SessionEntity> createUserSession() {\n return this.userRepository.getUser().firstOrError().flatMap(userEntity -> {\n if (!userEntity.isGuestUser()) {\n if (userEntity.getSessionId().isEmpty()) {\n return newSession(userEntity);\n }\n else if (userEntity.isHasOpenSession()) {\n return Single.just(new SessionEntity(userEntity.isHasOpenSession(), userEntity.getSessionId()));\n }\n }\n return Single.just(new SessionEntity(false, \"\"));\n });\n }", "protected MavenSession createSession( MavenExecutionRequest request, MavenProject project )\n {\n return new MavenSession( project, container, pluginManager, request.getSettings(),\n request.getLocalRepository(), request.getEventDispatcher(), request.getLog(),\n request.getGoals() );\n }", "@Override\n\t\tpublic HttpSession getSession(boolean create) {\n\t\t\treturn null;\n\t\t}", "protected final Session getSession() {\n return sessionTracker.getSession();\n }", "private Store connectSessionStore(Session emailSession) throws MessagingException {\n\t\tStore store = null;\n\t\tswitch (getProperty(PROTOCOL_RECEIVE)) {\n\t\tcase POP3:\n\t\t\t// create the POP3 store object and connect with the pop server\n\t\t\tstore = emailSession.getStore(POP3);\n\t\t\t// Connect to the store\n\t\t\tstore.connect(getProperty(\"POP3_HOST\"), getProperty(\"username\"), getPassword());\n\t\t\tbreak;\n\t\tcase IMAP:\n\t\t\t// create the IMAP store object and connect with the imap server\n\t\t\tstore = emailSession.getStore(IMAP);\n\t\t\t// Connect to the store\n\t\t\tstore.connect(getProperty(\"IMAP4_HOST\"), getProperty(\"username\"), getPassword());\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn null;\t\n\t\t}\n\t\treturn store;\n\t}", "SessionManager get();", "protected final Session getSession() {\n\t\treturn m_sess;\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "private Session getSession() throws RepositoryException {\n return getRepository().loginAdministrative(null);\n }", "protected DatabaseSession getDbSession() {\n if(dbSession == null) {\n dbSession = getServerSession();\n }\n return dbSession;\n }", "public AppEngineDataStoreFactory build() {\n return new AppEngineDataStoreFactory(this);\n }", "public static DynaStoreSession getDynaStoreSession(RequestContext req,String sessionId){\r\n\t\tDynaStoreSession dynaSession=new DynaStoreSession(req,sessionId);\r\n\t\treturn dynaSession;\r\n\t}", "public interface SessionFactory {\n /**\n * Retrieves a new session. If the session isn't closed, second call from the same thread would\n * result in retrieving the same session\n *\n * @return\n */\n Session getSession();\n\n /**\n * Closes the current session associated with this transaction if present\n */\n void closeSession();\n\n /**\n * Returns true if we have connected the factory to redis\n *\n * @return\n */\n boolean isConnected();\n\n /**\n * Closes the session factory which disposes of the underlying redis pool\n */\n void close();\n}" ]
[ "0.7397343", "0.6865061", "0.66215336", "0.65159553", "0.6427248", "0.6325215", "0.6324108", "0.62660044", "0.6245066", "0.61020184", "0.6101078", "0.6093456", "0.6078773", "0.6058597", "0.60312515", "0.6016516", "0.59995836", "0.5973757", "0.5925465", "0.5910629", "0.58841735", "0.588191", "0.5872074", "0.58711416", "0.58711416", "0.585167", "0.5821095", "0.58104837", "0.580123", "0.5794625", "0.57594717", "0.57407254", "0.57237744", "0.57170856", "0.5712755", "0.5692946", "0.56869626", "0.5684368", "0.5656313", "0.56542367", "0.5654187", "0.56476027", "0.56293076", "0.56293046", "0.5624914", "0.56232125", "0.56215227", "0.5612708", "0.56120956", "0.5604952", "0.5594739", "0.5591946", "0.5590036", "0.55617446", "0.5557541", "0.5554983", "0.554105", "0.55333495", "0.5527258", "0.5517825", "0.55113673", "0.54927695", "0.5481969", "0.5474473", "0.5468791", "0.54665715", "0.5455483", "0.5449041", "0.54451823", "0.5442414", "0.54355174", "0.54234123", "0.54224324", "0.5421528", "0.5418432", "0.54133004", "0.53998953", "0.5391527", "0.5389565", "0.5382235", "0.53713757", "0.53661436", "0.5363795", "0.5362057", "0.5359096", "0.53579694", "0.5354097", "0.5347347", "0.5345259", "0.5329678", "0.5329653", "0.532868", "0.53201205", "0.5311694", "0.5303215", "0.53024477", "0.5299395", "0.5285902", "0.5284825", "0.527762" ]
0.85042787
0
TODO Autogenerated method stub
public void applyBrake() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void applyHorn() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void applyGear() { }
{ "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
Fecha sistema es erroneo esta adelantado 3 horas
public Date getFechaSistema() { fechaSistema = new Date(); Calendar calendar = Calendar.getInstance(); calendar.setTime(fechaSistema); calendar.add(Calendar.HOUR, (-3)); fechaSistema = calendar.getTime(); return fechaSistema; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkForValidDate(String dateTime) {\n\n int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31};\n\n Timestamp now = new Timestamp(new java.util.Date().getTime());\n Timestamp date = Timestamp.valueOf(startDateTime);\n if (date.after(now)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Date / Time later than today's date : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (date.after(now))\n\n StringTokenizer t = new StringTokenizer(dateTime, \"- :.\");\n int year = Integer.parseInt(t.nextToken());\n int month = Integer.parseInt(t.nextToken());\n int day = Integer.parseInt(t.nextToken());\n int hour = Integer.parseInt(t.nextToken());\n int minute = Integer.parseInt(t.nextToken());\n boolean isLeapYear = ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0));\n if (isLeapYear) daysOfMonth[1] += 1;\n if (year < 1850) {\n outputError(lineCount + \" - Fatal - \" +\n \"Year before 1850 : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (year < 1850)\n\n if (month > 12) {\n outputError(lineCount + \" - Fatal - \" +\n \"Month invalid ( > 12) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (month > 12)\n\n if (day > daysOfMonth[month-1]) {\n outputError(lineCount + \" - Fatal - \" +\n \"Day invalid ( > no of days in month) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (day > (daysOfMonth[month-1])\n\n if (hour > 23) {\n outputError(lineCount + \" - Fatal - \" +\n \"Hour invalid ( > 23) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (hour > 23)\n\n if (minute > 59) {\n outputError(lineCount + \" - Fatal - \" +\n \"Minute invalid ( > 59) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (minute > 59)\n\n }", "public Relogio()\n\t{\n \n\t\thora = 0;\n\t\tminuto = 0;\n\t\tsegundo = 0;\n //forma.format(hora);\n if((hora<0 || hora>23) || (minuto<0 || minuto>59) || (segundo<0 || segundo>59)){\n System.out.println(\"Valor de tempo invalido!\");\n }\n\t}", "public static void printReadFileDateError() {\n System.out.println(Message.READ_FILE_DATE_ERROR);\n }", "public static void printEmptyDeadlineDateError() {\n botSpeak(Message.EMPTY_DEADLINE_DATE_ERROR);\n }", "public static void printDateTimeErr() {\n printLine();\n System.out.println(\" Oops! Please enter your date in the yyyy-mm-dd format\\n\");\n printLine();\n }", "boolean hasErrorTime();", "public int actualizarTiempo(int empresa_id,int idtramite, int usuario_id) throws ParseException {\r\n\t\tint update = 0;\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\tString timeNow = formateador.format(date);\r\n\t\tSimpleDateFormat formateador2 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString fecha = formateador2.format(date);\r\n\t\tSimpleDateFormat formateador3 = new SimpleDateFormat(\"hh:mm:ss\");\r\n\t\tString hora = formateador3.format(date);\r\n\t\tSystem.out.println(timeNow +\" \"+ fecha+\" \"+hora );\r\n\t\t\r\n\t\t List<Map<String, Object>> rows = listatks(empresa_id, idtramite);\t\r\n\t\t System.out.println(rows);\r\n\t\t if(rows.size() > 0 ) {\r\n\t\t\t String timeCreate = rows.get(0).get(\"TIMECREATE_HEAD\").toString();\r\n\t\t\t System.out.println(\" timeCreate \" +timeCreate+\" timeNow: \"+ timeNow );\r\n\t\t\t Date fechaInicio = formateador.parse(timeCreate); // Date\r\n\t\t\t Date fechaFinalizo = formateador.parse(timeNow); //Date\r\n\t\t\t long horasFechas =(long)((fechaInicio.getTime()- fechaFinalizo.getTime())/3600000);\r\n\t\t\t System.out.println(\" horasFechas \"+ horasFechas);\r\n\t\t\t long diferenciaMils = fechaFinalizo.getTime() - fechaInicio.getTime();\r\n\t\t\t //obtenemos los segundos\r\n\t\t\t long segundos = diferenciaMils / 1000;\t\t\t \r\n\t\t\t //obtenemos las horas\r\n\t\t\t long horas = segundos / 3600;\t\t\t \r\n\t\t\t //restamos las horas para continuar con minutos\r\n\t\t\t segundos -= horas*3600;\t\t\t \r\n\t\t\t //igual que el paso anterior\r\n\t\t\t long minutos = segundos /60;\r\n\t\t\t segundos -= minutos*60;\t\t\t \r\n\t\t\t System.out.println(\" horas \"+ horas +\" min\"+ minutos+ \" seg \"+ segundos );\r\n\t\t\t double tiempoTotal = Double.parseDouble(horas+\".\"+minutos);\r\n\t\t\t // actualizar cabecera \r\n\t\t\t updateHeaderOut( idtramite, fecha, hora, tiempoTotal, usuario_id);\r\n\t\t\t for (Map<?, ?> row : rows) {\r\n\t\t\t\t Map<String, Object> mapa = new HashMap<String, Object>();\r\n\t\t\t\tint idd = Integer.parseInt(row.get(\"IDD\").toString());\r\n\t\t\t\tint idtramite_d = Integer.parseInt(row.get(\"IDTRAMITE\").toString());\r\n\t\t\t\tint cantidaMaletas = Integer.parseInt(row.get(\"CANTIDAD\").toString());\r\n\t\t\t\tdouble precio = Double.parseDouble(row.get(\"PRECIO\").toString());\t\t\t\t\r\n\t\t\t\tdouble subtotal = subtotal(precio, tiempoTotal, cantidaMaletas);\r\n\t\t\t\tString tipoDescuento = \"\";\r\n\t\t\t\tdouble porcDescuento = 0;\r\n\t\t\t\tdouble descuento = descuento(subtotal, porcDescuento);\r\n\t\t\t\tdouble precioNeto = precioNeto(subtotal, descuento);\r\n\t\t\t\tdouble iva = 0;\r\n\t\t\t\tdouble montoIVA = montoIVA(precioNeto, iva);\r\n\t\t\t\tdouble precioFinal = precioFinal(precioNeto, montoIVA);\r\n\t\t\t\t//actualizar detalle\r\n\t\t\t\tupdateBodyOut( idd, idtramite_d, tiempoTotal , subtotal, tipoDescuento, porcDescuento, descuento, precioNeto, iva, montoIVA, precioFinal );\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\treturn update;\r\n\t}", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "public TemperaturaErradaExcepcion(){\r\n super(\"mensaxe por defecto:temperatura ten que ser naior que 80ºC\");//mensaxe por defecto\r\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "private void exemTimeOver() {\n\t\tuploadBtn.setVisible(false);\n\t\tapproveImage.setVisible(false);\n\t\tuploadExamTxt.setText(\"Exam time is over, you can not upload files anymore\");\n\t\ttimer.cancel();\n\t\t// sign the student as someone who start the exam but did not submitted\n\t\tflag1 = false;\n\t\tsummbitBlank();\n\t}", "private void affichageDateFin() {\r\n\t\tif (dateFinComptage!=null){\r\n\t\t\tSystem.out.println(\"Le comptage est clos depuis le \"+ DateUtils.format(dateFinComptage));\r\n\t\t\tif (nbElements==0){\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos mais n'a pas d'éléments. Le comptage est en anomalie.\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos et est OK.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Le compte est actif.\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void display() {\r\n\t\tSystem.out.println(date + \" | Your connection has expired, please re-login.\");\r\n\t}", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "private void validateTime()\n {\n List<Object> collisions = validateCollisions();\n\n for (Object object : collisions)\n {\n if (DietTreatmentBO.class.isAssignableFrom(object.getClass()))\n {\n _errors.add(String\n .format(\"Die Diätbehandlung '%s' überschneidet sich mit der Diätbehandlung '%s'\",\n _dietTreatment.getDisplayText(),\n ((DietTreatmentBO) object).getName()));\n }\n }\n }", "public static boolean validarFecha(String fecha)\n\t{\n\t\tCalendar calendario = Calendar.getInstance();\n\t \tint hora,minutos,segundos,dia,mes,ano;\n\t \thora =calendario.get(Calendar.HOUR_OF_DAY);\n\t \tminutos = calendario.get(Calendar.MINUTE);\n\t \tsegundos = calendario.get(Calendar.SECOND);\t \t\n\t \t\n\t \tdia = calendario.get(Calendar.DAY_OF_MONTH);\n\t \tmes = calendario.get(Calendar.MONTH);\n\t \tmes=mes+1;\n\t\tano = calendario.get(Calendar.YEAR);\t\t\n\t\tString diaFecha;\n\t\tString mesFecha;\n\t\tString anoFecha = null;\n\t\t\n\t\tint pos = 0;\n\t\tpos = fecha.indexOf('/');\n\t\tSystem.out.println(\"la posicion del primer slash es: \"+pos);\n\t\tdiaFecha = fecha.substring(0,pos);\n\t\tString resto = fecha.substring(pos+1,fecha.length());\n\t\tint pos2 = 0;\n\t\tpos2 = resto.indexOf('/');\n\t\tmesFecha = resto.substring(0,pos2);\n\t\tString resto2 = resto.substring(pos2+1,resto.length());//resto 3 es el ano\t\t\n\t\tSystem.out.println(\"la fecha es:\"+diaFecha+\",\"+mesFecha+\",\"+resto2);\t\t\n\t\tint diaInt,mesInt,anoInt;\n\t\tdiaInt=Integer.parseInt(diaFecha);\n\t\tmesInt=Integer.parseInt(mesFecha);\n\t\tanoInt=Integer.parseInt(resto2);\t\t\n\t\tSystem.out.println(\"fechaSistema:\"+dia+\"/\"+mes+\"/\"+ano);\n\t\tSystem.out.println(\"fechaEntrada:\"+diaInt+\"/\"+mesInt+\"/\"+anoInt);\n\t\tif ((anoInt<ano))\n\t\t{\n\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (mesInt<mes)\n\t\t\t{\t\t\t\t\n\t\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\t\treturn true;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (diaInt < dia)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n \t\n\t}", "void timeCheck() throws Exception{\n\t\tif(arrival<time_check)\n\t\tthrow new Exception(\"Arrival time should be non-descending\");\n\t}", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "private static void FINtotalRondasAlcanzadas(Exception e) {\r\n\t\t// System.out.println(\"¡FIN DE JUEGO!\\n\" + e.getMessage());\r\n\t\tSystem.out.println(\"Fin de juego por \" + e.getMessage());\r\n\t}", "public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }", "public TimeLapseException(Mensaje men){\r\n\t\tthis();\r\n\t\taddMensaje(men);\r\n\t}", "private void inicializarFechaHora(){\n Calendar c = Calendar.getInstance();\r\n year1 = c.get(Calendar.YEAR);\r\n month1 = (c.get(Calendar.MONTH)+1);\r\n String mes1 = month1 < 10 ? \"0\"+month1 : \"\" +month1;\r\n String dia1 = \"01\";\r\n\r\n String date1 = \"\"+dia1+\"/\"+mes1+\"/\"+year1;\r\n txt_fecha_desde.setText(date1);\r\n\r\n\r\n day2 = c.getActualMaximum(Calendar.DAY_OF_MONTH) ;\r\n String date2 = \"\"+day2+\"/\"+mes1+\"/\"+ year1;\r\n\r\n Log.e(TAG,\"date2: \" + date2 );\r\n txt_fecha_hasta.setText(date2);\r\n\r\n }", "public static int checkPreparationTime() {\n\t\tint time = 0;\n\n\t\tfor (Integer i : order) {\n\t\t\tint currentOrderTime = Menu.getDishPreparationTime(i);\n\n\t\t\ttime = time + currentOrderTime;\n\t\t}\n\t\treturn time;\n\t}", "public static void printEmptyEventDateError() {\n botSpeak(Message.EMPTY_EVENT_DATE_ERROR);\n }", "public boolean displayMessage()\n {\n boolean show = false;\n Calendar cal2 = null;\n Calendar cal = null;\n\n int h = this.getIntHora();\n cal = Calendar.getInstance();\n cal.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[h-1]);\n cal.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n cal.add(Calendar.MINUTE, cfg.activaMissatges);\n\n cal2 = (Calendar) cal.clone();\n cal2.add(Calendar.SECOND, 4); //show during 4 sec\n\n //System.out.println(\"ara es hora\" + h);\n //System.out.println(\"comparing dates \" + cal.getTime() + \"; \" + cal2.getTime() + \"; \" + m_cal.getTime());\n\n if(cal.compareTo(m_cal)<=0 && m_cal.compareTo(cal2)<=0 )\n {\n show = true;\n }\n\n return show;\n }", "public void checkErrorMsgForEventCreationWithPastStartDate(EcpCoreLSProgram ecpCoreLSProgram)\n throws ParseException;", "public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }", "private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}", "public static void main(String[] args) {\n LocalDateTime termino = LocalDateTime.now();\n if (termino.getHour() >= 17) {\n if(termino.getMinute() >= 31){\n System.out.println(\"Ar-Condicionado Ligado + produto.getSala()\");\n }\n }\n if(termino.getDayOfWeek().getValue() != 7){\n //depois de consultar no banco e dar o alerta, mudar o atributo leituraAlerta no banco para true\n \n }\n \n }", "public static void main(String[] args) throws Exception {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat simpleformat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss Z\");\n System.out.println(\"Today's date and time = \"+simpleformat.format(cal.getTime()));\n // displaying date\n simpleformat = new SimpleDateFormat(\"dd/MMMM/yyyy\");\n String str = simpleformat.format(new Date());\n System.out.println(\"Current Date = \"+str);\n // current time\n simpleformat = new SimpleDateFormat(\"HH:mm:ss\");\n String strTime = simpleformat.format(new Date());\n System.out.println(\"Current Time = \"+strTime);\n // displaying hour in HH format\n simpleformat = new SimpleDateFormat(\"HH\");\n String strHour = simpleformat.format(new Date());\n System.out.println(\"Hour in HH format = \"+strHour);\n\n\n\n //formato ideal\n simpleformat = new SimpleDateFormat(\"dd/MM/yyyy - HH:mm:ss\");\n String strTimeDay = simpleformat.format(new Date());\n System.out.println(\"Dia e Hora = \" + strTimeDay);\n\n }", "private String msg3() {\n return(\"[\" + (System.currentTimeMillis() - system_start_time) + \"] \");\n }", "private void PrintTimeToET() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tjetztStdTxt.setText(Integer.toString(c.get(Calendar.HOUR_OF_DAY)));\n\t\tjetztMinTxt.setText(Integer.toString(c.get(Calendar.MINUTE)));\n\n\t}", "@Test(timeout = 4000)\n public void test318() throws Throwable {\n Form form0 = new Form(\"w\");\n // Undeclared exception!\n try { \n form0.dateFormat(\"? fOYd~2\", form0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Failed to initialize SimpleDateFormat with pattern '? fOYd~2'.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "com.google.protobuf.Timestamp getErrorTime();", "private String errors() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(impossibleLapTime());\n\t\tsb.append(multipleStartTimes());\n\t\treturn sb.toString();\n\t}", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "public static void findError() {\n\n for ( int year = 1900; year < 2050; year++ ) {\n List<ChthibiBirth> births = locateBirth.findBirth( year );\n\n // traitement list\n int compt = 0, found = 0, miss = 0;\n String texte = null;\n\n if ( births.isEmpty() == false ) {\n for ( int i = 0; i < births.size(); i++ ) {\n int k = i + 1;\n\n if ( k < births.size() ) {\n compt = births.get( k ).getNumber() - births.get( i ).getNumber();\n if ( compt > 1 ) {\n found++;\n texte = \"Erreur données manquantes entre : number => \" + births.get( i ).getNumber()\n + \" et number => \"\n + births.get( k ).getNumber() + \" Année : \"\n + year;\n texte += \"\\n\";\n miss += compt;\n }\n }\n }\n }\n // memorisation\n if ( found > 0 ) {\n found = 0;\n saveInFile( texte, year, miss );\n }\n }\n }", "public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }", "private void showTimeOutWarning(){\n\t\t clearTimeOutWarning();\n\t\t warningBannerWidget = new HTML(\"Warning! Your session is about to expire at \" + formattedTime +\n\t\t\t\t \". Please click on the screen or press any key to continue. Unsaved changes will not be retained if the session is allowed to time out.\");\n\t\t RootPanel.get(\"timeOutWarning\").add(buildTimeOutWarningPanel());\n\t\t RootPanel.get(\"timeOutWarning\").getElement().setAttribute(\"role\", \"alert\");\n\t\t RootPanel.get(\"timeOutWarning\").getElement().focus();\n\t\t RootPanel.get(\"timeOutWarning\").getElement().setTabIndex(0);\n\t}", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }", "private void gettime(){\n\t\t String depart_time = view.shpmTable.getSelection()[0].getAttribute(\"DEPART_TIME\");\n\t\t String unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n\t\t if(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t}else {\n\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t}\n\t\t /*Util.db_async.getSingleRecord(\"MAX(DEPART_TIME)\", \"V_SHIPMENT_HEADER\", \" WHERE LOAD_NO='\"+load_no+\"'\", null, new AsyncCallback<HashMap<String,String>>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess(HashMap<String, String> result) {\n\t\t\t\tString depart_time = result.get(\"MAX(DEPART_TIME)\");\n\t\t\t\tString unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n//\t\t\t\tboolean x =DateUtil.isAfter(unload_time, depart_time);\n\t\t\t\tif(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t\t}else {\n\t\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});*/\n\t}", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }", "private boolean validaFechasMAX(int indice, String strTipSol,boolean isSol){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Connection conLoc;\n String strFechaSol=\"\";\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if (conLoc!=null){\n stmLoc=conLoc.createStatement();\n if(isSol){\n strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n else{\n strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n strSql=\"SELECT '\"+strFechaSol+\"' - CURRENT_DATE as dias \";\n System.out.println(\"dias... \"+ strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n rstLoc.getInt(\"dias\");\n if(strTipSol.equals(\"R\")){\n if(rstLoc.getInt(\"dias\")<=intDiasMaximoReserva){\n blnRes=true;\n }\n }\n else{\n if(rstLoc.getInt(\"dias\")<=intDiasMaximoFacturaAutomatica){ /* JM: Solicitado por LSC y WCampoverde 2019-Jul-16 */\n blnRes=true;\n }\n }\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n conLoc.close();\n conLoc=null; \n }\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false; \n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "private static String time() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH-mm-ss \");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "@Override\n\tpublic void contextDestroyed(ServletContextEvent evento_destruccion) {\n\t\tDate hora_fin = new Date();\n\t\tDate hora_creacion = (Date) evento_destruccion.getServletContext().getAttribute(\"hora_creacion\");\n\t\tMap<String, String> resultado = Resta_Fechas.getDiferencia(hora_creacion, hora_fin);\n\t\tregistro(\"***** LA APLICACION DURO FUNCIONANDO \" + resultado.get(\"horas\") + \" HORAS \" + resultado.get(\"minutos\")\n\t\t\t\t+ \" MINUTOS \" + resultado.get(\"segundos\") + \" SEGUNDOS ******\");\n\t\tint numero_sesiones = ((Integer) (evento_destruccion.getServletContext().getAttribute(\"contador_sesiones\"))).intValue();\n\t\tint numero_peticiones = ((Integer) evento_destruccion.getServletContext().getAttribute(\"contador_peticiones\")).intValue();\n\t\tint numero_atributos_aplicacion = ((Integer) evento_destruccion.getServletContext().getAttribute(\"contador_atributos_aplicacion\")).intValue();\n\t\tint numero_atributos_sesiones = ((Integer) evento_destruccion.getServletContext().getAttribute(\"contadorgeneral_atributos_sesion\")).intValue();\n\t\tint numero_atributos_peticiones = ((Integer) evento_destruccion.getServletContext().getAttribute(\"contadorgeneral_atributos_peticion\")).intValue();\n\t\tregistro(\"***** estadistica de la aplicacion *****\");\n\t\tregistro(\"***** Se crearon \" + numero_sesiones + \" sesiones.\");\n\t\tregistro(\"***** Se crearon \" + numero_peticiones + \" peticiones.\");\n\t\tregistro(\"***** Se usaron \" + numero_atributos_aplicacion + \" atributos en la aplicacion.\");\n\t\tregistro(\"***** Se usaron \" + numero_atributos_sesiones + \" atributos en las sesiones.\");\n\t\tregistro(\"***** Se usaron \" + numero_atributos_peticiones + \" atributos en las peticiones.\");\n\t\tregistro(\"----->>>>> DESTRUIDO EL CONTEXTO DE APLICACION (SERVLETCONTEXT) FIN PROGRAMA <<<<<<<-----\");\n\t}", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "public void TemperaturaDentroDoPermitido() {\n\t\tSystem.out.println(\"Temperatura: \" + temperaturaAtual);\n\t\t// verifica se a temperatua esta abaixo do permitido\n\t\tif (temperaturaAtual < temperaturaMinimaPermitida) {\n\t\t\tSystem.out.println(\"Temperatura abaixo do permitido, Alerta!!\");\n\t\t}\n\t\t// verifica se a temperatura esta acima do permitido\n\t\telse if (temperaturaAtual > temperaturaMaximaPermitida) {\n\t\t\tSystem.out.println(\"Temperatura acima do permitido, Alerta!!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Temperatura OK!!\");\n\t\t}\n\t}", "public static void mensagemErroCadastrar() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro ao cadastrar. Revise os dados inseridos.\", \"Erro\", JOptionPane.ERROR_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Erro32.png\"))));\n\t}", "public void actualizarFechaComprobantes() {\r\n if (utilitario.isFechasValidas(cal_fecha_inicio.getFecha(), cal_fecha_fin.getFecha())) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n utilitario.addUpdate(\"tab_tabla1,tab_tabla2\");\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Rango de fechas no válidas\", \"\");\r\n }\r\n\r\n }", "public void menuprecoperiodo(String username) {\n Scanner s=new Scanner(System.in);\n LogTransportadora t=b_dados.getTrasnportadoras().get(username);\n double count=0;\n try {\n ArrayList<Historico> hist = b_dados.buscaHistoricoTransportadora(t.getCodEmpresa());\n System.out.println(\"Indique o ano:\");\n int ano=s.nextInt();\n System.out.println(\"Indique o mês\");\n int mes=s.nextInt();\n System.out.println(\"Indique o dia\");\n int dia=s.nextInt();\n for(Historico h: hist){\n LocalDateTime date=h.getDate();\n if(date.getYear()==ano && date.getMonthValue()==mes && date.getDayOfMonth()==dia){\n count+=h.getKmspercorridos()*t.getPrecokm();\n }\n }\n System.out.println(\"O total fatorado nesse dia foi de \" + count +\"€\");\n }\n catch (TransportadoraNaoExisteException e){\n System.out.println(e.getMessage());\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tjava.util.Scanner input = new java.util.Scanner (System.in);\r\n\t\tint year = 0;\r\n\t\tboolean works1 = true;\r\n\t\t\r\n\t\t//petlja koja kontrolise unos godine (mora biti veca od nule)\r\n\t\twhile(works1){\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tSystem.out.print(\"Unesite godinu: \");\r\n\t\t\t\tyear = input.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tif (year <= 0){\r\n\t\t\t\t\tSystem.out.println(\"Unesite cijeli broj veci od nule!\");\r\n\t\t\t\t\tworks1 = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tworks1 = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch (InputMismatchException ex){\r\n\t\t\t\tSystem.out.println(\"Unesite cijeli broj veci od nule!\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tboolean works2 = true;\r\n\t\tString month = \"\";\r\n\t\t\r\n\t\t//petlja koja kontrolise unos prva tri slova mjeseca, ukoliko se prva tri slova slazu sa nekim od naziva mjeseci\r\n\t\t//stampa se broj dana za taj mjesec, a ukoliko se prva tri slova ne zlazu ni sa jednim nazivom trazi se ponovni unos\r\n\t\twhile (works2){\r\n\t\t\tSystem.out.print(\"Unesite prva tri slova naziva mjeseca (npr., dec): \");\r\n\t\t\tmonth = input.next();\r\n\t\t\tmonth = month.toLowerCase();\r\n\t\t\t\r\n\t\t\tif (month.equals(\"jan\")){\r\n\t\t\t\tSystem.out.println(\"Jan \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if(month.equals(\"feb\")){\r\n\t\t\t\tif (isLeapYear(year)){\t\t\t\t\t\t\t\t\t\t\t//poziv metode za provjeru je li godina prestupna\r\n\t\t\t\t\tSystem.out.println(\"Feb \" + year + \". ima 29 dana.\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Feb \" + year + \". ima 28 dana.\");\r\n\t\t\t\t}\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"mar\")){\r\n\t\t\t\tSystem.out.println(\"Mar \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"apr\")){\r\n\t\t\t\tSystem.out.println(\"Apr \" + year + \". ima 30 dana.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"maj\")){\r\n\t\t\t\tSystem.out.println(\"Maj \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"jun\")){\r\n\t\t\t\tSystem.out.println(\"Jun \" + year + \". ima 30 dana.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"jul\")){\r\n\t\t\t\tSystem.out.println(\"Jul \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"avg\")){\r\n\t\t\t\tSystem.out.println(\"Avg \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"sep\")){\r\n\t\t\t\tSystem.out.println(\"Sep \" + year + \". ima 30 dana.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"oct\")){\r\n\t\t\t\tSystem.out.println(\"Oct \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"nov\")){\r\n\t\t\t\tSystem.out.println(\"Nov \" + year + \". ima 30 dana.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"dec\")){\r\n\t\t\t\tSystem.out.println(\"Dec \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}else{\r\n\t\t\t\tworks2 = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "private void checkTimeout() {\n val timeout = config.getInt(\"timeout\");\n\n checkArgument(timeout >= 1000, \"timeout is less than 1000!\");\n }", "public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}", "private static String fechaMod(File imagen) {\n\t\tlong tiempo = imagen.lastModified();\n\t\tDate d = new Date(tiempo);\n\t\tCalendar c = new GregorianCalendar();\n\t\tc.setTime(d);\n\t\tString dia = Integer.toString(c.get(Calendar.DATE));\n\t\tString mes = Integer.toString(c.get(Calendar.MONTH));\n\t\tString anyo = Integer.toString(c.get(Calendar.YEAR));\n\t\tString hora = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\tString minuto = Integer.toString(c.get(Calendar.MINUTE));\n\t\tString segundo = Integer.toString(c.get(Calendar.SECOND));\n\t\treturn hora+\":\"+minuto+\":\"+segundo+\" - \"+ dia+\"/\"+mes+\"/\"+\n\t\tanyo;\n\t}", "public static void main(String[] args) {\n\t\tCalendar now = Calendar.getInstance();\r\n\t\tint hour = now.get(Calendar.HOUR_OF_DAY);\r\n\t\tint minute = now.get(Calendar.MINUTE);\r\n\t\tint month = now.get(Calendar.MONTH + 1);\r\n\t\tint day = now.get(Calendar.DAY_OF_MONTH);\r\n\t\tint year = now.get(Calendar.YEAR);\r\n\r\n\t\tSystem.out.println(now.getTime());\r\n\r\n\t\t// Crear una fecha fija\r\n\t\tCalendar sameDate = new GregorianCalendar(2010, Calendar.FEBRUARY, 22, 23, 11, 44);\r\n\r\n\t\t// mostrar los agradecimientos\r\n\t\tif (hour < 12)\r\n\t\t\tSystem.out.println(\"Buenos días. \\n\");\r\n\t\telse if (hour < 17)\r\n\t\t\tSystem.out.println(\"Buenas tardes. \\n\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Buenas noches charAt(\\n)\");\r\n\r\n\t\t// Mostrar minutos\r\n\t\tSystem.out.println(\"It is\");\r\n\t\tif (minute != 0) {\r\n\t\t\tSystem.out.print(\" \" + minute + \" \");\r\n\t\t\tSystem.out.print((minute != 1) ? \"minutes\" : \"minute\");\r\n\t\t\tSystem.out.print(\" past\");\r\n\t\t}\r\n\t\t// Mostrar la hora\r\n\t\tSystem.out.print(\" \");\r\n\t\tSystem.out.print((hour > 12) ? (hour - 12) : hour);\r\n\t\tSystem.out.print(\" o'clock on \\n\");\r\n\r\n\t\t// Mostrar el mes\r\n\r\n\t\tSystem.out.print(\"Estamos en el mes de: \");\r\n\t\tswitch (month) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"Enero\");\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Febrero\");\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Marzo\");\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Abril\");\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tSystem.out.println(\"Mayo\");\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tSystem.out.println(\"Junio\");\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tSystem.out.println(\"Julio\");\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tSystem.out.println(\"Agosto\");\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tSystem.out.println(\"Septiembre\");\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tSystem.out.println(\"Octubre\");\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tSystem.out.println(\"Noviembre\");\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tSystem.out.println(\"Diciembre\");\r\n\r\n\t\t}\r\n\t}", "public void loadLossMessage() {\n\n\t\tmessageToDisplay.add(ArtemisCalendar.getMonthName(ArtemisCalendar.getCalendar().get(2)) + \", \"\n\t\t\t\t+ ArtemisCalendar.getCalendar().get(1) + \".\");\n\t\tmessageToDisplay.add(String.format(\"On %s The Artemis Project has failed at %.1f%s completion.\\n\\nMission Debrief:\\n\",\n\t\t\t\tArtemisCalendar.getCalendar().getTime(), GameStatistics.missionProgress(GameLauncher.board), \"%\"));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.ORION));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.SLS));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.EGS));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.GATEWAY));\n\t\tGameLauncher.displayMessage();\n\t}", "public boolean erreurStandard2() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (0 ~ 59).']\")));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}", "@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}", "public static void setLastAction () {\n String sqlRetrieveDateTime = \"SELECT now() as date_time\";\n \n lastAction = LocalDateTime.now().minusYears(100);\n try (Connection conn = Database.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sqlRetrieveDateTime)) {\n \n while (rs.next()) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n lastAction = LocalDateTime.parse(rs.getString(\"date_time\"), formatter); \n }\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (DateTimeParseException | NullPointerException dtpe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n }", "private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }", "private void mostrarMensagemDeErro(String informacao) {\n\t\tJOptionPane.showMessageDialog(null, informacao, \"Aten��o\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "public static void checkSemester() {\r\n\t\tObject[] a = ReadingAndWritingInFile.read(\"Days.txt\");\r\n\t\tLong days = (Long) a[0]; // days of currents semester.\r\n\t\tLocalDate lastdate = (LocalDate) a[1]; // date of last connection to program.\r\n\t\tif (!(LocalDate.now().equals(lastdate))) {\r\n\t\t\tdays = days + ChronoUnit.DAYS.between(lastdate, LocalDate.now());\r\n\t\t\tif (days > 182) {\r\n\t\t\t\tsetSemester();\r\n\t\t\t\tdays = days - 182;\r\n\t\t\t}\r\n\t\t\tlastdate = LocalDate.now();\r\n\t\t\tReadingAndWritingInFile.write(\"Days.txt\", days, lastdate);\r\n\t\t}\r\n\t}", "public void isFechaCorrecta(Date fecha, UIComponent componente){\n\t\tif(TratamientoFechas.esFechaValida(fecha)){\n\t\t\tFacesUtils.cambiarAtributoComponente(componente.getClientId(), \"styleClass\", \"\");\n\t\t}else{ \n\t\t\tFacesUtils.cambiarAtributoComponente(componente.getClientId(), \"styleClass\", Constantes.CSS_CALENDAR_ERROR);\n\t\t}\n\t\tRequestContext.getCurrentInstance().update(componente.getClientId());\n\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n \r\n if((\"Leave\".equals(workingType)))\r\n {\r\n \r\n performleaveoperation();\r\n \r\n \r\n }\r\n else{\r\n try\r\n {\r\n \r\n java.util.Date dateFromDateChooser1 =new Date();\r\n System.out.println(\"dateFromDateChooser1=\"+dateFromDateChooser1);\r\n //dateString = String.format(\"%1$td-%1$tm-%1$tY\", dateFromDateChooser1); \r\ndateString = String.format(\"%1$tY-%1$tm-%1$td\", dateFromDateChooser1); \r\n//dateString=dateFromDateChooser1;\r\nDateFormat dff=DateFormat.getDateInstance();\r\nString converdate=dff.format(dateFromDateChooser1);\r\n\r\n//String timeconv=dateFromDateChooser1.getHours()\r\n\r\nSystem.out.println(\"converdate=\"+converdate);\r\n\r\nSystem.out.println(\"dateFromDateChooser1=\"+dateFromDateChooser1);\r\n\r\nSystem.out.println(\"dateString=\"+dateString);\r\n \r\n date1=dateString;\r\n \r\n System.out.println(\"date1=\"+date1);\r\n String time1=(jTextField2.getText());\r\n System.out.println(\"time1=\"+time1);\r\n String date2=dateString ;\r\n \r\n System.out.println(\"date2=\"+date2);\r\n \r\n String time2=jTextField3.getText();\r\n System.out.println(\"time2=\"+time2);\r\n \r\n \r\n\r\n long diffenceinTime=calculateDifference(time1, time2);\r\n System.out.println(\"diffenceinTime=\"+diffenceinTime);\r\n //shortcut sout+tab \r\n \r\n if(diffenceinTime <0)\r\n {\r\n \r\n System.out.println(\"u have entered invalid date\");\r\n JOptionPane.showMessageDialog(this, \" Please enter valid time\"); \r\n jTextField3.setText(\"\");\r\n return;\r\n\r\n \r\n \r\n }\r\n \r\n \r\n \r\n String format=(\"dd-mm-yyyy HH:mm:ss\");\r\n SimpleDateFormat sdf=new SimpleDateFormat(format);\r\n \r\n String spacedd=Integer.toString(32);\r\n System.out.println(\"spacedd=\"+spacedd);\r\n \r\n String inputdate1=date1+\"\\t\"+time1;\r\n \r\n System.out.println(\"inputdate1=\"+inputdate1);\r\n String inputdate2=date2+\"\\t\"+time2;\r\n System.out.println(\"inputdate2=\"+inputdate2);\r\n \r\n \r\n java.util.Date inputDateDb1=constructDate(date1, time1);\r\n System.out.println(\"inputDateDb=\"+inputDateDb1); \r\n java.util.Date inputdatedb2=constructDate(date2, time2);\r\n System.out.println(\"inputDateDb=\"+inputdatedb2);\r\n \r\n \r\n // Time t=new Time(WIDTH, WIDTH, WIDTH)\r\n \r\n \r\n \r\n long diff=inputdatedb2.getTime()-inputDateDb1.getTime();\r\n double diffinhours=diff/((double)1000*60*60);\r\n \r\n System.out.println(diffinhours);\r\n System.out.println(\"Hours=\"+(int)diffinhours);\r\n System.out.println(\"Minutes=\"+(diffinhours-(int)diffinhours)*60);\r\n \r\n \r\n// catch(Exception e)\r\n// {\r\n// e.printStackTrace();\r\n// }\r\n// \r\n jTextField4.setText(String.valueOf((int)diffinhours));\r\n \r\n \r\n String s=jTextField4.getText();\r\n overtime=Integer.parseInt(s);\r\n if( overtime >6)\r\n {\r\n c= overtime-6 ;\r\n System.out.println(\"overtime\"+c);\r\n overtime2=String.valueOf(c);\r\n \r\n jTextField5.setText(overtime2);\r\n // jPanel5.setVisible(false);\r\n jLabel15.setEnabled(false);\r\n jTextField12.setEditable(false);\r\n }\r\n \r\n if(overtime==6)\r\n {\r\n jTextField5.setText(\"0\");\r\n //jPanel5.setVisible(false);\r\n jLabel15.setEnabled(false);\r\n jTextField12.setEditable(false);\r\n \r\n }\r\n if(overtime<6)\r\n {\r\n jTextField5.setText(\"0\");\r\n //jPanel5.setVisible(true);\r\n jLabel15.setEnabled(true);\r\n jTextField12.setEditable(true);\r\n// if( jTextField12.getText().equals(\"\"))\r\n// {\r\n// System.out.println(\"ramiz displaying pane\");\r\n// JOptionPane.showMessageDialog(this, \"please enter reason\"); \r\n// // jPanel5.setVisible(true);\r\n// \r\n// }\r\n \r\n System.out.println(\"displaying panel........line 623\");\r\n \r\n // jPanel5.setVisible(true);\r\n\r\n }\r\n \r\n////// String ch=String.valueOf(jComboBox1.getSelectedItem());\r\n////// System.out.println(\"ch\"+ch);\r\n s=String.valueOf(jComboBox2.getSelectedItem());\r\n \r\n String c=jTextField13.getText();\r\n if(c.equalsIgnoreCase(\"Maneger\")&& !(s.equals(\"Leave\")))\r\n \r\n {\r\n// pa\r\n// String h=jTextField4.getText();\r\n \r\n// int c= 66*Integer.parseInt(h);\r\n \r\n System.out.println(\"overtime2=\"+overtime2);\r\n if(overtime2==null)\r\n {\r\n jTextField5.setText(\"0\");\r\n payment=66*overtime;\r\n jTextField6.setText(String.valueOf(payment));\r\n \r\n }\r\n else\r\n {\r\n overtime3= Integer.parseInt(overtime2);\r\n \r\n System.out.println(\"overtime2=\"+overtime3);\r\n \r\n payment=66*overtime;\r\n // payovertime=66*overtime3;\r\n // tot=payment+payovertime;\r\n jTextField6.setText(String.valueOf(payment));\r\n \r\n System.out.println(\"Total Payment in days=\"+payment);\r\n }\r\n jTextField6.setText(String.valueOf(payment));\r\n \r\n }\r\n \r\n if(c.equalsIgnoreCase(\"cook\")&& !(s.equals(\"Leave\")))\r\n \r\n {\r\n// pa\r\n// String h=jTextField4.getText();\r\n \r\n// int c= 66*Integer.parseInt(h);\r\n \r\n System.out.println(\"overtime2=\"+overtime2);\r\n if(overtime2==null)\r\n {\r\n jTextField5.setText(\"0\");\r\n payment=55*overtime;\r\n \r\n }\r\n else\r\n {\r\n overtime3= Integer.parseInt(overtime2);\r\n \r\n System.out.println(\"overtime2=\"+overtime3);\r\n \r\n payment=66*overtime;\r\n // payovertime=66*overtime3;\r\n // tot=payment+payovertime;\r\n System.out.println(\"Total Payment in days=\"+payment);\r\n }\r\n jTextField6.setText(String.valueOf(payment));\r\n \r\n }\r\nif(c.equalsIgnoreCase(\"Weater\")&& !(s.equals(\"Leave\")))\r\n \r\n {\r\n// pa\r\n// String h=jTextField4.getText();\r\n \r\n// int c= 66*Integer.parseInt(h);\r\n \r\n System.out.println(\"overtime2=\"+overtime2);\r\n if(overtime2==null)\r\n {\r\n jTextField5.setText(\"0\");\r\n payment=44*overtime;\r\n \r\n }\r\n else\r\n {\r\n overtime3= Integer.parseInt(overtime2);\r\n \r\n System.out.println(\"overtime2=\"+overtime3);\r\n \r\n payment=66*overtime;\r\n // payovertime=66*overtime3;\r\n // tot=payment+payovertime;\r\n System.out.println(\"Total Payment in days=\"+payment);\r\n }\r\n jTextField6.setText(String.valueOf(payment));\r\n \r\n }\r\nif(c.equalsIgnoreCase(\"Helper\")&& !(s.equals(\"Leave\")))\r\n \r\n {\r\n// pa\r\n// String h=jTextField4.getText();\r\n \r\n// int c= 66*Integer.parseInt(h);\r\n \r\n System.out.println(\"overtime2=\"+overtime2);\r\n if(overtime2==null)\r\n {\r\n jTextField5.setText(\"0\");\r\n payment=38*overtime;\r\n \r\n }\r\n else\r\n {\r\n overtime3= Integer.parseInt(overtime2);\r\n \r\n System.out.println(\"overtime2=\"+overtime3);\r\n \r\n payment=66*overtime;\r\n // payovertime=66*overtime3;\r\n // tot=payment+payovertime;\r\n System.out.println(\"Total Payment in days=\"+payment);\r\n }\r\n jTextField6.setText(String.valueOf(payment));\r\n \r\n }\r\n \r\n// if(c.equals(\"Maneger\")&& !(s.equals(\"Leave\")))\r\n// \r\n// {\r\n//// pa\r\n//// String h=jTextField4.getText();\r\n// \r\n//// int c= 66*Integer.parseInt(h);\r\n// \r\n// System.out.println(\"overtime2=\"+overtime2);\r\n// if(overtime2==null)\r\n// {\r\n// jTextField5.setText(\"0\");\r\n// payment=66*overtime;\r\n// \r\n// }\r\n// else\r\n// {\r\n// overtime3= Integer.parseInt(overtime2);\r\n// \r\n// System.out.println(\"overtime2=\"+overtime3);\r\n// \r\n// payment=66*overtime;\r\n// // payovertime=66*overtime3;\r\n// // tot=payment+payovertime;\r\n// System.out.println(\"Total Payment in days=\"+payment);\r\n// }\r\n// jTextField6.setText(String.valueOf(payment));\r\n// \r\n// }\r\n } catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n \r\n \r\n \r\n }\r\n \r\n }", "public boolean validarFecha(Date fecha) {\n\t\tif(!fecha.before(Calendar.getInstance().getTime())) {\n\t\t\tJOptionPane.showMessageDialog(null, \"La fecha introducida es invalida\",\"Fecha invalida\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\treturn false;\n\t\t}else return true; \n\t}", "public String formTimeout()\r\n {\r\n return formError(\"503 Gateway timeout\",\"The connection timed out\");\r\n }", "public double GetTimeError(){\n\t\treturn this.timeError;\n\t}", "private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }", "long invalidations();", "public static\n void checkExpiringPassword()\n {\n User user = ResourcesMgr.getSessionManager().getUser();\n \n String sPassword = user.getPassword();\n \n // Controllo della scadenza della password al primo accesso\n if(user.getDateLastAccess() == null && sPassword != null && sPassword.length() > 0) {\n // Primo accesso\n boolean boExpiredFA = ResourcesMgr.getBooleanProperty(ResourcesMgr.sGUILOGIN_EXP_FIRSTA, false);\n if(boExpiredFA) {\n GUIMessage.showWarning(\"Questo \\350 il Suo primo accesso. Il sistema Le richieder\\340 di cambiare la password.\");\n try {\n ResourcesMgr.getGUIManager().showGUIChangePassword(ResourcesMgr.mainFrame, true);\n }\n catch(Exception ex) {\n ex.printStackTrace();\n System.out.println(ResourcesMgr.sLOG_PREFIX + \" exit application\");\n System.exit(1);\n }\n return;\n }\n }\n \n // Controllo della scadenza della password rispetto a quando e' stata aggiornata l'ultima volta.\n if(user.getDateLastAccess() == null && sPassword != null && sPassword.length() > 0) {\n int iExpirationDays = ResourcesMgr.getIntProperty(ResourcesMgr.sGUILOGIN_EXP_DAYS, 0);\n if(iExpirationDays > 0) {\n int iDays = getDaysFrom(user.getDatePassword());\n if(iExpirationDays <= iDays) {\n GUIMessage.showWarning(\"La Sua password risulta scaduta. Il sistema Le richieder\\340 di cambiare la password.\");\n try {\n ResourcesMgr.getGUIManager().showGUIChangePassword(ResourcesMgr.mainFrame, true);\n }\n catch(Exception ex) {\n ex.printStackTrace();\n System.out.println(ResourcesMgr.sLOG_PREFIX + \" exit application\");\n System.exit(1);\n }\n return;\n }\n }\n else {\n int iMonths = getMonthsFrom(user.getDatePassword());\n int iExpirationMonths = ResourcesMgr.getIntProperty(ResourcesMgr.sGUILOGIN_EXP_MONTHS, 0);\n if(iExpirationMonths > 0 && iExpirationMonths <= iMonths) {\n GUIMessage.showWarning(\"La Sua password risulta scaduta. Il sistema Le richieder\\340 di cambiare la password.\");\n try {\n ResourcesMgr.getGUIManager().showGUIChangePassword(ResourcesMgr.mainFrame, true);\n }\n catch(Exception ex) {\n ex.printStackTrace();\n System.out.println(ResourcesMgr.sLOG_PREFIX + \" exit application\");\n System.exit(1);\n }\n return;\n }\n }\n }\n }", "public static void main(String[] args) throws ParseException {\t\t\n\t int mes, ano, diaDaSemana, primeiroDiaDoMes, numeroDeSemana = 1;\n\t Date data;\n\t \n\t //Converter texto em data e data em texto\n\t SimpleDateFormat sdf\t = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t //Prover o calendario\n\t GregorianCalendar gc\t = new GregorianCalendar();\n\t \n\t String mesesCalendario[] = new String[12];\n\t\tString mesesNome[]\t\t = {\"Janeiro\", \"Fevereiro\", \"Marco\", \"Abri\", \"Maio\", \"Junho\", \"Julho\", \"Agosto\", \"Setembro\", \"Outubro\", \"Novembro\", \"Dezembro\"};\n\t\tint mesesDia[]\t\t\t = {31,28,31,30,31,30,31,31,30,31,30,31};\n\t\t\n\t\t//Errado? e pra receber apenas o \"dia da semana\" do \"primeiro dia do mes\" na questao\n\t //Recebendo mes e ano\n\t mes = Entrada.Int(\"Digite o mes:\", \"Entrada de dados\");\n\t ano = Entrada.Int(\"Digite o ano:\", \"Entrada de dados\");\n\t \n\t //Errado? e pra ser o dia inicial do mes na questao\n\t // Dia inicial do ano\n data = sdf.parse(\"01/01/\" + ano);\n gc.setTime(data);\n diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n \n //Nao sei se e necessario por causa da questao\n //*Alteracao feita||| Ano bissexto tem +1 dia em fevereiro\n if(ano % 4 == 0) {\n \tmesesDia[1] = 29;\n \tmesesNome[1] = \"Ano Bissexto - Fevereiro\";\n }\n \n \n //Meses \n for(int mesAtual = 0; mesAtual < 12; mesAtual++) {\n\t int diasDoMes\t= 0;\n\t String nomeMesAtual = \"\";\n\n\n\t nomeMesAtual = mesesNome[mesAtual]; \n diasDoMes\t = mesesDia[mesAtual]; \n\n\n mesesCalendario[mesAtual] = \"\\n \" + nomeMesAtual + \" de \" + ano + \"\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n\";\n mesesCalendario[mesAtual] += \" Dom Seg Ter Qua Qui Sex Sab | Semanas\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n \";\n\t\n\t \n\t // Primeira semana comeca em\n\t data = sdf.parse( \"01/\" + (mesAtual+1) + \"/\" + ano );\n gc.setTime(data);\n primeiroDiaDoMes = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t for (int space = 1; space < primeiroDiaDoMes; space++) {\n\t \tmesesCalendario[mesAtual] += \" \";\n\t }\n\t \n\t //Dias\t \n\t for (int diaAtual = 1; diaAtual <= diasDoMes; diaAtual++)\n\t {\n\t \t// Trata espaco do dia\n\t \t\t//Transforma o diaAtuel em String\n\t String diaTratado = Integer.toString(diaAtual);\n\t if (diaTratado.length() == 1)\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t else\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t \n\t // dia\n\t mesesCalendario[mesAtual] += diaTratado;\n\t \t\n\t \t// Pula Linha no final da semana\n\t data = sdf.parse( diaAtual + \"/\" + (mesAtual+1) + \"/\" + ano );\n\t gc.setTime(data);\n\t diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t if (diaDaSemana == 7) {\n\t \tmesesCalendario[mesAtual] += (\"| \" + numeroDeSemana++);\n\t \tmesesCalendario[mesAtual] += \"\\n |\";\n\t \tmesesCalendario[mesAtual] += \"\\n \";\n\t }\n\t }\n\t mesesCalendario[mesAtual] += \"\\n\\n\\n\\n\";\n\t }\n\t \n //Imprime mes desejado\n\t System.out.println(mesesCalendario[mes-1]);\n\n\t}", "@Test\n\tpublic void testResponderEjercicio3(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(20));\n\t\tassertFalse(ej1.responderEjercicio(nacho, array));\n\t\tassertTrue(nacho.getEstadisticas().isEmpty());\n\t}", "public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }", "public String date(int lmao) {\r\n switch (lmao) {\r\n case 1:\r\n return time.showDay();\r\n\r\n case 2:\r\n return time.showMonth();\r\n\r\n case 3:\r\n return time.showYear();\r\n\r\n case 4:\r\n return time.showDay() + \"/\" + time.showMonth() + \"/\" + time.showYear();\r\n\r\n default:\r\n return \"error\";\r\n }\r\n }", "private static void seTimeStamps() {\n MDC.put(MDC_INSTANCE_UUID, \"\");\n MDC.put(MDC_ALERT_SEVERITY, \"\");\n\n var startTime = Instant.now();\n var endTime = Instant.now();\n\n seTimeStamps(startTime, endTime);\n\n MDC.put(PARTNER_NAME, \"N/A\");\n\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n MDC.put(RESPONSE_CODE, \"N/A\");\n MDC.put(RESPONSE_DESCRIPTION, \"N/A\");\n\n }", "public synchronized void rotateStatus()\n\t{\n\t\tlong now = System.currentTimeMillis();\n\n\t\tlong thisHour = now / 3600000L;\n\t\tlong lastHour = lastRotate / 3600000L;\n\n\t\tif (thisHour == lastHour)\n\t\t\t; // Do nothing\n\t\telse if (thisHour != lastHour)\n\t\t{\n\t\t\tif (thisHour == lastHour + 1)\n\t\t\t{\n\t\t\t\tmsgsLastHourHigh = msgsThisHourHigh;\n\t\t\t\tmsgsThisHourHigh = 0;\n\t\t\t\tfilesSentLastHourHigh = filesSentThisHourHigh;\n\t\t\t\tfilesSentThisHourHigh = 0;\n\t\t\t\tmsgsLastHourMedium = msgsThisHourMedium;\n\t\t\t\tmsgsThisHourMedium = 0;\n\t\t\t\tfilesSentLastHourMedium = filesSentThisHourMedium;\n\t\t\t\tfilesSentThisHourMedium = 0;\n\t\t\t\tmsgsLastHourLow = msgsThisHourLow;\n\t\t\t\tmsgsThisHourLow = 0;\n\t\t\t\tfilesSentLastHourLow = filesSentThisHourLow;\n\t\t\t\tfilesSentThisHourLow = 0;\n\t\t\t}\n\t\t\telse // more than 1 hour elapsed.\n\t\t\t{\n\t\t\t\tmsgsLastHourHigh = 0;\n\t\t\t\tmsgsThisHourHigh = 0;\n\t\t\t\tfilesSentLastHourHigh = 0;\n\t\t\t\tfilesSentThisHourHigh = 0;\n\t\t\t\tmsgsLastHourMedium = 0;\n\t\t\t\tmsgsThisHourMedium = 0;\n\t\t\t\tfilesSentLastHourMedium = 0;\n\t\t\t\tfilesSentThisHourMedium = 0;\n\t\t\t\tmsgsLastHourLow = 0;\n\t\t\t\tmsgsThisHourLow = 0;\n\t\t\t\tfilesSentLastHourLow = 0;\n\t\t\t\tfilesSentThisHourLow = 0;\n\t\t\t}\n\n\t\t\tlong thisDay = thisHour / 24;\n\t\t\tlong lastDay = lastHour / 24;\n\n\t\t\tif (thisDay != lastDay)\n\t\t\t{\n\t\t\t\tif (thisDay == lastDay + 1)\n\t\t\t\t{\n\t\t\t\t\tmsgsYesterdayHigh = msgsTodayHigh;\n\t\t\t\t\tmsgsTodayHigh = 0;\n\t\t\t\t\tfilesSentYesterdayHigh = filesSentTodayHigh;\n\t\t\t\t\tfilesSentTodayHigh = 0;\n\t\t\t\t\tmsgsYesterdayMedium = msgsTodayMedium;\n\t\t\t\t\tmsgsTodayMedium = 0;\n\t\t\t\t\tfilesSentYesterdayMedium = filesSentTodayMedium;\n\t\t\t\t\tfilesSentTodayMedium = 0;\n\t\t\t\t\tmsgsYesterdayLow = msgsTodayLow;\n\t\t\t\t\tmsgsTodayLow = 0;\n\t\t\t\t\tfilesSentYesterdayLow = filesSentTodayLow;\n\t\t\t\t\tfilesSentTodayLow = 0;\n\t\t\t\t}\n\t\t\t\telse // More than 1 day elapsed.\n\t\t\t\t{\n\t\t\t\t\tmsgsYesterdayHigh = 0;\n\t\t\t\t\tmsgsTodayHigh = 0;\n\t\t\t\t\tfilesSentYesterdayHigh = 0;\n\t\t\t\t\tfilesSentTodayHigh = 0;\n\t\t\t\t\tmsgsYesterdayMedium = 0;\n\t\t\t\t\tmsgsTodayMedium = 0;\n\t\t\t\t\tfilesSentYesterdayMedium = 0;\n\t\t\t\t\tfilesSentTodayMedium = 0;\n\t\t\t\t\tmsgsYesterdayLow = 0;\n\t\t\t\t\tmsgsTodayLow = 0;\n\t\t\t\t\tfilesSentYesterdayLow = 0;\n\t\t\t\t\tfilesSentTodayLow = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlastRotate = now;\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\tCalendar fecha = new GregorianCalendar();\n\t\tint hora = fecha.get(Calendar.HOUR_OF_DAY);\n\t\tint minutos = fecha.get(Calendar.MINUTE);\n\t\tString salida = \"\";\n\t\tif(hora<12){\n\t\t\tsalida = \"Buenos Dias \";\n\t\t}else if(hora<20){\n\t\t\tsalida = \"Buenas Tardes \";\n\t\t}else{\n\t\t\tsalida = \"Buenas Noches \";\n\t\t}\n\t\ttfmensaje.setText(salida+\"la hora es: \"+hora+\" \"+minutos);\n\t}", "private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }", "private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }", "long getInvalidLoginLockoutTime();", "public static void main(String [] args){//inicio del main\r\n\r\n Scanner sc= new Scanner(System.in); \r\n\r\nSystem.out.println(\"ingrese los segundos \");//mesaje\r\nint num=sc.nextInt();//total de segundos\r\nint hor=num/3600;//total de horas en los segundos\r\nint min=(num-(3600*hor))/60;//total de min en las horas restantes\r\nint seg=num-((hor*3600)+(min*60));//total de segundo sen los miniutos restantes\r\nSystem.out.println(\"Horas: \" + hor + \" Minutos: \" + min + \" Segundos: \" + seg);//salida del tiempo\r\n\r\n}", "@Override\n\tpublic List<ControlDiarioAlertaDto> convertEntityMenorH(int mes, int year, int diaI, int diaF) {\n\n\t\tList<ControlDiarioAlertaDto> controlAlertas = new ArrayList<ControlDiarioAlertaDto>();\n\n\t\ttry {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"hh:mm\"); // if 24 hour format\n\t\t\tDate d1;\n\t\t\tTime ppstime;\n\n\t\t\td1 = (java.util.Date) format.parse(\"09:00:00\");\n\n\t\t\tppstime = new java.sql.Time(d1.getTime());\n\n\t\t\t// System.out.println(d1);\n\t\t\t// System.out.println(ppstime);\n\n\t\t\t// Llamado al metodo que me trae todos los datos de la tabla tblcontrol_diario\n\t\t\t// de acuerdo al rango (mes, anio, dia inicial , dia final)\n\t\t\tList<ControlDiario> controlD = getControlDiarioService().findAllRange(mes, year, diaI, diaF);\n\n\t\t\tString alerta = \"\";\n\n\t\t\tControlDiarioAlertaDto controlDA = null;\n\t\t\tfor (ControlDiario controlDiario : controlD) {\n\t\t\t\tif (controlDiario.getTiempo().getHours() < prop.getHorasLaboradas()) {\n\t\t\t\t\talerta = \"EL USUARIO NO CUMPLE CON LAS 9 HORAS ESTABLECIDAS\";\n\t\t\t\t\t// System.out.println(\"EL usuario :\" + controlDiario.getNombre() + \" no cumplio\n\t\t\t\t\t// las 9 horas correspondietes\");\n\n\t\t\t\t\t// se carga el DTO solo si el usuario no cumple con las horas establecidas\n\t\t\t\t\tcontrolDA = new ControlDiarioAlertaDto(controlDiario.getFecha().toString(),\n\t\t\t\t\t\t\tString.valueOf(controlDiario.getCodigoUsuario()), controlDiario.getNombre(),\n\t\t\t\t\t\t\tcontrolDiario.getEntrada().toString(), controlDiario.getSalida().toString(),\n\t\t\t\t\t\t\tcontrolDiario.getTiempo().toString(), alerta);\n\n\t\t\t\t\t// Se agrega a la lista de controlDiarioalertaDTO para returnarlo para generar\n\t\t\t\t\t// el reporte\n\t\t\t\t\tcontrolAlertas.add(controlDA);\n\n\t\t\t\t} else {\n\t\t\t\t\talerta = \"\";\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(controlDA.toString());\n\n\t\t\t}\n\n\t\t\treturn controlAlertas;\n\n\t\t} catch (Exception e) {\n\n\t\t\tSystem.out.println(e);\n\n\t\t}\n\n\t\treturn controlAlertas;\n\t}", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "private void obtieneError(int error) throws Excepciones{\n String[] err = {\n \"ERROR DE SYNTAXIS\",\n \"PARENTESIS NO BALANCEADOS\",\n \"NO EXISTE EXPRESION\",\n \"DIVISION POR CERO\"\n };\n throw new Excepciones(err[error]);\n}", "public void sendeFehlerHelo();", "private boolean validarDados(String dados) throws ParseException, SQLException {\n\t\ttry {\r\n\t\t\tString licencaFull = SystemManager.getProperty(\"licenca.sistema\");\r\n\t\t\tlicencaFull = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(licencaFull);\r\n\t\t\tif (licencaFull != null && licencaFull.equals(\"ENTERPRISE EDITION\")) {\r\n\t\t\t\twrite(\"ok\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tCalendar dataAtual = Calendar.getInstance();\r\n\t\t\r\n\t\t// Checa os dados\r\n\t\tString dataStr = dados.substring(0, 10);\r\n\t\tCalendar data = Calendar.getInstance(); \r\n\t\tdata.setTime(sdf.parse(dataStr));\r\n\t\t\r\n\t\t// Verifica se já está vencido...\r\n\t\tif (data.before(dataAtual)) {\r\n\t\t\t// o campo fieldname indica se podera ou nao fechar a janela\r\n\t\t\tint diasAtual = (dataAtual.get(Calendar.YEAR) * 365) + dataAtual.get(Calendar.DAY_OF_YEAR); \r\n\t\t\tint dias = (data.get(Calendar.YEAR) * 365) + data.get(Calendar.DAY_OF_YEAR);\r\n\t\t\tint diferenca = diasAtual - dias;\r\n\t\t\twriteErrorMessage(\"Sistema vencido à \" + diferenca + \" dias!\", diferenca>30?\"N\":\"S\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Verifica o CNPJ da loja\r\n\t\tString cnpj = dados.substring(11, 25);\r\n\t\tif (!cnpj.equals(lojasessao.getCNPJLoja())) {\r\n\t\t\twriteErrorMessage(\"Cnpj da licença difere do Cnpj desta loja!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tint quantidadeUsuariosLicenca = Integer.parseInt(dados.substring(26, 31));\r\n\t\t\r\n\t\t// Verifica numero de usuarios\r\n\t\tUsuarioDAO usuDao = new UsuarioDAO();\r\n\t\tList<UsuarioVO> list = usuDao.getList();\r\n\t\t\r\n\t\t// Verifica quantos estao ativos\r\n\t\tint quantidadeAtivos = 0;\r\n\t\tfor (UsuarioVO usuario : list) {\r\n\t\t\tif (usuario.isAtivo()) {\r\n\t\t\t\tquantidadeAtivos++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (quantidadeUsuariosLicenca < quantidadeAtivos) {\r\n\t\t\twriteErrorMessage(\"Licença inválida para a quantidade de usuários ativos no sistema!\", \"N\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Salva a data de hoje\r\n\t\tParametroLojaVO parmData = new ParametroLojaVO();\r\n\t\tparmData.setChaveParametro(Constants.Parameters.Licenca.DATA_SISTEMA);\r\n\t\tparmData.setCodigoEmpresa(empresasessao.getCodigoEmpresa());\r\n\t\tparmData.setCodigoLoja(lojasessao.getCodigoLoja());\r\n\t\t\r\n\t\tParametroLojaDAO dao = new ParametroLojaDAO();\r\n\t\tparmData = dao .get(parmData);\r\n\t\t\r\n\t\tif (parmData == null) {\r\n\t\t\tparmData = new ParametroLojaVO();\r\n\t\t\tparmData.setChaveParametro(Constants.Parameters.Licenca.DATA_SISTEMA);\r\n\t\t\tparmData.setCodigoEmpresa(empresasessao.getCodigoEmpresa());\r\n\t\t\tparmData.setCodigoLoja(lojasessao.getCodigoLoja());\r\n\t\t\tparmData.setNewRecord(true);\r\n\t\t}\r\n\t\t\r\n\t\tString dataHojeStr = sdf.format(Utils.getToday());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdataHojeStr = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).cripto(dataHojeStr);\r\n\t\t} catch (Exception e) { }\r\n\t\t\r\n\t\tparmData.setValorParametro(dataHojeStr);\r\n\t\tdao.persist(parmData);\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public void resetFail() {\n borraArchivos();\n addMessage(\"Carga Cancelada\", null);\n }", "private static String dateAddAndValidation() {\n Scanner scan = new Scanner(System.in);\r\n String date;\r\n while (true) {\r\n System.out.println(\"Please add task due date(YYYY-MM-DD)\");\r\n date = scan.nextLine().trim();\r\n String[] dateArray = date.split(\"-\");\r\n if (dateArray.length != 3 || date.length() != 10) {\r\n System.out.println(RED + \"Date format is incorrect. \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[0].length() != 4 || !StringUtils.isNumeric(dateArray[0])) {\r\n System.out.println(RED + \"You have typed incorrect Year format (not all of the data are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[1].length() != 2 || !NumberUtils.isDigits(dateArray[1])) {\r\n System.out.println(RED + \"You have given incorrect Month format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[1]) < 1 || Integer.parseInt(dateArray[1]) > 12) {\r\n System.out.println(RED + \"You have given incorrect Month date (Month date shouldn't be greater than 12 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[2].length() != 2 || !NumberUtils.isDigits(dateArray[2])) {\r\n System.out.println(RED + \"You have given incorrect Day format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[2]) < 1 || Integer.parseInt(dateArray[2]) > 31) {\r\n System.out.println(RED + \"You have typed incorrect Day date (Day date shouldn't be greater than 31 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n break;\r\n }\r\n return date;\r\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser(true);\n jDayChooser0.isDecorationBackgroundVisible();\n JYearChooser jYearChooser0 = new JYearChooser();\n jDayChooser0.setFocusTraversalKeysEnabled(true);\n // Undeclared exception!\n try { \n Time.valueOf(\"day\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.sql.Time\", e);\n }\n }", "private Pannello creaPanDate() {\n /* variabili e costanti locali di lavoro */\n Pannello panDate = null;\n Campo campoDataInizio;\n Campo campoDataFine;\n JButton bottone;\n ProgressBar pb;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(DialogoStatistiche.nomeDataIni);\n campoDataInizio.decora().eliminaEtichetta();\n campoDataInizio.decora().etichettaSinistra(\"dal\");\n campoDataInizio.decora().obbligatorio();\n campoDataFine = CampoFactory.data(DialogoStatistiche.nomeDataFine);\n campoDataFine.decora().eliminaEtichetta();\n campoDataFine.decora().etichettaSinistra(\"al\");\n campoDataFine.decora().obbligatorio();\n\n /* bottone esegui */\n bottone = new JButton(\"Esegui\");\n bottone.setOpaque(false);\n this.setBottoneEsegui(bottone);\n bottone.addActionListener(new DialogoStatistiche.AzioneEsegui());\n bottone.setFocusPainted(false);\n\n /* progress bar */\n pb = new ProgressBar();\n this.setProgressBar(pb);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.setAllineamento(Layout.ALLINEA_CENTRO);\n panDate.creaBordo(\"Periodo di analisi\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(bottone);\n panDate.add(Box.createHorizontalGlue());\n panDate.add(pb);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return panDate;\n }", "int getMessageCounterHistoryDayLimit();", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (textField.getText().isEmpty() || textField_1.getText().isEmpty() || textField_2.getText().isEmpty()\r\n\t\t\t\t\t\t|| textField_3.getText().isEmpty() || textField_5.getText().isEmpty()) {\r\n\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please fill all the blanks to set the time\", \"Warning!\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\t// time components must be in proper way\r\n\t\t\t\telse if (Integer.parseInt(textField.getText()) > 31 || Integer.parseInt(textField.getText()) <= 0\r\n\t\t\t\t\t\t|| Integer.parseInt(textField_1.getText()) > 23 || Integer.parseInt(textField_1.getText()) < 0\r\n\t\t\t\t\t\t|| Integer.parseInt(textField_3.getText()) > 59 || Integer.parseInt(textField_3.getText()) < 0\r\n\t\t\t\t\t\t|| Integer.parseInt(textField_2.getText()) > 12\r\n\t\t\t\t\t\t|| Integer.parseInt(textField_2.getText()) <= 0) {\r\n\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a valid date\", \"Warning!\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\r\n\t\t\t\t}\r\n\t\t\t\t// if everything works perfectly, the values will be parsed to integer and\r\n\t\t\t\t// copied to respective variables\r\n\t\t\t\telse {\r\n\t\t\t\t\tminute = Integer.parseInt(textField_3.getText());\r\n\t\t\t\t\thour = Integer.parseInt(textField_1.getText());\r\n\t\t\t\t\tday = Integer.parseInt(textField.getText());\r\n\t\t\t\t\tmonth = Integer.parseInt(textField_2.getText()) - 1;\r\n\t\t\t\t\tyear = Integer.parseInt(textField_5.getText());\r\n\r\n\t\t\t\t\t// cal is the object of Calendar class, here the time components are set to the\r\n\t\t\t\t\t// object and it will be displayed on the frame.\r\n\t\t\t\t\t// String.format is used in order to display the time in proper way\r\n\t\t\t\t\tcal.set(year, month, day, hour, minute);\r\n\t\t\t\t\tsysTime.setText(String.format(\"%02d\", cal.get(Calendar.HOUR_OF_DAY)) + \":\"\r\n\t\t\t\t\t\t\t+ String.format(\"%02d\", cal.get(Calendar.MINUTE)));\r\n\t\t\t\t\tsysDate.setText(String.format(\"%02d\", cal.get(Calendar.DAY_OF_MONTH)) + \"/\"\r\n\t\t\t\t\t\t\t+ String.format(\"%02d\", (cal.get(Calendar.MONTH) + 1)) + \"/\"\r\n\t\t\t\t\t\t\t+ String.format(\"%02d\", cal.get(Calendar.YEAR)));\r\n\t\t\t\t\tsysWeekday.setText(cal.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.ENGLISH));\r\n\t\t\t\t}\r\n\t\t\t}", "public static void main(String[] args) {\n\r\n\t\tScanner teclado = new Scanner(System.in);\r\n\r\n\t\tfinal int DIA_ACTUAL = 9, MES_ACTUAL = 11, AÑO_ACTUAL = 2018;\r\n\r\n\t\tint dia = 0, año = 0, mes_numerico = 0, años_totales = 0;\r\n\r\n\t\tString mes = \" \";\r\n\r\n\t\tboolean bisiesto = false;\r\n\r\n\t\tSystem.out.println(\"Introduzca un mes valido \");\r\n\t\tmes = teclado.nextLine();\r\n\r\n\t\tSystem.out.println(\"Introduzca un dia valido \");\r\n\t\tdia = teclado.nextInt();\r\n\r\n\t\tSystem.out.println(\"Introduzca un año \");\r\n\t\taño = teclado.nextInt();\r\n\r\n\t\tif ((año % 4 == 0) && (año % 100 != 0) || (año % 400 == 0)) {\r\n\r\n\t\t\tbisiesto = true;\r\n\t\t}\r\n\r\n\t\tswitch (mes) {\r\n\r\n\t\tcase \"enero\":\r\n\r\n\t\t\tmes_numerico = 1;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"febrero\":\r\n\r\n\t\t\tmes_numerico = 2;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"marzo\":\r\n\r\n\t\t\tmes_numerico = 3;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"abril\":\r\n\r\n\t\t\tmes_numerico = 4;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mayo\":\r\n\r\n\t\t\tmes_numerico = 5;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"junio\":\r\n\r\n\t\t\tmes_numerico = 6;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"julio\":\r\n\r\n\t\t\tmes_numerico = 7;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"agosto\":\r\n\r\n\t\t\tmes_numerico = 8;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"septiembre\":\r\n\r\n\t\t\tmes_numerico = 9;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"octubre\":\r\n\r\n\t\t\tmes_numerico = 10;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"noviembre\":\r\n\r\n\t\t\tmes_numerico = 11;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"diciembre\":\r\n\r\n\t\t\tmes_numerico = 12;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\r\n\t\t\tSystem.out.println(\"Introduzca un mes correcto \");\r\n\t\t\tmes = teclado.nextLine();\r\n\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\t\taños_totales = AÑO_ACTUAL - año;\r\n\r\n\t\tif ((mes_numerico == 1 || mes_numerico == 3 || mes_numerico == 5 || mes_numerico == 7 || mes_numerico == 8\r\n\t\t\t\t|| mes_numerico == 10 || mes_numerico == 12) && (dia <= 31)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 4 || mes_numerico == 6 || mes_numerico == 9 || mes_numerico == 11) && (dia <= 30)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && bisiesto) && (dia <= 29)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && !bisiesto) && (dia <= 28)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\"La fecha introducida no es correcta \");\r\n\t\t}\r\n\r\n\t\tteclado.close();\r\n\r\n\t}", "public boolean checkPastDate(boolean said)\n {\n try\n {\n if( date==null ){\n if(this.getDateString()!=null) date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n } }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n if(date==null)\n {\n if(said)\n {\n super.setMessage(\"Date is no correct\");\n }\n return false;\n }\n if(!date.before(currentDate))\n {\n if(said)\n {\n super.setMessage(\"Date is no correct\");\n }\n return false;\n\n }\n else\n {\n return true;\n }\n }", "@Test(timeout = 4000)\n public void test154() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n DateInput dateInput0 = new DateInput(errorPage0, \"?qm\", \"C$|>%_=z2HltmUu\", \"?qm\");\n // Undeclared exception!\n try { \n dateInput0.div();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public void onError(String cadena) {\r\n\t\tJOptionPane.showMessageDialog(null, cadena, \"Movimiento invalido\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\r\n\t}" ]
[ "0.5950659", "0.5891819", "0.5844187", "0.5817849", "0.57779986", "0.5732511", "0.5654901", "0.5633842", "0.5628365", "0.55435485", "0.5514611", "0.54980135", "0.5431555", "0.5419588", "0.5384892", "0.5371855", "0.53532094", "0.53239787", "0.53119236", "0.53085333", "0.5290281", "0.5253798", "0.52449626", "0.522096", "0.5213149", "0.5211818", "0.5210126", "0.52039343", "0.5198812", "0.5175952", "0.51688665", "0.5166325", "0.51518106", "0.5144218", "0.5143347", "0.51395607", "0.51335627", "0.5123207", "0.51218617", "0.51205033", "0.51145035", "0.5104059", "0.5096496", "0.50876194", "0.508667", "0.5077822", "0.5074338", "0.5069913", "0.50695676", "0.5068885", "0.5058813", "0.50477207", "0.50457525", "0.5043236", "0.504193", "0.5018299", "0.5018181", "0.50143594", "0.501317", "0.5010862", "0.49921334", "0.4990756", "0.49825913", "0.49765062", "0.49720812", "0.49677607", "0.49587354", "0.49573058", "0.49567777", "0.49545667", "0.49536002", "0.4953336", "0.4951313", "0.49495047", "0.49462774", "0.4946045", "0.49368542", "0.49366343", "0.49257964", "0.49253416", "0.49238515", "0.492102", "0.49176085", "0.4917294", "0.49165362", "0.49097615", "0.48925072", "0.48917803", "0.4885901", "0.48849708", "0.48840508", "0.4882539", "0.48818824", "0.48792246", "0.4872327", "0.48712292", "0.48674566", "0.48666486", "0.48634186", "0.4861299", "0.48486605" ]
0.0
-1
This will initialize an instance of the SecurePreferences class
public EncryptDecrypt(String secureKey) throws EncryptDecryptException { try { this.writer = Cipher.getInstance(TRANSFORMATION); this.reader = Cipher.getInstance(TRANSFORMATION); this.keyWriter = Cipher.getInstance(KEY_TRANSFORMATION); initCiphers(secureKey); //this.encryptKeys = encryptKeys; } catch (GeneralSecurityException e) { throw new EncryptDecryptException(e); } catch (UnsupportedEncodingException e) { throw new EncryptDecryptException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "public Secure() {\n\t\tsuper();\n\t}", "private PreferencesModule() {\n }", "private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}", "public DeveloperPrefsPanel(DeveloperPreferences prefs) {\n\t\tthis.prefs = prefs;\n\t\tinitComponents();\n\t}", "private SharedPreferencesManager(){}", "private void initPreferences(Context context) {\n\n if (DEBUG) LogUtils.d(TAG, \"initPreferences: mPreferences \" + mPreferences);\n }", "private void initAuthorizedPrefs()\n {\n authorizedPrefs = new ArrayList<String>();\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_LABEL );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_ABBREVIATE );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_ABBREVIATE_MAX_LENGTH );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_SECONDARY_LABEL_DISPLAY );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_SECONDARY_LABEL );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_SECONDARY_LABEL_ABBREVIATE );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_SECONDARY_LABEL_ABBREVIATE_MAX_LENGTH );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_SORTING_BY );\n authorizedPrefs.add( PluginConstants.PREFS_SCHEMA_VIEW_SORTING_ORDER );\n }", "public static void init(Context context) {\n prefs = context.getSharedPreferences(\"ERS_Prefs\", Context.MODE_PRIVATE);\n }", "public synchronized static void init(Context ctx) {\n context = ctx;\n prefs = context.getSharedPreferences(APP, Context.MODE_PRIVATE);\n editor = prefs.edit();\n }", "public static void initialize(Context context) {\r\n\t\tif (context == null) throw new IllegalArgumentException(\"Context cannot be null\");\r\n\t\tctx = context;\r\n\t\tprefs = context.getSharedPreferences(PREFERENCE_FILE_NAME, Context.MODE_PRIVATE);\r\n\t\t\r\n\t\t// Create encrypted keys\r\n\t\tPURCHASES_INITIALIZED = getEncryptedKey(\"purchases_initialized\");\r\n\t\tAPP_UPGRADE = getEncryptedKey(\"upgraded\");\r\n\t}", "@Override\n\tpublic UserPreferences newInstance() {\n\t\treturn new UserPreferences();\n\t}", "private SharedPreferencesUtils() {\n }", "public SharedPref() {\n super();\n }", "public static void initPrefs(){\n prefs = context.getSharedPreferences(PREFS_FILE, 0);\n SharedPreferences.Editor editor = prefs.edit();\n editor.remove(Constants.IS_FIRST_RUN);\n editor.putBoolean(Constants.ACTIVITY_SENSE_SETTING,false);\n editor.commit();\n }", "private PrefUtils() {\n }", "public Prefs(Activity context){\n this.preferences = context.getSharedPreferences(prefContext, Context.MODE_PRIVATE);\n this.context = context;\n\n }", "private Settings() {}", "public PreferencesPanel() {\n initComponents();\n }", "private Settings() { }", "public void Initialse() {\n\t\tappSettings = ctx.getSharedPreferences(APP_SETTINGS, 0);\n\t\tSharedPreferences.Editor prefEditor = appSettings.edit();\n\t\tprefEditor.putBoolean(BLOCK, true); // master switch\n\t\tprefEditor.putBoolean(NOTIFY, true); // controls whether a notification appears in status bar ans notifications lit\n\t\tprefEditor.putBoolean(REMOVE_CALLS, false); // determines whether calls are removed form the call log\n\t\t// add INIT to prevent this code from being called again\n\t\tprefEditor.putBoolean(INIT, true); // flag to allow subsequent loads to recognise that defaults are set\n\t\tprefEditor.putString(TEST, ctx.getString(R.string.test_number));\n\t\tprefEditor.putBoolean(RULES_EXIST, false); // added to control whether app kicks off commshandler\n\t\t\n\t\tprefEditor.commit();\n \n\t}", "public AccountKeyDatastoreSecrets() {\n }", "private SystemPropertiesRemoteSettings() {}", "private void initSharedPreference(){\n mSharedPreferences = Configuration.getContext().getSharedPreferences(\"SessionManager\", Context.MODE_PRIVATE) ;\n }", "private Settings()\n {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tthis.prefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t/*\n\t\t * Each app has its own shared preferences available to all components\n\t\t * of the app and this loads the default preferences that are saved on\n\t\t * the phone\n\t\t */\n\t\tthis.prefs.registerOnSharedPreferenceChangeListener(this);\n\t\t/*\n\t\t * Each user can change preferences. So this listener is a mechanism to\n\t\t * notify this activity that the old values are stale\n\t\t */\n\t}", "private SecureController()\n\t{\n\t\tField field;\n\t\ttry\n\t\t{\n\t\t\tfield = Class.forName(\"javax.crypto.JceSecurity\").getDeclaredField(\n\t\t\t\t\t\"isRestricted\");\n\t\t\tfield.setAccessible(true);\n\t\t\tfield.set(null, java.lang.Boolean.FALSE);\n\t\t}\n\t\tcatch (NoSuchFieldException | SecurityException\n\t\t\t\t| ClassNotFoundException | IllegalArgumentException\n\t\t\t\t| IllegalAccessException e)\n\t\t{\n\t\t\tlogger.fatal(\"security load failed: \" + e.getMessage());\n\t\t}\n\t}", "public PrivacySettingsWeb() {\n\t}", "private final class <init>\n implements <init>, com.ebay.nautilus.domain.dcs.tionHelper\n{\n\n private SharedPreferences listingDraftPrefs;\n private SharedPreferences prefs;\n final MyApp this$0;\n\n public void disableDeveloperOptions()\n {\n MyApp.getPrefs().removeGlobalPref(\"developerOptions\");\n }", "public HLSAppSharedPreferences(Context context, String strName) {\n\n mContext = context;\n mPreference = context.getSharedPreferences(strName, Activity.MODE_PRIVATE);\n mEditor = mPreference.edit();\n }", "public PreferencesHelper(Context context) {\n\t\tthis.sharedPreferences = context.getSharedPreferences\n\t\t\t\t(APP_SHARED_PREFS, Activity.MODE_PRIVATE);\n\t\tthis.editor = sharedPreferences.edit();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_quiz);\n sessionManager = new SessionManager(getApplicationContext());\n SharedPreferences sph = getSharedPreferences(prefName, Context.MODE_PRIVATE);\n SharedPreferences.Editor edi = sph.edit();\n this.initialize();\n }", "private SystemProperties() {}", "public void loadFromPreferences(SharedPreferences preferences){\r\n\t\tinitialSetuped = preferences.getBoolean(\"initialSetupped\", false);\r\n\t\tuserName = preferences.getString(\"username\", \"\");\r\n\t\tuserEmail = preferences.getString(\"useremail\", \"\");\r\n\t\trecipientEmail = preferences.getString(\"recipientemail\", \"\");\r\n\t\toption = WeightUnitOption.loadPreference(preferences.getBoolean(\"option\", true));\r\n\t}", "public void init()\n {\n try\n {\n userPasswordsProperties = new Properties();\n userPasswordsProperties.load(new FileInputStream(userPasswordsPropertiesFileName));\n log.info(\"Successfully initialized. UsersPasswords property file is: \" + userPasswordsPropertiesFileName);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"UserNamesPropertyFile name: \" + userPasswordsPropertiesFileName + \" not valid. Error: \" + e);\n }\n \n }", "public KeyVaultProperties() {\n }", "private void setupSimplePreferencesScreen() {\n if (!isSimplePreferences(this)) {\n return;\n }\n\n // In the simplified UI, fragments are not used at all and we instead\n // use the older PreferenceActivity APIs.\n\n // Add 'general' preferences.\n addPreferencesFromResource(R.xml.pref_general);\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n bindPreferenceSummaryToValue(findPreference(\"pref_favColor\"));\n }", "private BluetoothSettings() {\n }", "private EclipsePrefUtils() {\n // Exists only to defeat instantiation.\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "private void initClass() {\r\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\r\n secureMediaFileDb = MediaVaultLocalDb.getMediaVaultDatabaseInstance(this);\r\n mediaFileDuration = MediaFileDuration.getDatabaseInstance(this);\r\n }", "public Settings(){}", "public static void initialize() {\n Security.addProvider(new OAuth2Provider());\n }", "public UserPreferencesRecord() {\n\t\tsuper(us.fok.lenzenslijper.models.jooq.tables.UserPreferences.USER_PREFERENCES);\n\t}", "public SharedPreferencesModule(){\n //this.application = application;\n }", "public Credentials()\n {\n this(null, null, null, null);\n }", "public static PreferencesView createPreferencesView() {\n // Retrieve application preferences and attach them to their view\n // (This instance must be instanciated after dependencies)\n final LinkedHashMap<String, JPanel> panels = new LinkedHashMap<String, JPanel>(2);\n panels.put(\"General settings\", new PreferencePanel());\n\n final PreferencesView preferencesView = new PreferencesView(getFrame(), Preferences.getInstance(), panels);\n preferencesView.init();\n\n return preferencesView;\n }", "protected void init()\n {\n crypterString = crypterLong = crypterDouble = crypterBytes = new MauiCrypterEngineNull();\n }", "public PowerContactSettings () {\n }", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "@Before\n\tpublic void init() {\n\t\tthis.preference = new Preference(\"ID\", \"asd\", PreferenceType.like);\n\t}", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.preferences);\n }", "private LODEParameters(){\n prefsFile=new File(LODEConstants.PARAMS_FILE);\n }", "public void initialize(Context context) {\n\t\tif (m_Initialized) return;\n\t\tm_Initialized = true;\n\t\t\n\t\t//Get preference and load\n\t\tSharedPreferences Preference = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tloadMisc(Preference);\n\t\tloadPlayers(Preference);\n\t}", "@SuppressWarnings(\"deprecation\")\n\tprivate void setupSimplePreferencesScreen() {\n\t\tif (!isSimplePreferences(this)) {\n\t\t\treturn;\n\t\t}\n\n\t\taddPreferencesFromResource(R.xml.pref_blank);\n\n\t\t// Add 'filters' preferences.\n\t\tPreferenceCategory fakeHeader = new PreferenceCategory(this);\n\n\t\t// Add 'appearance' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.appearance);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_appearance);\n\n\t\t// Add 'text color' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.text_color);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_textcolor);\n\n\t\t// Add 'info' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.information);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_info);\n\n\t\t// Add others\n\t\tsetupOpenSourceInfoPreference(this, findPreference(getString(R.string.pref_info_open_source)));\n\t\tsetupVersionPref(this, findPreference(getString(R.string.pref_version)));\n\n\t}", "public SPHandler(Context context){\n this.context = context;\n sharedPref = context.getSharedPreferences(\n prefName, Context.MODE_PRIVATE);\n\n }", "private Security() { }", "private void setPreferences(Preferences preferences) {\n this.preferences = preferences;\n }", "public CatalogSettings() {\n init();\n }", "private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}", "private void setCredentials() {\n Properties credentials = new Properties();\n\n try {\n credentials.load(new FileInputStream(\"res/credentials.properties\"));\n } catch (IOException e) {\n __logger.error(\"Couldn't find credentials.properties, not setting credentials\", e);\n return;\n }\n\n this.username = credentials.getProperty(\"username\");\n this.password = credentials.getProperty(\"password\");\n this.smtpHost = credentials.getProperty(\"smtphost\");\n this.imapHost = credentials.getProperty(\"imaphost\");\n\n if (password == null || password.equals(\"\")) {\n password = this.getPasswordFromUser();\n }\n\n __logger.info(\"Set credentials\");\n }", "public SessionController(Context context) {\n this.context = context;\n sharedPref = this.context.getSharedPreferences(PREFERENCE_FILE, Context.MODE_PRIVATE);\n spEditor = sharedPref.edit();\n }", "public SettingsPreferenceStore(Settings base){\n\t\tthis.base = base;\n\t}", "void loadPreferences() throws OntimizeJEERuntimeException;", "private void loadPreferences() {\n\t\tXSharedPreferences prefApps = new XSharedPreferences(PACKAGE_NAME);\n\t\tprefApps.makeWorldReadable();\n\n\t\tthis.debugMode = prefApps.getBoolean(\"waze_audio_emphasis_debug\", false);\n }", "public WhitePagesProtectionServiceImpl(ServiceBroker sb) {\n serviceBroker = sb;\n log = (LoggingService) serviceBroker.getService(this, LoggingService.class, null);\n encryptService = (EncryptionService) serviceBroker.getService(this, EncryptionService.class, null);\n csrv = (CertificateCacheService) serviceBroker.getService(this, CertificateCacheService.class, null);\n keyRingService = (KeyRingService) serviceBroker.getService(this, KeyRingService.class, null);\n policy = new SecureMethodParam();\n if (log.isDebugEnabled()) {\n log.debug(WhitePagesProtectionServiceImpl.NAME + \" instantiated\");\n }\n }", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "@Override\n\t\tprotected void onPreExecute(){\n\t\t\tpref=new Preferences(mContext);\n\t\t}", "private static void initialize()\n {\n\tif (cookieHandler == null)\n\t{\n\t BrowserService service = ServiceProvider.getService();\n\t cookieHandler = service.getCookieHandler();\n\t}\n }", "public CommonSenseAuthUserData() {\n \n }", "@SuppressLint(\"CommitPrefEdits\")\n public HaloPreferencesStorageEditor(SharedPreferences preferences) {\n mPreferencesEditor = preferences.edit();\n }", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "public Secret() {\n\n\t}", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "private void load()\n {\n SharedPreferences sp = getActivity().getPreferences(Context.MODE_PRIVATE);\n if (sp.contains(\"passLength\") && passLenSB != null)\n passLenSB.setProgress(sp.getInt(\"passLength\", 0));\n\n if (sp.contains(\"minDigits\") && minDigSB != null)\n minDigSB.setProgress(sp.getInt(\"minDigits\", 0));\n\n for (int i=0; i<checkBoxes.size(); i++)\n {\n checkBoxes.get(i).setChecked(sp.getBoolean(\"chkbx\"+Integer.toString(i), false));\n if (checkBoxes.get(i).isChecked())\n runChkBxOption(i, checkBoxes.get(i), rootView, child); // this code makes app generate new pass each time\n\n }\n // this code will restore pass on rotation only\n if (savedInstanceState != null && savedInstanceState.containsKey(\"password\"))\n passTV.setText(colourCodePass(savedInstanceState.getString(\"password\")));\n }", "private SingletonLectorPropiedades() {\n\t}", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.settings_main);\n\n Preference orderBy = findPreference(getString(R.string.settings_order_by_key));\n bindPreferenceSummaryToValue(orderBy);\n\n Preference filterByCompany = findPreference(getString(R.string.settings_filter_by_company_key));\n bindPreferenceSummaryToValue(filterByCompany);\n\n Preference filterBySection = findPreference(getString(R.string.settings_filter_by_section_key));\n bindPreferenceSummaryToValue(filterBySection);\n }", "public DefaultSharedPreferenceService(SharedPreferences sharedPreferences) {\n mSharedPreferences = checkNotNull(sharedPreferences);\n }", "private void initialize() {\n\t\tservice = KCSClient.getInstance(this.getApplicationContext(), new KinveySettings(APP_KEY, APP_SECRET));\n\n BaseKinveyDataSource.setKinveyClient(service);\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) { \t\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.settings); \r\n String oldtitle = (String) getTitle();\r\n setTitle(oldtitle + \" > Settings\");\r\n \r\n //Load the settings\r\n SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\r\n String liveid = settings.getString(\"liveusername\", \"\");\r\n String password = settings.getString(\"livepassword\", \"\");\r\n String saved_livedownloaddp = settings.getString(\"livedownloaddp\", \"\");\r\n String saved_liveignorestockdp = settings.getString(\"liveignorestockdp\", \"\");\r\n\r\n \teLiveID = ((TextView)findViewById(R.id.editLiveID));\r\n \teLiveID.setText(liveid); \t\r\n \tePassword = ((TextView)findViewById(R.id.editPassword));\r\n \tePassword.setText(password); \r\n \t\r\n \tliveremember = ((CheckBox)findViewById(R.id.checkRememberlive));\r\n \th_livedownloaddp = ((CheckBox)findViewById(R.id.checkDownloadDP));\r\n \th_liveignorestockdp = ((CheckBox)findViewById(R.id.checkIgnoreStockDP));\r\n \t\r\n \tif(liveid.length() > 0 || password.length() > 0)\r\n \t\tliveremember.setChecked(true);\r\n \t\r\n \tif(saved_livedownloaddp.equals(\"true\")) {\r\n \t\th_livedownloaddp.setChecked(true);\r\n \t}\r\n\r\n \tif(saved_liveignorestockdp.equals(\"true\")) {\r\n \t\th_liveignorestockdp.setChecked(true);\r\n \t}\r\n \t\r\n \tButton btnSave = (Button)findViewById(R.id.btnSave);\r\n btnSave.setOnClickListener(btnSaveOnClick);\r\n \r\n Button btnCancel = (Button)findViewById(R.id.btnDiscard);\r\n btnCancel.setOnClickListener(btnCancelOnClick);\r\n }", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "public ManagePreferences(Context context, String contactId, String contactLookupKey) {\n }", "private CredentialManager(Context context) {\n appDb = AppDB.getInstance(context);\n mContext = context;\n }", "private UserPrefernce(){\r\n\t\t\r\n\t}", "public static synchronized void configureSecurity()\n {\n // import Component.Application.Console.Coherence;\n // import Component.Net.Security.Standard;\n // import com.tangosol.internal.net.security.DefaultStandardDependencies;\n // import com.tangosol.internal.net.security.LegacyXmlStandardHelper;\n // import com.tangosol.run.xml.XmlElement;\n \n if (isConfigured())\n {\n return;\n }\n \n DefaultStandardDependencies deps = null;\n Security security = null;\n \n try\n {\n // create security dependencies including default values\n deps = new DefaultStandardDependencies();\n \n // internal call equivalent to \"CacheFactory.getSecurityConfig();\"\n XmlElement xmlConfig = Coherence.getServiceConfig(\"$Security\");\n if (xmlConfig != null)\n {\n // load the security dependencies given the xml config \n deps = LegacyXmlStandardHelper.fromXml(xmlConfig, deps);\n \n if (deps.isEnabled())\n {\n // \"model\" element is not documented for now\n security = (Standard) _newInstance(\"Component.Net.Security.\" + deps.getModel()); \n }\n }\n }\n finally\n {\n // if Security is not instantiated, we still neeed to process\n // the dependencies to pickup the IdentityAsserter and IdentityTransformer\n // objects for the Security component (see onDeps()).\n if (security == null)\n {\n processDependencies(deps.validate());\n }\n else\n {\n // load the standard dependencies (currently only support Standard)\n if (deps.getModel().equals(\"Standard\"))\n {\n ((Standard) security).setDependencies(deps);\n }\n setInstance(security);\n }\n \n setConfigured(true);\n }\n }", "private SecurityConsts()\r\n\t{\r\n\r\n\t}", "private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }", "public ClientCredentials() {\n }", "public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}", "@Override \r\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState); \r\n addPreferencesFromResource(R.xml.preference);\r\n initPreferenceCategory(\"pref_key_allow_typedefine_commond\");\r\n }", "private void setupSimplePreferencesScreen() {\n\n addPreferencesFromResource(R.xml.pref_weight);\n\n final Activity activity = getActivity();\n\n CustomPreferenceCategory fakeHeader = new CustomPreferenceCategory(activity);\n fakeHeader = new CustomPreferenceCategory(activity);\n fakeHeader.setTitle(R.string.pref_header_about);\n getPreferenceScreen().addPreference(fakeHeader);\n addPreferencesFromResource(R.xml.pref_about);\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_units_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_plate_style_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_bar_weight_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_formula_key)));\n\n Preference aboutButton = (Preference)findPreference(getString(R.string.pref_about_button));\n aboutButton.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n AboutDialog aboutDialog = new AboutDialog();\n aboutDialog.show(getFragmentManager(), \"AboutDialog\");\n return true;\n }\n });\n\n Preference rateButton = (Preference)findPreference(getString(R.string.pref_rate_button));\n rateButton .setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n Uri uri = Uri.parse(\"market://details?id=\" + activity.getPackageName());\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n try {\n startActivity(goToMarket);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://play.google.com/store/apps/details?id=\" + activity.getPackageName())));\n }\n return true;\n }\n });\n\n final RepCheckPreferenceFragment repCheckPreferenceFragment = this;\n\n Preference resetButton = (Preference)findPreference(getString(R.string.pref_reset_button));\n resetButton.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n DialogFragment saveAsNewDialog = ConfirmResetDialog.newInstance(new ResetResponseHandler(repCheckPreferenceFragment));\n saveAsNewDialog.show(activity.getFragmentManager(), \"RenameSetDialog\");\n return true;\n }\n });\n }", "public static void init(Context context) {\n\t\tApplicationControl.context = context;\n\n\t\t// initialize file controller\n\t\tFileController.init();\n\t\t\n\t\t// load preferences\n\t\tPreferenceManager.setDefaultValues(context, R.xml.prefs, false);\n\n\t\t// initialize preferences\n\t\tprefs = PreferenceManager.getDefaultSharedPreferences(context);\n\n\t\t\n\t\t//initialize mark controller\n\t\tMarkController.init();\n\t\t\t\t\n\t\t// initialize sound controller\n\t\tSoundController.init(context);\n\n\t\t// initialize vibration controller\n\t\tVibration.init(context);\n\n\t\t// initialize game\n\t\treinit();\n\n\t\t// finally initialized\n\t\tisInit = true;\n\t}", "private void showPreference(){\r\n if(userPreferencesForm == null) {\r\n userPreferencesForm = new UserPreferencesForm(mdiForm,true);\r\n }\r\n userPreferencesForm.loadUserPreferences(mdiForm.getUserId());\r\n userPreferencesForm.setUserName(mdiForm.getUserName());\r\n userPreferencesForm.display();\r\n }", "public SharePref(Context context) {\n sPrefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);\n }", "protected void testCtor_1() {\n\t\t\n\t\tPreferenceService ps = null;\n\t\t\n\t\ttry {\n\t\t\tps = new PreferenceService(null);\n\t\t} catch (Exception e) {\n\t\t}\n\t\t\n\t\tassertEquals(\"\", true, ps == null);\n\t\t\n\t}", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.preferences);\n\n SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\n //String ip = SP.getString(\"ip\", \"NULL\");\n // Config.ip = SP.getString(\"ip\", \"NULL\");\n // Log.e(\"IP\",Config.ip );\n String language = SP.getString(\"language\",\"NULL\");\n // Toast.makeText(getApplicationContext(),Config.ip,Toast.LENGTH_SHORT).show();\n //Toast.makeText(getApplicationContext(),language,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.settings_main);\n // Find the preference we’re interested in and then bind the current preference value to be displayed\n // Use its findPreference() method to get the Preference object. To help us with binding the value that’s in SharedPreferences to what will show up in the preference summary, we’ll create a help method and call it\n Preference minNews = findPreference(getString(R.string.settings_number_of_news_key));\n // in order to update the preference summary when the settings activity is launched we setup the bindPreferenceSummaryToValue() helper method and which we used in onCreate()\n bindPreferenceSummaryToValue(minNews);\n\n Preference orderBy = findPreference(getString(R.string.settings_order_by_key));\n bindPreferenceSummaryToValue(orderBy);\n\n }", "private PasswordScreen() {\n initComponents();\n\n //cbUserType.setModel(new DefaultComboBoxModel(new String[] {User.USER_TYPE_MANAGER, User.USER_TYPE_CASHIER, User.USER_TYPE_SERVER}));\n\n btnConfigureDatabase.setAction(goAction);\n btnConfigureDatabase.setActionCommand(\"DBCONFIG\");\n }", "public PrefMeal(Context context) {\n this._context = context;\n mealPref = _context.getSharedPreferences(MEAL_PREF_NAME, PRIVATE_MODE);\n editor = mealPref.edit();\n }", "private void getPreferences() {\n Account rootAccount = book.getRootAccount();\n displayedSecuritiesList = rootAccount.getPreference(\"StockGlance_displayedSecurities\", \"\");\n allowMissingPrices = rootAccount.getPreferenceBoolean(\"StockGlance_DisplayMissingPrices\", false);\n timelySnapshotInterval = rootAccount.getPreferenceInt(\"StockGlance_TimelyWindow\", 7);\n }" ]
[ "0.66998714", "0.66538703", "0.6483645", "0.64155954", "0.6359142", "0.6339286", "0.6286473", "0.626487", "0.6185886", "0.6180789", "0.61311585", "0.6097448", "0.60778177", "0.6023604", "0.59877497", "0.59367484", "0.59327435", "0.59302366", "0.5916032", "0.5893545", "0.58917415", "0.58779573", "0.58725935", "0.5837639", "0.57822305", "0.5728233", "0.57282126", "0.57143605", "0.57015073", "0.5695354", "0.56868243", "0.5678616", "0.56694335", "0.56619835", "0.5648626", "0.5640249", "0.5633769", "0.5630122", "0.56243974", "0.5614977", "0.5610667", "0.5605821", "0.5568663", "0.5554215", "0.55309266", "0.5517322", "0.55084443", "0.55055296", "0.5500764", "0.55006343", "0.5478523", "0.5477588", "0.5477423", "0.54731625", "0.54582834", "0.54554325", "0.5430409", "0.5427875", "0.5427037", "0.5405042", "0.54044116", "0.5400612", "0.5399717", "0.53962606", "0.5362158", "0.53576225", "0.5342125", "0.5341907", "0.53355545", "0.53323627", "0.5332336", "0.53116465", "0.5308861", "0.53019845", "0.530122", "0.5299196", "0.5290584", "0.5265468", "0.52602744", "0.5255758", "0.5255587", "0.5253233", "0.524211", "0.5240394", "0.5239604", "0.5237564", "0.52373147", "0.5236641", "0.5227672", "0.5222054", "0.5220169", "0.522006", "0.5215486", "0.5215116", "0.5213679", "0.5210665", "0.52106273", "0.5208174", "0.5207162", "0.52061677", "0.5205265" ]
0.0
-1
Search item by name (staring with).
@Query(value = "{'name': {$regex : ?0, $options: 'i'}}", sort = "{ name: 1}") List<Item> findByName(String name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void searchForItem() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println(\" Please type your search queries\");\r\n\t\tSystem.out.println();\r\n\t\tString choice = \"\";\r\n\t\tif (scanner.hasNextLine()) {\r\n\t\t\tchoice = scanner.nextLine();\r\n\t\t}\r\n\t\t//Currently only supports filtering by name\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" All products that matches your search are as listed\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Id|Name |Brand |Price |Total Sales\");\r\n\t\tint productId = 0;\r\n\t\tfor (Shop shop : shops) {\r\n\t\t\tint l = shop.getAllSales().length;\r\n\t\t\tfor (int j = 0; j < l; j++) {\r\n\t\t\t\tif (shop.getAllSales()[j].getName().contains(choice)) {\r\n\t\t\t\t\tprintProduct(productId, shop.getAllSales()[j]);\r\n\t\t\t\t}\r\n\t\t\t\tproductId++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void Search_for_item(String itemname) \n\t{ \n item it=new item();\n \n for(int i=0;i<it.itemfoundWithDescription.size();i++)\n {\n if(it.itemfoundWithDescription.get(i).equals(itemname))\n \t{\n System.out.println(\"item founded\");\n\t\t\texit(0);\n \t}\n \n }\n System.out.println(\"item not founded\");\n \n\t}", "List<Item> findByName(String name);", "List<Item> findByNameContainingIgnoreCase(String name);", "public ArrayList<ItemBean> getItemsByName(String name) throws SQLException\n\t{\n//\t\tSystem.out.println(\"Searching by name!!!\");\n\t\t//SQL query\n\t\tString query = \"select * from roumani.item where name like ? or number like ?\";\n\t\t\n\t\tArrayList<ItemBean> itemList = new ArrayList<ItemBean>();\n\t\t\n\t\ttry{\n\t\t\t//Open connection to database\n\t\tConnection con = dataSource.getConnection();\n\t\t\t//Create prepared statement\n\t\tPreparedStatement statement = con.prepareStatement(query);\n\n\t\t\t//Replace ? in query with values\n\t\tstatement.setString(1, \"%\"+name+\"%\");\n\t\tstatement.setString(2, \"%\"+name+\"%\");\n\t\t\n\t\t\t//Query the database\n\t\tResultSet rs = statement.executeQuery();\n\t\t\n\t\t\n\t\t\t//If there are remaining items matching search criteria, place them in list\n\t\twhile(rs.next() != false)\n\t\t\titemList.add(new ItemBean(rs.getString(\"name\"),(double) Math.round(rs.getDouble(\"price\")*100)/100));\n\t\t\n\t\tcon.close();\n\t\tstatement.close();\n\t\trs.close();\n\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t//Return list of found items\n//\t\tSystem.out.println(\"Done searching by name\");\n\t\t\t//Close all connections\n\t\t\n\t\treturn itemList;\n\t}", "public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }", "public InventoryItem findItem(String itemName)\n\t{\n\t\t\n\t\t\tfor (int k = 0; k < items.size(); k++)\n\t\t\t\tif (itemName.equals(items.get(k).getName()))\t\t\n\t\t\t\t\treturn items.get(k);\t\t\n\t\t\treturn null;\t\t\t\t\t\t\n\t}", "public Items[] findWhereNameEquals(String name) throws ItemsDaoException;", "public Inventory searchForItem (TheGroceryStore g, Inventory i, String key);", "public Item checkForItem(String name) {\r\n Item output = null;\r\n for (Item item : inventory) {\r\n String check = item.getName().replaceAll(\" \", \"\");\r\n if (name.equals(check.toLowerCase())) {\r\n output = item;\r\n }\r\n }\r\n for (Item item : potionInventory) {\r\n String check = item.getName().replaceAll(\" \", \"\");\r\n if (name.equals(check.toLowerCase())) {\r\n output = item;\r\n }\r\n }\r\n return output;\r\n }", "public CartItem findByName(String searchname) {\n\t\treturn null;\n\t}", "@Override\n public Component find(String name) throws ItemNotFoundException {\n if(this.getName().equals(name))\n return this;\n\n for(Component c : children)\n try {\n return c.find(name);\n } catch (ItemNotFoundException e) {\n continue;\n }\n\n throw new ItemNotFoundException(\"\\\"\" + name + \" not found in \" + this.getName());\n }", "public void searchSong(String name)\n {\n for(int i=0; i<songs.size(); i++)\n if(songs.get(i).getFile().contains(name) || songs.get(i).getSinger().contains(name))\n {\n System.out.print((i+1) + \"- \");\n listSong(i);\n\n }\n }", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "private void search(String product) {\n // ..\n }", "@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}", "public List<Product> search(String searchString);", "private void search(String[] searchItem)\n {\n }", "public int search (String name) {\n int result = -1;\n int offset = 0;\n\n for (int i=9; i>-1; i--)\n {\n qLock[i].lock ();\n result = q[i].indexOf (name);\n if (result == -1)\n offset += q[i].size ();\n qLock[i].unlock ();\n if (result != -1)\n break;\n }\n\n if (result == -1)\n return result;\n\n return result + offset;\n }", "public ArrayList<TakeStock> findMemberByName(String name) {\n\n matches.clear();\n\n for(TakeStock member : mTakeStockList) {\n\n if(member.getProducts_name().toLowerCase().contains(name)){\n matches.add(member);\n }\n\n }\n return matches; // return the matches, which is empty when no member with the given name was found\n }", "public boolean searchCertainItem(String itemname, String tableName)\n {\n String selectStr;\n ResultSet rs;\n try{\n\n selectStr=\"SELECT \"+itemname+\" FROM \"+tableName;\n rs = stmt.executeQuery(selectStr);\n\n while (rs.next())\n {\n return true;\n }\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return false;\n\n }", "public boolean containItem(String name) {\r\n for (Item i : inventoryItems) {\r\n if (i.getName() == name) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "@Override\n\tpublic List<Product> findByName(String term) {\n\t\treturn productDAO.findByNameLikeIgnoreCase(\"%\" + term + \"%\");\n\t}", "@Query(\"select i from Item i where lower(i.name) like lower(?1)\")\n Page<Item> searchInNames(String namePart, Pageable pageable);", "Object find(String name);", "void searchView(String name);", "@In String search();", "List<Map<String, Object>> searchIngredient(String name);", "public List<Product> findByNameIs(String name);", "public void searchField(String name) {\r\n\t\tsafeType(addVehiclesHeader.replace(\"Add Vehicle\", \"Search\"), name);\r\n\t\t;\r\n\t}", "public abstract T findByName(String name) ;", "public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }", "public List<Product> getProductBySearchName(String search) {\r\n List<Product> list = new ArrayList<>();\r\n String query = \"select * from Trungnxhe141261_Product\\n \"\r\n + \"where [name] like ? \";\r\n try {\r\n conn = new DBContext().getConnection();//mo ket noi voi sql\r\n ps = conn.prepareStatement(query);\r\n ps.setString(1, \"%\" + search + \"%\");\r\n rs = ps.executeQuery();\r\n while (rs.next()) {\r\n list.add(new Product(rs.getInt(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getDouble(4),\r\n rs.getString(5),\r\n rs.getString(6)));\r\n }\r\n } catch (Exception e) {\r\n }\r\n return list;\r\n }", "List<Cloth> findByNameContaining(String name);", "@Override\n public List<FoodItem> filterByName(String substring) {\n if (foodItemList == null || foodItemList.size() == 0)\n return foodItemList;\n List<FoodItem> foodCandidate = new ArrayList<>();\n \tfor (FoodItem food : foodItemList) {\n if (food.getName().equals(substring)) {\n foodCandidate.add(food);\n }\n \t}\n return foodCandidate;\n \n }", "@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }", "public static String itemNameForSearch(){\n\n String[] itemNameArr = new String[3];\n itemNameArr[0] = \"nivea\";\n itemNameArr[1] = \"dove\";\n itemNameArr[2] = \"ricci\";\n\n return itemNameArr[CommonMethods.getRandomValue(0,2)];\n }", "public void searchForProduct(String productName) {\n setTextOnSearchBar(productName);\n clickOnSearchButton();\n }", "public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;", "private Node search(String name)\r\n\t{\r\n\t\t// Check to see if the list is empty\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\t// Return null which will be checked for by the method that called it\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Tree is not empty so use the recursive search method starting at the root reference \r\n\t\t// to find the correct Node containing the String name\r\n\t\treturn search(getRoot(), name);\r\n\t}", "public static void search(String searchInput)\n {\n if (!searchInput.isEmpty())\n {\n searchInput = searchInput.trim();\n if (mNameSymbol.containsKey(searchInput))\n {\n //Returns list of stock symbols associated with company name\n List<String> lstTickerSymbols = mNameSymbol.get(searchInput);\n displayResults(lstTickerSymbols, searchInput);\n }\n else\n {\n Set<String> setNames = mNameSymbol.keySet();\n Iterator iterator = setNames.iterator();\n boolean matchMade = false;\n while (iterator.hasNext())\n {\n String storedName = (String)iterator.next();\n Float normalizedMatch = fuzzyScore(storedName, searchInput);\n if (normalizedMatch >= MIN_MATCH) \n {\n //Returns list of stock symbols associated with company name\n List<String> lstTickerSymbols = mNameSymbol.get(storedName);\n displayResults(lstTickerSymbols, storedName);\n matchMade = true;\n }\n }\n if (matchMade == false)\n {\n displayNoResults();\n }\n }\n }\n else\n {\n displayNoResults();\n }\n }", "@RequestMapping(value=\"/search\",method=RequestMethod.GET)\r\n\tpublic List<ProductBean> searchByProductName(String name)throws SearchException {\r\n\t\treturn service.searchProductByName(name); \r\n\t}", "public VariableItem SearchVariable(String variableName) {\n\t\tfor(VariableItem variable : variableItem)\n\t\t{\n\t\t\tif(variable.name==variableName)\n\t\t\t\treturn variable;\n\t\t}\n\t\treturn null;\n\t}", "public void searchTitle(String srchttl){\r\n \t\r\n \tboolean found = false;\t\t\t\t\t\r\n \tIterator<Item> i = items.iterator();\r\n \tItem current = new Item();\r\n\r\n\twhile(i.hasNext()){\r\n\t current = i.next();\r\n\t \r\n\t if(srchttl.compareTo(current.getTitle()) == 0) {\r\n\t System.out.print(\"Found \" + current.toString());\r\n\t found = true;\r\n\t } \r\n }\r\n \r\n\tif(found != true){\r\n\t System.out.println(\"Title \" + srchttl + \" could not be found.\");\r\n\t System.out.println(\"Check the spelling and try again.\");\r\n\t}\r\n \r\n }", "@Override\n\tpublic ArrayList<SearchItem> search(String key) {\n\t\treturn null;\n\t}", "public void searchByName(String name) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif(line.toLowerCase().contains(name.toLowerCase())) {\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "public void searchByName() {\n System.out.println(\"enter a name to search\");\n Scanner sc = new Scanner(System.in);\n String fName = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (fName.equals(person.getFirstName())) {\n List streamlist = list.stream().\n filter(n -> n.getFirstName().\n contains(fName)).\n collect(Collectors.toList());\n System.out.println(streamlist);\n }\n }\n }", "public List<T> findByName(String text) {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u where u.name like :name\");\n\t q.setParameter(\"name\", \"%\" + text + \"%\");\n\t return q.getResultList();\n\t }", "public boolean searchCertainItem(String itemname, String tableName, String columnName)\n {\n String selectStr;\n ResultSet rs;\n try{\n\n selectStr=\"SELECT \"+itemname+\" FROM \"+tableName+\" WHERE \"+ columnName+\" = \"+quotate(itemname);\n rs = stmt.executeQuery(selectStr);\n\n while (rs.next())\n {\n return true;\n }\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return false;\n\n }", "public String searchPerson(String name){\n String string = \"\";\n ArrayList<Person> list = new ArrayList<Person>();\n \n for(Person person: getPersons().values()){\n String _name = person.getName();\n if(_name.contains(name)){\n list.add(person);\n }\n }\n list.sort(Comparator.comparing(Person::getName));\n for (int i = 0; i < list.size(); i++){\n string += list.get(i).toString();\n }\n\n return string;\n }", "@Override\r\n\tpublic Customer search(String name) {\n\t\treturn null;\r\n\t}", "private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }", "private static void searchAnimalByName() {\n\t\tshowMessage(\"type in the animal's name: \\n\");\n\t\t\n\t\tString name = getUserTextTyped();\n\t\tToScreen.listAnimal(AnimalSearch.byName(name), true);\n\t\t\n\t\t//condition to do another search by name or go back to the main menu\n\t\t//if the user decide for doing another search the method is called again, otherwise it will go back to the main menu\n\t\tint tryAgain = askForGoMainMenu(\"Would you like to search for another name or go back to main menu?\\n Type 1 to search someone else \\n Type 0 to go to menu. \\n Choice: \");\n\t\tif(tryAgain == 1){\n\t\t\tsearchAnimalByName();\n\t\t} else {\n\t\t\tmain();\n\t\t}\n\t\t\n\t}", "public static Item getItem(String itemName)\n {\n Item temp = null;\n for (Item inventory1 : inventory) {\n if (inventory1.getName().equals(itemName)) {\n temp = inventory1;\n }\n }\n return temp;\n }", "public Item searchID(String ID) {\n Item foundItem = null;\n for (Item item : this) {\n if (item.getItemId().equals(ID)) {\n foundItem = item;\n break;\n }\n }\n return foundItem;\n }", "@Override\r\n\tpublic List<Product> searchProduct(String name,List<Product> prodlist) {\n\t\tList<Product> n=new ArrayList<Product>();\r\n\t\t{\r\n\t\t\tfor (Product x:prodlist)\r\n\t\t\t{\r\n\t\t\t\tif(name.equals(x.getName()))\r\n\t\t\t\t{\r\n\t\t\t\t\tn.add(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn n;\t\r\n\t\t\r\n\t}", "public void search(String searchTerm)\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon WHERE name LIKE '%\" + searchTerm + \"%'\");\r\n\t}", "List<Card> search(String searchString) throws PersistenceCoreException;", "public List<Student> searchStudent(String name) {\n List<Student> studentList = new ArrayList<>();\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM Students WHERE name = ? \", new String[]{name});\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }", "abstract public void search();", "public Amount<Mineral> searchByName(String name){\n\t\tfor(int i=0; i<this.mineralList.size(); i++) {\n\t\t\tif(this.mineralList.get(i).getObject().getName() == name)\n\t\t\t\treturn this.mineralList.get(i);\n\t\t}\n\t\treturn null;\n\t}", "public ObservableList<Product> lookupProduct(String productName) {\n ObservableList<Product> namedProducts = FXCollections.observableArrayList();\n for ( Product product : allProducts ) {\n if(product.getName().toLowerCase().contains(productName.toLowerCase())) {\n namedProducts.add(product);\n }\n }\n return namedProducts;\n }", "private int findItem(String searchItem){\n return myGrocery.indexOf(searchItem);\n }", "public boolean has(String itemName);", "public Inventory inventorySearch (TheGroceryStore g, String searchKey);", "@Override\n public List<KBHandle> searchItems(KnowledgeBase aKB, String aQuery)\n {\n return disambiguate(aKB, null, ConceptFeatureValueType.ANY_OBJECT, aQuery, null, 0, null);\n }", "public String findItem(String searchItem) {\n\n int position = groceryList.indexOf(searchItem);\n if(position >=0) {\n return groceryList.get(position);\n }\n\n return null;\n }", "public List<Component> searchComponent(String name) {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name like '%\"+name+\"%'\")\n\t\t.setMaxResults(10)\n\t\t.list();\n\t}", "public abstract SmartObject findIndividualName(String individualName);", "public Person find(String name) {\n\t\tfor (Person person : listOfPeople) {\n\t\t\tif(person.getName().contains(name)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null; // only reached if person with name not found by search.\n\t}", "public Item getItem(String itemName)\n {\n Item currentItem = items.get(0);\n // get each item in the items's array list.\n for (Item item : items){\n if (item.getName().equals(itemName)){\n currentItem = item;\n }\n }\n return currentItem;\n }", "public List<Product> findByNameCriteria(String name, int index) {\r\n CriteriaBuilder cb = em.getCriteriaBuilder();\r\n CriteriaQuery<Product> cq = cb.createQuery(Product.class);\r\n Root<Product> product = cq.from(Product.class);\r\n ParameterExpression<String> p = cb.parameter(String.class);\r\n\r\n cq.select(product)\r\n .where(\r\n cb.like(product.get(\"name\"), p),\r\n cb.isNull(product.get(\"name\")),\r\n cb.isNull(product.get(\"id\"))\r\n )\r\n .orderBy(cb.asc(product.get(\"price\")));\r\n\r\n TypedQuery<Product> q = em.createQuery(cq);\r\n q.setParameter(p, \"%\" + name + \"%\");\r\n q.setFirstResult(index);\r\n q.setMaxResults(3);\r\n return q.getResultList();\r\n }", "@Override\n\tpublic List<Product> searchByName(String productName) {\n\t\treturn productDAO.findByProductName(productName);\n\t\t\n\t}", "public Item resolveByName(String name, ItemSelector selector)\n {\n List<Item> items=_names.get(name);\n return resolveAmbiguity(name,items,selector);\n }", "public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public static Item getItemByName(String name)\n\t{\n\t\tfor(Item i : itemCollections)\n\t\t{\n\t\t\tif(i.getName() == name)\n\t\t\t\treturn i;\n\t\t}\n\t\tfor(Equipment equ : equipmentCollections)\n\t\t{\n\t\t\tif(equ.getName() == name)\n\t\t\t\treturn equ;\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Supplies> findbyname(String name) {\n\t\treturn suppliesDao.findbyname(name);\r\n\t}", "void search();", "void search();", "@Override\r\n\tpublic List<User> search(String name) {\n\t\treturn null;\r\n\t}", "public static boolean hasItem(String name)\n {\n boolean found = false;\n for (Item inventory1 : inventory)\n {\n if(inventory1.getName().equals(name)) found = true;\n }\n \n return found;\n }", "public ItemEntry getItem(String itemName) {\n ItemEntry entry = null;\n \n for(ItemEntry i: itemList) {\n if (i.getItemName().equals(itemName)) {\n entry = i;\n }\n }\n \n return entry;\n }", "public List search(String text){\r\n\t\tif(this.inverntory.empty())\r\n\t\t\tthrow new RuntimeException(\"Inventory is empty.\");\r\n\t\tList matchings = new List();\r\n\t\t// as long as inventory is not empty\r\n\t\t\r\n\t\twhile(!this.inverntory.empty()){\r\n\t\t /* Note:\r\n\t\t * public boolean contains(CharSequence s) Returns true if and only if\r\n\t\t * this string contains the specified sequence of char values. \r\n\t\t * contains(CharSequence s):boolean expects a CharSequence s as parameter.\r\n\t\t * CharSequence is an interface implemented by String\r\n\t\t */\r\n\t\t\t\r\n\t\t // check if entered string matches the description of the item\r\n\t\t if( ((LibraryItem) inverntory.elem()).getDescription().contains(text) ) {\r\n\t\t\t\t// add matchings to our list\r\n\t\t\t\tmatchings.add(this.inverntory.elem());\r\n\t\t\t}\r\n\t\t\t// if head of list is not target string, advance in list\r\n\t\t\telse {\r\n\t\t\t\tthis.inverntory.advance();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if you reach the end of the list, return the matchings\t\t\t\r\n\t\treturn matchings;\r\n\t}", "boolean contains(String name);", "int search(E item);", "public static boolean isName(Item item, String name) {\r\n \t\tif(item == null)\r\n \t\t\treturn false;\r\n \t\tString itemName = item.getUnlocalizedName().toLowerCase();\r\n \t\tif(itemName.contains(name))\r\n \t\t\treturn true;\r\n \t\treturn false;\r\n \t}", "public boolean search(String prodName)\n\t{\n\t WebDriverWait wait = new WebDriverWait(driver, 20);\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(searchbox))).sendKeys(prodName);\n \n //Tap on search after entering prod name\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(searchBTN))).click();\n\t\n // When the page is loaded, verify whether the loaded result contains the name of product or not \n String k = driver.findElement(By.xpath(\"//*[@id=\\\"LST1\\\"]/div/div[1]/div[2]\")).getText();\n boolean p = k.contains(prodName);\n return p;\n \n\t}", "@Test\r\n\tpublic void searchTest() {\r\n\t\tItem item = new Item();\r\n\t\t// first, search by name\r\n\t\tint k = 0;\r\n\t\ttry {\r\n\t\t\tk = item.searchCount(\"a\", null);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute searchCount by Name: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\tif (k > Item.ITEMS_PER_PAGE) k = Item.ITEMS_PER_PAGE;\r\n\t\tassertNotSame(k, 0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.search(\"a\", null);\r\n\t\t\tassertSame(tempSet.length, k);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search by name: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// check if search returns actual items\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.search(\"a\", null);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) {\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotNull(tempSet[i].getId());\r\n\t\t\t\tassertNotSame(tempSet[i].getId(), 0);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load items for search by name: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// then search by type (category)\r\n\t\tk = 0;\r\n\t\ttry {\r\n\t\t\tk = item.searchCount(null, \"a\");\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute searchCount by Type: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\tif (k > Item.ITEMS_PER_PAGE) k = Item.ITEMS_PER_PAGE;\r\n\t\tassertNotSame(k, 0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.search(null, \"a\");\r\n\t\t\tassertSame(tempSet.length, k);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search by type: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// now search by store name\r\n\t\tk = 0;\r\n\t\ttry {\r\n\t\t\tk = item.searchCountS(\"a\");\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute searchCount by Store Name: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\tif (k > Item.ITEMS_PER_PAGE) k = Item.ITEMS_PER_PAGE;\r\n\t\tassertNotSame(k, 0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.searchS(\"a\", 0);\r\n\t\t\tassertSame(tempSet.length, k);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search by Store Name: SQLException\");\r\n\t\t}\r\n\t}", "public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }", "public static <T extends Searchable> T lookup(final String nameOrIndex, final List<T> items) {\n final String name = nameOrIndex;\n int index = -1;\n try {\n index = Integer.parseInt(nameOrIndex) - 1;\n } catch (final NumberFormatException e) {\n Entity.LOGGER.log(Level.FINE, e.getMessage(), e);\n }\n if (index >= 0 && index < items.size()) {\n return items.get(index);\n }\n\n return items.stream().filter(i -> i.getNameLookup().equals(name)).findFirst().orElse(null);\n }", "public Object get(String itemName);", "public List<Resource> findByNameContaining(String nameFragment) {\n\t\tMap<String, Object> nameFilter = new HashMap<>();\n\t\tnameFilter.put(\"name\", new ValueParameter(\"%\" + nameFragment + \"%\"));\n\t\treturn this.filter(nameFilter);\n\t}", "public void search() {\r\n \t\r\n }", "public List<Product> findByName(String name, int index) {\r\n return em.createQuery(\"SELECT p FROM Product p \"\r\n + \"WHERE p.name IS NOT NULL AND p.name \"\r\n + \"LIKE :name ORDER BY p.price\")\r\n .setParameter(\"name\", \"%\" + name + \"%\")\r\n .setFirstResult(index)\r\n .setMaxResults(3)\r\n .getResultList();\r\n }", "public ResultSet getCertainRow(String itemname, String tableName, String columnName)\n {\n\n String selectStr;\n ResultSet rs=null;\n String itemn=\"%\"+itemname+\"%\";\n\n try{\n\n selectStr=\"SELECT * FROM \"+tableName+\" WHERE \"+ columnName+\" LIKE \"+quotate(itemn);\n rs = stmt.executeQuery(selectStr);\n\n\n\n\n\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return rs;\n }", "public static void itemsearch(List<String> shoppingList) {\n\n\n\n if(shoppingList.contains(\"milk\")){\n System.out.println(\"The list contains milk\");\n }\n else{\n System.out.println(\"We dont have milk on our list\");\n }\n\n if(shoppingList.contains(\"bananas\")){\n System.out.println(\"the list contains bananas\");\n }\n else{\n System.out.println(\"We dont have bananas on our list\");\n }\n }", "public Item getItemByName(String itemName) {\n\t\t\n\t\tfor (Item item : itemsInStock) {\n\t\t\tif (item.name.equals(itemName)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public ClassItem SearchClass(String className) {\n\t\tfor(ClassItem classitem : classItem)\n\t\t{\n\t\t\tif(classitem.name==className)\n\t\t\t\treturn classitem;\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.7320778", "0.72580737", "0.7243219", "0.7199301", "0.7183148", "0.71498", "0.70691353", "0.7046923", "0.6846989", "0.68109655", "0.6809041", "0.67635614", "0.6747009", "0.67254657", "0.6719093", "0.6696031", "0.66527826", "0.6643273", "0.6529944", "0.65020186", "0.6443619", "0.644048", "0.6386865", "0.63826895", "0.6367488", "0.63533026", "0.6349083", "0.63392544", "0.632858", "0.6325043", "0.6312936", "0.6306717", "0.630005", "0.6289931", "0.62832403", "0.62753725", "0.6272187", "0.62618184", "0.6250344", "0.62415016", "0.62187535", "0.6214498", "0.62060344", "0.6204254", "0.6200679", "0.6197152", "0.6190765", "0.6189888", "0.6186277", "0.6176983", "0.61738837", "0.6169758", "0.6166577", "0.61658615", "0.6161825", "0.6135806", "0.6132985", "0.6122256", "0.61135304", "0.6112005", "0.610448", "0.6102997", "0.6094913", "0.60924155", "0.6092005", "0.6087167", "0.60759526", "0.60758233", "0.6061698", "0.60587895", "0.6053995", "0.60507894", "0.60452914", "0.6043145", "0.60386986", "0.6038588", "0.6029514", "0.6025333", "0.60250604", "0.6021844", "0.6021844", "0.6019333", "0.6016523", "0.6008125", "0.6007077", "0.5997531", "0.5983563", "0.5980325", "0.5974173", "0.596581", "0.5960394", "0.59562266", "0.59520656", "0.59207565", "0.59186226", "0.59153557", "0.5914978", "0.590557", "0.5904272", "0.590324" ]
0.6795367
11
When the front camera supported CameraMetadataCONTROL_AE_MODE_ON_EXTERNAL_FLASH,better fontfacing flash support via an app drawing a bring white screen by reducing tatal capture time.
private void doStandardCapture() { String flashValue = mExposure.getCurrentFlashValue(); LogHelper.d(TAG, "[doStandardCapture] with flash = " + flashValue); switch (flashValue) { case FLASH_ON_VALUE: captureStandardPanel(); break; case FLASH_AUTO_VALUE: captureStandardWithFlashAuto(); break; case FLASH_OFF_VALUE: mExposure.capture(); break; default: LogHelper.w(TAG, "[doStandardCapture] error flash value" + flashValue); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flash(){\n phoneCam.setFlashlightEnabled(!flash);\n flash = !flash;\n }", "boolean useCamera2FakeFlash();", "private boolean hasFlash() {\n return getApplicationContext().getPackageManager()\n .hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);\n }", "void turnFrontScreenFlashOn();", "private static void turnFlashlightOn() {\n Parameters p = cam.getParameters();\n p.setFlashMode(Parameters.FLASH_MODE_TORCH);\n cam.setParameters(p);\n }", "private boolean fireAutoFlashFrontScreen() {\n final int iso_threshold = 750;\n return capture_result_has_iso && capture_result_iso >= iso_threshold;\n }", "private void turnOnFlash() {\n if (!batteryOk) {\n showBatteryLowDialog();\n return;\n }\n getCamera();\n Log.d(\"Flash on?\", \"============+>\" + String.valueOf(isFlashOn));\n if (!isFlashOn) {\n if (camera == null || params == null) {\n isFlashOn = false;\n return;\n }\n // play sound\n playSound();\n try {\n if (freq != 0) {\n sr = new StroboRunner();\n t = new Thread(sr);\n t.start();\n } else {\n params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE);\n }\n camera.setParameters(params);\n camera.startPreview();\n }\n } catch (Exception e) {\n // Do nothing;\n }\n\n isFlashOn = true;\n // changing button/switch image\n toggleButtonImageSwitch();\n }\n\n }", "private void updateUseFakePrecaptureMode(String flash_value) {\n if (MyDebug.LOG)\n Log.d(TAG, \"useFakePrecaptureMode: \" + flash_value);\n boolean frontscreen_flash = flash_value.equals(\"flash_frontscreen_auto\") || flash_value.equals(\"flash_frontscreen_on\");\n if (frontscreen_flash) {\n use_fake_precapture_mode = true;\n } else if (burst_type != BurstType.BURSTTYPE_NONE)\n use_fake_precapture_mode = true;\n else {\n use_fake_precapture_mode = use_fake_precapture;\n }\n if (MyDebug.LOG)\n Log.d(TAG, \"use_fake_precapture_mode set to: \" + use_fake_precapture_mode);\n }", "private boolean _checkIfCameraHasFlash(){\n\n\t\t// Checks to see if the device has a camera flash (flash light)\n\t\tboolean hasFlash = _main.getApplicationContext()\n\t\t\t\t.getPackageManager()\n\t\t\t\t.hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);\n\n\t\treturn hasFlash;\n\t}", "private static void turnFlashlightOff() {\n Parameters p = cam.getParameters();\n p.setFlashMode(Parameters.FLASH_MODE_OFF);\n cam.setParameters(p);\n }", "private void turnOffFlash() {\n getCamera();\n Log.d(\"Flash on?\", \"============+>\" + String.valueOf(isFlashOn));\n if (isFlashOn) {\n if (camera == null || params == null) {\n isFlashOn = false;\n return;\n }\n // play sound\n playSound();\n params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n camera.setParameters(params);\n if (!isCameraOn) {\n mPreview = null;\n camera.stopPreview();\n }\n if (t != null) {\n sr.stopRunning = true;\n t = null;\n }\n isFlashOn = false;\n // changing button/switch image\n toggleButtonImageSwitch();\n }\n }", "public boolean updateParametersFlashMode() {\n boolean bNeedUpdate = false;\n FlashMode flashMode = this.mCameraCapabilities.getStringifier().flashModeFromString(this.mActivity.getSettingsManager().getString(this.mAppController.getCameraScope(), Keys.KEY_FLASH_MODE));\n if (flashMode != FlashMode.OFF) {\n bNeedUpdate = true;\n }\n if (bNeedUpdate && this.mCameraSettings != null && FlashMode.TORCH == this.mCameraSettings.getCurrentFlashMode()) {\n this.mCameraSettings.setFlashMode(FlashMode.OFF);\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n }\n }\n if (this.mCameraCapabilities.supports(flashMode) && this.mActivity.currentBatteryStatusOK()) {\n this.mCameraSettings.setFlashMode(flashMode);\n } else if (this.mCameraCapabilities.supports(FlashMode.OFF)) {\n this.mCameraSettings.setFlashMode(FlashMode.OFF);\n } else {\n this.mCameraSettings.setFlashMode(FlashMode.NO_FLASH);\n }\n if (!(this.mEvoFlashLock == null || this.mCameraSettings == null)) {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"evo setFlashMode \");\n stringBuilder.append(FlashMode.OFF);\n Log.d(tag, stringBuilder.toString());\n }\n return bNeedUpdate;\n }", "public void updateFrontPhotoflipMode() {\n if (isCameraFrontFacing()) {\n this.mCameraSettings.setMirrorSelfieOn(Keys.isMirrorSelfieOn(this.mAppController.getSettingsManager()));\n }\n }", "void onFrontCameraNotFound() {\n mUserAwarenessListener.onErrorOccurred(Errors.FRONT_CAMERA_NOT_AVAILABLE);\n\n //Stop eye tracking.\n stopEyeTracking();\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n }", "@Override\n public void onClick(View view) {\n Camera.Parameters parameters = mCamera.getParameters();\n if (flashOn) {\n flash.setImageResource(R.drawable.ic_flash_two);\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n flashOn = false;\n } else {\n flash.setImageResource(R.drawable.ic_flash);\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_ON);\n flashOn = true;\n }\n if (nextCam == Camera.CameraInfo.CAMERA_FACING_BACK)\n mCamera.setParameters(parameters);\n }", "@SuppressLint(\"InlinedApi\")\n private void createCameraSource(boolean autoFocus, boolean useFlash) {\n Context context = getApplicationContext();\n\n // A text recognizer is created to find text. An associated processor instance\n // is set to receive the text recognition results and display graphics for each text block\n // on screen.\n TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();\n textRecognizer.setProcessor(new OcrDetectorProcessor(mGraphicOverlay,this));\n\n if (!textRecognizer.isOperational()) {\n // Note: The first time that an app using a Vision API is installed on a\n // device, GMS will download a native libraries to the device in order to do detection.\n // Usually this completes before the app is run for the first time. But if that\n // download has not yet completed, then the above call will not detect any text,\n // barcodes, or faces.\n //\n // isOperational() can be used to check if the required native libraries are currently\n // available. The detectors will automatically become operational once the library\n // downloads complete on device.\n Log.w(TAG, \"Detector dependencies are not yet available.\");\n\n // Check for low storage. If there is low storage, the native library will not be\n // downloaded, so detection will not become operational.\n IntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n boolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\n if (hasLowStorage) {\n Toast.makeText(this, \"Memori HP kurang\", Toast.LENGTH_LONG).show();\n Log.w(TAG, \"Memori HP kurang\");\n }\n }\n\n // Creates and starts the camera. Note that this uses a higher resolution in comparison\n // to other detection examples to enable the text recognizer to detect small pieces of text.\n mCameraSource =\n new CameraSource.Builder(getApplicationContext(), textRecognizer)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setRequestedPreviewSize(1280, 1024)\n .setRequestedFps(2.0f)\n .setFlashMode(useFlash ? Camera.Parameters.FLASH_MODE_TORCH : null)\n .setFocusMode(autoFocus ? Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE : null)\n .build();\n mCameraSource.doZoom(1f);\n }", "public void startFrontCam() {\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif (DEBUG>=2) Log.d(TAG, \"onResumed'd\");\n\t\tIS_PAUSING = NO;\n\t\twl.acquire();\n\t\tpreview.onResume();\n\t}", "private static void mapAeAndFlashMode(android.hardware.camera2.impl.CameraMetadataNative r1, android.hardware.camera2.CameraCharacteristics r2, android.hardware.Camera.Parameters r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.mapAeAndFlashMode(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.CameraCharacteristics, android.hardware.Camera$Parameters):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.mapAeAndFlashMode(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.CameraCharacteristics, android.hardware.Camera$Parameters):void\");\n }", "private void updateCachedAECaptureStatus(CaptureResult result) {\n Integer ae_state = result.get(CaptureResult.CONTROL_AE_STATE);\n Integer flash_mode = result.get(CaptureResult.FLASH_MODE);\n\n if (use_fake_precapture_mode && (fake_precapture_torch_focus_performed || fake_precapture_torch_performed) && flash_mode != null && flash_mode == CameraMetadata.FLASH_MODE_TORCH) {\n // don't change ae state while torch is on for fake flash\n } else if (ae_state == null) {\n capture_result_ae = null;\n is_flash_required = false;\n } else if (!ae_state.equals(capture_result_ae)) {\n // need to store this before calling the autofocus callbacks below\n if (MyDebug.LOG)\n Log.d(TAG, \"CONTROL_AE_STATE changed from \" + capture_result_ae + \" to \" + ae_state);\n capture_result_ae = ae_state;\n // capture_result_ae should always be non-null here, as we've already handled ae_state separately\n if (capture_result_ae == CaptureResult.CONTROL_AE_STATE_FLASH_REQUIRED && !is_flash_required) {\n is_flash_required = true;\n if (MyDebug.LOG)\n Log.d(TAG, \"flash now required\");\n } else if (capture_result_ae == CaptureResult.CONTROL_AE_STATE_CONVERGED && is_flash_required) {\n is_flash_required = false;\n if (MyDebug.LOG)\n Log.d(TAG, \"flash no longer required\");\n }\n }\n\n if (ae_state != null && ae_state == CaptureResult.CONTROL_AE_STATE_SEARCHING) {\n capture_result_is_ae_scanning = true;\n } else {\n capture_result_is_ae_scanning = false;\n }\n }", "@SuppressLint(\"NewApi\")\n public void flipit() {\n if (mCamera == null) {\n return;\n }\n if (Camera.getNumberOfCameras() >= 2) {\n btn_switch.setEnabled(false);\n if (null != mCamera) {\n try {\n mCamera.setPreviewCallback(null);\n mCamera.stopPreview();\n //这句要在stopPreview后执行,不然会卡顿或者花屏\n mCamera.setPreviewDisplay(null);\n mCamera.release();\n mCamera = null;\n Log.i(TAG, \"=== Stop Camera ===\");\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n // \"which\" is just an integer flag\n switch (frontCamera) {\n case 0:\n mCamera = Camera.open(CameraInfo.CAMERA_FACING_FRONT);\n frontCamera = 1;\n break;\n case 1:\n mCamera = Camera.open(CameraInfo.CAMERA_FACING_BACK);\n frontCamera = 0;\n break;\n }\n\n if (Build.VERSION.SDK_INT > 17 && this.mCamera != null) {\n try {\n this.mCamera.enableShutterSound(false);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"CJT\", \"enable shutter_sound sound faild\");\n }\n }\n\n doStartPreview();\n btn_switch.setEnabled(true);\n }\n }", "public void onPreviewStarted() {\n if (!this.mPaused) {\n Log.w(TAG, \"KPI photo preview started\");\n this.mAppController.onPreviewStarted();\n this.mAppController.setShutterEnabled(true);\n this.mAppController.setShutterButtonLongClickable(this.mIsImageCaptureIntent ^ 1);\n this.mAppController.getCameraAppUI().enableModeOptions();\n this.mUI.clearEvoPendingUI();\n if (this.mEvoFlashLock != null) {\n this.mAppController.getButtonManager().enableButtonWithToken(0, this.mEvoFlashLock.intValue());\n this.mEvoFlashLock = null;\n }\n if (this.mCameraState == 7) {\n setCameraState(5);\n } else {\n setCameraState(1);\n }\n if (isCameraFrontFacing()) {\n this.mUI.setZoomBarVisible(false);\n } else {\n this.mUI.setZoomBarVisible(true);\n }\n if (this.mActivity.getCameraAppUI().isNeedBlur() || onGLRenderEnable()) {\n new Handler().postDelayed(new Runnable() {\n public void run() {\n PhotoModule.this.startFaceDetection();\n }\n }, 1500);\n } else {\n startFaceDetection();\n }\n BoostUtil.getInstance().releaseCpuLock();\n if (this.mIsGlMode) {\n this.mActivity.getCameraAppUI().hideImageCover();\n if (this.mActivity.getCameraAppUI().getBeautyEnable()) {\n this.mActivity.getCameraAppUI().getCameraGLSurfaceView().queueEvent(new Runnable() {\n public void run() {\n PhotoModule.this.mActivity.getButtonManager().setSeekbarProgress((int) PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek());\n PhotoModule.this.updateBeautySeek(PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() / 20.0f);\n }\n });\n }\n if (this.mActivity.getCameraAppUI().getEffectEnable()) {\n this.mActivity.getCameraAppUI().getCameraGLSurfaceView().queueEvent(new Runnable() {\n public void run() {\n if (TextUtils.isEmpty(PhotoModule.this.mActivity.getCameraAppUI().getCurrSelect())) {\n BeaurifyJniSdk.preViewInstance().nativeDisablePackage();\n } else {\n BeaurifyJniSdk.preViewInstance().nativeChangePackage(PhotoModule.this.mActivity.getCameraAppUI().getCurrSelect());\n }\n }\n });\n }\n }\n }\n }", "@Override\n\tpublic void setFlashing(int bool) {\n\n\t}", "public boolean hideCameraForced() {\n return false;\n }", "private void setCameraFlashModeIcon(android.widget.ImageView r5, java.lang.String r6) {\n /*\n r4 = this;\n r0 = r6.hashCode();\n r1 = 3551; // 0xddf float:4.976E-42 double:1.7544E-320;\n r2 = 2;\n r3 = 1;\n if (r0 == r1) goto L_0x0029;\n L_0x000a:\n r1 = 109935; // 0x1ad6f float:1.54052E-40 double:5.4315E-319;\n if (r0 == r1) goto L_0x001f;\n L_0x000f:\n r1 = 3005871; // 0x2dddaf float:4.212122E-39 double:1.4850976E-317;\n if (r0 == r1) goto L_0x0015;\n L_0x0014:\n goto L_0x0033;\n L_0x0015:\n r0 = \"auto\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x001d:\n r6 = 2;\n goto L_0x0034;\n L_0x001f:\n r0 = \"off\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x0027:\n r6 = 0;\n goto L_0x0034;\n L_0x0029:\n r0 = \"on\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x0031:\n r6 = 1;\n goto L_0x0034;\n L_0x0033:\n r6 = -1;\n L_0x0034:\n if (r6 == 0) goto L_0x0061;\n L_0x0036:\n if (r6 == r3) goto L_0x004e;\n L_0x0038:\n if (r6 == r2) goto L_0x003b;\n L_0x003a:\n goto L_0x0073;\n L_0x003b:\n r6 = 2131165380; // 0x7f0700c4 float:1.7944975E38 double:1.0529356E-314;\n r5.setImageResource(r6);\n r6 = 2131558417; // 0x7f0d0011 float:1.874215E38 double:1.053129786E-314;\n r0 = \"AccDescrCameraFlashAuto\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n goto L_0x0073;\n L_0x004e:\n r6 = 2131165382; // 0x7f0700c6 float:1.794498E38 double:1.052935601E-314;\n r5.setImageResource(r6);\n r6 = 2131558419; // 0x7f0d0013 float:1.8742153E38 double:1.053129787E-314;\n r0 = \"AccDescrCameraFlashOn\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n goto L_0x0073;\n L_0x0061:\n r6 = 2131165381; // 0x7f0700c5 float:1.7944978E38 double:1.0529356004E-314;\n r5.setImageResource(r6);\n r6 = 2131558418; // 0x7f0d0012 float:1.8742151E38 double:1.0531297864E-314;\n r0 = \"AccDescrCameraFlashOff\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.p004ui.Components.ChatAttachAlert.setCameraFlashModeIcon(android.widget.ImageView, java.lang.String):void\");\n }", "public static boolean hasFrontCamera(final Context context) {\n final PackageManager pm = context.getPackageManager();\n return pm != null && pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);\n }", "@Override \r\n\t\tprotected void onDraw(Canvas canvas) {\r\n\t\t\tsuper.onDraw(canvas);\r\n\t\t\tint w = canvas.getWidth();\r\n\t\t\tint h = canvas.getHeight();\r\n\t\t\tif(fdtmodeBitmap_!=null){\r\n\t\t\t\tint x = w-100;\r\n\t\t\t\tint y = 10;\r\n \t\tcanvas.drawBitmap(fdtmodeBitmap_, null , new Rect(x,y,x+70,y+20),paint_);\r\n\t\t\t}\r\n\t\t\tfloat xRatio = (float)w / previewWidth_; \r\n\t\t\tfloat yRatio = (float)h / previewHeight_;\r\n\t\t\tfor(int i=0; i<MAX_FACE; i++){\r\n\t\t\t\tFaceResult face = faces_[i];\r\n\t\t\t\tfloat eyedist = face.eyesDistance()*xRatio;\r\n\t\t\t\tif(eyedist==0.0f)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tPointF midEyes = new PointF();\r\n\t\t\t\tface.getMidPoint(midEyes);\r\n\t\t\t\tif(appMode_==0){\r\n\t\t\t\t\tPointF lt = new PointF(midEyes.x*xRatio-eyedist*1.5f,midEyes.y*yRatio-eyedist*1.5f);\r\n\t\t\t\t\tcanvas.drawRect((int)(lt.x),(int)(lt.y),(int)(lt.x+eyedist*3.0f),(int)(lt.y+eyedist*3.0f), paint_); \r\n\t\t\t\t}\r\n\t\t\t\telse if(overlayBitmap_!=null){\r\n\t\t\t\t\tPointF lt = new PointF(midEyes.x*xRatio-eyedist*1.75f,midEyes.y*yRatio-eyedist*1.75f);\r\n\t \t\tcanvas.drawBitmap(overlayBitmap_, null , new Rect((int)lt.x, (int)lt.y,(int)(lt.x+eyedist*3.5f),(int)(lt.y+eyedist*3.5f)),paint_);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void surfaceCreated(SurfaceHolder holder) {\n try {\n \tCamera.Parameters parameters = getOptimalPreviewSize(mCamera);\n \t\n \tthis.setLayoutParams(getLayoutParams(parameters.getPreviewSize()));\n \n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO);\n \n parameters.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_AUTO);\n \n parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO);\n\n mCamera.setDisplayOrientation(90);\n \n mCamera.setParameters(parameters);\n mCamera.setPreviewDisplay(holder);\n mCamera.startPreview();\n } catch (IOException e) {\n Log.d(\"CameraView\", \"Error setting camera preview: \" + e.getMessage());\n }\n }", "private void on(){\n\n\t\t// if light is off and there is a flash object\n\t\tif(_flash != null && !isFlashOn){\n\n\t\t\t_flash.on();\n\t\t\tisFlashOn = true;\n\t\t}\n\t}", "public void flash() {\n mFlash = true;\n invalidate();\n }", "@Override\n public boolean workaroundBySurfaceProcessing() {\n return isHuaweiMate20() || isHuaweiMate20Pro() || isHuaweiP40Lite();\n }", "private void turnOffCamera() {\n playSound();\n preview.removeAllViews();\n params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n camera.setParameters(params);\n camera.stopPreview();\n camera.release();\n camera = null;\n isCameraOn = false;\n strobo.setChecked(false);\n turnOffFlash();\n toggleButtonImageCamera();\n\n }", "private void attachFrontlineHUD() {\r\n\t\tResourceManager.getInstance().getCamera().setHUD(HUDRegion);\r\n\t}", "public void enableTorchMode(boolean enable) {\n if (this.mCameraSettings.getCurrentFlashMode() != null) {\n FlashMode flashMode;\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n Stringifier stringifier = this.mCameraCapabilities.getStringifier();\n if (enable) {\n flashMode = stringifier.flashModeFromString(settingsManager.getString(this.mAppController.getCameraScope(), Keys.KEY_VIDEOCAMERA_FLASH_MODE));\n } else {\n flashMode = FlashMode.OFF;\n }\n if (this.mCameraCapabilities.supports(flashMode)) {\n this.mCameraSettings.setFlashMode(flashMode);\n }\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n }\n this.mUI.updateOnScreenIndicators(this.mCameraSettings);\n }\n }", "protected void dangerButton(View v) {\n if (isPlay) {\n turnOffActions();\n }\n else{\n boolean bool = activateActions();\n if (bool) {\n // launchCamera(View.VISIBLE);\n //right here //////////////////////////////////////////////////////////////////////////////////////\n try {\n camera = Camera.open();\n camera.setDisplayOrientation(90);\n\n } catch (RuntimeException e) {\n return;\n }\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n } catch (Exception e) {\n return;\n }\n }\n }\n }", "@Override\n public String getFlashValue() {\n if (!characteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE)) {\n return \"\";\n }\n return camera_settings.flash_value;\n }", "private void m146649c() {\n if (this.f108106a) {\n getHolder().setFormat(-2);\n setZOrderOnTop(true);\n }\n getHolder().addCallback(this.f108110e);\n setAlpha(0.0f);\n }", "private void setup3AControlsLocked(CaptureRequest.Builder builder) {\n builder.set(CaptureRequest.CONTROL_MODE,\n CaptureRequest.CONTROL_MODE_AUTO);\n\n Float minFocusDist =\n mCharacteristics.get(CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE);\n\n // If MINIMUM_FOCUS_DISTANCE is 0, lens is fixed-focus and we need to skip the AF run.\n mNoAFRun = (minFocusDist == null || minFocusDist == 0);\n\n if (!mNoAFRun) {\n // If there is a \"continuous picture\" mode available, use it, otherwise default to AUTO.\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE)) {\n builder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n } else {\n builder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_AUTO);\n }\n }\n\n // If there is an auto-magical flash control mode available, use it, otherwise default to\n // the \"on\" mode, which is guaranteed to always be available.\n if (mNowFlashState != FlashState.CLOSE) {\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH)) {\n builder.set(CaptureRequest.CONTROL_AE_MODE,\n CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH);\n } else {\n builder.set(CaptureRequest.CONTROL_AE_MODE,\n CaptureRequest.CONTROL_AE_MODE_ON);\n }\n }\n\n // If there is an auto-magical white balance control mode available, use it.\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AWB_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AWB_MODE_AUTO)) {\n // Allow AWB to run auto-magically if this device supports this\n builder.set(CaptureRequest.CONTROL_AWB_MODE,\n CaptureRequest.CONTROL_AWB_MODE_AUTO);\n }\n }", "public void mo1404d() {\n if (CarlifeConfig.m4065a()) {\n LogUtil.d(f2837a, \"onResume: Internal screen capture not send forground msg.\");\n return;\n }\n LogUtil.d(f2837a, \"onResume: full screen capture send forground msg.\");\n BtHfpProtocolHelper.m3442a(false, true);\n }", "@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}", "public void flashlightSwitch()\n {\n usingFlashlight = !usingFlashlight;\n }", "public boolean isLowLightShow() {\n return false;\n }", "public void setupPreview() {\n Log.i(TAG, \"setupPreview\");\n this.mFocusManager.resetTouchFocus();\n if (this.mAppController.getCameraProvider().isBoostPreview()) {\n this.mActivity.clearBoost();\n }\n startPreview();\n }", "public boolean needEnableExposureAdjustment() {\n boolean z = true;\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n if (this.mSceneMode != SceneMode.AUTO || Keys.isLowlightOn(this.mAppController.getSettingsManager())) {\n z = false;\n }\n return z;\n }", "@SuppressLint(\"NewApi\")\n protected void updatePreview() {\n if(null == mCameraDevice) {\n Log.e(TAG, \"updatePreview error, return\");\n }\n\n mPreviewBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);\n HandlerThread thread = new HandlerThread(\"CameraPreview\");\n thread.start();\n Handler backgroundHandler = new Handler(thread.getLooper());\n\n try {\n mPreviewSession.setRepeatingRequest(mPreviewBuilder.build(), null, backgroundHandler);\n } catch (CameraAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_constant_flash) {\n if (isFlashSupported()) {\n camera = Camera.open();\n parameters = camera.getParameters();\n\n if(isFlashLightOn){\n // flashLightButton.setImageResource(R.drawable.flashlight_off);\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n camera.setParameters(parameters);\n camera.stopPreview();\n isFlashLightOn = false;\n }else{\n // flashLightButton.setImageResource(R.drawable.flashlight_on);\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);\n camera.setParameters(parameters);\n camera.startPreview();\n isFlashLightOn = true;\n }\n\n }\n else {\n Toast.makeText(this, \"No FlashLight supported\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n\n return true;\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public void testSurfaceRecording() {\n assertTrue(testRecordFromSurface(false /* persistent */, false /* timelapse */));\n }", "@Override\n\t\tpublic void onPreviewFrame(byte[] data, Camera camera) {\n\n\t\t\tlong t=System.currentTimeMillis();\n\n\t\t\tmYuv.put(0, 0, data);\n\t\t\tMat mRgba = new Mat();\n\t\t\tImgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(CAMERA_HEIGHT, CAMERA_WIDTH, Bitmap.Config.ARGB_8888);\n\n\t\t\tif (Utils.matToBitmap(mRgba, bmp)){\n\t\t\t\tMatrix m=new Matrix();\n\t\t\t\tif(cameraIndex==0)\n\t\t\t\t\tm.setRotate(90);\n\t\t\t\telse{\n\t\t\t\t\tm.setRotate(-90);\n\t\t\t\t\tm.postScale(-1, 1);\n\t\t\t\t}\n\t\t\t\tBitmap mBit=Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), m, true);\n\t\t\t\tMat mbit=Utils.bitmapToMat(mBit);\n\t\t\t\tMat mGray=new Mat();\n\t\t\t\tlong t2=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"catch time:\"+(t2-t));\n\t\t\t\tImgproc.cvtColor(mbit, mGray, Imgproc.COLOR_RGBA2GRAY);\n\t\t\t\tFace face=ph.detectFace_and_eyes(mGray, 1.0f);\n\t\t\t\tlong t3=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"detectFace_and_eyes time:\"+(t3-t2));\n\t\t\t\tm.reset();\n\t\t\t\tm.postScale(2, 2);\n\t\t\t\tBitmap bmshow=Bitmap.createBitmap(mBit, 0, 0, mBit.getWidth(), mBit.getHeight(), m, true);\n\t\t\t\tCanvas canvas=mHolder.lockCanvas();\n\t\t\t\tcanvas.drawBitmap(bmshow, 0, 0, null);\n\n\n\t\t\t\tif(face!=null){\n\t\t\t\t\tPaint paint=new Paint();\n\t\t\t\t\tpaint.setStrokeWidth(3);\n\t\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\t\tpaint.setColor(Color.GREEN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.face_area), paint);\n\n\t\t\t\t\tpaint.setColor(Color.CYAN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.left_eye), paint);\n\t\t\t\t\tcanvas.drawRect(getRect(face.right_eye), paint); \n\n\t\t\t\t\tif(face.enable){\n\t\t\t\t\t\t\n\t\t\t\t\t\tMat faceimg=ph.makefaceimg(mGray, face);\n\t\t\t\t\t\tif(faceimg!=null){\n\t\t\t\t\t\t\tMessage.obtain(handler, 0x0100, faceimg).sendToTarget();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(TAG, \"prehandle time:\"+(System.currentTimeMillis()-t3));\n\t\t\t\t\t}\n\t\t\t\t}\t \n\t\t\t\tmFps.measure();\n\t\t\t\tmFps.draw(canvas, (canvas.getWidth() - bmp.getWidth()) / 2, 0);\n\n\t\t\t\tmHolder.unlockCanvasAndPost(canvas);\n\t\t\t\tmGray.release();\n\t\t\t\tmbit.release();\n\t\t\t\tmBit.recycle();\n\t\t\t}\n\t\t\tmRgba.release();\n\t\t\tbmp.recycle();\n\n\t\t\tt=System.currentTimeMillis()-t;\n\t\t\tLog.d(TAG, \"time:\"+t+\"ms\");\n\t\t}", "@Override\n public void onConfigured(\n CameraCaptureSession cameraCaptureSession) {\n if (null == mCameraDevice) {\n return;\n }\n\n // When the session is ready, we start displaying the preview.\n mCaptureSession = cameraCaptureSession;\n\n try {\n // 自动对焦\n // Auto focus should be continuous for camera preview.\n mPreviewRequestBuilder.set(\n CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n\n // Flash is automatically enabled when necessary.\n setAutoFlash(mPreviewRequestBuilder);\n\n // Finally, we start displaying the camera preview.\n mPreviewRequest = mPreviewRequestBuilder.build();\n mCaptureSession.setRepeatingRequest(\n mPreviewRequest,\n // 如果想要拍照,那么绝不能设置为null\n // 如果单纯预览,那么可以设置为null\n mCaptureCallback,\n mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public void mo1402b() {\n if (CarlifeConfig.m4065a()) {\n LogUtil.d(f2837a, \"onStop: Internal screen capture not send background msg. \");\n return;\n }\n LogUtil.d(f2837a, \"onStop: full screen capture send background msg.\");\n BtHfpProtocolHelper.m3442a(false, false);\n }", "public void mo14068C() {\n this.f15664t0.onExitDiscoverMode();\n this.f15643Y.setTranslationY(0.0f);\n this.f15643Y.setAlpha(1.0f);\n this.f15637S.setTranslationX(0.0f);\n this.f15637S.setAlpha(1.0f);\n this.f15641W.setTranslationX(0.0f);\n this.f15641W.setAlpha(1.0f);\n this.f15639U.setAlpha(1.0f);\n this.f15648d0.mo22797a();\n this.f15646b0.setVisibility(8);\n this.f15643Y.setVisibility(0);\n this.f15637S.setVisibility(0);\n this.f15641W.setVisibility(0);\n this.f15639U.setVisibility(0);\n m17129H();\n this.f15651g0 = false;\n ((MeUserManager) this.f15668x0.get()).mo8754a(false);\n }", "private boolean isFrontCamera() {\n closeMenu();\n\n if (mIsVersionJ || mIsVersionK) {\n return (mDevice.hasObject(By.desc(\"Switch to back camera\")));\n } else if (mIsVersionI) {\n return (mDevice.hasObject(By.desc(\"Front camera\")));\n } else {\n // Open mode options if not open\n UiObject2 modeoptions = getModeOptionsMenuButton();\n if (modeoptions != null) {\n modeoptions.click();\n }\n return (mDevice.hasObject(By.desc(\"Front camera\")));\n }\n }", "@SuppressLint(\"InlinedApi\")\n private void createCameraSource(boolean autoFocus, boolean useFlash) {\n Context context = getApplicationContext();\n\n // Create the TextRecognizer\n TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();\n // Set the TextRecognizer's Processor.\n textRecognizer.setProcessor(mProcessor);\n\n // Check if the TextRecognizer is operational.\n if (!textRecognizer.isOperational()) {\n Log.w(TAG, \"Detector dependencies are not yet available.\");\n\n // Check for low storage. If there is low storage, the native library will not be\n // downloaded, so detection will not become operational.\n IntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n boolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\n if (hasLowStorage) {\n Toast.makeText(this, R.string.low_storage_error, Toast.LENGTH_LONG).show();\n Log.w(TAG, getString(R.string.low_storage_error));\n }\n }\n\n // Create the mCameraSource using the TextRecognizer.\n mCameraSource =\n new CameraSource.Builder(getApplicationContext(), textRecognizer)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setRequestedPreviewSize(1280, 1024)\n .setRequestedFps(15.0f)\n .setFlashMode(useFlash ? Camera.Parameters.FLASH_MODE_TORCH : null)\n .setFocusMode(autoFocus ? Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE : null)\n .build();\n }", "private void m6669y() {\n long currentTimeMillis = System.currentTimeMillis();\n long j = this.f5381A;\n if (currentTimeMillis - j > 200 || j == 0) {\n this.f5381A = currentTimeMillis;\n AudioManager audioManager = this.f5405Y;\n if (audioManager != null) {\n if (this.f5414ea) {\n audioManager.setParameters(\"audio_recordaec_enable=0\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_off_selector);\n this.f5414ea = false;\n C1492b.m7433a((Context) AppFeature.m6734b(), getResources().getString(R.string.aec_close), 0);\n } else {\n audioManager.setParameters(\"audio_recordaec_enable=1\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_on_selector);\n this.f5414ea = true;\n C1492b.m7433a((Context) AppFeature.m6734b(), getResources().getString(R.string.aec_open), 0);\n }\n C1387D.m6763a(this.f5414ea);\n }\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n if (this.hasDevicePermissionToAccess() && sGoCoderSDK != null && mWZCameraView != null) {\n if (mAutoFocusDetector == null)\n mAutoFocusDetector = new GestureDetectorCompat(this, new AutoFocusListener(this, mWZCameraView));\n\n WZCamera activeCamera = mWZCameraView.getCamera();\n if (activeCamera != null && activeCamera.hasCapability(WZCamera.FOCUS_MODE_CONTINUOUS))\n activeCamera.setFocusMode(WZCamera.FOCUS_MODE_CONTINUOUS);\n }\n }", "private void m6584A() {\n this.f5414ea = C1387D.m6761a();\n if (this.f5414ea) {\n this.f5405Y.setParameters(\"audio_recordaec_enable=1\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_on_selector);\n return;\n }\n this.f5405Y.setParameters(\"audio_recordaec_enable=0\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_off_selector);\n }", "public void onResume() {\n super.onResume();\n if (this.f12125b != null) {\n if (this.f12126c != null) {\n this.f12126c.mo8947b();\n }\n if (this.f12125b.mo6024f()) {\n this.f12125b.mo6021b(false);\n if (this.f12129f.equalsIgnoreCase(\"check\")) {\n this.f12125b.mo8864c(this._isPictureRecMode);\n return;\n }\n return;\n }\n this.f12125b.mo8864c(this._isPictureRecMode);\n }\n }", "public boolean isCameraFrontFacing() {\n Characteristics chara = null;\n try {\n chara = this.mAppController.getCameraProvider().getCharacteristics(this.mCameraId);\n } catch (NullPointerException e) {\n }\n if (chara != null) {\n return chara.isFacingFront();\n }\n boolean z = true;\n if (this.mCameraId != 1) {\n z = false;\n }\n return z;\n }", "private void onShow() {\n if (DEBUG)\n MLog.d(TAG, \"onShow(): \" + printThis());\n\n startBackgroundThread();\n\n // When the screen is turned off and turned back on, the SurfaceTexture is already\n // available, and \"onSurfaceTextureAvailable\" will not be called. In that case, we can open\n // a camera and start preview from here (otherwise, we wait until the surfaceJavaObject\n // is ready in\n // the SurfaceTextureListener).\n if (mTextureView.isAvailable()) {\n openCamera(mTextureView.getWidth(), mTextureView.getHeight());\n } else {\n mTextureView.setSurfaceTextureListener(mSurfaceTextureListener);\n }\n }", "protected void startPreview() {\n if (null == mCameraDevice || !mTextureView.isAvailable()) {\n return;\n }\n try {\n //\n // Media Recorder\n //\n setUpMediaRecorder();\n\n //\n // Preview Builder - Video Recording\n //\n mPreviewBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_RECORD);\n\n //\n // Surfaces: Preview and Record\n //\n List<Surface> surfaces = new ArrayList<>();\n\n //\n // Preview Surface\n //\n SurfaceTexture texture = mTextureView.getSurfaceTexture();\n texture.setDefaultBufferSize(screenWidth, screenHeight);\n Surface previewSurface = new Surface(texture);\n surfaces.add(previewSurface);\n mPreviewBuilder.addTarget(previewSurface);\n\n\n //\n // Record Surface\n //\n Surface recorderSurface = mMediaRecorder.getSurface();\n surfaces.add(recorderSurface);\n mPreviewBuilder.addTarget(recorderSurface);\n\n //\n // Setup Capture Session\n //\n mCameraDevice.createCaptureSession(surfaces, new CameraCaptureSession.StateCallback() {\n\n @Override\n public void onConfigured(CameraCaptureSession cameraCaptureSession) {\n Log.e(TAG, \"onConfigured(CameraCaptureSession cameraCaptureSession) ...\");\n mPreviewSession = cameraCaptureSession;\n updatePreview();\n }\n\n @Override\n public void onSurfacePrepared(CameraCaptureSession session, Surface surface) {\n Log.e(TAG, \"onSurfacePrepared(CameraCaptureSession session, Surface surface) ...\");\n //previewView = (LinearLayout) findViewById(R.id.camera_preview);\n //previewView.addView(mVideoCapture.mTextureView);\n }\n\n @Override\n public void onConfigureFailed(CameraCaptureSession cameraCaptureSession) {\n Log.e(TAG, \"onConfigureFailed(CameraCaptureSession cameraCaptureSession) ...\");\n Toast.makeText(mCameraActivity, \"failed to configure video camera\", Toast.LENGTH_SHORT).show();\n onBackPressed();\n }\n }, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private boolean checkCameraHardware(Context context) {\r\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){\r\n return true; // Tiene camara\r\n } else {\r\n return false;// No tiene camara\r\n }\r\n }", "public boolean supportShowOnScreenLocked() {\n return false;\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n this.requestWindowFeature(Window.FEATURE_NO_TITLE);\n this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.main);\n cameraframe = (FrameLayout) findViewById(R.id.preview);\n overlayview = new ImageView(getApplicationContext());\n\t overlayview.setScaleType(ImageView.ScaleType.FIT_XY);\n\n previewing=false;\n freestyle=false;\n \n\t// set up camera, start button\n cameraView = new Preview(this); // <3>\n\n\t cameraframe.addView(cameraView,0); // <4>\n\n\t \n\t\n\t\n\t setupButtons();\n initCamera();\n \n \n\t\n\t\n\t\n \n\tloadFrames();\n\t initFileSystem();\n\t \n //retakeButton.setEnabled(false);\n\t toggleMode();\n \n Log.d(TAG, \"Fully initialized\");\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_camera_preview);\n\t\tmCamSV = (SurfaceView) findViewById(R.id.camera_preview_surface_cam);\n\n\t\tmCamSV.getHolder().setFixedSize(VisionConfig.getWidth(),\n\t\t\t\tVisionConfig.getHeight());\n\n\t\tLog.i(\"MyLog\", \"CAP: onCreate\");\n\n\t\t// Setup Bind Service\n\t\tVisionConfig.bindService(this, mConnection);\n\t\ttakeAPictureReceiver = new TakeAPictureReceiver();\n\t\tIntentFilter filterOverlayVision = new IntentFilter(\n\t\t\t\tRobotIntent.CAM_TAKE_PICKTURE);\n\t\tHandlerThread handlerThreadOverlay = new HandlerThread(\n\t\t\t\t\"MyNewThreadOverlay\");\n\t\thandlerThreadOverlay.start();\n\t\tLooper looperOverlay = handlerThreadOverlay.getLooper();\n\t\thandlerOverlay = new Handler(looperOverlay);\n\t\tregisterReceiver(takeAPictureReceiver, filterOverlayVision, null,\n\t\t\t\thandlerOverlay);\n\t\t\n\t\tfaceDetectionReceiver = new FaceDetectionReceiver();\n\t\tIntentFilter filterFaceDetection = new IntentFilter(RobotIntent.CAM_FACE_DETECTION);\n\t\tHandlerThread handlerThreadFaceDetectionOverlay = new HandlerThread(\n\t\t\t\t\"MyNewThreadFaceDetectionOverlay\");\n\t\thandlerThreadFaceDetectionOverlay.start();\n\t\tLooper looperFaceDetectionOverlay = handlerThreadFaceDetectionOverlay.getLooper();\n\t\thandleFaceDetection = new Handler(looperFaceDetectionOverlay);\n\t\tregisterReceiver(faceDetectionReceiver, filterFaceDetection, null,\n\t\t\t\thandleFaceDetection);\n\t\t\n\t\t\n//\t\tfaceDetectionReceiver2 = new FaceDetectionReceiver2();\n//\t\tIntentFilter filterFaceDetection2 = new IntentFilter(\"hhq.face\");\n//\t\tHandlerThread handlerThreadFaceDetectionOverlay2 = new HandlerThread(\n//\t\t\t\t\"MyNewThreadFaceDetectionOverlay2\");\n//\t\thandlerThreadFaceDetectionOverlay2.start();\n//\t\tLooper looperFaceDetectionOverlay2 = handlerThreadFaceDetectionOverlay2.getLooper();\n//\t\thandleFaceDetection2 = new Handler(looperFaceDetectionOverlay2);\n//\t\tregisterReceiver(faceDetectionReceiver2, filterFaceDetection2, null,\n//\t\t\t\thandleFaceDetection2);\t\t\n\n\t\t\t\t\n\t\tpt.setColor(Color.GREEN);\n\t\tpt.setTextSize(50);\n\t\tpt.setStrokeWidth(3);\n\t\tpt.setStyle(Paint.Style.STROKE);\n\t\t\n//\t\tpt2.setColor(Color.BLUE);\n//\t\tpt2.setTextSize(50);\n//\t\tpt2.setStrokeWidth(3);\n//\t\tpt2.setStyle(Paint.Style.STROKE);\n\t}", "public void machineFlash() {\n\t\tmachineFlash = !machineFlash;\n\t}", "protected abstract void showFrontFace();", "@SuppressLint(\"NewApi\")\n protected void startPreview() {\n if(null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) {\n Log.e(TAG, \"startPreview fail, return\");\n }\n\n SurfaceTexture texture = mTextureView.getSurfaceTexture();\n if(null == texture) {\n Log.e(TAG,\"texture is null, return\");\n return;\n }\n\n texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight());\n Surface surface = new Surface(texture);\n\n try {\n mPreviewBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n } catch (CameraAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n mPreviewBuilder.addTarget(surface);\n\n try {\n mCameraDevice.createCaptureSession(Arrays.asList(surface), new CameraCaptureSession.StateCallback() {\n\n @Override\n public void onConfigured(CameraCaptureSession session) {\n // TODO Auto-generated method stub\n mPreviewSession = session;\n updatePreview();\n }\n\n @Override\n public void onConfigureFailed(CameraCaptureSession session) {\n // TODO Auto-generated method stub\n Toast.makeText(mContext, \"onConfigureFailed\", Toast.LENGTH_LONG).show();\n }\n }, null);\n } catch (CameraAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void onSensorChanged(SensorEvent event) {\n synchronized (this) {\n\n //((TextView) findViewById(R.id.texto_prueba2)).setText(Boolean.toString(status));\n\n getInicio(event);\n\n if(status){\n\n if(!(limitarEje(event) && limitarTiempo(event.timestamp, m.getCurrentTime()))){\n ((TextView) findViewById(R.id.texto_prueba)).setText(\"Acelerómetro X, Y , Z: \" + event.values[0] +\" , \"+ event.values[1] +\" , \"+ event.values[2]);\n return;\n }\n\n action=m.isMovement(event.values[0], event.values[1], event.values[2], event.timestamp);\n if(action>=0){\n if(action==10){\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivity(intent);\n status=false;\n }\n\n if(action==12){\n //context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);\n if(cam==null){\n cam = Camera.open();\n p = cam.getParameters();\n p.setFlashMode(android.hardware.Camera.Parameters.FLASH_MODE_TORCH);\n cam.setParameters(p);\n cam.startPreview();\n }\n else{\n p.setFlashMode(android.hardware.Camera.Parameters.FLASH_MODE_OFF);\n cam.setParameters(p);\n cam.release();\n cam = null;\n\n }\n }\n if(action==13){\n /* if(mPlayer==null){\n\n recorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);\n recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);\n recorder.setOutputFile(path);\n recorder.prepare();\n recorder.start();\n }\n else{\n recorder.stop();\n recorder.reset();\n recorder.release();\n\n recorder = null;\n }\n*/\n }\n }\n\n ((TextView) findViewById(R.id.texto_prueba2)).setText(Integer.toString(action));\n\n ((TextView) findViewById(R.id.texto_prueba1)).setText(Long.toString((event.timestamp-m.getCurrentTime())/500000000));\n }\n //((TextView) findViewById(R.id.texto_prueba)).setText(\"Acelerómetro X, Y , Z: \" + curX +\" , \"+ curY +\" , \"+ curZ);\n }\n }", "@Override\n public void onCameraPreviewStarted() {\n enableTorchButtonIfPossible();\n }", "@Override\n public void onOpened(@NonNull CameraDevice cameraDevice) {\n\n mCameraDevice = cameraDevice;\n\n\n try {\n captureRequestBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n captureRequestBuilder.set(CaptureRequest.CONTROL_MODE, CaptureRequest.CONTROL_MODE_OFF);\n\n } catch(CameraAccessException e) {\n e.printStackTrace();\n }\n\n }", "public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }", "private void enforceCorrectScreenState(View view){\n ColorDrawable colorDrawable = new ColorDrawable();\n Drawable drawable = view.getBackground();\n if (drawable instanceof ColorDrawable) {\n colorDrawable = (ColorDrawable) drawable;\n }\n\n if (User.getInstance().getFlashMode().equals(FLASH_LED_ONLY)){\n if ((colorDrawable != null) && (colorDrawable.getColor() == getResources().getColor(R.color.white))){\n BusDriver.getBus().post(new ScreenFlashEvent(SCREEN_FLASH_OFF));\n }\n } else if (!User.getInstance().getFlashOn()){\n if ((colorDrawable != null) && (colorDrawable.getColor() == getResources().getColor(R.color.white))){\n BusDriver.getBus().post(new ScreenFlashEvent(SCREEN_FLASH_OFF));\n }\n } else if (User.getInstance().getFlashOn()){\n if ((colorDrawable != null) && (colorDrawable.getColor() == getResources().getColor(R.color.grey_dark))){\n BusDriver.getBus().post(new ScreenFlashEvent(SCREEN_FLASH_ON));\n }\n }\n }", "private void startPreview(CameraCaptureSession session) throws CameraAccessException{\n mPreviewBuilder.addTarget(mSurface);\n mPreviewBuilder.addTarget(mImageReader.getSurface());\n session.setRepeatingRequest(mPreviewBuilder.build(), mSessionCaptureCallback, mCamSessionHandler);\n }", "@Override\n public void surfaceCreated(SurfaceHolder holder)\n {\n try\n {\n if (mCamera != null)\n {\n mCamera.setPreviewDisplay(holder);\n mCamera.setDisplayOrientation(90);\n }\n }\n catch (IOException e)\n {\n Log.e(\"ProfileCamera\", \"Error setting up preview display\", e);\n }\n }", "@Override\n protected void onStart() {\n camera_ = getCameraInstance();\n Parameters params;\n\n if (camera_ != null) {\n params = camera_.getParameters();\n params.setPreviewFormat(ImageFormat.NV21);\n getSmallestPreviewSize(params);\n params.setPreviewSize(width_, height_);\n //params.setFlashMode(Parameters.FLASH_MODE_TORCH);\n params.setWhiteBalance(Parameters.WHITE_BALANCE_AUTO);\n camera_.setParameters(params);\n\n frame_ = new RGB[width_ * height_];\n for (int i = 0; i < frame_.length; ++i) {\n frame_[i] = new RGB();\n }\n\n camera_.setPreviewCallback(new PreviewCallback() {\n @Override\n public void onPreviewFrame(byte[] data, Camera camera) {\n synchronized (frame_) {\n decodeYUV420SP(frame_, data, width_, height_);\n }\n }\n });\n SurfaceTexture texture_ = new SurfaceTexture(0);\n try {\n camera_.setPreviewTexture(texture_);\n } catch (IOException e) {\n e.printStackTrace();\n }\n camera_.startPreview();\n }\n\n super.onStart();\n }", "@Override\n public Mat onCameraFrame(Mat inputFrame) {\n\n\n if(initialBackground == null) {\n initialBackground = inputFrame;\n backgroundTime = System.currentTimeMillis();\n\n return inputFrame;\n\n } else {\n Camera.Parameters params;\n //params = mCamera.getParameters();\n //Log.d(\"Exposure\", String.valueOf(params.getExposureCompensation()));\n\n System.gc();\n Mat fgMask = new Mat();\n\n //Imgproc.GaussianBlur(inputFrame, inputFrame, new Size(11, 11), 2.0);\n //Imgproc.GaussianBlur(inputFrame, inputFrame, new Size(5, 5), 2.0);\n\n if(System.currentTimeMillis() - backgroundTime < 3000) {\n //mog2.apply(inputFrame, fgMask, 0.05);\n mog.apply(inputFrame, fgMask, 0.05);\n\n } else {\n //mog2.apply(inputFrame, fgMask, 0.00001);\n mog.apply(inputFrame, fgMask, 0.00001);\n //Imgproc.medianBlur(inputFrame, inputFrame, 3);\n// Imgproc.dilate(inputFrame, inputFrame, Imgproc.getStructuringElement(Imgproc.MORPH_ELLIPSE, new Size(10, 10)));\n// Imgproc.erode(inputFrame, inputFrame, Imgproc.getStructuringElement(Imgproc.MORPH_ELLIPSE, new Size(10,10)));\n\n\n }\n\n Mat output = new Mat();\n inputFrame.copyTo(output, fgMask);\n\n Mat flipped = new Mat();\n Core.flip(fgMask, flipped, 1);\n\n //Utility.whiteContours(flipped);\n\n Imgproc.dilate(flipped, flipped, Imgproc.getStructuringElement(Imgproc.MORPH_ELLIPSE, new Size(8, 8)));\n //Imgproc.erode(flipped, flipped, Imgproc.getStructuringElement(Imgproc.MORPH_ELLIPSE, new Size(5, 5)));\n //order has been changed this order seems to fit best\n //changed from 5, 5\n\n //Imgproc.medianBlur(flipped, flipped, 5);\n\n\n Utility.whiteContours(flipped);\n\n //Utility.removeNoise(flipped);\n\n\n //Log.d(\"Rows\", String.valueOf(flipped.rows()));\n //Log.d(\"Cols\", String.valueOf(flipped.cols()));\n\n //Utility.iterateMat(flipped);\n\n if(!processed && (System.currentTimeMillis() - backgroundTime > 4000)) {\n\n processed = true;\n }\n\n if(processed) {\n Utility.head(flipped);\n }\n\n\n return flipped;\n //return contourOutput;\n }\n\n }", "private void turnOnCamera() {\n // play sound\n playSound();\n isCameraOn = true;\n turnOffFlash();\n strobo.setChecked(false);\n previewCamera();\n toggleButtonImageCamera();\n }", "public void enableCtxRecording();", "@Override // com.android.server.wm.WindowContainer\n public void prepareSurfaces() {\n Trace.traceBegin(32, \"prepareSurfaces\");\n try {\n ScreenRotationAnimation screenRotationAnimation = this.mWmService.mAnimator.getScreenRotationAnimationLocked(this.mDisplayId);\n SurfaceControl.Transaction transaction = getPendingTransaction();\n if (this.mIsFisrtLazyMode && this.mSingleHandContentEx != null) {\n this.mSingleHandContentEx.handleSingleHandMode(transaction, this.mWindowingLayer, this.mHwSingleHandOverlayLayer);\n this.mIsFisrtLazyMode = false;\n }\n if (screenRotationAnimation != null && screenRotationAnimation.isAnimating()) {\n screenRotationAnimation.getEnterTransformation().getMatrix().getValues(this.mTmpFloats);\n if (this.mWmService.mHwWMSEx.isNeedLandAni() && this.mDisplayId == 0) {\n resetMatrixValues(this.mTmpFloats);\n }\n float tmpScale = this.mWmService.getLazyMode() != 0 ? 0.75f : 1.0f;\n transaction.setMatrix(this.mWindowingLayer, this.mTmpFloats[0] * tmpScale, this.mTmpFloats[3], this.mTmpFloats[1], this.mTmpFloats[4] * tmpScale);\n if (this.mWmService.getLazyMode() != 0) {\n Point origin = this.mWmService.getOriginPointForLazyMode(0.75f, this.mWmService.getLazyMode());\n transaction.setPosition(this.mWindowingLayer, (float) origin.x, (float) origin.y);\n } else {\n transaction.setPosition(this.mWindowingLayer, this.mTmpFloats[2], this.mTmpFloats[5]);\n }\n transaction.setAlpha(this.mWindowingLayer, screenRotationAnimation.getEnterTransformation().getAlpha());\n if (this.mWmService.mHwWMSEx.isNeedLandAni() && this.mDisplayId == 0) {\n transaction.setAlpha(this.mWindowingLayer, 1.0f);\n this.mWmService.mHwWMSEx.applyLandOpenAnimation();\n }\n }\n for (int i = this.mTaskStackContainers.getChildCount() - 1; i >= 0; i--) {\n TaskStack stack = (TaskStack) this.mTaskStackContainers.getChildAt(i);\n stack.updateSurfacePosition();\n stack.updateSurfaceSize(stack.getPendingTransaction());\n }\n super.prepareSurfaces();\n SurfaceControl.mergeToGlobalTransaction(transaction);\n } finally {\n Trace.traceEnd(32);\n }\n }", "Flash getFlash();", "private void off(){\n\n\t\t// if light is on and there is a flash object\n\t\tif (_flash != null && isFlashOn){\n\n\t\t\t_flash.off();\n\t\t\tisFlashOn = false;\n\t\t}\n\t}", "@Override\n public boolean isFrontFacing() {\n return characteristics_is_front_facing;\n }", "private void onSceneModeChanged(CameraExtension.SceneRecognitionResult sceneRecognitionResult) {\n if (!this.isHeadUpDesplayReady() || this.mActivity.isOneShotPhotoSecure()) {\n return;\n }\n super.doChangeSceneMode(sceneRecognitionResult);\n super.doChangeCondition(sceneRecognitionResult);\n }", "private void onSurfaceConfigured(CameraCaptureSession session) {\n try {\n CaptureRequest.Builder requestBuilder = session.getDevice().createCaptureRequest(CameraDevice.TEMPLATE_RECORD);\n requestBuilder.addTarget(targetSurface);\n\n session.setRepeatingRequest(requestBuilder.build(), new CameraCaptureSession.CaptureCallback() {\n public void process(CaptureResult result) {\n onImageProcessed();\n }\n\n @Override\n public void onCaptureProgressed(@NonNull CameraCaptureSession session,\n @NonNull CaptureRequest request,\n @NonNull CaptureResult partialResult) {\n process(partialResult);\n }\n\n @Override\n public void onCaptureCompleted(@NonNull CameraCaptureSession session,\n @NonNull CaptureRequest request,\n @NonNull TotalCaptureResult result) {\n process(result);\n }\n }, new Handler());\n\n } catch (CameraAccessException e) {\n System.out.println(\"CAPTURE CONFIGURE FAILED\");\n e.printStackTrace();\n }\n }", "public void blackScreen() {\n boolean var5 = field_759;\n int var1 = this.field_723 * this.field_724;\n int var2;\n if(this.interlace) {\n var2 = 0;\n int var3 = -this.field_724;\n if(var5 || var3 < 0) {\n do {\n int var4 = -this.field_723;\n if(var5) {\n this.pixels[var2++] = 0;\n ++var4;\n }\n\n while(var4 < 0) {\n this.pixels[var2++] = 0;\n ++var4;\n }\n\n var2 += this.field_723;\n var3 += 2;\n } while(var3 < 0);\n\n }\n } else {\n var2 = 0;\n if(var5 || var2 < var1) {\n do {\n this.pixels[var2] = 0;\n ++var2;\n } while(var2 < var1);\n\n }\n }\n }", "@SuppressLint({\"NewApi\"})\n public void setUpPreview() {\n try {\n if (this.mPreview.getOutputClass() == SurfaceHolder.class) {\n boolean z = this.mShowingPreview && Build.VERSION.SDK_INT < 14;\n if (z) {\n this.mCamera.stopPreview();\n }\n this.mCamera.setPreviewDisplay(this.mPreview.getSurfaceHolder());\n if (z) {\n this.mCamera.startPreview();\n return;\n }\n return;\n }\n this.mCamera.setPreviewTexture((SurfaceTexture) this.mPreview.getSurfaceTexture());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n public void onConfigured(@NonNull CameraCaptureSession session) {\n if (MyDebug.LOG) {\n Log.d(TAG, \"onConfigured: \" + session);\n Log.d(TAG, \"captureSession was: \" + captureSession);\n }\n if (camera == null) {\n if (MyDebug.LOG) {\n Log.d(TAG, \"camera is closed\");\n }\n synchronized (background_camera_lock) {\n callback_done = true;\n background_camera_lock.notifyAll();\n }\n return;\n }\n synchronized (background_camera_lock) {\n captureSession = session;\n Surface surface = getPreviewSurface();\n previewBuilder.addTarget(surface);\n if (video_recorder != null)\n previewBuilder.addTarget(video_recorder_surface);\n try {\n setRepeatingRequest();\n } catch (CameraAccessException e) {\n if (MyDebug.LOG) {\n Log.e(TAG, \"failed to start preview\");\n Log.e(TAG, \"reason: \" + e.getReason());\n Log.e(TAG, \"message: \" + e.getMessage());\n }\n e.printStackTrace();\n // we indicate that we failed to start the preview by setting captureSession back to null\n // this will cause a CameraControllerException to be thrown below\n captureSession = null;\n }\n }\n synchronized (background_camera_lock) {\n callback_done = true;\n background_camera_lock.notifyAll();\n }\n }", "public boolean hideCamera() {\n return false;\n }", "public boolean hideCamera() {\n return false;\n }", "public void testPersistentSurfaceRecording() {\n assertTrue(testRecordFromSurface(true /* persistent */, false /* timelapse */));\n }", "private void startPreview() {\n if (cameraConfigured && camera!=null) {\n camera.startPreview();\n inPreview=true;\n }\n }", "public synchronized void setFlashState(boolean state) {\n\n\t\t// FIXME: Is it possible to toggle the flash while streaming on android 2.3 ?\n\t\t// FIXME: It works on android 4.2 and 4.3\n\n\t\tmFlashState = state;\n\n\t\t// If the camera has already been opened, we apply the change immediately\n\t\t// FIXME: Will this work on Android 2.3 ?\n\t\tif (mCamera != null) {\n\n\t\t\t// Needed on Android 2.3\n\t\t\tif (mStreaming) {\n\t\t\t\tlockCamera();\n\t\t\t}\n\n\t\t\tParameters parameters = mCamera.getParameters();\n\n\t\t\t// We test if the phone has a flash\n\t\t\tif (parameters.getFlashMode()==null) {\n\t\t\t\t// The phone has no flash or the choosen camera can not toggle the flash\n\t\t\t\tthrow new RuntimeException(\"Can't turn the flash on !\");\n\t\t\t} else {\n\t\t\t\tparameters.setFlashMode(mFlashState?Parameters.FLASH_MODE_TORCH:Parameters.FLASH_MODE_OFF);\n\t\t\t\ttry {\n\t\t\t\t\tmCamera.setParameters(parameters);\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tthrow new RuntimeException(\"Can't turn the flash on !\");\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Needed on Android 2.3\n\t\t\tif (mStreaming) {\n\t\t\t\tunlockCamera();\n\t\t\t}\n\n\t\t}\n\t}", "public boolean isFlashShow() {\n return (isBeautyShow() || isMaskSelected()) ? false : true;\n }", "static void proceedWithOpenedCamera(final Context context, final CameraManager manager, final CameraDevice camera, final File outputFile, final Looper looper, final PrintWriter stdout) throws CameraAccessException, IllegalArgumentException {\n final List<Surface> outputSurfaces = new ArrayList<>();\n\n final CameraCharacteristics characteristics = manager.getCameraCharacteristics(camera.getId());\n\n int autoExposureMode = CameraMetadata.CONTROL_AE_MODE_OFF;\n for (int supportedMode : characteristics.get(CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES)) {\n if (supportedMode == CameraMetadata.CONTROL_AE_MODE_ON) {\n autoExposureMode = supportedMode;\n }\n }\n final int autoExposureModeFinal = autoExposureMode;\n\n // Use largest available size:\n StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n Comparator<Size> bySize = (lhs, rhs) -> {\n // Cast to ensure multiplications won't overflow:\n return Long.signum((long) lhs.getWidth() * lhs.getHeight() - (long) rhs.getWidth() * rhs.getHeight());\n };\n List<Size> sizes = Arrays.asList(map.getOutputSizes(ImageFormat.JPEG));\n Size largest = Collections.max(sizes, bySize);\n\n final ImageReader mImageReader = ImageReader.newInstance(largest.getWidth(), largest.getHeight(), ImageFormat.JPEG, 2);\n mImageReader.setOnImageAvailableListener(reader -> new Thread() {\n @Override\n public void run() {\n try (final Image mImage = reader.acquireNextImage()) {\n ByteBuffer buffer = mImage.getPlanes()[0].getBuffer();\n byte[] bytes = new byte[buffer.remaining()];\n buffer.get(bytes);\n try (FileOutputStream output = new FileOutputStream(outputFile)) {\n output.write(bytes);\n } catch (Exception e) {\n stdout.println(\"Error writing image: \" + e.getMessage());\n TermuxApiLogger.error(\"Error writing image\", e);\n } finally {\n closeCamera(camera, looper);\n }\n }\n }\n }.start(), null);\n final Surface imageReaderSurface = mImageReader.getSurface();\n outputSurfaces.add(imageReaderSurface);\n\n // create a dummy PreviewSurface\n SurfaceTexture previewTexture = new SurfaceTexture(1);\n Surface dummySurface = new Surface(previewTexture);\n outputSurfaces.add(dummySurface);\n\n camera.createCaptureSession(outputSurfaces, new CameraCaptureSession.StateCallback() {\n @Override\n public void onConfigured(final CameraCaptureSession session) {\n try {\n // create preview Request\n CaptureRequest.Builder previewReq = camera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n previewReq.addTarget(dummySurface);\n previewReq.set(CaptureRequest.CONTROL_AF_MODE, CameraMetadata.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n previewReq.set(CaptureRequest.CONTROL_AE_MODE, autoExposureModeFinal);\n\n // continous preview-capture for 1/2 second\n session.setRepeatingRequest(previewReq.build(), null, null);\n TermuxApiLogger.info(\"preview started\");\n Thread.sleep(500);\n session.stopRepeating();\n TermuxApiLogger.info(\"preview stoppend\");\n previewTexture.release();\n dummySurface.release();\n\n final CaptureRequest.Builder jpegRequest = camera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE);\n // Render to our image reader:\n jpegRequest.addTarget(imageReaderSurface);\n // Configure auto-focus (AF) and auto-exposure (AE) modes:\n jpegRequest.set(CaptureRequest.CONTROL_AF_MODE, CameraMetadata.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n jpegRequest.set(CaptureRequest.CONTROL_AE_MODE, autoExposureModeFinal);\n jpegRequest.set(CaptureRequest.JPEG_ORIENTATION, correctOrientation(context, characteristics));\n\n saveImage(camera, session, jpegRequest.build());\n } catch (Exception e) {\n TermuxApiLogger.error(\"onConfigured() error in preview\", e);\n closeCamera(camera, looper);\n }\n }\n\n @Override\n public void onConfigureFailed(CameraCaptureSession session) {\n TermuxApiLogger.error(\"onConfigureFailed() error in preview\");\n closeCamera(camera, looper);\n }\n }, null);\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public int getFlash() {\n return this.mFlash;\n }", "public void onResume() {\n super.onResume();\n C0938a.m5006c(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onResume\");\n if (!this.f5423j) {\n m6590G();\n mo5970g();\n m6671z();\n mo5977n();\n mo5972i();\n m6613a(this.f5442sa);\n }\n }", "public void disableShutterDuringResume() {\n this.mAppController.setShutterEnabledWithNormalAppearence(false);\n }", "@Override\n public Camera setupCamera() {\n mCamera = Camera.open(Camera.CameraInfo.CAMERA_FACING_BACK);\n try {\n Camera.Parameters parameters = mCamera.getParameters();\n parameters.setPreviewSize(mWidth, mHeight);\n parameters.setPreviewFormat(mFormat);\n mCamera.setDisplayOrientation(90);\n for (Camera.Size size : parameters.getSupportedPreviewSizes()) {\n Log.d(TAG, \"SIZE:\" + size.width + \"x\" + size.height);\n }\n for (Integer format : parameters.getSupportedPreviewFormats()) {\n Log.d(TAG, \"FORMAT:\" + format);\n }\n\n List<int[]> fps = parameters.getSupportedPreviewFpsRange();\n for (int[] count : fps) {\n Log.d(TAG, \"T:\");\n for (int data : count) {\n Log.d(TAG, \"V=\" + data);\n }\n }\n mCamera.setParameters(parameters);\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (mCamera != null) {\n mWidth = mCamera.getParameters().getPreviewSize().width;\n mHeight = mCamera.getParameters().getPreviewSize().height;\n }\n return mCamera;\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int width,\n int height) {\n if(previewing){\n camera.stopPreview();\n previewing = false;\n }\n\n if (camera != null){\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n previewing = true;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "protected void onPause()\n {\n super.onPause();\n\n if (mGlView != null)\n {\n mGlView.setVisibility(View.INVISIBLE);\n mGlView.onPause();\n }\n\n if (mEstadoActualAPP == EstadoAPP.CAMERA_RUNNING)\n {\n actualizarEstadoAplicacion(EstadoAPP.CAMERA_STOPPED);\n }\n\n if (mFlash)\n {\n mFlash = false;\n setFlash(mFlash);\n }\n\n QCAR.onPause();\n }" ]
[ "0.7081446", "0.6942806", "0.6883667", "0.6810705", "0.66556025", "0.66467863", "0.6590885", "0.6461051", "0.6289976", "0.6265439", "0.6253566", "0.60651004", "0.6008263", "0.593114", "0.5866914", "0.58296114", "0.573344", "0.56756884", "0.5668107", "0.5645707", "0.563382", "0.5622512", "0.5573445", "0.5559486", "0.55562025", "0.5545812", "0.55394673", "0.5533667", "0.55203813", "0.5514424", "0.5512424", "0.5499288", "0.549447", "0.54857326", "0.5476809", "0.54614717", "0.5461422", "0.54571605", "0.54571414", "0.5451755", "0.5436735", "0.54350007", "0.54273796", "0.5420278", "0.5399605", "0.53953266", "0.5377322", "0.53714514", "0.53676075", "0.53630275", "0.5355336", "0.5349016", "0.53412735", "0.5323081", "0.5320791", "0.531972", "0.5311081", "0.53036267", "0.52880216", "0.52803683", "0.52753246", "0.5272885", "0.52574104", "0.5255481", "0.5253421", "0.5246525", "0.5225484", "0.5222473", "0.5214387", "0.52103573", "0.5206691", "0.5206378", "0.5199614", "0.5194093", "0.5193882", "0.51907873", "0.51877743", "0.51812816", "0.518095", "0.5177393", "0.51760876", "0.5167283", "0.51660764", "0.5162682", "0.5155094", "0.5151363", "0.51504546", "0.51503253", "0.51503253", "0.5147724", "0.5137298", "0.5130566", "0.51269305", "0.5125", "0.5120562", "0.5103546", "0.51023036", "0.5094357", "0.5093226", "0.5092073" ]
0.600749
13
Request preview capture stream with auto focus trigger cycle.
private void sendAePreTriggerCaptureRequest() { // Step 1: Request single frame CONTROL_AF_TRIGGER_START. CaptureRequest.Builder builder = mDevice2Requester .createAndConfigRequest(mDevice2Requester.getRepeatingTemplateType()); if (builder == null) { LogHelper.w(TAG, "[sendAePreTriggerCaptureRequest] builder is null"); return; } builder.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER, CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER_START); // Step 2: Call repeatingPreview to update mControlAFMode. Camera2CaptureSessionProxy sessionProxy = mDevice2Requester.getCurrentCaptureSession(); LogHelper.d(TAG, "[sendAePreTriggerCaptureRequest] sessionProxy " + sessionProxy); try { if (sessionProxy != null) { LogHelper.d(TAG, "[sendAePreTriggerCaptureRequest] " + "CONTROL_AE_PRECAPTURE_TRIGGER_START"); mAePreTriggerAndCaptureEnabled = false; sessionProxy.capture(builder.build(), mPreviewCallback, null); } } catch (CameraAccessException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void startPreview() {\n OpenCamera theCamera = camera;\n if (theCamera != null && !previewing) {\n theCamera.getCamera().startPreview();\n previewing = true;\n autoFocusManager = new AutoFocusManager(context, theCamera.getCamera());\n }\n }", "private void startPreview() {\n if (null == mCameraDevice || !mVideoPreview.isAvailable() || null == mPreviewSize) {\n return;\n }\n try {\n closePreviewSession();\n SurfaceTexture texture = mVideoPreview.getSurfaceTexture();\n assert texture != null;\n texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight());\n mPreviewBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n\n Surface previewSurface = new Surface(texture);\n mPreviewBuilder.addTarget(previewSurface);\n\n mCameraDevice.createCaptureSession(Arrays.asList(previewSurface), new CameraCaptureSession.StateCallback() {\n\n @Override\n public void onConfigured(CameraCaptureSession cameraCaptureSession) {\n mPreviewSession = cameraCaptureSession;\n updatePreview();\n }\n\n @Override\n public void onConfigureFailed(CameraCaptureSession cameraCaptureSession) {\n if (mVideoRecordListener != null) {\n mVideoRecordListener.onRecordingFailed(\"Capture session for previewing video failed.\");\n }\n }\n }, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public void requestFocus() {\n\t\tif (camera != null && previewing) {\n\t\t\tautoFocusManager.stop();\n\t\t\tLog.d(TAG, \"Requesting one focus\");\n\t\t\tcamera.autoFocus(null);\n\t\t}\n\t}", "private void startPreview() {\n if (cameraConfigured && camera!=null) {\n camera.startPreview();\n inPreview=true;\n }\n }", "public void startPreview() {\r\n\t\tCamera localCamera = camera;\r\n\t\tif (localCamera != null && !isPreview) {\r\n\t\t\tcamera.startPreview();\r\n\t\t\tisPreview = true;\r\n\t\t}\r\n\t}", "@SuppressLint(\"NewApi\")\n protected void updatePreview() {\n if(null == mCameraDevice) {\n Log.e(TAG, \"updatePreview error, return\");\n }\n\n mPreviewBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);\n HandlerThread thread = new HandlerThread(\"CameraPreview\");\n thread.start();\n Handler backgroundHandler = new Handler(thread.getLooper());\n\n try {\n mPreviewSession.setRepeatingRequest(mPreviewBuilder.build(), null, backgroundHandler);\n } catch (CameraAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "protected void updatePreview() {\n if(null == cameraDevice) {\n Log.e(TAG, \"updatePreview error, return\");\n }\n captureRequestBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);\n try {\n cameraCaptureSessions.setRepeatingRequest(captureRequestBuilder.build(), null, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "protected void updatePreview() {\n if (null == mCameraDevice) {\n Toast.makeText(CameraActivity.this, \"Couldn't find Camera\", Toast.LENGTH_SHORT).show();\n }\n mCaptureRequestBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);\n try {\n mCameraCaptureSessions.setRepeatingRequest(mCaptureRequestBuilder.build(), null, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "@SuppressLint(\"NewApi\")\n protected void startPreview() {\n if(null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) {\n Log.e(TAG, \"startPreview fail, return\");\n }\n\n SurfaceTexture texture = mTextureView.getSurfaceTexture();\n if(null == texture) {\n Log.e(TAG,\"texture is null, return\");\n return;\n }\n\n texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight());\n Surface surface = new Surface(texture);\n\n try {\n mPreviewBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n } catch (CameraAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n mPreviewBuilder.addTarget(surface);\n\n try {\n mCameraDevice.createCaptureSession(Arrays.asList(surface), new CameraCaptureSession.StateCallback() {\n\n @Override\n public void onConfigured(CameraCaptureSession session) {\n // TODO Auto-generated method stub\n mPreviewSession = session;\n updatePreview();\n }\n\n @Override\n public void onConfigureFailed(CameraCaptureSession session) {\n // TODO Auto-generated method stub\n Toast.makeText(mContext, \"onConfigureFailed\", Toast.LENGTH_LONG).show();\n }\n }, null);\n } catch (CameraAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public Boolean startPreview() {\n\n\t\tif (camera != null && !previewing) {\n\t\t\tLog.d(TAG, \"startPreview\");\n\t\t\tcamera.startPreview();\n\t\t\tpreviewing = true;\n\t\t\tif (torch)\n\t\t\t{\n\t\t\t\tLog.d(TAG, \"we need to activate torch \" );\n\t\t\t\tsetTorch(torch);\n\t\t\t}\n\t\t\tautoFocusManager = new AutoFocusManager(context, camera);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public synchronized void requestPreviewFrame(Camera.PreviewCallback cb) {\n OpenCamera theCamera = camera;\n if (theCamera != null && previewing) {\n theCamera.getCamera().setOneShotPreviewCallback(cb);\n }\n }", "public native final void startPreview();", "private void startPreview(CameraCaptureSession session) throws CameraAccessException{\n mPreviewBuilder.addTarget(mSurface);\n mPreviewBuilder.addTarget(mImageReader.getSurface());\n session.setRepeatingRequest(mPreviewBuilder.build(), mSessionCaptureCallback, mCamSessionHandler);\n }", "private void startCameraSource() {\n if (cameraSource != null) {\n try {\n if (preview == null) {\n //Log.d(TAG, \"resume: Preview is null\");\n }\n if (graphicOverlay == null) {\n //Log.d(TAG, \"resume: graphOverlay is null\");\n }\n preview.start(cameraSource, graphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n }", "public static void resume() {\n\n\t\tif (myCurrentCamera != null) {\n\t\t\tmyCurrentCamera = Camera.open();\n\n\t\t\tmyIsInPreview = false;\n\n\t\t\tmyCurrentCamera.setPreviewCallbackWithBuffer(myCallback);\n\n\t\t\tif (myCurrentCamera != null) {\n\t\t\t\tif (myWasPausedInPreview == true) {\n\t\t\t\t\tstart();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void previewStarted() {\n\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public boolean start() {\n chooseCamera();\n openCamera();\n if (this.mPreview.isReady()) {\n setUpPreview();\n }\n this.mShowingPreview = true;\n this.mCamera.startPreview();\n return true;\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n mCameraDevice = camera;\n startPreview();\n }", "@Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n if (null == mCameraDevice) {\n return;\n }\n // Auto focus should be continuous for camera preview.\n mCaptureRequestBuilder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n\n // Finally, we start displaying the camera preview.\n mPreviewRequest = mCaptureRequestBuilder.build();\n mPreviewCaptureSession = cameraCaptureSession;\n\n // preview is a video, so we set a repeating request\n try {\n mPreviewCaptureSession.setRepeatingRequest(mCaptureRequestBuilder.build(), mPreviewCaptureCallback, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public void setupPreview() {\n Log.i(TAG, \"setupPreview\");\n this.mFocusManager.resetTouchFocus();\n if (this.mAppController.getCameraProvider().isBoostPreview()) {\n this.mActivity.clearBoost();\n }\n startPreview();\n }", "private void startCameraSource() {\n if (cameraSource != null) {\n try {\n if (cameraPreview == null) {\n Logger.e(TAG, \"Preview is null\");\n }\n cameraPreview.start(cameraSource, fireFaceOverlay);\n } catch (IOException e) {\n// Logger.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n }", "public void onPreviewStarted() {\n Log.w(TAG, \"KPI video preview started\");\n this.mAppController.setShutterEnabled(true);\n this.mAppController.onPreviewStarted();\n this.mUI.clearEvoPendingUI();\n if (this.mFocusManager != null) {\n this.mFocusManager.onPreviewStarted();\n }\n if (isNeedStartRecordingOnSwitching()) {\n onShutterButtonClick();\n }\n }", "protected void startPreview() {\n if (null == mCameraDevice || !mTextureView.isAvailable()) {\n return;\n }\n try {\n //\n // Media Recorder\n //\n setUpMediaRecorder();\n\n //\n // Preview Builder - Video Recording\n //\n mPreviewBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_RECORD);\n\n //\n // Surfaces: Preview and Record\n //\n List<Surface> surfaces = new ArrayList<>();\n\n //\n // Preview Surface\n //\n SurfaceTexture texture = mTextureView.getSurfaceTexture();\n texture.setDefaultBufferSize(screenWidth, screenHeight);\n Surface previewSurface = new Surface(texture);\n surfaces.add(previewSurface);\n mPreviewBuilder.addTarget(previewSurface);\n\n\n //\n // Record Surface\n //\n Surface recorderSurface = mMediaRecorder.getSurface();\n surfaces.add(recorderSurface);\n mPreviewBuilder.addTarget(recorderSurface);\n\n //\n // Setup Capture Session\n //\n mCameraDevice.createCaptureSession(surfaces, new CameraCaptureSession.StateCallback() {\n\n @Override\n public void onConfigured(CameraCaptureSession cameraCaptureSession) {\n Log.e(TAG, \"onConfigured(CameraCaptureSession cameraCaptureSession) ...\");\n mPreviewSession = cameraCaptureSession;\n updatePreview();\n }\n\n @Override\n public void onSurfacePrepared(CameraCaptureSession session, Surface surface) {\n Log.e(TAG, \"onSurfacePrepared(CameraCaptureSession session, Surface surface) ...\");\n //previewView = (LinearLayout) findViewById(R.id.camera_preview);\n //previewView.addView(mVideoCapture.mTextureView);\n }\n\n @Override\n public void onConfigureFailed(CameraCaptureSession cameraCaptureSession) {\n Log.e(TAG, \"onConfigureFailed(CameraCaptureSession cameraCaptureSession) ...\");\n Toast.makeText(mCameraActivity, \"failed to configure video camera\", Toast.LENGTH_SHORT).show();\n onBackPressed();\n }\n }, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void onAutoFocus(boolean success, Camera camera);", "public void setAutoFocus() {\n \tCamera.Parameters params = mCamera.getParameters();\n \tList<String> focusModes = params.getSupportedFocusModes();\n \tif (focusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO)) {\n \t\tparams.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);\n \t\tmCamera.setParameters(params);\n \t}\n }", "@Override\n \t\t\tpublic void onAutoFocus(boolean success, Camera camera) {\n \t\t\t}", "private void startCameraSource() {\n\n if (cameraSource != null) {\n try {\n cameraPreview.start(cameraSource, graphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n\n }", "public void display() {\n startPreview();\n }", "private void runPrecaptureSequence() {\n try {\n // This is how to tell the camera to trigger.\n mPreviewRequestBuilder.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER,\n CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER_START);\n // Tell #mCaptureCallback to wait for the precapture sequence to be set.\n mState = STATE_WAITING_PRECAPTURE;\n mCaptureSession.capture(mPreviewRequestBuilder.build(), mCaptureCallback,\n mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "protected void createCameraPreview() {\n try {\n SurfaceTexture texture = mCameraTextureView.getSurfaceTexture();\n assert texture != null;\n texture.setDefaultBufferSize(mImageDimension.getWidth(), mImageDimension.getHeight());\n Surface surface = new Surface(texture);\n mCaptureRequestBuilder = mCameraDevice.\n createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n mCaptureRequestBuilder.addTarget(surface);\n mCameraDevice.createCaptureSession(Collections.singletonList(surface),\n new CameraCaptureSession.StateCallback() {\n @Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n //The camera is already closed\n if (null == mCameraDevice) {\n return;\n }\n // When the session is ready, we start displaying the preview.\n mCameraCaptureSessions = cameraCaptureSession;\n updatePreview();\n }\n\n @Override\n public void onConfigureFailed(@NonNull CameraCaptureSession cameraCaptureSession) {\n Toast.makeText(CameraActivity.this, \"Configuration change\",\n Toast.LENGTH_SHORT).show();\n }\n }, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "@SuppressLint({\"NewApi\"})\n public void setUpPreview() {\n try {\n if (this.mPreview.getOutputClass() == SurfaceHolder.class) {\n boolean z = this.mShowingPreview && Build.VERSION.SDK_INT < 14;\n if (z) {\n this.mCamera.stopPreview();\n }\n this.mCamera.setPreviewDisplay(this.mPreview.getSurfaceHolder());\n if (z) {\n this.mCamera.startPreview();\n return;\n }\n return;\n }\n this.mCamera.setPreviewTexture((SurfaceTexture) this.mPreview.getSurfaceTexture());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void onPreviewStarted() {\n if (!this.mPaused) {\n Log.w(TAG, \"KPI photo preview started\");\n this.mAppController.onPreviewStarted();\n this.mAppController.setShutterEnabled(true);\n this.mAppController.setShutterButtonLongClickable(this.mIsImageCaptureIntent ^ 1);\n this.mAppController.getCameraAppUI().enableModeOptions();\n this.mUI.clearEvoPendingUI();\n if (this.mEvoFlashLock != null) {\n this.mAppController.getButtonManager().enableButtonWithToken(0, this.mEvoFlashLock.intValue());\n this.mEvoFlashLock = null;\n }\n if (this.mCameraState == 7) {\n setCameraState(5);\n } else {\n setCameraState(1);\n }\n if (isCameraFrontFacing()) {\n this.mUI.setZoomBarVisible(false);\n } else {\n this.mUI.setZoomBarVisible(true);\n }\n if (this.mActivity.getCameraAppUI().isNeedBlur() || onGLRenderEnable()) {\n new Handler().postDelayed(new Runnable() {\n public void run() {\n PhotoModule.this.startFaceDetection();\n }\n }, 1500);\n } else {\n startFaceDetection();\n }\n BoostUtil.getInstance().releaseCpuLock();\n if (this.mIsGlMode) {\n this.mActivity.getCameraAppUI().hideImageCover();\n if (this.mActivity.getCameraAppUI().getBeautyEnable()) {\n this.mActivity.getCameraAppUI().getCameraGLSurfaceView().queueEvent(new Runnable() {\n public void run() {\n PhotoModule.this.mActivity.getButtonManager().setSeekbarProgress((int) PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek());\n PhotoModule.this.updateBeautySeek(PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() / 20.0f);\n }\n });\n }\n if (this.mActivity.getCameraAppUI().getEffectEnable()) {\n this.mActivity.getCameraAppUI().getCameraGLSurfaceView().queueEvent(new Runnable() {\n public void run() {\n if (TextUtils.isEmpty(PhotoModule.this.mActivity.getCameraAppUI().getCurrSelect())) {\n BeaurifyJniSdk.preViewInstance().nativeDisablePackage();\n } else {\n BeaurifyJniSdk.preViewInstance().nativeChangePackage(PhotoModule.this.mActivity.getCameraAppUI().getCurrSelect());\n }\n }\n });\n }\n }\n }\n }", "public void setPreview(boolean preview) {\r\n this.preview = preview;\r\n }", "private void startRecord() {\n try {\n if (mIsRecording) {\n setupMediaRecorder();\n } else if (mIsTimelapse) {\n setupTimelapse();\n }\n SurfaceTexture surfaceTexture = mTextureView.getSurfaceTexture();\n surfaceTexture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight());\n Surface previewSurface = new Surface(surfaceTexture);\n Surface recordSurface = mMediaRecorder.getSurface();\n mCaptureRequestBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_RECORD);\n mCaptureRequestBuilder.addTarget(previewSurface);\n mCaptureRequestBuilder.addTarget(recordSurface);\n\n mCameraDevice.createCaptureSession(Arrays.asList(previewSurface, recordSurface, mImageReader.getSurface()),\n new CameraCaptureSession.StateCallback() {\n\n\n @Override\n public void onConfigured(CameraCaptureSession session) {\n\n mRecordCaptureSession = session;\n\n try {\n mRecordCaptureSession.setRepeatingRequest(mCaptureRequestBuilder.build(), null, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onConfigureFailed(@NonNull CameraCaptureSession session) {\n\n }\n }, null);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onOpened(@NonNull CameraDevice cameraDevice) {\n\n mCameraDevice = cameraDevice;\n\n\n try {\n captureRequestBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n captureRequestBuilder.set(CaptureRequest.CONTROL_MODE, CaptureRequest.CONTROL_MODE_OFF);\n\n } catch(CameraAccessException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "public void startCamera()\n {\n startCamera(null);\n }", "@Override\n public void onClick(View v) {\n if (!previewing) {\n camera = Camera.open();\n if (camera != null) {\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n previewing = true;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }\n }", "@Override\n public void onConfigured(\n CameraCaptureSession cameraCaptureSession) {\n if (null == mCameraDevice) {\n return;\n }\n\n // When the session is ready, we start displaying the preview.\n mCaptureSession = cameraCaptureSession;\n\n try {\n // 自动对焦\n // Auto focus should be continuous for camera preview.\n mPreviewRequestBuilder.set(\n CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n\n // Flash is automatically enabled when necessary.\n setAutoFlash(mPreviewRequestBuilder);\n\n // Finally, we start displaying the camera preview.\n mPreviewRequest = mPreviewRequestBuilder.build();\n mCaptureSession.setRepeatingRequest(\n mPreviewRequest,\n // 如果想要拍照,那么绝不能设置为null\n // 如果单纯预览,那么可以设置为null\n mCaptureCallback,\n mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onCameraPreviewStarted() {\n enableTorchButtonIfPossible();\n }", "private void startCapture() {\n if (checkAudioPermissions()) {\n requestScreenCapture();\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n cameraView.start();\n }", "private void oldOpenCamera() {\n try {\n mCamera = Camera.open(); // attempt to get a Camera instance\n mCamera.setPreviewCallbackWithBuffer(this);\n Log.i(TAG, \"Instance created\");\n } catch (Exception e) {\n Log.e(TAG, \"Error getting Camera instance: \" + e.getMessage());\n }\n }", "public void requestAutoFocus(Handler handler, int message) {\n\t\tif (camera != null && previewing) {\n\t\t\tautoFocusManager.start();\n\t\t}\n\t}", "public void startCamera()\n \t{\n\t\t// start the video capture\n\t\t//this.capture.open(0);\n\t\tcapture.open(cameraNumber);\n\n\n\n\t\t// is the video stream available?\n\t\tif (capture.isOpened())\n\t\t{\n\t\t\t// grab a frame every 33 ms (30 frames/sec)\n\t\t\tRunnable frameGrabber = new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tgrabFrame();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ttimer = Executors.newSingleThreadScheduledExecutor();\n\t\t\ttimer.scheduleAtFixedRate(frameGrabber, 0, 500, TimeUnit.MILLISECONDS);\n\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// log the error\n\t\t\tSystem.err.println(\"Impossible to open the camera connection...\");\n\t\t}\n \t}", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(@NonNull CameraDevice camera) {\n mCameraDevice = camera;\n if (mIsRecording) {\n try {\n mVideoFilePath = FileUtils.createVideoFile(getApplicationContext());\n } catch (IOException e) {\n e.printStackTrace();\n }\n startNewVideo();\n } else {\n startPreview();\n }\n }", "@Override\n public void onOpened(@NonNull CameraDevice camera) {\n mCameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(@NonNull CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "protected void createCameraPreview() {\n try {\n SurfaceTexture texture = textureView.getSurfaceTexture();\n assert texture != null;\n texture.setDefaultBufferSize(imageDimension.getWidth(), imageDimension.getHeight());\n Surface surface = new Surface(texture);\n captureRequestBuilder = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n captureRequestBuilder.addTarget(surface);\n cameraDevice.createCaptureSession(Collections.singletonList(surface), new CameraCaptureSession.StateCallback(){\n @Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n if (null == cameraDevice) {\n return;\n }\n cameraCaptureSessions = cameraCaptureSession;\n updatePreview();\n }\n @Override\n public void onConfigureFailed(@NonNull CameraCaptureSession cameraCaptureSession) {\n Toast.makeText(MainActivity.this, \"Configuration change\", Toast.LENGTH_SHORT).show();\n }\n }, null);\n } catch (CameraAccessException e) {\n Toast.makeText(MainActivity.this, \"Camera Surface failed to load.\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }", "public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n if (this.hasDevicePermissionToAccess() && sGoCoderSDK != null && mWZCameraView != null) {\n if (mAutoFocusDetector == null)\n mAutoFocusDetector = new GestureDetectorCompat(this, new AutoFocusListener(this, mWZCameraView));\n\n WZCamera activeCamera = mWZCameraView.getCamera();\n if (activeCamera != null && activeCamera.hasCapability(WZCamera.FOCUS_MODE_CONTINUOUS))\n activeCamera.setFocusMode(WZCamera.FOCUS_MODE_CONTINUOUS);\n }\n }", "private void lockFocus() {\n try {\n // This is how to tell the camera to lock focus.\n mPreviewRequestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, CameraMetadata.CONTROL_AF_TRIGGER_START);\n // Tell #mCaptureCallback to wait for the lock.\n mState = STATE_WAITING_LOCK;\n mCaptureSession.capture(mPreviewRequestBuilder.build(), mCaptureCallback, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "@Override\n protected void onStart() {\n camera_ = getCameraInstance();\n Parameters params;\n\n if (camera_ != null) {\n params = camera_.getParameters();\n params.setPreviewFormat(ImageFormat.NV21);\n getSmallestPreviewSize(params);\n params.setPreviewSize(width_, height_);\n //params.setFlashMode(Parameters.FLASH_MODE_TORCH);\n params.setWhiteBalance(Parameters.WHITE_BALANCE_AUTO);\n camera_.setParameters(params);\n\n frame_ = new RGB[width_ * height_];\n for (int i = 0; i < frame_.length; ++i) {\n frame_[i] = new RGB();\n }\n\n camera_.setPreviewCallback(new PreviewCallback() {\n @Override\n public void onPreviewFrame(byte[] data, Camera camera) {\n synchronized (frame_) {\n decodeYUV420SP(frame_, data, width_, height_);\n }\n }\n });\n SurfaceTexture texture_ = new SurfaceTexture(0);\n try {\n camera_.setPreviewTexture(texture_);\n } catch (IOException e) {\n e.printStackTrace();\n }\n camera_.startPreview();\n }\n\n super.onStart();\n }", "public void startCameraProcessing() {\n this.checkCameraPermission();\n\n try {\n cameraManager.openCamera(cameraId, new CameraDevice.StateCallback() {\n @Override\n public void onOpened(@NonNull CameraDevice camera) {\n cameraDevice = camera;\n onCameraOpened();\n }\n\n @Override\n public void onDisconnected(@NonNull CameraDevice camera) {\n\n }\n\n @Override\n public void onError(@NonNull CameraDevice camera, int error) {\n System.out.println(\"CAMERA ERROR OCCURRED: \" + error);\n }\n\n @Override\n public void onClosed(@NonNull CameraDevice camera) {\n super.onClosed(camera);\n }\n }, null);\n }\n catch (Exception e) {\n System.out.println(\"CAMERA FAILED TO OPEN\");\n e.printStackTrace();\n }\n }", "private void sendVideoRecordingRequest() {\n SurfaceTexture surfaceTexture = mTextureView.getSurfaceTexture();\n assert surfaceTexture != null;\n surfaceTexture.setDefaultBufferSize(mSizePreview.getSize().getWidth(), mSizePreview.getSize().getHeight());\n Surface previewSurface = new Surface(surfaceTexture);\n\n try {\n\n // create request for RECORDING template\n /**\n * Create a request suitable for video recording. Specifically, this means\n * that a stable frame rate is used, and post-processing is set for\n * recording quality. These requests would commonly be used with the\n * {@link CameraCaptureSession#setRepeatingRequest} method.\n * This template is guaranteed to be supported on all camera devices except\n * {@link CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT DEPTH_OUTPUT} devices\n * that are not {@link CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE\n * BACKWARD_COMPATIBLE}.\n *\n * @see #createCaptureRequest\n */\n mCaptureRequestBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_RECORD);\n configureCameraParameters(mCaptureRequestBuilder, mRokidCameraParamAEMode, mRokidCameraParamAFMode, mRokidCameraParamAWBMode);\n\n if (mPreviewEnabled) {\n // add Preview surface to target\n mCaptureRequestBuilder.addTarget(previewSurface);\n }\n\n // add Record surface to target\n Surface recordSurface = mMediaRecorder.getSurface();\n mCaptureRequestBuilder.addTarget(recordSurface);\n\n mCameraDevice.createCaptureSession(Arrays.asList(previewSurface, recordSurface), new CameraCaptureSession.StateCallback() {\n @Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n try {\n cameraCaptureSession.setRepeatingRequest(mCaptureRequestBuilder.build(), null, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onConfigureFailed(@NonNull CameraCaptureSession cameraCaptureSession) {\n\n }\n }, null);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public boolean getAutoFocus() {\n if (!isCameraOpened()) {\n return this.mAutoFocus;\n }\n String focusMode = this.mCameraParameters.getFocusMode();\n return focusMode != null && focusMode.contains(\"continuous\");\n }", "private void startCamera() {\n PreviewConfig previewConfig = new PreviewConfig.Builder().setTargetResolution(new Size(640, 480)).build();\n Preview preview = new Preview(previewConfig);\n preview.setOnPreviewOutputUpdateListener(output -> {\n ViewGroup parent = (ViewGroup) dataBinding.viewFinder.getParent();\n parent.removeView(dataBinding.viewFinder);\n parent.addView(dataBinding.viewFinder, 0);\n dataBinding.viewFinder.setSurfaceTexture(output.getSurfaceTexture());\n updateTransform();\n });\n\n\n // Create configuration object for the image capture use case\n // We don't set a resolution for image capture; instead, we\n // select a capture mode which will infer the appropriate\n // resolution based on aspect ration and requested mode\n ImageCaptureConfig imageCaptureConfig = new ImageCaptureConfig.Builder().setCaptureMode(ImageCapture.CaptureMode.MIN_LATENCY).build();\n\n // Build the image capture use case and attach button click listener\n ImageCapture imageCapture = new ImageCapture(imageCaptureConfig);\n dataBinding.captureButton.setOnClickListener(v -> {\n File file = new File(getExternalMediaDirs()[0], System.currentTimeMillis() + \".jpg\");\n imageCapture.takePicture(file, executor, new ImageCapture.OnImageSavedListener() {\n @Override\n public void onImageSaved(@NonNull File file) {\n String msg = \"Photo capture succeeded: \" + file.getAbsolutePath();\n Log.d(\"CameraXApp\", msg);\n dataBinding.viewFinder.post(\n () -> Toast.makeText(CameraXDemo.this, msg, Toast.LENGTH_SHORT).show()\n );\n }\n\n @Override\n public void onError(@NonNull ImageCapture.ImageCaptureError\n imageCaptureError, @NonNull String message, @Nullable Throwable cause) {\n String msg = \"Photo capture failed: \" + message;\n Log.e(\"CameraXApp\", msg, cause);\n dataBinding.viewFinder.post(\n () -> Toast.makeText(CameraXDemo.this, msg, Toast.LENGTH_SHORT).show()\n );\n }\n });\n });\n\n\n // Setup image analysis pipeline that computes average pixel luminance\n ImageAnalysisConfig analyzerConfig = new ImageAnalysisConfig.Builder().setImageReaderMode(\n ImageAnalysis.ImageReaderMode.ACQUIRE_LATEST_IMAGE).build();\n // Build the image analysis use case and instantiate our analyzer\n ImageAnalysis analyzerUseCase = new ImageAnalysis(analyzerConfig);\n analyzerUseCase.setAnalyzer(executor, new LuminosityAnalyzer());\n\n CameraX.bindToLifecycle(this, preview, imageCapture, analyzerUseCase);\n }", "public void startFrontCam() {\n }", "@Override\n public void onFinish() {\n if (camera == null)\n return;\n\n Camera.Parameters parameters = camera.getParameters();\n parameters.setFocusAreas(null);\n if (supportedFocusModes == null)\n supportedFocusModes = getSupportedFocusModes(parameters);\n if (supportedFocusModes.get(FOCUS_CONTINUOUS_PICTURE)) {\n parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE);\n } else if (supportedFocusModes.get(FOCUS_CONTINUOUS_VIDEO)) {\n parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);\n }\n camera.setParameters(parameters);\n }", "@SuppressLint(\"InlinedApi\")\n private void createCameraSource(boolean autoFocus, boolean useFlash) {\n Context context = getApplicationContext();\n\n // Create the TextRecognizer\n TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();\n // Set the TextRecognizer's Processor.\n textRecognizer.setProcessor(mProcessor);\n\n // Check if the TextRecognizer is operational.\n if (!textRecognizer.isOperational()) {\n Log.w(TAG, \"Detector dependencies are not yet available.\");\n\n // Check for low storage. If there is low storage, the native library will not be\n // downloaded, so detection will not become operational.\n IntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n boolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\n if (hasLowStorage) {\n Toast.makeText(this, R.string.low_storage_error, Toast.LENGTH_LONG).show();\n Log.w(TAG, getString(R.string.low_storage_error));\n }\n }\n\n // Create the mCameraSource using the TextRecognizer.\n mCameraSource =\n new CameraSource.Builder(getApplicationContext(), textRecognizer)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setRequestedPreviewSize(1280, 1024)\n .setRequestedFps(15.0f)\n .setFlashMode(useFlash ? Camera.Parameters.FLASH_MODE_TORCH : null)\n .setFocusMode(autoFocus ? Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE : null)\n .build();\n }", "private void startCameraSource() throws SecurityException {\n int code = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(\n getApplicationContext());\n if (code != ConnectionResult.SUCCESS) {\n Dialog dlg =\n GoogleApiAvailability.getInstance().getErrorDialog(this, code, RC_HANDLE_GMS);\n dlg.show();\n }\n\n if (mCameraSource != null) {\n try {\n mPreview.start(mCameraSource, mGraphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n mCameraSource.release();\n mCameraSource = null;\n }\n }\n }", "private void unlockFocus() {\n if (DEBUG)\n MLog.d(TAG, \"unlockFocus(): \" + printThis());\n try {\n // Reset the auto-focus trigger\n // 重置自动对焦\n mPreviewRequestBuilder.set(\n CaptureRequest.CONTROL_AF_TRIGGER,\n CameraMetadata.CONTROL_AF_TRIGGER_CANCEL);\n setAutoFlash(mPreviewRequestBuilder);\n mCaptureSession.capture(\n mPreviewRequestBuilder.build(),\n // 这里好像可以设置为null\n mCaptureCallback,\n mBackgroundHandler);\n\n // After this, the camera will go back to the normal state of preview.\n mState = STATE_PREVIEW;\n // 打开连续取景模式\n mCaptureSession.setRepeatingRequest(\n mPreviewRequest,\n // 如果想要拍照,那么绝不能设置为null\n // 如果单纯预览,那么可以设置为null\n mCaptureCallback,\n mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public synchronized void stopPreview() {\n if (autoFocusManager != null) {\n autoFocusManager.stop();\n autoFocusManager = null;\n }\n if (camera != null && previewing) {\n camera.getCamera().stopPreview();\n previewing = false;\n }\n }", "@Override\n public void startCameraIntent() {\n Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(cameraIntent, PICK_FROM_CAMERA_REQUEST_CODE);\n }", "public synchronized void stopPreview() {\n if (autoFocusManager != null) {\n autoFocusManager.stop();\n autoFocusManager = null;\n }\n if (camera != null && previewing) {\n camera.getCamera().stopPreview();\n previewCallback.setHandler(null, 0);\n previewing = false;\n }\n }", "public void onCameraOpened() {\n openCameraCommon();\n initializeControlByIntent();\n new Thread() {\n public void run() {\n try {\n Thread.sleep(500);\n PhotoModule.this.mIsCameraOpened = true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }.start();\n }", "public void chooseCamera() {\n if (cameraFront) {\n int cameraId = findBackFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n } else {\n int cameraId = findFrontFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n }\n }", "private void startCameraSource() throws SecurityException {\n // check that the device has play services available.\n int code = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(\n getApplicationContext());\n if (code != ConnectionResult.SUCCESS) {\n Dialog dlg =\n GoogleApiAvailability.getInstance().getErrorDialog(this, code, RC_HANDLE_GMS);\n dlg.show();\n }\n\n if (mCameraSource != null) {\n try {\n mPreview.start(mCameraSource, mGraphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n mCameraSource.release();\n mCameraSource = null;\n }\n }\n }", "private void startCameraSource() throws SecurityException {\n // Check that the device has play services available.\n int code = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(\n getApplicationContext());\n if (code != ConnectionResult.SUCCESS) {\n Dialog dlg =\n GoogleApiAvailability.getInstance().getErrorDialog(this, code, RC_HANDLE_GMS);\n dlg.show();\n }\n\n if (mCameraSource != null) {\n try {\n mPreview.start(mCameraSource, mGraphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n mCameraSource.release();\n mCameraSource = null;\n }\n }\n }", "public boolean isPreviewActive() {\n return previewActive;\n }", "public interface CameraPreview {\n\n /**\n * Set the camera system this will act as the preview for.\n * <p/>\n * The preview will update the camera system as necessary for certain events, such as\n * setting the surface holder, or pausing/restarting the preview when reconfiguring the surface.\n *\n * @param cameraSystem the camera system to connect to\n */\n void connectToCameraSystem(@NonNull CameraSystem cameraSystem);\n\n}", "private void startCameraSource() throws SecurityException {\n int code = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(\n getApplicationContext());\n if (code != ConnectionResult.SUCCESS) {\n Dialog dlg =\n GoogleApiAvailability.getInstance().getErrorDialog(this, code, RC_HANDLE_GMS);\n dlg.show();\n }\n\n if (mCameraSource != null) {\n try {\n cspPreview.start(mCameraSource, goReader);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n mCameraSource.release();\n mCameraSource = null;\n }\n }\n }", "@Override\n public void onConfigured(@NonNull CameraCaptureSession session) {\n if (MyDebug.LOG) {\n Log.d(TAG, \"onConfigured: \" + session);\n Log.d(TAG, \"captureSession was: \" + captureSession);\n }\n if (camera == null) {\n if (MyDebug.LOG) {\n Log.d(TAG, \"camera is closed\");\n }\n synchronized (background_camera_lock) {\n callback_done = true;\n background_camera_lock.notifyAll();\n }\n return;\n }\n synchronized (background_camera_lock) {\n captureSession = session;\n Surface surface = getPreviewSurface();\n previewBuilder.addTarget(surface);\n if (video_recorder != null)\n previewBuilder.addTarget(video_recorder_surface);\n try {\n setRepeatingRequest();\n } catch (CameraAccessException e) {\n if (MyDebug.LOG) {\n Log.e(TAG, \"failed to start preview\");\n Log.e(TAG, \"reason: \" + e.getReason());\n Log.e(TAG, \"message: \" + e.getMessage());\n }\n e.printStackTrace();\n // we indicate that we failed to start the preview by setting captureSession back to null\n // this will cause a CameraControllerException to be thrown below\n captureSession = null;\n }\n }\n synchronized (background_camera_lock) {\n callback_done = true;\n background_camera_lock.notifyAll();\n }\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif (DEBUG>=2) Log.d(TAG, \"onResumed'd\");\n\t\tIS_PAUSING = NO;\n\t\twl.acquire();\n\t\tpreview.onResume();\n\t}", "@Override public void run()\n {\n pauseStreaming();\n\n // Switch the current camera\n camera = newCamera;\n\n // Resume streaming on the new camera if there is one\n if (camera != null)\n {\n resumeStreaming();\n }\n }", "public void stopPreview() {\n\t\tif (autoFocusManager != null) {\n\t\t\tautoFocusManager.stop();\n\t\t\tautoFocusManager = null;\n\t\t}\n\t\tif (camera != null && previewing) {\n//\t\t\tLog.d(TAG, \"stopPreview\");\n\t\t\tcamera.stopPreview();\n//\t\t\tpreviewCallback.setHandler(null, 0);\n\t\t\tpreviewing = false;\n\t\t}\n\t\t\n\t}", "public synchronized void requestPreviewFrame(Handler handler, int message) {\n OpenCamera theCamera = camera;\n if (theCamera != null && previewing) {\n previewCallback.setHandler(handler, message);\n theCamera.getCamera().setOneShotPreviewCallback(previewCallback);\n }\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public void setAutoFocus(boolean z) {\n if (this.mAutoFocus != z && setAutoFocusInternal(z)) {\n this.mCamera.setParameters(this.mCameraParameters);\n }\n }", "@TargetApi(9)\n\t@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n\t\t\tmCamera = Camera.open(0);\t\t\t\t\t\t\t\t\t//For API 9 and above. Open first camera available on device\n\t\t} else {\n\t\t\tmCamera = Camera.open();\t\t\t\t\t\t\t\t\t//For API 8\n\t\t}\n\t}", "public void requestPreviewFrame(Handler handler, int message) {\r\n\t\tCamera localCamera = camera;\r\n\t\tif (camera != null && isPreview) {\r\n\t\t\tpreviewCallback.setHandler(handler, message);\r\n\t\t\tlocalCamera.setOneShotPreviewCallback(previewCallback);\r\n\t\t}\r\n\t}", "public boolean isPreview() {\r\n return preview;\r\n }", "public void requestAutofocus(Handler handler, int message) {\r\n\t\tif (camera != null && isPreview) {\r\n\t\t\tautofocusCallback.setHandler(handler, message);\r\n\t\t\tcamera.autoFocus(autofocusCallback);\r\n\t\t}\r\n\t}", "@FXML\r\n protected void startCamera() {\r\n // set a fixed width for the frame\r\n this.currentFrame.setFitWidth(600);\r\n // preserve image ratio\r\n this.currentFrame.setPreserveRatio(true);\r\n\r\n if (!this.cameraActive) {\r\n\r\n // start the video capture\r\n //this.capture.open(0);\r\n //Read the video (Chage video)\r\n this.capture.open(\"Faruri.m4v\");\r\n\r\n\r\n System.out.println(\"start capture...\");\r\n // is the video stream available?\r\n if (this.capture.isOpened()) {\r\n System.out.println(\"inif\");\r\n this.cameraActive = true;\r\n\r\n // grab a frame every 33 ms (30 frames/sec)\r\n Runnable frameGrabber = new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // effectively grab and process a single frame\r\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 }\r\n };\r\n\r\n this.timer = Executors.newSingleThreadScheduledExecutor();\r\n this.timer.scheduleAtFixedRate(frameGrabber, 0, 33, TimeUnit.MILLISECONDS);\r\n\r\n // update the button content\r\n this.button.setText(\"Stop Video\");\r\n } else {\r\n // log the error\r\n System.err.println(\"Impossible to open the video...\");\r\n }\r\n } else {\r\n // the camera is not active at this point\r\n this.cameraActive = false;\r\n // update again the button content\r\n this.button.setText(\"Start Video\");\r\n\r\n // stop the timer\r\n this.stopAcquisition();\r\n }\r\n }", "@Override\n protected void onResume() {\n super.onResume();\n cameraLiveView.onResume();\n }", "private void onShow() {\n if (DEBUG)\n MLog.d(TAG, \"onShow(): \" + printThis());\n\n startBackgroundThread();\n\n // When the screen is turned off and turned back on, the SurfaceTexture is already\n // available, and \"onSurfaceTextureAvailable\" will not be called. In that case, we can open\n // a camera and start preview from here (otherwise, we wait until the surfaceJavaObject\n // is ready in\n // the SurfaceTextureListener).\n if (mTextureView.isAvailable()) {\n openCamera(mTextureView.getWidth(), mTextureView.getHeight());\n } else {\n mTextureView.setSurfaceTextureListener(mSurfaceTextureListener);\n }\n }", "private void previewCapturedImage(){\n \ttry{\n \t\timgPreview.setVisibility(View.VISIBLE);\n \t\t\n \t\t//Bitmap Factory\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t\t\n \t\t//Downsizing image as it throws OutOfMemory Exception for large images\n \t\toptions.inSampleSize = 4;\n \t\t\n \t\tfinal Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(), options);\n \t\t\n \t\timgPreview.setImageBitmap(bitmap);\n \t}catch(NullPointerException e){\n \t\te.printStackTrace();\n \t}catch(OutOfMemoryError e){\n \t\te.printStackTrace();\n \t}\n }", "@SuppressLint(\"InlinedApi\")\n private void createCameraSource(boolean autoFocus, boolean useFlash) {\n Context context = getApplicationContext();\n\n // A text recognizer is created to find text. An associated processor instance\n // is set to receive the text recognition results and display graphics for each text block\n // on screen.\n TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();\n textRecognizer.setProcessor(new OcrDetectorProcessor(mGraphicOverlay,this));\n\n if (!textRecognizer.isOperational()) {\n // Note: The first time that an app using a Vision API is installed on a\n // device, GMS will download a native libraries to the device in order to do detection.\n // Usually this completes before the app is run for the first time. But if that\n // download has not yet completed, then the above call will not detect any text,\n // barcodes, or faces.\n //\n // isOperational() can be used to check if the required native libraries are currently\n // available. The detectors will automatically become operational once the library\n // downloads complete on device.\n Log.w(TAG, \"Detector dependencies are not yet available.\");\n\n // Check for low storage. If there is low storage, the native library will not be\n // downloaded, so detection will not become operational.\n IntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n boolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\n if (hasLowStorage) {\n Toast.makeText(this, \"Memori HP kurang\", Toast.LENGTH_LONG).show();\n Log.w(TAG, \"Memori HP kurang\");\n }\n }\n\n // Creates and starts the camera. Note that this uses a higher resolution in comparison\n // to other detection examples to enable the text recognizer to detect small pieces of text.\n mCameraSource =\n new CameraSource.Builder(getApplicationContext(), textRecognizer)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setRequestedPreviewSize(1280, 1024)\n .setRequestedFps(2.0f)\n .setFlashMode(useFlash ? Camera.Parameters.FLASH_MODE_TORCH : null)\n .setFocusMode(autoFocus ? Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE : null)\n .build();\n mCameraSource.doZoom(1f);\n }", "@Override\n public void onOpened(CameraDevice cameraDevice) {\n mCameraOpenCloseLock.release();\n mCameraDevice = cameraDevice;\n createCameraPreviewSession();\n }", "private void startCameraSource() throws SecurityException {\n if (mCameraSource != null) {\n mCameraSourcePreview.start(mCameraSource, mGraphicOverlay);\n }\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public void takePicture() {\n if (!isCameraOpened()) {\n throw new IllegalStateException(\"Camera is not ready. Call start() before takePicture().\");\n } else if (getAutoFocus()) {\n this.mCamera.cancelAutoFocus();\n this.mCamera.autoFocus(new Camera.AutoFocusCallback() {\n /* class com.master.cameralibrary.Camera1.AnonymousClass2 */\n\n public void onAutoFocus(boolean z, Camera camera) {\n Camera1.this.takePictureInternal();\n }\n });\n } else {\n takePictureInternal();\n }\n }", "private void unlockFocus() {\n try {\n // Reset the auto-focus trigger\n mCaptureRequestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER,\n CameraMetadata.CONTROL_AF_TRIGGER_CANCEL);\n mPreviewCaptureSession.capture(mCaptureRequestBuilder.build(), mPreviewCaptureCallback,\n mBackgroundHandler);\n // After this, the camera will go back to the normal state of preview.\n mCaptureState = STATE_PREVIEW;\n mPreviewCaptureSession.setRepeatingRequest(mPreviewRequest, mPreviewCaptureCallback,\n mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public void scanDocument() {\n Intent intent = new Intent(getContext(), ScanActivity.class);\n intent.putExtra(ScanConstants.OPEN_INTENT_PREFERENCE, ScanConstants.OPEN_CAMERA);\n startActivityForResult(intent, REQUEST_CAMERA);\n }", "private void newOpenCamera() {\n if (mThread == null) {\n mThread = new CameraHandlerThread();\n }\n\n synchronized (mThread) {\n mThread.openCamera();\n }\n }", "@Override\n\tpublic void onPreviewFrame(byte[] bytes, Camera camera) {\n\n\t}", "private void unlockFocus() {\n try {\n // Reset the auto-focus trigger\n if (mCaptureSession != null) {\n mPreviewRequestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, CameraMetadata.CONTROL_AF_TRIGGER_CANCEL);\n mCaptureSession.capture(mPreviewRequestBuilder.build(), mCaptureCallback, mBackgroundHandler);\n // After this, the camera will go back to the normal state of preview.\n mState = STATE_PREVIEW;\n mCaptureSession.setRepeatingRequest(mPreviewRequest, mCaptureCallback, mBackgroundHandler);\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String mCameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(mCameraId);\n StreamConfigurationMap map = characteristics.\n get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n mImageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) !=\n PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(CameraActivity.this, new\n String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CAMERA_PERMISSION);\n }\n manager.openCamera(mCameraId, mStateCallback, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public static void pause() {\n\t\tmyWasPausedInPreview = false;\n\t\tif (myCurrentCamera != null) {\n\t\t\tif (myIsInPreview == true) {\n\t\t\t\tmyWasPausedInPreview = true;\n\t\t\t\tstop();\n\t\t\t}\n\n\t\t\tmyCurrentCamera.setPreviewCallbackWithBuffer(null);\n\t\t\tmyCurrentCamera.release();\n\t\t}\n\t}" ]
[ "0.73906225", "0.70727044", "0.7047641", "0.70233715", "0.69987136", "0.67322195", "0.66593635", "0.6613117", "0.65778977", "0.653276", "0.6525709", "0.65088856", "0.64999443", "0.6426188", "0.64128876", "0.6365", "0.6363712", "0.6285819", "0.6265418", "0.6203887", "0.6193762", "0.6169223", "0.61424625", "0.6115425", "0.60969764", "0.60767615", "0.6004106", "0.59681886", "0.59492177", "0.5936248", "0.5927706", "0.590321", "0.5887672", "0.584628", "0.58355457", "0.5829577", "0.5829577", "0.5817582", "0.58173037", "0.5810474", "0.5767141", "0.5753371", "0.57444453", "0.5726042", "0.56974417", "0.5696677", "0.5661262", "0.5661262", "0.56571966", "0.5652059", "0.5648187", "0.56371677", "0.5634447", "0.56319535", "0.559771", "0.5586156", "0.55842614", "0.55672216", "0.555324", "0.5543439", "0.55395615", "0.5539001", "0.553232", "0.55262893", "0.55209714", "0.5507763", "0.55060565", "0.5490435", "0.5489383", "0.54875904", "0.54837155", "0.5482938", "0.5481046", "0.5474749", "0.54683965", "0.54616946", "0.5455839", "0.5453097", "0.5450441", "0.5435512", "0.5421554", "0.5420961", "0.5416541", "0.54012185", "0.5399614", "0.53932", "0.53878975", "0.5382118", "0.53692555", "0.53671116", "0.5363322", "0.53611475", "0.5351635", "0.53491443", "0.5346066", "0.53441775", "0.5338317", "0.53339404", "0.53279555", "0.5304309" ]
0.5711726
44
Adds current regions to CaptureRequest and base AF mode + AF_TRIGGER_IDLE.
private void addBaselineCaptureKeysToRequest(CaptureRequest.Builder builder) { builder.set(CaptureRequest.CONTROL_AE_MODE, mAEMode); int exposureCompensationIndex = -1; if (mIsAeLockAvailable != null && mIsAeLockAvailable) { builder.set(CaptureRequest.CONTROL_AE_LOCK, mAeLock); } if (mExposureCompensationStep != 0) { exposureCompensationIndex = (int) (mCurrentEv / mExposureCompensationStep); builder.set(CaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION, exposureCompensationIndex); } LogHelper.d(TAG, "[addBaselineCaptureKeysToRequest]" + " mAEMode = " + mAEMode + ",mAeLock " + mAeLock + ",exposureCompensationIndex " + exposureCompensationIndex); builder.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER, CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER_IDLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendAePreTriggerCaptureRequest() {\n // Step 1: Request single frame CONTROL_AF_TRIGGER_START.\n CaptureRequest.Builder builder = mDevice2Requester\n .createAndConfigRequest(mDevice2Requester.getRepeatingTemplateType());\n if (builder == null) {\n LogHelper.w(TAG, \"[sendAePreTriggerCaptureRequest] builder is null\");\n return;\n }\n builder.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER,\n CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER_START);\n // Step 2: Call repeatingPreview to update mControlAFMode.\n Camera2CaptureSessionProxy sessionProxy = mDevice2Requester.getCurrentCaptureSession();\n LogHelper.d(TAG, \"[sendAePreTriggerCaptureRequest] sessionProxy \" + sessionProxy);\n try {\n if (sessionProxy != null) {\n LogHelper.d(TAG, \"[sendAePreTriggerCaptureRequest] \" +\n \"CONTROL_AE_PRECAPTURE_TRIGGER_START\");\n mAePreTriggerAndCaptureEnabled = false;\n sessionProxy.capture(builder.build(), mPreviewCallback, null);\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "private void process(CaptureRequest request, CaptureResult result) {\n if (result.getFrameNumber() < last_process_frame_number) {\n return;\n }\n last_process_frame_number = result.getFrameNumber();\n\n updateCachedAECaptureStatus(result);\n\n handleStateChange(request, result);\n\n handleContinuousFocusMove(result);\n\n Integer af_state = result.get(CaptureResult.CONTROL_AF_STATE);\n if (af_state != null && af_state != last_af_state) {\n if (MyDebug.LOG)\n Log.d(TAG, \"CONTROL_AF_STATE changed from \" + last_af_state + \" to \" + af_state);\n last_af_state = af_state;\n }\n }", "public void processNextFrame() {\n\t\t\n\t\tif ((config) && (group != null)) {\n\t\t\tmgmtObserver.requestBoundsUpdate(group, this);\n\t\t}\n\t}", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void addRequest( Request currentRequest)\r\n\t{\r\n\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"--------- Currently all elevators in the system are Occupied ------\");\t\r\n\t\t\tSystem.out.println(\"--------- Request to Go to Floor \" + currentRequest.getDestinationflour()+\" From Floor\" + currentRequest.getCurrentFlour() +\" has been added to the System --------\");\r\n\t\t\tcheckAvaliableElevators();\t\r\n\t\t}\r\n\t\t\r\n\t\tprocessRequest(currentRequest);\t\t\r\n\t\t\r\n\t}", "private void requestIntercepts() {\n TrafficSelector.Builder selector = DefaultTrafficSelector.builder();\n selector.matchEthType(Ethernet.TYPE_IPV4);\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_ARP);\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n\n selector.matchEthType(Ethernet.TYPE_IPV6);\n if (ipv6Forwarding) {\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n } else {\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n }\n }", "private void withdrawIntercepts() {\n TrafficSelector.Builder selector = DefaultTrafficSelector.builder();\n selector.matchEthType(Ethernet.TYPE_IPV4);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_ARP);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_IPV6);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n }", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "private void setup3AControlsLocked(CaptureRequest.Builder builder) {\n builder.set(CaptureRequest.CONTROL_MODE,\n CaptureRequest.CONTROL_MODE_AUTO);\n\n Float minFocusDist =\n mCharacteristics.get(CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE);\n\n // If MINIMUM_FOCUS_DISTANCE is 0, lens is fixed-focus and we need to skip the AF run.\n mNoAFRun = (minFocusDist == null || minFocusDist == 0);\n\n if (!mNoAFRun) {\n // If there is a \"continuous picture\" mode available, use it, otherwise default to AUTO.\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE)) {\n builder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n } else {\n builder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_AUTO);\n }\n }\n\n // If there is an auto-magical flash control mode available, use it, otherwise default to\n // the \"on\" mode, which is guaranteed to always be available.\n if (mNowFlashState != FlashState.CLOSE) {\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH)) {\n builder.set(CaptureRequest.CONTROL_AE_MODE,\n CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH);\n } else {\n builder.set(CaptureRequest.CONTROL_AE_MODE,\n CaptureRequest.CONTROL_AE_MODE_ON);\n }\n }\n\n // If there is an auto-magical white balance control mode available, use it.\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AWB_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AWB_MODE_AUTO)) {\n // Allow AWB to run auto-magically if this device supports this\n builder.set(CaptureRequest.CONTROL_AWB_MODE,\n CaptureRequest.CONTROL_AWB_MODE_AUTO);\n }\n }", "private GeofencingRequest getGeofencingRequest(LBAction lbAction) {\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_ENTER);// change upon params\n builder.addGeofence(createGeofenceForAction(lbAction));\n return builder.build();\n }", "private void addGeofence(GeofencingRequest request) {\n Log.d(TAG, \"addGeofence\");\n if (checkPermission())\n LocationServices.GeofencingApi.addGeofences(\n googleApiClient,\n request,\n createGeofencePendingIntent()\n ).setResultCallback(this);\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "void onCaptureStarted(CaptureRequest request, long timestamp, long frameNumber);", "@Override\n public void addOnlineUseCase(final Collection<UseCase> useCases) {\n if (useCases.isEmpty()) {\n return;\n }\n\n Log.d(TAG, \"Use cases \" + useCases + \" ONLINE for camera \" + mCameraId);\n for (UseCase useCase : useCases) {\n mUseCaseAttachState.setUseCaseOnline(useCase);\n }\n\n open();\n updateCaptureSessionConfig();\n openCaptureSession();\n }", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private GeofencingRequest getAddGeofencingRequest() {\n List<Geofence> geofencesToAdd = new ArrayList<>();\n geofencesToAdd.add(geofenceToAdd);\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_EXIT)\n .addGeofences(geofencesToAdd);\n return builder.build();\n\n }", "private void handleAirplaneModeChanged() {\n callbacksRefreshCarrierInfo();\n }", "public int mo55649a(Builder builder, Rect rect) {\n builder.set(CaptureRequest.CONTROL_AF_MODE, Integer.valueOf(0));\n builder.set(CaptureRequest.CONTROL_AF_REGIONS, new MeteringRectangle[]{new MeteringRectangle(rect, 999)});\n builder.set(CaptureRequest.CONTROL_AE_REGIONS, new MeteringRectangle[]{new MeteringRectangle(rect, 999)});\n builder.set(CaptureRequest.CONTROL_MODE, Integer.valueOf(1));\n builder.set(CaptureRequest.CONTROL_AF_MODE, Integer.valueOf(1));\n builder.set(CaptureRequest.CONTROL_AF_TRIGGER, Integer.valueOf(1));\n builder.setTag(\"FOCUS_TAG\");\n return 0;\n }", "private void setCameraParametersWhenIdle(int additionalUpdateSet) {\n mUpdateSet |= additionalUpdateSet;\n if (mCameraDevice == null) {\n // We will update all the parameters when we open the device, so\n // we don't need to do anything now.\n mUpdateSet = 0;\n return;\n } else if (isCameraIdle()) {\n setCameraParameters(mUpdateSet);\n mUpdateSet = 0;\n } else {\n if (!mHandler.hasMessages(SET_CAMERA_PARAMETERS_WHEN_IDLE)) {\n mHandler.sendEmptyMessageDelayed(\n SET_CAMERA_PARAMETERS_WHEN_IDLE, 1000);\n }\n }\n }", "public void processRequest(Request currentRequest)\r\n\t{\r\n\t\tint nearestFloor=55;\r\n\t\tElevator nearestElevatorAvailable = new Elevator();\r\n\t\t\r\n\tfor(int i=0 ; i < availableElevadors.size();i++)\r\n\t{\r\n\t\t\r\n\t\tif (nearestFloor >= Math.abs(availableElevadors.get(i).getCurrentFloor() - currentRequest.getCurrentFlour()))\r\n\t\t{\r\n\t\t\tnearestFloor = Math.abs(availableElevadors.get(i).getCurrentFloor() - currentRequest.getCurrentFlour());\r\n\t\t\tnearestElevatorAvailable= availableElevadors.get(i);\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t}\r\n\tSystem.out.println(\" Enjoy your ride with Elevator no\" + nearestElevatorAvailable.getElevatorNumber());\r\n\r\n\tnearestElevatorAvailable.setCurrentFloor(currentRequest.getDestinationflour());\r\n\tavailableElevadors.remove(nearestElevatorAvailable);\r\n\toccupiedElevadors.add(nearestElevatorAvailable);\r\n\t\t\r\n\t}", "@Override\n\tprotected void initializeRegionAndEndpoint(ProcessContext context) {\n\t}", "@Override\n public void onEnteredRegion(Region arg0, List<Beacon> arg1) {\n }", "void onCaptureCompleted(CaptureRequest request, TotalCaptureResult result);", "void addRegion(Region region);", "private void createRegions() {\n\t\t// create pitch regions\n\t\tfor (int column = 0; column < REGION_COLUMNS; column++) {\n\t\t\tfor (int row = 0; row < REGION_ROWS; row++) {\n\t\t\t\tthis.regions.add(new Rectangle(column * REGION_WIDTH_IN_PX, row * REGION_HEIGHT_IN_PX,\n\t\t\t\t\t\t REGION_WIDTH_IN_PX, REGION_HEIGHT_IN_PX));\n\t\t\t}\n\t\t}\n\t}", "private void loadSearchRegions() {\n showProgress(ApplicationConstants.DIALOG_HEADER, \"Please wait while we retrieve regions from server.\");\n String authToken = ShPrefManager.with(getActivity()).getToken();\n RestClient.getAPI().getRegions(authToken, new RestCallback<RegionsResponse>() {\n @Override\n public void failure(RestError restError) {\n OpenHomeUtils.showToast(getActivity().getApplicationContext(), \"Could not load regions from the server.\", Toast.LENGTH_LONG);\n }\n\n @Override\n public void success(RegionsResponse regionsResponse, Response response) {\n if (regionsResponse.getMessage().size() > 0) {\n regionsList = regionsResponse.getMessage();\n setOnClickListeners();\n populateRegions();\n } else {\n String message = \"There is an error loading data. Please contact administrator..\";\n CustomDialogFragment regSuccessDialogFragment = CustomDialogFragment.newInstance(R.string.try_again,\n message, ApplicationConstants.BUTTON_OK, 0);\n regSuccessDialogFragment.show(getActivity().getFragmentManager(), \"AddPropertyFragment\");\n }\n }\n });\n\n getAllHazards();\n }", "protected void createLocationRequest() {\n System.out.println(\"In CREATE LOCATION REQUEST\");\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(60 * 1000);\n mLocationRequest.setFastestInterval(5 * 1000);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n //mLocationRequest.setSmallestDisplacement(Utils.DISPLACEMENT);\n }", "public void setRelevantRegions(Gel_BioInf_Models.File value) {\n this.relevantRegions = value;\n }", "protected void initialize() {\n \t\n \t// TODO: Switch to execute on changes based on alignment\n \tRobot.lightingControl.set(LightingObjects.BALL_SUBSYSTEM,\n LightingControl.FUNCTION_BLINK,\n LightingControl.COLOR_ORANGE,\n 0,\t\t// nspace - don't care\n 300);\t// period_ms \n }", "public void populateGlobalHotspots() {\n\t\tnew Thread(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tairlineData = DataLookup.airlineStats();\n\t\t\t\tairportData = DataLookup.airportStats();\n\t\t\t\tmHandler.post(new Runnable(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tsetHotspotListData();\n\t\t\t\t\t}});\n\t\t\t}}).start();\n\t}", "public void registerGeofences(List<LBAction> actions){\n for(LBAction act:actions){\n registerGeofence(act);\n }\n\n Log.d(LOG_TAG, \"GeofenceHelper - registered geofences: \" + actions.size());\n\n }", "private void addGeofence(GeofencingRequest request) {\n\n T.t(TripMapsActivity.this, \"addGeofence\");\n if (checkPermission())\n LocationServices.GeofencingApi.addGeofences(\n googleApiClient,\n request,\n createGeofencePendingIntent()\n ).setResultCallback(this);// check here\n }", "private void createIdleRegions(Texture spriteSheet) {\n\n TextureRegion downRegion = new TextureRegion(spriteSheet, 0, 0, TILESIZE, TILESIZE);\n\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE * 3, TILESIZE, TILESIZE));\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE, TILESIZE, TILESIZE));\n idleSprites.add(downRegion);\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE * 2, TILESIZE, TILESIZE));\n idleSprites.add(downRegion);\n }", "private void update() {\n int curRegionX = client.getRegionBaseX();\n int curRegionY = client.getRegionBaseY();\n if(lastRegionX != curRegionX || lastRegionY != curRegionY) {\n //Search for Altars:\n altars.clear();\n Landscape.accept(new LandscapeVisitor() {\n @Override\n public void acceptObject(RSEntityMarker marker) {\n int id = UID.getEntityID(marker.getUid());\n RSObjectDefinition def = client.getObjectDef(id);\n if(def == null || def.getName() == null) return;\n if(def.getName().equals(\"Altar\")) {\n altars.add(marker);\n }\n }\n });\n }\n }", "public void requestGeoFenceWithNewIntent() {\n try {\n geofenceService.createGeofenceList(getAddGeofenceRequest(), pendingIntent)\n .addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n Log.i(TAG, \"add geofence success!\");\n } else {\n Log.w(TAG, \"add geofence failed : \" + task.getException().getMessage());\n }\n });\n } catch (Exception e) {\n Log.d(TAG, \"requestGeoFenceWithNewIntent: \" + e.toString());\n }\n }", "public void addRegions(Collection<GridRegion> regions) {\n if (this.regions == null) {\n this.regions = new ArrayList<GridRegion>();\n }\n this.regions.addAll(regions);\n }", "public void fetchRegions () {\n try {\n // try loading from geoserve\n this.regions = loadFromGeoserve();\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Error fetching ANSS Regions from geoserve\",\n e);\n try {\n if (this.regions == null) {\n // fall back to local cache\n this.regions = loadFromFile();\n }\n } catch (Exception e2) {\n LOGGER.log(Level.WARNING,\n \"Error fetching ANSS Regions from local file\",\n e);\n }\n }\n }", "public void updateUnionArea() {\n this.mBlurUnionRect.setEmpty();\n for (Map.Entry<View, HwBlurEntity> entityEntry : this.mTargetViews.entrySet()) {\n View targetView = entityEntry.getKey();\n HwBlurEntity blurEntity = entityEntry.getValue();\n if (targetView.isShown() && blurEntity.isEnabled()) {\n Rect targetViewRect = new Rect();\n targetView.getGlobalVisibleRect(targetViewRect);\n blurEntity.setTargetViewRect(targetViewRect);\n this.mBlurUnionRect.union(targetViewRect);\n }\n targetView.invalidate();\n }\n initBitmapAndCanvas();\n }", "void openRegion(final HRegionInfo regionInfo) {\n if (!regionInfo.isMetaRegion() &&\n !RegionHistorian.getInstance().isOnline()) {\n RegionHistorian.getInstance().online(this.conf);\n }\n Integer mapKey = Bytes.mapKey(regionInfo.getRegionName());\n HRegion region = this.onlineRegions.get(mapKey);\n if (region == null) {\n try {\n region = instantiateRegion(regionInfo);\n // Startup a compaction early if one is needed.\n this.compactSplitThread.compactionRequested(region);\n } catch (IOException e) {\n LOG.error(\"error opening region \" + regionInfo.getRegionNameAsString(), e);\n \n // TODO: add an extra field in HRegionInfo to indicate that there is\n // an error. We can't do that now because that would be an incompatible\n // change that would require a migration\n reportClose(regionInfo, StringUtils.stringifyException(e).getBytes());\n return;\n }\n this.lock.writeLock().lock();\n try {\n this.log.setSequenceNumber(region.getMinSequenceId());\n this.onlineRegions.put(mapKey, region);\n } finally {\n this.lock.writeLock().unlock();\n }\n }\n reportOpen(regionInfo); \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 }", "public TrafficRegions withRegions(List<String> regions) {\n this.regions = regions;\n return this;\n }", "private void addIdleUsage() {\n final double suspendPowerMaMs = (mTypeBatteryRealtimeUs / 1000) *\n mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_SUSPEND);\n final double idlePowerMaMs = (mTypeBatteryUptimeUs / 1000) *\n mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE);\n final double totalPowerMah = (suspendPowerMaMs + idlePowerMaMs) / (60 * 60 * 1000);\n if (DEBUG && totalPowerMah != 0) {\n Log.d(TAG, \"Suspend: time=\" + (mTypeBatteryRealtimeUs / 1000)\n + \" power=\" + makemAh(suspendPowerMaMs / (60 * 60 * 1000)));\n Log.d(TAG, \"Idle: time=\" + (mTypeBatteryUptimeUs / 1000)\n + \" power=\" + makemAh(idlePowerMaMs / (60 * 60 * 1000)));\n }\n\n if (totalPowerMah != 0) {\n addEntry(BatterySipper.DrainType.IDLE, mTypeBatteryRealtimeUs / 1000, totalPowerMah);\n }\n }", "protected void triggerGetRegions(String url) {\n triggerContentEvent(new GetRegionsHelper(), GetRegionsHelper.createBundle(url), this);\n }", "private GeofencingRequest getGeofencingRequest() {\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n\n // The INITIAL_TRIGGER_ENTER flag indicates that geofencing service should trigger a\n // GEOFENCE_TRANSITION_ENTER notification when the geofence is added and if the device\n // is already inside that geofence.\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_ENTER);\n\n // Add the geofences to be monitored by geofencing service.\n builder.addGeofences(mGeofenceList);\n\n // Return a GeofencingRequest.\n return builder.build();\n }", "private GeofencingRequest getGeofencingRequest() {\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n\n // The INITIAL_TRIGGER_ENTER flag indicates that geofencing service should trigger a\n // GEOFENCE_TRANSITION_ENTER notification when the geofence is added and if the device\n // is already inside that geofence.\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_ENTER);\n\n // Add the geofences to be monitored by geofencing service.\n builder.addGeofences(mGeofenceList);\n\n // Return a GeofencingRequest.\n return builder.build();\n }", "public void completeRequest() {\n // Clean up any old-age flash scopes\n Map<Integer, FlashScope> scopes = getContainer(request, false);\n if (scopes != null && !scopes.isEmpty()) {\n scopes.values()\n .removeIf(FlashScope::isExpired);\n }\n\n // Replace the request and response objects for the request cycle that is ending\n // with objects that are safe to use on the ensuing request.\n HttpServletRequest flashRequest = FlashRequest.replaceRequest(request);\n HttpServletResponse flashResponse = (HttpServletResponse) Proxy.newProxyInstance(\n getClass().getClassLoader(),\n new Class<?>[]{HttpServletResponse.class},\n new FlashResponseInvocationHandler());\n for (Object o : this.values()) {\n if (o instanceof ActionBean) {\n ActionBeanContext context = ((ActionBean) o).getContext();\n if (context != null) {\n context.setRequest(flashRequest);\n context.setResponse(flashResponse);\n }\n }\n }\n\n // start timer, clear request\n this.startTime = System.currentTimeMillis();\n this.request = null;\n this.semaphore.release();\n }", "void handleNewSupportedStates(int[] newSupportedStates) {\n if (mBaseStateRequest != null && !contains(newSupportedStates,\n mBaseStateRequest.getRequestedState())) {\n cancelCurrentBaseStateRequestLocked();\n }\n\n if (mRequest != null && !contains(newSupportedStates, mRequest.getRequestedState())) {\n cancelCurrentRequestLocked();\n }\n }", "public void addGETEvent()\r\n\t{\r\n\t\tfor(Event recordedEvent : eventsCount)\r\n\t\t{\r\n\t\t\tif(recordedEvent.getRequestType().equals(RequestMethod.GET))\r\n\t\t\t{\r\n\t\t\t\trecordedEvent.setAccessCount(recordedEvent.getAccessCount() + 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void populateRegions() {\n regionsSpinnerAdapter.clear();\n regionsSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n regionSpinner.setAdapter(regionsSpinnerAdapter);\n regionsSpinnerAdapter.add(\"Choose Region...\");\n for (RegionsResponse.Regions region : regionsList) {\n if (region.getParentId() == 0)\n regionsSpinnerAdapter.add(region.getRegionName());\n }\n regionsSpinnerAdapter.notifyDataSetChanged();\n }", "public void registerGeofences(List<LBAction> actions, GoogleApiClient gac){\n for(LBAction act:actions){\n registerGeofence(act, gac);\n }\n\n Log.d(LOG_TAG, \"GeofenceHelper - registered geofences: \" + actions.size());\n\n }", "@Override\n public void onMapRegionChangeStarted(SKCoordinateRegion mapRegion) {\n\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "@Override\n\t@Transactional\n\t@Scheduled(cron = \"0 0 */4 * * *\")\n\tpublic void updateRegionsStatus() {\n\t\tregionRepository.updateRegionsStatus();\n\t}", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "@Override\n\t\tpublic void run() {\n\t\t\tlogger.info( \"BeaconIdle\");\n\t\t\t\n\t\t\tthis.turnScanningOff();\n\t\t\tthis.beacon.setState( State.IDLE);\n\t\t\t\n\t\t\t// we only set a flag to change address since this can only be done when Bluetooth is idle....\n\t\t\t// and now can test the flag and do it...\n\t\t\tif ( this.beacon.getChangeAddressFlag()) {\n\t\t\t\tthis.beacon.setChangeAddressFlag( false);\n\t\t\t\t\n\t\t\t\t// change the BT address\n\t\t\t\tthis.beacon.changeBTAddress();\n\t\t\t\t\n\t\t\t\t// renew the rolling proximity ID\n\t\t\t\ttry {\n\t\t\t\t\tlogger.info( \"generating a new proximity identifier\");\n\t\t\t\t\tCrypto.generateRollingProximityID();\n\t\t\t\t} catch (InvalidKeyException | NoSuchAlgorithmException\n\t\t\t\t\t\t| NoSuchPaddingException\n\t\t\t\t\t\t| IllegalBlockSizeException | BadPaddingException\n\t\t\t\t\t\t| IOException e) {\n\t\t\t\t\tlogger.severe( e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// when we go idle we attempt to purge the stores.\n\t\t\tthis.beacon.purge();\n\t\t\t\n\t\t\t// schedule the beaconOnTask to start advertising again.\n\t\t\t\n\t\t\t// how long where we busy?\n\t\t\tlong busyDuration = System.currentTimeMillis() - this.beacon.getStartTime();\n\t\t\tassert( busyDuration > 0);\n\t\t\tlong idleDuration = Beacon.getBeaconPeriod() - busyDuration;\n\t\t\t\n\t\t\tif ( idleDuration <= 0) {\t\t\t\n\t\t\t\tlogger.info( \"no time to idle: idleDuration <= 0: \" + Long.toString( idleDuration));\n\t\t\t\tidleDuration = 0;\n\t\t\t}\n\t\t\n\t\t\tBeaconOn beaconOnTask = new BeaconOn( this.beacon);\t\n\t\t\tthis.beacon.beaconTimer.schedule( beaconOnTask, idleDuration);\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n public void onBeaconServiceConnect() {\n beaconManager.addRangeNotifier(new RangeNotifier() {\n @Override\n public void didRangeBeaconsInRegion(Collection<Beacon> beacons,Region region) {\n Log.i(\"beacon\",\"Beacon Size:\"+beacons.size());\n Log.i(\"beaconManager\",\"beaconRanging\");\n if (beacons.size() > 0) {\n Iterator<Beacon> beaconIterator = beacons.iterator();\n while (beaconIterator.hasNext()) {\n Beacon beacon = beaconIterator.next();\n logBeaconData(LBD.Find_Loc(beacon,2));\n }\n }\n }\n\n });\n try {\n beaconManager.startRangingBeaconsInRegion(new Region(\"myRangingUniqueId\",\n null, null, null));\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n }", "private void addLocalScopes(String apiName, Set<URITemplate> uriTemplates, String organization)\n throws APIManagementException {\n\n int tenantId = APIUtil.getInternalOrganizationId(organization);\n String tenantDomain = APIUtil.getTenantDomainFromTenantId(tenantId);\n Map<String, KeyManagerDto> tenantKeyManagers = KeyManagerHolder.getTenantKeyManagers(tenantDomain);\n //Get the local scopes set to register for the API from URI templates\n Set<Scope> scopesToRegister = getScopesToRegisterFromURITemplates(apiName, organization, uriTemplates);\n //Register scopes\n for (Scope scope : scopesToRegister) {\n for (Map.Entry<String, KeyManagerDto> keyManagerDtoEntry : tenantKeyManagers.entrySet()) {\n KeyManager keyManager = keyManagerDtoEntry.getValue().getKeyManager();\n if (keyManager != null) {\n String scopeKey = scope.getKey();\n try {\n // Check if key already registered in KM. Scope Key may be already registered for a different\n // version.\n if (!keyManager.isScopeExists(scopeKey)) {\n //register scope in KM\n keyManager.registerScope(scope);\n } else {\n if (log.isDebugEnabled()) {\n log.debug(\"Scope: \" + scopeKey +\n \" already registered in KM. Skipping registering scope.\");\n }\n }\n } catch (APIManagementException e) {\n log.error(\"Error while registering Scope \" + scopeKey + \"in Key Manager \" +\n keyManagerDtoEntry.getKey(), e);\n }\n\n }\n }\n }\n addScopes(scopesToRegister, tenantId);\n }", "private void updateInterestOps() {\n\t\t\tvar interestOps = 0x0;\n\n\t\t\tif ( !closed && bb.hasRemaining() ) {\n\t\t\t\tinterestOps |= SelectionKey.OP_READ;\n\n\t\t\t}\n\n\t\t\tif ( bb.position() > 0 ) {\n\t\t\t\tinterestOps |= SelectionKey.OP_WRITE;\n\t\t\t}\n\n\t\t\tif ( interestOps == 0 ) {\n\t\t\t\tsilentlyClose();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tkey.interestOps(interestOps);\n\t\t}", "private void ResvFrameBegin( /*frame_params *fr_ps, */SideInfoEnc l3_side, int mean_bits, int frameLength ) {\n\t\t//layer info;\n\t\tint fullFrameBits, mode_gr;\n\t\tint resvLimit;\n\t\t/*\n info = fr_ps->header;\n if ( info->version == 1 ) {*/\n\t\tmode_gr = GR_MAX;\n\t\tresvLimit = 4088; /* main_data_begin has 9 bits in MPEG 1 */\n\t\t//resvLimit = (8 * 256) * mode_gr - 8;\n\t\t/*\n } else {\n mode_gr = 1;\n resvLimit = 2040; /* main_data_begin has 8 bits in MPEG 2 */\n\t\t// }\n\n\t\tfullFrameBits = mean_bits * mode_gr;\n\n\t\t/*\n determine maximum size of reservoir:\n ResvMax + frameLength <= 7680;\n\t\t */\n\t\tif ( frameLength > 7680 )\n\t\t\tResvMax = 0;\n\t\telse\n\t\t\tResvMax = 7680 - frameLength;\n\n\t\t/*\n limit max size to resvLimit bits because\n main_data_begin cannot indicate a\n larger value\n\t\t */\n\t\tif ( ResvMax > resvLimit )\n\t\t\tResvMax = resvLimit;\n\t}", "void addRequest(@NonNull OverrideRequest request) {\n OverrideRequest previousRequest = mRequest;\n mRequest = request;\n mListener.onStatusChanged(request, STATUS_ACTIVE);\n\n if (previousRequest != null) {\n cancelRequestLocked(previousRequest);\n }\n }", "private static void readOhioRailRegions (ResourceBundle appRb, int[] countyFips) {\n\n logger.info(\"Reading Ohio Rail Regions\");\n TableDataSet railRegions = fafUtils.importTable(appRb.getString(\"rail.zone.definition\"));\n int highestFips = fafUtils.getHighestVal(countyFips);\n\n railRegionReference = new String[highestFips + 1];\n for (int row = 1; row <= railRegions.getRowCount(); row++) {\n int fips = (int) railRegions.getValueAt(row, \"fips\");\n String reg = railRegions.getStringValueAt(row, \"ohioRailRegion\");\n railRegionReference[fips] = reg;\n }\n listOfRailRegions = fafUtils.getUniqueListOfValues(railRegionReference);\n }", "protected void initialize() {\n \tsetTimeout(0.0);\n \t\n \tRobot.vision_.setTargetSnapshot(null);\n \t\n \tpreviousTargetTransform = Robot.vision_.getLatestGearLiftTargetTransform();\n \tRobot.vision_.startGearLiftTracker(trackerFPS_);\n }", "public void addGeofencesButtonHandler() {\n if (!mGoogleApiClient.isConnected()) {\n Toast.makeText(mActivity, getString(R.string.not_connected), Toast.LENGTH_SHORT).show();\n return;\n }\n\n try {\n LocationServices.GeofencingApi.addGeofences(\n mGoogleApiClient,\n // The GeofenceRequest object.\n getGeofencingRequest(),\n // A pending intent that that is reused when calling removeGeofences(). This\n // pending intent is used to generate an intent when a matched geofence\n // transition is observed.\n getGeofencePendingIntent()\n ).setResultCallback(this); // Result processed in onResult().\n } catch (SecurityException securityException) {\n // Catch exception generated if the app does not use ACCESS_FINE_LOCATION permission.\n logSecurityException(securityException);\n }\n }", "@Override\r\n public void addQueryRegion(QueryRegion region)\r\n {\n removeQueryRegion(region.getGeometries());\r\n\r\n synchronized (myQueryRegions)\r\n {\r\n myQueryRegions.add(region);\r\n }\r\n\r\n Collection<PolygonGeometry> geometries = New.collection(region.getGeometries().size());\r\n for (PolygonGeometry polygon : region.getGeometries())\r\n {\r\n if (polygon.getRenderProperties().isDrawable() || polygon.getRenderProperties().isPickable())\r\n {\r\n geometries.add(polygon);\r\n }\r\n }\r\n myToolbox.getGeometryRegistry().addGeometriesForSource(this, geometries);\r\n\r\n myChangeSupport.notifyListeners(listener -> listener.queryRegionAdded(region), myDispatchExecutor);\r\n }", "@NonNull\n public static RegionTriggerBuilder newEnterRegionTriggerBuilder() {\n return new RegionTriggerBuilder(Trigger.REGION_ENTER);\n }", "private void setupRegions(View root) {\n }", "private void initExplorationBounds() {\n switch (configuration.getCoverageCriteria()) {\n case GOAL_COVERAGE:\n case BRANCH_COVERAGE:\n configuration.setObjectScope(configuration.isIncrementalLoopUnroll() ?\n FajitaConfiguration.INITIAL_INCREMENTAL_OBJECT_SCOPE :\n configuration.getMaximumObjectScope()\n );\n configuration.setLoopUnroll(configuration.isIncrementalLoopUnroll() ?\n FajitaConfiguration.INITIAL_INCREMENAL_LOOP_UNROLL :\n configuration.getMaximumLoopUnroll()\n );\n break;\n case CLASS_COVERAGE:\n case DUAL_CLASS_BRANCH_COVERAGE:\n configuration.setObjectScope(configuration.getMaximumObjectScope());\n configuration.setLoopUnroll(configuration.getMaximumLoopUnroll());\n break;\n }\n }", "private void setupMapView(){\n Log.d(TAG, \"setupMapView: Started\");\n\n view_stage_map = VIEW_MAP_FULL;\n cycleMapView();\n\n }", "public void endOfLife() {\r\n for (SeleneseQueue frameQ : frameAddressToSeleneseQueue.values()) {\r\n frameQ.endOfLife();\r\n }\r\n }", "@Override\n public void onResetComplete(LoggerContext context) {\n Map<String,Appender<ILoggingEvent>> appenderMap = getAppenderMap();\n for(FilterInfo fi : filters.values()){\n attachFilter(fi,appenderMap);\n }\n }", "@Override\n public boolean addAnnotations(final IEditorPart editorPart, final IStackFrame frame) {\n if (editorPart instanceof RobotFormEditor) {\n final RobotFormEditor editor = (RobotFormEditor) editorPart;\n editor.activateSourcePage();\n }\n return false; // no annotation added; eclipse will add standard\n }", "public void setLocalRegions(final File localRegions) {\n this.localRegions = localRegions;\n }", "private void reportNewIdleState(boolean idle) {\n StatusDevice.IDLE_CONSTRAINT_SATISFIED.set(idle);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n if (HaloUtils.isServiceRunning(mContext, HaloSchedulerService.class)) {\n mContext.startService(HaloSchedulerService.deviceStatusChanged(mContext, Job.STATUS_IDLE_DEVICE_KEY, false));\n } else {\n mContext.startForegroundService(HaloSchedulerService.deviceStatusChanged(mContext, Job.STATUS_IDLE_DEVICE_KEY, true));\n }\n } else {\n mContext.startService(HaloSchedulerService.deviceStatusChanged(mContext, Job.STATUS_IDLE_DEVICE_KEY, false));\n }\n }", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "@Override\n public void onCameraIdle() {\n double CameraLat = GMap.getCameraPosition().target.latitude;\n double CameraLong = GMap.getCameraPosition().target.longitude;\n if (CameraLat <= 13.647080 || CameraLat >= 13.655056) {\n GMap.animateCamera(CameraUpdateFactory.newLatLng(mapbounds.getCenter()));\n }\n if (CameraLong <= 100.490774 || CameraLong >= 100.497254) {\n GMap.animateCamera(CameraUpdateFactory.newLatLng(mapbounds.getCenter()));\n }\n\n }", "private void updateInterestOps() {\n\t\tvar interesOps = 0;\n\t\tif (!closed && bbin.hasRemaining()) {\n\t\t\tinteresOps = interesOps | SelectionKey.OP_READ;\n\t\t}\n\t\tif (!closed && bbout.position() != 0) {\n\t\t\tinteresOps |= SelectionKey.OP_WRITE;\n\t\t}\n\t\tif (interesOps == 0) {\n\t\t\tsilentlyClose();\n\t\t\treturn;\n\t\t}\n\t\tkey.interestOps(interesOps);\n\t}", "@Override\n public void onDrawFrame(GL10 gl) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n\n if (session == null) {\n return;\n }\n // Notify ARCore session that the view size changed so that the perspective matrix and\n // the video background can be properly adjusted.\n displayRotationHelper.updateSessionIfNeeded(session);\n\n try {\n session.setCameraTextureName(backgroundRenderer.getTextureId());\n\n // Obtain the current frame from ARSession. When the configuration is set to\n // UpdateMode.BLOCKING (it is by default), this will throttle the rendering to the\n // camera framerate.\n Frame frame = session.update();\n globalFrameVar = frame;\n Camera camera = frame.getCamera();\n\n // Keep the screen unlocked while tracking, but allow it to lock when tracking stops.\n trackingStateHelper.updateKeepScreenOnFlag(camera.getTrackingState());\n\n // If frame is ready, render camera preview image to the GL surface.\n backgroundRenderer.draw(frame);\n\n // Get projection matrix.\n float[] projmtx = new float[16];\n camera.getProjectionMatrix(projmtx, 0, 0.1f, 100.0f);\n\n // Get camera matrix and draw.\n float[] viewmtx = new float[16];\n camera.getViewMatrix(viewmtx, 0);\n\n // Compute lighting from average intensity of the image.\n final float[] colorCorrectionRgba = new float[4];\n frame.getLightEstimate().getColorCorrection(colorCorrectionRgba, 0);\n\n // Visualize augmented images.\n drawAugmentedImages(frame, projmtx, viewmtx, colorCorrectionRgba);\n } catch (Throwable t) {\n // Avoid crashing the application due to unhandled exceptions.\n Log.e(TAG, \"Exception on the OpenGL thread\", t);\n }\n }", "private void setCurrentFacility(Point f){\n\t\t\n\t\t_currentFacility = f;\n\t\n\t}", "@Override\n public void onAccessPointModeChanged(boolean activated) {\n // check Internet connection and notify observers\n mBeaconingManager.notifyInternetCallbacks();\n\n if (activated && mWifiBeaconingState == WifiBeaconingState.AP_ENABLING) {\n // we are currently in AP mode\n mWifiBeaconingState = WifiBeaconingState.AP_ENABLED;\n // connected! act accordingly\n onNetworkConnected();\n }\n }", "@TargetApi( Build.VERSION_CODES.HONEYCOMB )\n \t@Handler\n \tpublic void handleAreaChange( GPSFilterArea.ChangeEvent evt ) {\n \t\tswitch ( evt.getModifiedField() ) {\n \t\tcase ENABLED:\n \t\t\tif ( Build.VERSION.SDK_INT >= 11 ) {\n \t\t\t\tCompoundButton activatedSwitch = (CompoundButton) this.getActionBar().getCustomView().findViewById( R.id.edit_gpsfilter_area_toggle );\n \t\t\t\tactivatedSwitch.setChecked( evt.getArea().isEnabled() );\n \t\t\t}\n \t\t\tbreak;\n \n \t\tcase NAME:\n \t\t\tString name = this.printName();\n \t\t\tif ( Build.VERSION.SDK_INT >= 11 ) {\n \t\t\t\t((EditText) this.getActionBar().getCustomView().findViewById( R.id.edit_gpsfilter_area_title_edit )).setText( name );\n \t\t\t} else {\n \t\t\t\tthis.setTitle( name );\n \t\t\t}\n \t\t\tbreak;\n \n \t\tcase MODE:\n \t\t\tbreak;\n \n \t\tcase POLYGON:\n \t\tdefault:\n \t\t\tbreak;\n \t\t}\n \t}", "private void processCompleted(CaptureRequest request, CaptureResult result) {\n\n if (!has_received_frame) {\n has_received_frame = true;\n if (MyDebug.LOG)\n Log.d(TAG, \"has_received_frame now set to true\");\n }\n\n updateCachedCaptureResult(result);\n handleFaceDetection(result);\n\n if (push_repeating_request_when_torch_off && push_repeating_request_when_torch_off_id == request && previewBuilder != null) {\n if (MyDebug.LOG)\n Log.d(TAG, \"received push_repeating_request_when_torch_off\");\n Integer flash_state = result.get(CaptureResult.FLASH_STATE);\n if (MyDebug.LOG) {\n if (flash_state != null)\n Log.d(TAG, \"flash_state: \" + flash_state);\n else\n Log.d(TAG, \"flash_state is null\");\n }\n if (flash_state != null && flash_state == CaptureResult.FLASH_STATE_READY) {\n push_repeating_request_when_torch_off = false;\n push_repeating_request_when_torch_off_id = null;\n try {\n setRepeatingRequest();\n } catch (CameraAccessException e) {\n if (MyDebug.LOG) {\n Log.e(TAG, \"failed to set flash [from torch/flash off hack]\");\n Log.e(TAG, \"reason: \" + e.getReason());\n Log.e(TAG, \"message: \" + e.getMessage());\n }\n e.printStackTrace();\n }\n }\n }\n\n RequestTagType tag_type = getRequestTagType(request);\n if (tag_type == RequestTagType.CAPTURE) {\n handleCaptureCompleted(result);\n } else if (tag_type == RequestTagType.CAPTURE_BURST_IN_PROGRESS) {\n handleCaptureBurstInProgress(result);\n }\n }", "public SystemRegionExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public final void setIncomingRequest_Urgency(slm.proxies.Urgency incomingrequest_urgency)\r\n\t{\r\n\t\tsetIncomingRequest_Urgency(getContext(), incomingrequest_urgency);\r\n\t}", "public TrafficRegions() {\n }", "protected void initialize() {\n \tif (Robot.autoAimSys.aimingAllowed()==false)\n \t{\n \t\tRobot.autoAimSys.resetAim();\n \t}\n \tif (auton==1)//if toggled by AUTON MODE\n \t{\n \t\tRobot.autoAimSys.setAutonAIM(true);\n \t} \n \telse if(auton==2)//if toggled by USER\n \t{\n \t\tRobot.autoAimSys.setAutonAIM(true);\n \t}\n }", "@Override\n public void onFrameAvailable(int cameraId) {\n }", "@Override\n public void onFrameAvailable(int cameraId) {\n }", "@Autowired(required=true)\n\tpublic void setAgentRequestHandlers(Collection<AgentRequestHandler> agentRequestHandlers) {\n\t\tfor(AgentRequestHandler arh: agentRequestHandlers) {\n\t\t\tfor(OpCode soc: arh.getHandledOpCodes()) {\n\t\t\t\thandlers.put(soc, arh);\n\t\t\t\tinfo(\"Added AgentRequestHandler [\", arh.getClass().getSimpleName(), \"] for Op [\", soc , \"]\");\n\t\t\t}\n\t\t}\n\t\thandlers.put(OpCode.WHO_RESPONSE, this);\n\t\thandlers.put(OpCode.BYE, this);\n\t\thandlers.put(OpCode.HELLO, this);\n\t\thandlers.put(OpCode.HELLO_CONFIRM, this);\n\t\thandlers.put(OpCode.JMX_MBS_INQUIRY_RESPONSE, this);\n\t}", "public void setCurrentRequest(Request request) {\n if (request != null) {\n this.currentRequest = request;\n goingTo = currentRequest.getRequestToFloor();\n currentFloor = currentRequest.getRequestFromFloor();\n }\n }", "public final void mo18585a(Context context) {\n C7573i.m23587b(context, \"context\");\n this.f20046a = context;\n for (RequestType put : RequestType.values()) {\n this.f20047b.put(put, new ArrayList());\n }\n }", "private void setupModeSpinner() {\n \t\tSpinner spinner = (Spinner) this.findViewById( R.id.action_edit_gpsfilter_area_mode );\n \t\tArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( this, R.array.action_edit_gpsfilter_area_mode, android.R.layout.simple_spinner_item );\n \t\tadapter.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item );\n \t\tspinner.setAdapter( adapter );\n \n \t\tspinner.setSelection( this.area.getMode() == GPSFilterMode.INCLUDE ? 0 : 1 );\n \n \t\tspinner.setOnItemSelectedListener( new OnItemSelectedListener() {\n \t\t\t@Override\n \t\t\tpublic void onItemSelected( AdapterView<?> parent, View view, int position, long id ) {\n \t\t\t\tupdateMode( position );\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void onNothingSelected( AdapterView<?> parent ) {\n \t\t\t}\n \t\t} );\n \t}", "public void registerRequest(){\n\t\tfor (Floor x: F)\n\t\t\tif (x.getPassengersWaiting()>0)\tdestRequest[x.getFloorNumber()] = 'Y';\t//Checks for the waiting passengers on each floor and assigns Y or N\n\t\t\telse destRequest[x.getFloorNumber()] = 'N';\t\t\t\t\t\t\t// based on that.\n\t}", "void createincomingLobs()\n {\n iIncomingLobs.setLoadDetails(createloadDetails(\"loadDetails\"));\n iIncomingLobs.setLoad(0,createload(\"load\"));\n iIncomingLobs.setTotal(createtotal(\"total\"));\n }", "void startCalibration();", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public Gel_BioInf_Models.VirtualPanel.Builder setRelevantRegions(Gel_BioInf_Models.File value) {\n validate(fields()[6], value);\n this.relevantRegions = value;\n fieldSetFlags()[6] = true;\n return this; \n }", "@Override\n protected void initialize() {\n ramper.reset();\n Robot.toteLifterSubsystem.setGateState(GateState.OPEN);\n }", "private void adjustThreadCount() {\n \t\tif (adjusting > 0) {\n \t\t\tadjusting--;\n \t\t\treturn;\n \t\t}\n \t\tint active = activeThreads.size();\n \t\tint idle = idleThreads.size();\n \t\tint count = idle + active;\n \n \t\tif (Http.DEBUG) {\n \t\t\thttp.logDebug(\"Current thread count: \" + idle + \" idle, \" + active + \" active\"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t}\n \n \t\tif (idle < 2) {\n \t\t\tcount += 5;\n \t\t} else {\n \t\t\tif (idle > 10) {\n \t\t\t\tcount -= 5;\n \t\t\t}\n \t\t}\n \n \t\tif (count > upper) {\n \t\t\tcount = upper;\n \t\t}\n \n \t\tif (count < lower) {\n \t\t\tcount = lower;\n \t\t}\n \n \t\tint delta = count - (idle + active);\n \t\tif (Http.DEBUG) {\n \t\t\thttp.logDebug(\"New thread count: \" + count + \", delta: \" + delta); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \n \t\tif (delta < 0) /* remove threads */\n \t\t{\n \t\t\tdelta = -delta; /* invert sign */\n \t\t\tif (delta < idle) {\n \t\t\t\tfor (int i = idle - 1; delta > 0; i--, delta--) {\n \t\t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\t\tidleThreads.removeElementAt(i);\n \t\t\t\t\tthread.close();\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\thitCount += delta - idle;\n \t\t\t\tfor (int i = 0; i < idle; i++) {\n \t\t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\t\tthread.close();\n \t\t\t\t}\n \t\t\t\tidleThreads.removeAllElements();\n \t\t\t}\n \t\t} else {\n \t\t\tif (delta > 0) /* add threads */\n \t\t\t{\n \t\t\t\tadjusting = delta; /* new threads will call this method */\n \t\t\t\tif (delta > hitCount) {\n \t\t\t\t\tdelta -= hitCount;\n \t\t\t\t\thitCount = 0;\n \t\t\t\t\tidleThreads.ensureCapacity(count);\n \t\t\t\t\tfor (int i = 0; i < delta; i++) {\n \t\t\t\t\t\tnumber++;\n\t\t\t\t\t\tfinal String threadName = \"HttpThread_\" + number; //$NON-NLS-1$\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tAccessController.doPrivileged(new PrivilegedAction() {\n \t\t\t\t\t\t\t\tpublic Object run() {\n \t\t\t\t\t\t\t\t\tHttpThread thread = new HttpThread(http, HttpThreadPool.this, threadName);\n \t\t\t\t\t\t\t\t\tthread.start(); /* thread will add itself to the pool */\n \t\t\t\t\t\t\t\t\treturn 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} catch (RuntimeException e) {\n \t\t\t\t\t\t\t/* No resources to create another thread */\n \t\t\t\t\t\t\thttp.logError(NLS.bind(HttpMsg.HTTP_THREAD_POOL_CREATE_NUMBER_ERROR, new Integer(number)), e);\n \n \t\t\t\t\t\t\tnumber--;\n \n \t\t\t\t\t\t\t/* Readjust the upper bound of the thread pool */\n \t\t\t\t\t\t\tupper -= delta - i;\n \n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\thitCount -= delta;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}" ]
[ "0.5022556", "0.47297987", "0.46002373", "0.45894772", "0.4492519", "0.44287843", "0.44116628", "0.44099617", "0.44021273", "0.43791947", "0.43659198", "0.435966", "0.43544275", "0.43400657", "0.43325552", "0.43194962", "0.4301616", "0.42958635", "0.42747822", "0.42646548", "0.4248911", "0.42407683", "0.42334053", "0.4231334", "0.41769674", "0.41446146", "0.4139134", "0.41358048", "0.4133764", "0.41295388", "0.4128103", "0.41171944", "0.41150174", "0.41119626", "0.41100398", "0.41070917", "0.41056263", "0.40976992", "0.40949634", "0.40944892", "0.40919378", "0.40839604", "0.40815502", "0.4078967", "0.4078967", "0.40732133", "0.40731266", "0.40726537", "0.406375", "0.40614122", "0.40580168", "0.4054709", "0.40510872", "0.40447783", "0.40447783", "0.40403023", "0.4027933", "0.40170896", "0.40128335", "0.40052179", "0.4001093", "0.39911497", "0.3989644", "0.39895338", "0.39874193", "0.39821768", "0.39809227", "0.3973971", "0.39649272", "0.39543507", "0.39408705", "0.39405754", "0.39388683", "0.39339995", "0.39270908", "0.39229962", "0.39207616", "0.3918379", "0.39180365", "0.3910178", "0.39061293", "0.39019662", "0.39014757", "0.38997543", "0.3895067", "0.3894598", "0.38899678", "0.38899678", "0.38801172", "0.3878039", "0.38687515", "0.386707", "0.3862825", "0.38613382", "0.385885", "0.3856887", "0.3856887", "0.3856438", "0.38518947", "0.38496405" ]
0.4878902
1
Test of putdata method, of class connection.
@Test public void testPutdata() { System.out.println("putdata"); String name = ""; ArrayList<File> picfiles = null; int num = 0; connection instance = new connection(); instance.putdata(name, picfiles, num); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void put(T data){\r\n\t\tthis.data = data;\r\n\t}", "public void testSetBasedata() {\n }", "@Override\n\tpublic void put(String key, String cat, byte[] data) throws RemoteException {\n\t\t\n\t}", "public void putData(HelperData data);", "public boolean save(T data) throws MIDaaSException;", "@Test\r\n public void testPut() {\r\n System.out.println(\"put\");\r\n ClienteEmpresa cliente = null;\r\n ClienteDAO instance = new ClienteDAO();\r\n instance.put(cliente);\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 abstract void set(String key, T data);", "public boolean otherWrite(IDataHolder dc, Object data);", "void putData(CheckPoint checkPoint);", "void setData(T data) {\n\t\tthis.data = data;\n\t}", "ISObject put(String key, ISObject stuff) throws UnexpectedIOException;", "@Test(timeout = 4000)\n public void test63() throws Throwable {\n byte[] byteArray0 = new byte[8];\n byteArray0[0] = (byte)72;\n byteArray0[1] = (byte)18;\n Boolean boolean0 = Boolean.TRUE;\n byteArray0[2] = (byte) (-15);\n byteArray0[3] = (byte)90;\n byteArray0[4] = (byte)31;\n byteArray0[6] = (byte)123;\n NetworkHandling.sendDataOnTcp((EvoSuiteLocalAddress) null, byteArray0);\n // Undeclared exception!\n SQLUtil.mutatesDataOrStructure(\"/*\");\n }", "public void setData(T data){\n this.data = data;\n }", "public void putData(int idData, String data) throws Exception {\n ArrayList<Node> nodes = this.master.getAllDataNode();\n if(!nodes.isEmpty()){\n System.out.println(\"List of registered nodes:\");\n for(int i=0; i<nodes.size(); i++) {\n System.out.println(i + \". \" + nodes.get(i).getHost() + \": \" + nodes.get(i).getPort());\n }\n System.out.println(\"Enter a node id from the list above to put data\");\n int input = scanner.nextInt();\n \n Node selectedNode = nodes.get(input);\n\n // Open up a socket on the selected DataNode\n this.openSocket(selectedNode.getPort(), \"putData/\"+idData+ \"/\"+ data);\n }\n else{\n System.out.println(\"No registered DataNode\");\n }\n }", "@Test\n void updateSuccess() {\n String Vin = \"1111111111111111X\";\n Car carToUpdate = carDao.getById(1);\n carToUpdate.setVin(Vin);\n carDao.saveOrUpdate(carToUpdate);\n Car retrievedCar = carDao.getById(1);\n assertEquals(carToUpdate, retrievedCar);\n }", "public void send(Connection connection, StoreData data){\n\t\t//The following code prepares a statement to be sent to the database\n\t\t//and gets all of the data from a Storedata object\n\t\tPreparedStatement preStmt=null;\n\t\tStoreData theData = data;\n\t\tString name = theData.getName();\n\t\tString local = theData.getLocation();\n\t\tString startDate = theData.getDate();\n\t\tString endDate = theData.getEndDate();\n\t\tString description = theData.getDescription();\n\t\tString theSTime = theData.getSTime();\n\t\tString theETime = theData.getETime();\n\t\tString theID = UUID.randomUUID().toString();\n\n\t\t//This try catch block attempts to send a sql statement to the database to store the given data\n\t\ttry {\n\t\t\tpreStmt = (PreparedStatement) connection.prepareStatement(\"INSERT INTO \"\n\t\t\t\t\t+ \"Event(Name,Location,Description,End_Date, Start_Date, Start_Time, End_Time, id) VALUES(?,?,?,?,?,?,?,?)\"); \n\t\t\tjava.util.Date date1 = new SimpleDateFormat(\"MM-dd-yyyy\").parse(startDate);\n\t\t\tjava.util.Date date2 = new SimpleDateFormat(\"MM-dd-yyyy\").parse(endDate);\n\t\t\tjava.sql.Date sqlDate = new java.sql.Date(date1.getTime());\n\t\t\tjava.sql.Date sqlEndDate = new java.sql.Date(date2.getTime());\n\t\t\tpreStmt.setString(8, theID);\n\t\t\tpreStmt.setString(1,name);\n\t\t\tpreStmt.setDate(4,sqlEndDate);\n\t\t\tpreStmt.setDate(5, sqlDate);\n\t\t\tpreStmt.setString(2,local);\n\t\t\tpreStmt.setString(3,description);\n\t\t\tpreStmt.setString(6, theSTime);\n\t\t\tpreStmt.setString(7, theETime);\n\t\t\tpreStmt.executeUpdate();\n\t\t} catch (SQLException | ParseException e) {\n\t\t\tSystem.out.println(\"Nothing was added.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Test(expected = NullPointerException.class)\n public void testNullPut() throws IOException {\n putRowInDB(table, null);\n }", "abstract public void setUserData(Object data);", "Test update(TestData testData, Test test);", "public int insertSensorData(DataValue dataVal) throws Exception;", "public abstract void insert(DataAction data, DataRequest source) throws ConnectorOperationException;", "@PUT\n @Consumes(\"application/xml\")\n public void put(StorageConverter data) {\n Storage entity = data.getEntity();\n // TODO Fix\n entity.setCurrentStatus(\"TODO\");\n entity.setMessage(null);\n dao.update(entity);\n }", "@Test\n public void testInsertDataWSSuccess() {\n try {\n \tProviderDAO providerDAO = new ProviderDAOImpl();\n \tProvider provider = new Provider();\n \tPersonDAO personDAO = new PersonDAOImpl();\n \tPerson person = new Person();\n \tperson = personDAO.getPersonById(\"1\");\n \tprovider = providerDAO.getProviderByPerson(person);\n \tString retVal = providerDAO.insertDataWS(provider);\n \t\n \tif (retVal != null) {\n \t\tAssert.assertTrue(true);\n \t\tSystem.out.println(\"[testInsertDataWSSuccess] - \" + retVal);\n \t} else {\n \t\tAssert.assertTrue(false);\n \t}\n\n } catch (Exception e) {\n Assert.assertFalse(false);\n }\n }", "public int put(int key, String value) {\n int retval = 0;\n\n String sql = \"INSERT INTO data_map(data_key, data_val) VALUES(?, ?)\";\n\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n pstmt.setString(2, value);\n retval = pstmt.executeUpdate();\n }\n catch (SQLException e) {\n retval = -1;\n }\n\n return retval;\n }", "@Override\n public void writeData(String path, String payload) {\n Connection connection = null;\n\n try {\n connection = getConnection();\n connection.setAutoCommit(true);\n\n PreparedStatement pstmt = connection.prepareStatement(\"INSERT INTO DATA VALUES (?,?)\");\n\n pstmt.setString(1, path);\n InputStream in = new ByteArrayInputStream(payload.getBytes());\n pstmt.setBinaryStream(2, in);\n\n pstmt.executeUpdate();\n pstmt.close();\n connection.close();\n\n } catch (SQLException e) {\n logger.log(Level.SEVERE, e.getMessage(), e);\n }\n\n }", "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setData(IData data) {\n this.data = data;\n }", "public void updateData() {}", "@Override\n public void DataIsInserted() {\n }", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "@Override\n\tpublic void updata(Connection conn, Long id, User user) throws SQLException {\n\t\t\n\t}", "@Test\n public void testSetValue ()\n {\n System.out.println (\"setValue\");\n String name = \"\";\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n instance.setValue (name);\n }", "@Test\r\n public void testSave() throws SQLException{\r\n System.out.println(\"save\");\r\n //when(c.prepareStatement(any(String.class))).thenReturn(stmt);\r\n //mockStatic(DriverManager.class);\r\n //expect(DriverManager.getConnection(\"jdbc:mysql://10.200.64.182:3306/testdb\", \"jacplus\", \"jac567\"))\r\n // .andReturn(c);\r\n //expect(DriverManager.getConnection(null))\r\n // .andReturn(null);\r\n //replay(DriverManager.class);\r\n Title t = new Title();\r\n t.setIsbn(\"888888888888888\");\r\n t.setTitle(\"kkkkkk\");\r\n t.setAuthor(\"aaaa\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.save(t);\r\n assertEquals(expResult, result);\r\n }", "@Test\n\tpublic void testInsertObj() {\n\t}", "<T> void put(String key, T data);", "public void setData(Object data) {\n this.data = data;\n }", "public void testADDWithData() throws Exception {\n String data =\"Some words about Helen of Troy\";\n doAdd(data, null);\n }", "int insert(DataSync record);", "void setData(byte[] data);", "@Test\r\n public void testPutweight() throws Exception {\r\n System.out.println(\"putweight\");\r\n double[][] weightvector = null;\r\n String[] name = null;\r\n int[] faceid = null;\r\n connection instance = new connection();\r\n instance.putweight(weightvector, name, faceid);\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 setUserData(Object data);", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "@Override\r\n\tpublic void update(Connection con, Object obj) throws Exception {\n\t}", "@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }", "public void testGetConnection() {\r\n \r\n }", "public void testInsert4() throws Exception {\n\n DAS das = DAS.FACTORY.createDAS(getConfig(\"CompanyConfig.xml\"), getConnection());\n Command select = das.getCommand(\"all companies\");\n DataObject root = select.executeQuery();\n\n DataObject company = root.createDataObject(\"COMPANY\");\n company.setString(\"NAME\", \"Phil's Tires\");\n // This shouldn't do anything\n company.setInt(\"ID\", 999);\n\n das.applyChanges(root);\n\n // Verify insert \n root = select.executeQuery();\n\n assertEquals(4, root.getList(\"COMPANY\").size());\n Iterator i = root.getList(\"COMPANY\").iterator();\n while (i.hasNext()) {\n DataObject comp = (DataObject) i.next();\n assertFalse(comp.getInt(\"ID\") == 999);\n }\n\n }", "public void setData(Data data) {\n this.data = data;\n }", "abstract void setStatement(@NotNull PreparedStatement preparedStatement, @NotNull T object) throws SQLException, NotEnoughDataException;", "private void saveData() {\n }", "@Test\n public void testInsertData() throws Exception {\n//TODO: Test goes here... \n }", "private static void saveData(String data) {\n }", "public void setData(Object data) {\n\t\tthis.data = data;\n\t}", "void setData(Object data);", "public void setDataUnsafe(Serializable data) { this.data = data; }", "@Test\n public void testClientPut() {\n GridCacheDynamicLoadOnClientTest.clientNode.cache(GridCacheDynamicLoadOnClientTest.PERSON_CACHE).put((-100), new GridCacheDynamicLoadOnClientTest.Person((-100), \"name-\"));\n Assert.assertEquals(((GridCacheDynamicLoadOnClientTest.CACHE_ELEMENT_COUNT) + 1), GridCacheDynamicLoadOnClientTest.clientNode.cache(GridCacheDynamicLoadOnClientTest.PERSON_CACHE).size());\n }", "private boolean update(Object[] data)throws Exception{\n String query = \"UPDATE \" + tableName + \" SET name=?, city=? WHERE phone=?\";\n PreparedStatement pstm = con.prepareStatement(query);\n \n pstm.setObject(1, data[0]);\n pstm.setObject(2, data[1]);\n pstm.setObject(3, data[2]);\n\n int result = pstm.executeUpdate();\n\n return (result > 0);\n }", "T put(T obj) throws DataElementPutException, RepositoryAccessDeniedException;", "int testSet(String oid, byte[] data);", "public abstract void setCustomData(Object data);", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "void setData(byte[] data) {\n this.data = data;\n }", "public void testPut() {\n title();\n for (int i = 1; i <= TestEnv.parallelism; i++) {\n this.parallelism = i;\n super.testPut();\n }\n }", "@Override\n\tpublic void saveTestingData() {\n\t\t\n\t}", "private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "abstract public void insert(final KeyClass data, final RID rid);", "protected final boolean send(final Object data) {\n\t\t// enviamos los datos\n\t\treturn this.send(data, null);\n\t}", "void setData (Object data);", "private static void writeBLOBData() {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = JDBCUtils.getMySQLConnection();\n\t\t\tString sql = \"INSERT INTO testblob(name, img) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setString(1, \"ke\");\n\t\t\tFile file = new File(\"D:\" + File.separator + \"test.jpg\");\n\t\t\tInputStream in = new FileInputStream(file);\n\t\t\tstmt.setBinaryStream(2, in, (int)file.length());\n\t\t\tstmt.executeUpdate();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tJDBCUtils.release(stmt, conn);\n\t\t}\n\t}", "public void testWriteOrders() throws Exception {\n }", "@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "private void write(S3CheckpointData data) throws IgniteCheckedException, AmazonClientException {\n assert data != null;\n\n if (log.isDebugEnabled())\n log.debug(\"Writing data to S3 [bucket=\" + bucketName + \", key=\" + data.getKey() + ']');\n\n byte[] buf = data.toBytes();\n\n ObjectMetadata meta = new ObjectMetadata();\n\n meta.setContentLength(buf.length);\n\n if (!F.isEmpty(sseAlg))\n meta.setSSEAlgorithm(sseAlg);\n\n s3.putObject(bucketName, data.getKey(), new ByteArrayInputStream(buf), meta);\n }", "@ParameterizedTest\n @MethodSource(\"randomSchemaWithValue\")\n public void testPutValuePrimitives(Fixture state, Schema schema, Object value) {\n Map<String, String> props = state.props;\n props.put(ConnectorUtils.TABLE_FROM_TOPIC_CONFIG, \"true\");\n\n this.task.start(props);\n\n List<SinkRecord> records = new ArrayList<SinkRecord>();\n records.add(new SinkRecord(null, -1, null, null, schema, value, -1));\n\n if (schema != null && schema.type() == Schema.Type.STRUCT) {\n this.task.put(records);\n } else {\n assertThrows(DataException.class, () -> this.task.put(records));\n }\n }", "@Test\n public void testSave()throws Exception {\n System.out.println(\"save\");\n String query = \"insert into librarian(name,password,email,address,city,contact) values(?,?,?,?,?,?)\";\n String name = \"Raf\";\n String password = \"rrrr\";\n String email = \"[email protected]\";\n String address = \"1218/7\";\n String city = \"dacca\";\n String contact = \"016446\";\n int expResult = 0;\n \n //when(mockDb.getConnection()).thenReturn(mockConn);\n when(mockConn.prepareStatement(query)).thenReturn(mockPs);\n int result = mockLibrarian.save(name, password, email, address, city, contact);\n assertEquals(result >0, true);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }", "@Test\n public void testInserts() throws ConnectionException {\n //adding test ProviderEntry to database\n ProviderEntry pe = MariaDbConnectorTest.instance.findProviderEntryByName(\"test\");\n ProviderEntry ppe = MariaDbConnectorTest.instance.findProviderEntryByName(\"test\");\n assertEquals(pe, ppe); // Passes if insert succeeded\n \n \n //adding test RouteEntry to database\n RouteEntry re = new RouteEntry();\n re.setName(\"test\");\n re.setDescription(\"test\");\n MariaDbConnectorTest.instance.insert(re);\n RouteEntry rre = MariaDbConnectorTest.instance.findRouteEntryByName(\"test\");\n assertEquals(re, rre); // Passes if insert has succeeded\n \n //adding test DataEntry to database\n int traveltime = 1234569;\n DataEntry de = new DataEntry(traveltime, rre, ppe);\n MariaDbConnectorTest.instance.insert(de);\n System.out.println(ppe.getId());\n System.out.println(rre.getId());\n System.out.println(de.getTimestamp());\n DataEntry dde = MariaDbConnectorTest.instance.findDataEntryByID(ppe.getId(), rre.getId(), de.getTimestamp());\n //assertEquals(de, dde); // Passes if insert has succeeded\n \n // Removing all added testdata from database. Removing route & providers suffices\n MariaDbConnectorTest.instance.delete(ppe);\n MariaDbConnectorTest.instance.delete(rre);\n \n // Check if the provider & route objects are removed from the database\n RouteEntry rrre = MariaDbConnectorTest.instance.findRouteEntryByID(rre.getId());\n assertNull(rrre); // Passes if the test RouteEntry object does not exist anymore in the database\n \n ProviderEntry pppe = MariaDbConnectorTest.instance.findProviderEntryByID(ppe.getId());\n assertNull(pppe);\n \n \n \n \n }", "public static void WriteObject(String tableName, int id, Object obj) {\n try {\n conn = DriverManager.getConnection(connectionURL);\n byte[] testBytes = ConvertObject.getByteArrayObject(obj);\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO \" + tableName + \" (id, obj) VALUES(?,?)\");\n statement.setInt(1, id);\n statement.setBinaryStream(2,new ByteArrayInputStream(testBytes),testBytes.length);\n statement.executeUpdate();\n statement.close();\n conn.close();\n }\n catch(SQLException e) {\n e.printStackTrace();\n }\n }", "public UntypedItem putItem(PlatformLayerKey key, String data, Format dataFormat)\n\t\t\tthrows PlatformLayerClientException;", "JsonNode updateData(String data);", "public boolean addData(String data){\r\n\r\n\t\t// the data parameter should be a json string with the following format:\r\n\t\t// \"Transmit ID\":\"Device ID\",\r\n \t\t//\t \"RSSI\":\"Decibels\",\r\n \t\t//\t \"Receive ID\":\"Device ID\"\r\n \t\t//\t \"GPS\":\"Location\",\r\n \t\t//\t \"IMU\":\"Orientation\",\r\n \t\t//\t \"Timestamp\":\"<UNIX time>\"\r\n \t\t//\tthis string will be parsed and its contents will be saved in the database \r\n \t\t\r\n\r\n\t}", "@Test\n public void canUpdateConnectionData() {\n SearchIndexerDataSourceConnection initial = createTestBlobDataSource(null);\n assertEquals(initial.getConnectionString(), FAKE_STORAGE_CONNECTION_STRING);\n\n // tweak the connection string and verify it was changed\n String newConnString =\n \"DefaultEndpointsProtocol=https;AccountName=NotaRealYetDifferentAccount;AccountKey=AnotherFakeKey;\";\n initial.setConnectionString(newConnString);\n\n assertEquals(initial.getConnectionString(), newConnString);\n }", "@Test\n public void canUpdateConnectionData() {\n SearchIndexerDataSourceConnection initial = createTestBlobDataSource(null);\n assertEquals(initial.getConnectionString(), FAKE_STORAGE_CONNECTION_STRING);\n\n // tweak the connection string and verify it was changed\n String newConnString =\n \"DefaultEndpointsProtocol=https;AccountName=NotaRealYetDifferentAccount;AccountKey=AnotherFakeKey;\";\n initial.setConnectionString(newConnString);\n\n assertEquals(initial.getConnectionString(), newConnString);\n }", "public abstract void update(DataAction data, DataRequest source) throws ConnectorOperationException;", "protected final synchronized boolean send(final Object data, final Commands overWrite) {\n\t\ttry {\n\t\t\t// verificamos si la conexion esta cerrada\n\t\t\tif (this.getConnection().isClosed())\n\t\t\t\t// retornamos false\n\t\t\t\treturn false;\n\t\t\t// mostramos un mensaje\n\t\t\tthis.getLogger().debug((data instanceof Commands || overWrite != null ? \"<<= \" : \"<<< \") + (overWrite != null ? overWrite : data));\n\t\t\t// verificamos si es un comando\n\t\t\tif (!this.getLocalStage().equals(Stage.POST) && data instanceof Commands || overWrite != null)\n\t\t\t\t// almacenamos el ultimo comando enviado\n\t\t\t\tthis.lastCommand = overWrite != null ? overWrite : (Commands) data;\n\t\t\t// enviamos el dato\n\t\t\tthis.getOutputStream().writeObject(data);\n\t\t\t// escribimos el dato\n\t\t\tthis.getOutputStream().flush();\n\t\t} catch (final IOException e) {\n\t\t\t// mostramos el trace\n\t\t\tthis.getLogger().error(e);\n\t\t\t// retornamos false\n\t\t\treturn false;\n\t\t}\n\t\t// retornamos true\n\t\treturn true;\n\t}", "public int addOrUpdateInterface(JSONObject data);", "@Test\n public void testInsertingValidValues() throws SQLException {\n CommitStructure commit = getSampleCommit();\n MysqlDatabase mysqlDatabase = new MysqlDatabase(connection);\n assertTrue(mysqlDatabase.insertCommitToDatabase(commit));\n }", "@Test\r\n public void testPutaverage() throws Exception {\r\n System.out.println(\"putaverage\");\r\n double[][] average = null;\r\n connection instance = new connection();\r\n instance.putaverage(average);\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 setData(E data)\n {\n this.data = data;\n }", "private void uploadFromDataStorage() {\n }", "@Test\n public void testGetWriteRequest() {\n System.out.println(\"getWriteRequest\");\n Connection connection = null;\n IoGeneric instance = null;\n WriteRequest expResult = null;\n WriteRequest result = instance.getWriteRequest(connection);\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 }", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "boolean set(String oid, byte[] data);", "@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}", "@Test\n public void updateTest10() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBar() ,\"Should return true if update Servizio\");\n }", "public QuarkusCodestartTestBuilder putData(String key, Object value) {\n this.data.put(key, value);\n return this;\n }", "public void testInsert5() throws Exception { \n\n DAS das = DAS.FACTORY.createDAS(getConfig(\"CompanyConfig.xml\"), getConnection()); \n Command select = das.getCommand(\"all companies\"); \n DataObject root = select.executeQuery(); \n\n root.createDataObject(\"COMPANY\"); \n\n das.applyChanges(root); \n\n // Verify insert \n root = select.executeQuery(); \n assertEquals(4, root.getList(\"COMPANY\").size()); \n\n }", "@Test\n public void testAddConn() {\n System.out.println(\"addConn\");\n String port = \"\";\n String conn = \"\";\n VM instance = null;\n String expResult = \"\";\n String result = instance.addConn(port, conn);\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 testInsertDataWSFail() {\n try {\n \tProviderDAO providerDAO = new ProviderDAOImpl();\n \tString retVal = providerDAO.insertDataWS(null);\n \t\n \tif (retVal != null) {\n \t\tAssert.assertTrue(true);\n \t} else {\n \t\tAssert.assertFalse(false);\n \t\tSystem.out.println(\"[testInsertDataWSFail] - FAIL (No data found)\");\n \t}\n\n } catch (Exception e) {\n Assert.assertFalse(false);\n }\n }", "@Override\n public void send(String key, String data) throws IOException {\n\n }", "@Test\r\n public void testSetDataEntrada() {\r\n System.out.println(\"setDataEntrada\");\r\n Date dataEntrada = null;\r\n Integrante instance = new Integrante();\r\n instance.setDataEntrada(dataEntrada);\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 }" ]
[ "0.6652095", "0.604663", "0.6015158", "0.60116225", "0.5977894", "0.5911115", "0.58566695", "0.5819367", "0.5803024", "0.58018625", "0.57573867", "0.57543516", "0.57281363", "0.57176596", "0.5664692", "0.56539416", "0.56485784", "0.56216973", "0.5614087", "0.5613385", "0.560545", "0.56051064", "0.5602895", "0.55941147", "0.5585327", "0.55651176", "0.55507535", "0.5544432", "0.5518396", "0.55052495", "0.55013466", "0.5481394", "0.5479743", "0.54779166", "0.54755306", "0.54716265", "0.54595816", "0.54544735", "0.5447104", "0.54376256", "0.54349715", "0.54330885", "0.541071", "0.54057324", "0.5404084", "0.53952825", "0.5395053", "0.5380123", "0.5374145", "0.53732854", "0.53726786", "0.5370435", "0.53645945", "0.5362646", "0.53608364", "0.5355678", "0.53544265", "0.5349459", "0.534706", "0.53468424", "0.5339864", "0.53309435", "0.5327659", "0.53192663", "0.53176963", "0.53163415", "0.5312194", "0.53119195", "0.5311104", "0.5309918", "0.53069067", "0.5302313", "0.53016114", "0.5300532", "0.5300319", "0.52997136", "0.52856654", "0.52835804", "0.52823585", "0.5280513", "0.5276446", "0.5276446", "0.5275222", "0.5270052", "0.5262766", "0.52531004", "0.52523273", "0.5250999", "0.5250898", "0.52479", "0.52461445", "0.5245576", "0.52453935", "0.5243256", "0.52431554", "0.5240083", "0.5232214", "0.5224894", "0.5220133", "0.5218153" ]
0.79185563
0
Test of putaverage method, of class connection.
@Test public void testPutaverage() throws Exception { System.out.println("putaverage"); double[][] average = null; connection instance = new connection(); instance.putaverage(average); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testGetAverage() {\r\n System.out.println(\"getAverage\");\r\n Student instance = new Student();\r\n double expResult = 0.0;\r\n double result = instance.getAverage();\r\n assertEquals(expResult, result, 0.0);\r\n \r\n }", "@Test\r\n public void testGetaveragematrix() {\r\n System.out.println(\"getaveragematrix\");\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.getaveragematrix();\r\n assertArrayEquals(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\r\n public void testPutweight() throws Exception {\r\n System.out.println(\"putweight\");\r\n double[][] weightvector = null;\r\n String[] name = null;\r\n int[] faceid = null;\r\n connection instance = new connection();\r\n instance.putweight(weightvector, name, faceid);\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 testAverage() throws Exception {\n Assert.assertTrue(fireHydrants.canSellHydrants());\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(5 * 60);\n Assert.assertTrue(fireHydrants.canSellHydrants());\n Assert.assertTrue(fireHydrants.sellHydrants());\n Assert.assertFalse(fireHydrants.canSellHydrants());\n fakeTicker.setTimeInSecs(10 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(15 * 60);\n Assert.assertTrue(fireHydrants.canSellHydrants());\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(20 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(25 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(30 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(35 * 60);\n Assert.assertTrue(fireHydrants.canSellHydrants());\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(40 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(45 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n\n //11th request fails, as it crossed the limit of 10 requests in 60 mins.\n Assert.assertFalse(fireHydrants.canSellHydrants());\n\n fakeTicker.setTimeInSecs(60 * 60);\n //Next 60 mins\n //Fails as it reached the avg limit of 5 per hour.\n Assert.assertFalse(fireHydrants.sellHydrants());\n }", "@Test\n public void testScoreUpdate() {\n try {\n final BestEvalScore score = new BestEvalScore(\"thjtrfwaw\");\n double expected = 0;\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n final Evaluation eval = new Evaluation(2);\n eval.eval(0,1);\n eval.eval(1,1);\n\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(0,1);\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(1,1);\n eval.eval(1,1);\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to create instance!\", e);\n }\n\n\n }", "@Test\r\n\tpublic void testGetBatchWeekAverageValue() throws Exception{\r\n\t\tlog.debug(\"Validate retrieval of batch's overall average in a week\");\r\n\t\t\r\n\t\tDouble expected = new Double(80.26d);\r\n\t\tDouble actual = \r\n\t\t\tgiven().\r\n\t\t\t\tspec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON).\r\n\t\t\twhen().\r\n\t\t\t\tget(baseUrl + batchAverage, 2150, 1).\r\n\t\t\tthen().\r\n\t\t\t\tassertThat().statusCode(200).\r\n\t\t\tand().\r\n\t\t\t\textract().as(Double.class);\r\n\t\t\r\n\t\tassertEquals(expected, actual, 0.01d);\r\n\t}", "@Override\n\tvoid averageDistance() {\n\t\t\n\t}", "@Test\n public void writeThreeEntitiesWithProperty_shouldCalculateAverageOfThreeValues() {\n writeEntityWithProperty(ENTITY_KIND, EXISTING_PROPERTY, 1.5);\n writeEntityWithProperty(ENTITY_KIND, EXISTING_PROPERTY, 0.5);\n writeEntityWithProperty(ENTITY_KIND, EXISTING_PROPERTY, 4.0);\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n double expectedAverage = 2.0;\n\n double actualAverage = Queries.average(entities, EXISTING_PROPERTY);\n\n assertThat(actualAverage).isEqualTo(expectedAverage);\n }", "public double getAverage(User user) throws Exception;", "double average();", "public void getAvg()\n {\n this.avg = sum/intData.length;\n }", "@Test\n @Order(10)\n void testMeanEmployeeCount() {\n // a1 = 1000\n // a2 = 100\n var a3 = new Account(Industry.MEDICAL, 6000, \"Rio de Janeiro\", \"Brazil\");\n accountRepository.save(a3);\n // mean is from the values of setup and this new account\n assertEquals(((double) Math.round(((6000 + 1000 + 100) / 3.0) * 10000d) / 10000d), accountRepository.meanEmployeeCount());\n }", "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "public double getAverage() {\n return this.average;\n }", "@Test\r\n public void testAverageacceleration() {\r\n System.out.println(\"Average Acceleration\");\r\n \r\n // Test case one.\r\n System.out.println(\"Test case #1\"); \r\n \r\n double distance = 200;\r\n long time = 16;\r\n \r\n SceneControl instance = new SceneControl();\r\n \r\n double expResult = 0.78125;\r\n double result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case two.\r\n System.out.println(\"Test case #2\"); \r\n \r\n distance = 80;\r\n time = 200;\r\n \r\n \r\n expResult = .002;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case three.\r\n System.out.println(\"Test case #3\"); \r\n \r\n distance = 0;\r\n time = 15;\r\n \r\n \r\n expResult = 0;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case four.\r\n System.out.println(\"Test case #4\"); \r\n \r\n distance = 12;\r\n time = 1;\r\n \r\n \r\n expResult = 12;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case five.\r\n System.out.println(\"Test case #5\"); \r\n \r\n distance = 1;\r\n time = 1;\r\n \r\n \r\n expResult = 1;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case six.\r\n System.out.println(\"Test case #6\"); \r\n \r\n distance = 3;\r\n time = 8;\r\n \r\n \r\n expResult = .046875;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case seven.\r\n System.out.println(\"Test case #7\"); \r\n \r\n distance = 200;\r\n time = 1;\r\n \r\n \r\n expResult = 200;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n \r\n \r\n }", "@Test(expected = ArraySizeNotEqualsException.class)\r\n\r\n public void avgExceptions() throws ArraySizeNotEqualsException {\r\n System.out.println(\"AverageExceptions\");\r\n assertEquals(7.5, Jednostkowe.wAvg(new double[]{0, 15}, new double[]{2}), 0.0);\r\n }", "@Test\n public void calculateWeightedAverage_3_Distributed() throws Exception {\n WeightedAverage.Builder builder = WeightedAverage.newBuilder();\n builder.add(50,0.5);\n builder.add(100,0.5);\n assertEquals(builder.calculate().doubleValue(), new BigDecimal(75).doubleValue(), 0.0d);\n assertEquals(builder.build().calculateWeightedAverage().doubleValue(),\n 75.0, 0.0d);\n }", "public float getAverage(){\r\n\t\treturn Average;\r\n\t}", "public synchronized double getAverage() {\n return average;\n }", "@Override\n public Double average() {\n return (sum() / (double) count());\n }", "@Override\r\n\tpublic int average(GradeBean param) {\n\t\treturn 0;\r\n\t}", "@Test\n public void calculateWeightedAverage_2_Distributed() throws Exception {\n WeightedAverage.Builder builder = WeightedAverage.newBuilder();\n builder.add(50,50);\n builder.add(100,50);\n assertEquals(builder.calculate().doubleValue(), new BigDecimal(75).doubleValue(), 0.0d);\n assertEquals(builder.build().calculateWeightedAverage().doubleValue(),\n 75.0, 0.0d);\n }", "@Test\r\n\tpublic void driverAvgStdArtorksPerExhibition() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgStdArtorksPerExhibition((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "protected synchronized void postSystemLoadAverage(String average, Candidate target) throws IOException, RetryException {\n PostMethod post = null;\n HttpClient client = createHttpClient(new URL(target.url));\n try {\n post = new PostMethod(target.url\n + \"plugin/swarm/addSystemLoadAverage?name=\" + name\n + \"&secret=\" + target.secret\n + \"&systemLoadAverage=\" + average);\n\n post.setDoAuthentication(true);\n post.addRequestHeader(\"Connection\", \"close\");\n\n //禁用 csrf\n/* Crumb csrfCrumb = getCsrfCrumb(client, target);\n if (csrfCrumb != null) {\n post.addRequestHeader(csrfCrumb.crumbRequestField, csrfCrumb.crumb);\n }*/\n\n int responseCode = client.executeMethod(post);\n if (responseCode != HttpStatus.SC_OK) {\n String msg = String.format(\"Failed to update slave system load average. Slave is probably messed up. %s - %s\",\n responseCode,\n post.getResponseBodyAsString());\n logger.log(Level.SEVERE, msg);\n throw new RetryException(msg);\n }\n } finally {\n if (post != null){\n post.releaseConnection();\n }\n }\n }", "@Test\n public void testAverage2() throws Exception {\n Assert.assertTrue(fireHydrants.canSellHydrants());\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(5 * 60);\n Assert.assertTrue(fireHydrants.canSellHydrants());\n Assert.assertTrue(fireHydrants.sellHydrants());\n Assert.assertFalse(fireHydrants.canSellHydrants());\n fakeTicker.setTimeInSecs(10 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(15 * 60);\n Assert.assertTrue(fireHydrants.canSellHydrants());\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(20 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(25 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(30 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(35 * 60);\n Assert.assertTrue(fireHydrants.canSellHydrants());\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(40 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(45 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n\n //11th request fails, as it crossed the limit of 10 requests in 60 mins.\n Assert.assertFalse(fireHydrants.canSellHydrants());\n //Will start serving after 120 mins...hence asserts true.\n fakeTicker.setTimeInSecs(120 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n fakeTicker.setTimeInSecs(125 * 60);\n Assert.assertTrue(fireHydrants.sellHydrants());\n }", "public void setAverageRating(double averageRating) {\n this.averageRating = averageRating;\n }", "public void setAverageRating(double averageRating) {\n this.averageRating = averageRating;\n }", "@Test\n public void calculateWeightedAverage_1() throws Exception {\n WeightedAverage.Builder builder = WeightedAverage.newBuilder();\n builder.add(100,50);\n assertEquals(builder.calculate(), new BigDecimal(100));\n assertEquals(builder.build().calculateWeightedAverage(),\n new BigDecimal(100));\n }", "@Test\r\n public void testGetWeight() {\r\n System.out.println(\"getWeight\");\r\n int weight = 0;\r\n Polygon instance = new Polygon();\r\n instance.setWeight(weight);\r\n int expResult = weight;\r\n int result = instance.getWeight();\r\n assertEquals(expResult, result);\r\n }", "@Test\r\n\tpublic void driverAvgStdRepliesPerComment() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgStdRepliesPerComment((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverAvgMinMaxStdPricePrivateDayPasses() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgMinMaxStdPricePrivateDayPasses((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "public void calculateAverage() {\n\n if (turn == 1) {\n p1.setTotalScore(p1.getTotalScore() + turnScore);\n\n p1.setTotalDarts(p1.getTotalDarts() + 1);\n\n float p1Average = p1.getTotalScore() / p1.getTotalDarts();\n p1.setAverage(p1Average);\n\n } else if (turn == 2) {\n p2.setTotalDarts(p2.getTotalDarts() + 1);\n p2.setTotalScore(p2.getTotalScore() + turnScore);\n\n float p2Average = p2.getTotalScore() / p2.getTotalDarts();\n p2.setAverage(p2Average);\n }\n\n\n }", "public void testGetWeight()\n {\n this.testSetWeight();\n }", "public double getRatingAverage() {\n return average;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "public abstract double averageBreedWeightKG();", "@Test\n public void testGetMeanRate() {\n System.out.println(\"getMeanRate\");\n RateList instance = new RateList();\n Rate r2 = new Rate(4);\n Rate r3 = new Rate(3);\n Rate r4 = new Rate(5);\n instance.registerRate(r2);\n instance.registerRate(r3);\n instance.registerRate(r4);\n double expResult = 4.0;\n double result = instance.getMeanRate();\n assertEquals(expResult, result, 0.0);\n }", "double getAvgControl();", "@Test\r\n\tpublic void driverAvgMinMaxStdDayPassesPerMuseum() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgMinMaxStdDayPassesPerMuseum((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "public void setAverageRating(Float averageRating) {\n\t this.averageRating = averageRating;\n\t}", "@Test\n public void testGetBalance() {\n AVLNode<Integer> instance = new AVLNode<> ();\n instance.setBalance( 4 );\n int expResult = 4;\n int result = instance.getBalance();\n assertEquals(expResult, result);\n }", "public void setAveragePosition(Double averagePosition) {\r\n this.averagePosition = averagePosition;\r\n }", "public Quantity<Q> getAverage() {\n return average;\n }", "@Test\n void studentMCQTotalScoreTest(){\n Student student = new Student(\"Lim\");\n student.setNumCorrectAns(8); // Set Total Number Question(s) Answered Correctly\n student.setNumQuestionAns(10); // Set Total Number Question(s) Answered Correctly\n\n\n double expectedResult = 80; // Input for testing\n // Calculate total score and set it\n student.setCalculatedScore(student.getNumCorrectAns(), student.getNumQuestionAns());\n System.out.println(\"Test Case #5\");\n System.out.println(\"\\tExpected Result: \" + expectedResult); // print expected result\n double actualResult = student.getTotalScore(); // Actual Result\n System.out.println(\"\\tActual Result: \" + actualResult); // Print actual result\n assertEquals(expectedResult, actualResult); // Compare the expected result (True) & Actual Result\n }", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\r\n public void testSetWeight() {\r\n System.out.println(\"setWeight\");\r\n int weight = 0;\r\n Polygon instance = new Polygon();\r\n instance.setWeight(weight);\r\n int expResult = weight;\r\n int result = instance.getWeight();\r\n assertEquals(expResult, result);\r\n }", "static void avg(){\r\n\t\tSystem.out.println(\"Hi Avg\");\r\n\t}", "public void setAvgSim(float avg) {\n avgSim = avg;\n }", "public BigDecimal getRows_affected_avg() {\n return rows_affected_avg;\n }", "public void average() {\n\t\tif (averaged)\n\t\t\tthrow new AssertionError(\"can't average twice!!\");\n\t\t\n\t\tscale = 1.0/(double)t;\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (t+1.0)*w[i] - wupdates[i];\n\t\t\n\t\taveraged = true;\n\t\n\t}", "@Test\r\n\tpublic void driverExhibitions10MoreSponsorhipsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateExhibitions10MoreSponsorhipsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\n public void calculateWeightedAverage_Multiple_NonDistributed() throws Exception {\n WeightedAverage.Builder builder = WeightedAverage.newBuilder();\n builder.add(2334, 0.1);\n builder.add(12321,0.2);\n builder.add(22,0.4);\n builder.add(12,0.3);\n assertEquals(builder.calculate().doubleValue(),\n new BigDecimal(2710).doubleValue(), 0.0d);\n assertEquals(builder.build().calculateWeightedAverage().doubleValue(),\n new BigDecimal(2710).doubleValue(), 0.0d);\n }", "@Test\r\n\tpublic void driverAvgStdCritiquesPerExhibition() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgStdCritiquesPerExhibition((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testAverageRisk() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n // Risk before anonymization\n double risk = provider.getData().getHandle().getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 1.0d);\n \n // Risk after anonymization\n risk = getAnonymizedData(provider.getData()).getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.42857142857142855);\n }", "@Test\r\n public void testPutdata() {\r\n System.out.println(\"putdata\");\r\n String name = \"\";\r\n ArrayList<File> picfiles = null;\r\n int num = 0;\r\n connection instance = new connection();\r\n instance.putdata(name, picfiles, num);\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 testSetBalance() {\n System.out.println(\"setBalance\");\n double balance = 9.0;\n Account instance = new Account(\"Piper\", 10.0);\n instance.setBalance(balance);\n double expResult = 9.0;\n double result = instance.getBalance();\n assertEquals(expResult, result, 0.0);\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 testInterestAccumulated() {\n //Just ensure that the first two digits are the same\n assertEquals(expectedResults.getInterestAccumulated(), results.getInterestAccumulated(), 0.15);\n }", "@Test\n public void testSetBalance() {\n System.out.println(\"setBalance\");\n Member instance = member;\n \n double balance = 100.00;\n instance.setBalance(balance);\n \n double expResult = balance;\n double result = instance.getBalance();\n \n assertEquals(expResult,result, 100.00);\n }", "private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}", "public void setRows_affected_avg(BigDecimal rows_affected_avg) {\n this.rows_affected_avg = rows_affected_avg;\n }", "@Test\r\n\tpublic final void testGetScore() {\r\n\t\tassertTrue(gameStatistics.getScore() == 18000);\r\n\t\tassertTrue(gameStatisticsLoss.getScore() == 9100);\r\n\t}", "@Test\r\n\tpublic void driverAvgStdParticipantsPerOpenGroup() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgStdParticipantsPerOpenGroup((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "public void testMixer_AverageOutputValue() throws InterruptedException {\n \tdouble tolerance = 0.01;\n Integer NbPortTested = 3;\n Mixer mixer = new Mixer(NbPortTested);\n synthesisEngine.add(mixer);\n \n // replicator VCO to mixer\n mixer.getInput(0).set(1); // amplitude = 1\n mixer.getInput(1).set(1); // amplitude = 1\n mixer.getInput(2).set(1); // amplitude = 1\n\n synthesisEngine.start();\n mixer.start();\n\t\t\n synthesisEngine.sleepUntil( synthesisEngine.getCurrentTime() + 0.1 );\n \n\t\t// is the sum correct ?\n\t\tassertEquals(\"mixer out value\", 3, mixer.getAverageOutputValue().get(), tolerance);\n\n mixer.setAttenuation(0, -6); // -6db => amplitude/2\n mixer.setAttenuation(1, 0);\n mixer.setAttenuation(2, 0);\n \n synthesisEngine.start();\n mixer.start();\n\t\t\n synthesisEngine.sleepUntil( synthesisEngine.getCurrentTime() + 0.1 );\n \n\t\t// is the sum correct ?\n\t\tassertEquals(\"mixer out value\", 2.5, mixer.getAverageOutputValue().get(), tolerance);\n }", "@Test\n public void testSuccessWithDrawSufficientFund() throws IOException, URISyntaxException {\n URI uri = builder.setPath(\"/accounts/1/withdraw/10\").build();\n\n HttpPut request = new HttpPut(uri);\n request.setHeader(\"Content-type\", \"application/json\");\n HttpResponse response = client.execute(request);\n int statusCode = response.getStatusLine().getStatusCode();\n assertTrue(statusCode == 200);\n\n assertTrue(mapper.readValue(EntityUtils.toString(response.getEntity()), AccountDetails.class).getAccountBalance()\n .equals(new BigDecimal(100).setScale(4, RoundingMode.HALF_EVEN)));\n\n }", "public double getAverageRating() {\n return averageRating;\n }", "public double getAverageRating() {\n return averageRating;\n }", "@Test\r\n\tpublic void driverAvgRatioPrivateVSPublicExhibitionsPerMuseum() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgRatioPrivateVSPublicExhibitionsPerMuseum((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[0];\n // Undeclared exception!\n try { \n evaluation0.updateNumericScores(doubleArray0, doubleArray0, (-3363.03107));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public void average(){\n\t\tfor(PlayerWealthDataAccumulator w : _wealthData.values()){\n\t\t\tw.average();\n\t\t}\n\t}", "@Test\n\tpublic void testGetWeight() {\n\t\tEdge edge1 = new Edge(\"a\", \"b\", 1);\n\t\tEdge edge2 = new Edge(\"b\", \"c\", 2);\n\t\tEdge edge3 = new Edge(\"c\", \"a\", 3);\n\t\tassertEquals(1, edge1.getWeight());\n\t\tassertEquals(2, edge2.getWeight());\n\t\tassertEquals(3, edge3.getWeight());\n\t}", "@Test\n\tpublic void totalBikes()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getTotalBikes() == 4);\n\t}", "@Override\n public void onNext(ComputeAverageResponse value) {\n System.out.println(\"Received a response from the server\");\n System.out.println(value.getAverage());\n //onNext will be called only once\n }", "@Test\r\n public void HighScoreIncreaseUpdate()\r\n {\r\n var testOutputByteArray = new ByteArrayOutputStream();\r\n var testOutputStream = new PrintStream(testOutputByteArray );\r\n\r\n var expectedText = \"The high score is 5\\r\\n\" +\r\n \"The high score is 6\\r\\n\";\r\n\r\n // Testing HighScores class\r\n var highScoresTest = new HighScores(testOutputStream);\r\n highScoresTest.UpdateHighScore(5);\r\n highScoresTest.printHighScore();\r\n\r\n // Testing the Highscore class updates the highscore\r\n highScoresTest.UpdateHighScore(6);\r\n highScoresTest.printHighScore();\r\n\r\n var content = testOutputByteArray.toString();\r\n assertEquals(content,expectedText);\r\n }", "@Test\n\tpublic void testNumberOfSeatsofPassengerCar() throws TrainException {\n\t\tInteger grossWeight = 1;\n\t\tInteger expectedNumberOfSeats = 10;\n\t\t\n\t\tasgn2RollingStock.RollingStock passengerUnderTest = \n\t\t\tnew asgn2RollingStock.PassengerCar((Integer)grossWeight, (Integer)expectedNumberOfSeats);\n\t\t\n\t\tInteger actualNumberOfSeats = ((asgn2RollingStock.PassengerCar)passengerUnderTest).numberOfSeats(); \n\t\t\n\t\tassertEquals(expectedNumberOfSeats, actualNumberOfSeats);\n\t}", "@Test\n\tpublic void testLocomotiveGetGrossWeight() throws TrainException {\n\t\tInteger validGrossWeight = 1;\n\t\tString validClassification = \"9E\";\n\t\t\n\t\tasgn2RollingStock.RollingStock locomotiveUnderTest = \n\t\t\tnew asgn2RollingStock.Locomotive(validGrossWeight, validClassification);\n\t\t\n\t\tassertEquals(((asgn2RollingStock.Locomotive)locomotiveUnderTest).getGrossWeight(), validGrossWeight);\n\t}", "@Test\r\n\tpublic void driverAvgMinMaxStdMuseumsPerDirector() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgMinMaxStdMuseumsPerDirector((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "public double averageTestScore() {\n double average; // Initialize the variable for the average.\n int sum = 0; // Sum of array.\n \n // Sum all the test scores in the array.\n for (int i = 0; i < testScores.length; i++) {\n if (testScores[i] < 0 || testScores[i] > 100) {\n throw new IllegalArgumentException(\"One of your test scores\" + \n \" is negative or greater than 100!\");\n }\n sum = sum + testScores[i];\n }\n \n // Calculate the average.\n average = sum / testScores.length;\n \n // Return the average.\n return average; \n }", "@Override\n\tpublic double avg() {\n\t\treturn total()/4.0;\n\t}", "public void setAverageSpeed(String averageSpeed) {\n this.averageSpeed = averageSpeed;\n }", "public abstract double calcAvRating();", "public double getAverage()\n {\n return getSum() / 2.0;\n }", "public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }", "public void averageTicketPayable() {\n\t\tnodes.stream().filter(sc->sc instanceof Payable).mapToDouble(sc->((Payable) sc).getEntryFee()).average().stream().forEach(System.out::println);\n\t}", "public double getAverageScore() {\n\t return this.totalScore / this.count; \n\t }", "Execution getAverageExecutions();", "public double getAverage(){\n return getTotal()/array.length;\n }", "@Test\r\n\tpublic void incrementScoretest() \r\n\t{\r\n\t\tscoreBehavior.incrementScore();\r\n\t\tassertEquals(1, scoreBehavior.score());\r\n\t\t\r\n\t\tscoreBehavior.incrementScore();\r\n\t\tassertEquals(2, scoreBehavior.score());\r\n\t}", "@Test\r\n public void testCalculateNet() {\r\n int hours = 30;\r\n int rate = 15;\r\n int tax = 58;\r\n CalculateNet test = new CalculateNet();\r\n int result = CalculateNet.calculateNet(hours, rate, tax);\r\n assertEquals(392, result);\r\n }", "@Test\n\tpublic void averageWorksForModeNone() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createStepFunction(10, 0, 10, 10, 0)); // constant function = 10\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createStepFunction(5, 20, 25, 20, 0)); // constant function = 20\n\t\tfinal ReadOnlyTimeSeries avg = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0, Long.MAX_VALUE, true, null, false);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 13, avg.size());\n\t\tAssert.assertEquals(\"Unexpected value in time series sum\", 15, avg.getValue(20).getValue().getIntegerValue());\n\t\tAssert.assertEquals(\"Unexpected value in time series sum\", 20, avg.getValue(45).getValue().getIntegerValue());\n\t\tAssert.assertEquals(\"Unexpected value in time series sum\", 10, avg.getValue(80).getValue().getIntegerValue());\n\t}", "@Test\r\n public void testPuteigen() {\r\n System.out.println(\"puteigen\");\r\n double[][] eigTnormal = null;\r\n connection instance = new connection();\r\n instance.puteigen(eigTnormal);\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 }", "@Override\r\n\tpublic void test() {\n\t\t\r\n\t\tMap<String, Object> map = new HashMap<>();\r\n\t\t\r\n\t\tcarModelMapper.queryCarModel(map);\r\n\t\tInteger count = (Integer) map.get(\"result\");\r\n\t\tSystem.out.println(count);\r\n\t}", "@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}", "public double getAverage()\n {\n if (test1 < 0 || test2 < 0)\n {\n System.out.println(\"Warning: one or more grades have not been entered.\");\n return -1;\n }\n return (test1 + test2) / 2;\n }", "@Test\r\n\tvoid testConfrontaData() throws Exception {\r\n\t\tassertEquals(2,stats.NumeroTotaleEventi(Stato));\r\n\r\n\t}", "@Override\n public double findAverage() {\n double average = 0;\n for (Student key : map.keySet()) {\n average += map.get(key).getValue();\n }\n average /= map.keySet().size();\n return average;\n }", "@Test\n public void testGetScore() {\n System.out.println(\"getScore\");\n Player instance = new Player(PlayerColor.WHITE, \"\");\n int expResult = 5;\n instance.setScore(expResult);\n int result = instance.getScore();\n assertEquals(expResult, result);\n }", "public String getAverage() {\n\t\treturn average;\n\t}", "public AgentMemorySizeAverageStat(Class<?> agClass) {\n\t\tsuper(agClass);\n\t}", "public AverageOperation(BlockGenerator bg){\n\t\tb1 = bg;\n\t}", "public OptionalDouble executeSQL06() {\n OptionalDouble avg = records.stream().filter(x -> x.getSource().equals(\"a\") && !x.getDestination().equals(\"f\") || !x.getDestination().equals(\"g\")\n && x.getType().equals(\"n\") && x.getCustoms().equals(\"y\")).mapToDouble(Record::getWeight).average();\n System.out.println(\"SQL 06 : \" + avg);\n return avg;\n }" ]
[ "0.64977354", "0.60993063", "0.60218686", "0.5893489", "0.58299786", "0.5761328", "0.5741072", "0.56606525", "0.5653252", "0.5635128", "0.5585492", "0.55790037", "0.5568324", "0.5524269", "0.5493926", "0.5474895", "0.5474546", "0.5472696", "0.545778", "0.5454687", "0.5439999", "0.54322934", "0.5427516", "0.54100084", "0.5398572", "0.536911", "0.536911", "0.5361334", "0.53551286", "0.53253204", "0.5324511", "0.53219616", "0.53192276", "0.52796715", "0.5267526", "0.5255891", "0.52437097", "0.52427447", "0.52417904", "0.5212532", "0.5198928", "0.51775426", "0.51753914", "0.51673675", "0.5164453", "0.5164242", "0.5161395", "0.511914", "0.511381", "0.5105601", "0.50815207", "0.50748897", "0.5059897", "0.5056662", "0.50528365", "0.5048625", "0.5042888", "0.5034317", "0.5034045", "0.50313824", "0.50267035", "0.5008929", "0.5005091", "0.50031304", "0.49966386", "0.49966386", "0.4994904", "0.49948007", "0.49933258", "0.49906972", "0.49828064", "0.49761844", "0.49732107", "0.4970961", "0.49695796", "0.49678776", "0.49643525", "0.49589592", "0.49554762", "0.49548677", "0.49535167", "0.4945872", "0.49424496", "0.49402723", "0.493542", "0.49320903", "0.4922206", "0.49182165", "0.4917606", "0.49162602", "0.4911329", "0.49085248", "0.4905214", "0.4903193", "0.49019703", "0.49006662", "0.49000728", "0.48998615", "0.48976466", "0.48953524" ]
0.82204896
0
Test of putweight method, of class connection.
@Test public void testPutweight() throws Exception { System.out.println("putweight"); double[][] weightvector = null; String[] name = null; int[] faceid = null; connection instance = new connection(); instance.putweight(weightvector, name, faceid); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetWeight()\n {\n this.testSetWeight();\n }", "public void testSetWeight()\n {\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>();\n assertEquals(WeightedKernel.DEFAULT_WEIGHT, instance.getWeight());\n \n double weight = RANDOM.nextDouble();\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 0.0;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 4.7;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n boolean exceptionThrown = false;\n try\n {\n instance.setWeight(-1.0);\n }\n catch ( IllegalArgumentException ex )\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n \n }", "@Test\r\n public void testSetWeight() {\r\n System.out.println(\"setWeight\");\r\n int weight = 0;\r\n Polygon instance = new Polygon();\r\n instance.setWeight(weight);\r\n int expResult = weight;\r\n int result = instance.getWeight();\r\n assertEquals(expResult, result);\r\n }", "public void setWeight(int w){\n\t\tweight = w;\n\t}", "private void setWeight(float weight){\n this.weight = weight;\n }", "@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }", "public void setWeight(double w){\n weight = w;\n }", "public void setWeight(int w) {\n\t\tweight = w;\n\t}", "public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}", "public void setWeight(double weight) {\r\n this.weight = weight;\r\n }", "public void setWeight(Integer weight) {\n this.weight = weight;\n }", "@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}", "public void setWeight(double weight) {\n this.weight = weight;\n }", "public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}", "public void setWeight(int newWeight) {\n weight = newWeight;\n }", "public void setWeight(double weight){\n\t\tthis._weight = weight;\n\t}", "@Override\n\tpublic void setWeight(final double weight) {\n\n\t}", "public void setWeight(final int weight) {\n this.weight = weight;\n }", "public void setWeight(float w) {\n weight = w;\n }", "@Test\r\n public void testGetWeight() {\r\n System.out.println(\"getWeight\");\r\n int weight = 0;\r\n Polygon instance = new Polygon();\r\n instance.setWeight(weight);\r\n int expResult = weight;\r\n int result = instance.getWeight();\r\n assertEquals(expResult, result);\r\n }", "public void setWeight(Double weight) {\n this.weight = weight;\n }", "public void setWeight(Byte weight) {\n\t\tthis.weight = weight;\n\t}", "public void addWeight(){\n\t\tweight++;\n\t}", "public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}", "public void setWeight(String weight) {\n this.weight = weight;\n }", "public void setObjectWeight(short weight) { this.objectWeight=weight; }", "public synchronized void setWeight(int weight){\n\t\tthis.personWeight = weight; \n\t}", "public ConditionTargetWeight(int weight)\n\t{\n\t\t_weight = weight;\n\t}", "public void update_weight() {\n this.weights = this.updatedWeights;\n }", "@Test \r\n public void testGetWeight()\r\n {\r\n assertEquals(1.0, seed.getWeight(), 0.01);\r\n }", "public void setWeight(float value) {\n this.weight = value;\n }", "@Test\n\tpublic void testGetWeight() {\n\t\tEdge edge1 = new Edge(\"a\", \"b\", 1);\n\t\tEdge edge2 = new Edge(\"b\", \"c\", 2);\n\t\tEdge edge3 = new Edge(\"c\", \"a\", 3);\n\t\tassertEquals(1, edge1.getWeight());\n\t\tassertEquals(2, edge2.getWeight());\n\t\tassertEquals(3, edge3.getWeight());\n\t}", "public void updateWeights() {\n\t\t\n\t}", "private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }", "abstract void setWeight(int i, int j, Double weight);", "@Override\n\tpublic void additionalWeightWork() {\n\t\t\n\t}", "public void updateBottomWeight(){\r\n\t \tif(this.bottomNode != null)\r\n\t \t{\r\n\t \t\tif( this.bottomNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.bottomWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.bottomNode.isRoad() == true && this.bottomNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.bottomWeight = this.bottomNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.bottomWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "@Test\r\n public void testAssignWeight() {\r\n System.out.println(\"assignWeight\");\r\n double notExpResult = 0.0;\r\n double result = weightAssignment.assignWeight();\r\n assertNotEquals(result, notExpResult, 0.0);\r\n }", "public void setWeight (java.lang.Double weight) {\r\n\t\tthis.weight = weight;\r\n\t}", "public void setWeight(final double pWeight){this.aWeight = pWeight;}", "public void setWeight(int weightIn){\n\t\tthis.edgeWeight = weightIn;\n\t}", "public void setWeight(int weight) {\n\t\tif (weight > 0) {\n\t\t\tthis.weight = weight;\n\t\t} else {\n\t\t\tthis.weight = 0;\n\t\t}\n\t}", "public void setWeight(int x)\n {\n weightCarried=x;\n }", "public int getWeight() {\n\t\treturn _weight;\n\t}", "public int weight(){\n\t\treturn this.weight;\n\t}", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "public void setWeight(String newValue);", "public int weight() {\n \treturn weight;\n }", "@Test\r\n public void testGetweightmatrix() {\r\n System.out.println(\"getweightmatrix\");\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.getweightmatrix();\r\n assertArrayEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "public int getWeight(){\n\t\treturn weight;\n\t}", "public int getWeight(){\n \treturn weight;\n }", "protected void txPut(int n) {}", "public int getWeight()\n\t{\n\t\treturn this.weight;\n\t}", "public void setWeightLimit(int weightLimit) {\n\t\tthis.weightLimit = weightLimit;\n\t}", "public int getWeight() {\n return this.weight;\n }", "public Byte getWeight() {\n\t\treturn weight;\n\t}", "int getWeight();", "int getWeight();", "public int getWeight() {\r\n\t\treturn this.weight;\r\n\t}", "public int weight ();", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public int getWeight()\n {\n return weight;\n }", "public void set(int i, int j, int w) {\n if (i != j || !_isInteracting) {\n _weights[i][j] = w;\n if (_isInteracting) {\n _weights[j][i] = w;\n }\n } else {\n /* Self-interaction disallowed in hopfield networks*/\n _weights[i][j] = 0;\n }\n }", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public void setWeight(double weight) {\n\t\tweightConfiguration.setWeightForIdentifier(this.getIdentifier(), weight);\n\t}", "public SpaceWeights(int weight)\n {\n earthWeight = weight;\n }", "public void setCargoWeight(int cargoWeight) { // set the cargo weight\n\t\tthis.cargoWeight = cargoWeight;\n\t}", "public Weight getWeight();", "public void addWeight(int weightToMerge) {\n this.weight += weightToMerge;\n }", "public void setWeights(GraphNode pNode, double pWeight){\n ArrayList<ArcGraph> conections = pNode.getConections();\n \n for (int i = 0; i < conections.size(); i++){\n GraphNode destiny_node = conections.get(i).getDestiny();\n GraphNode source_node = conections.get(i).getSource();\n int pos_node = findNode(destiny_node); //returns the pos of the destiny node\n if (!MinDistanceStatus.get(pos_node)){ //if the weight isn't final we change it\n MinDistance.set(pos_node, conections.get(i).getWeight() + pWeight); // we change the min weight of the node\n References.set(pos_node, conections.get(i)); //Bueno\n }\n }\n }", "public int getWeight();", "public void setpWeight(int pWeight) {\n this.pWeight = pWeight;\n }", "public void setWeight(float value) {\n\t\t\tthis.weight = value;\n\t\t}", "private void setBoneWeightForVertex(Integer BoneId, IVertex vertex, Double newWeight) {\n\t\tvalPairList = boneVertexMap.get(BoneId);\n\t\t// Iterate all vertices from this bone\n\t\tfor (ValuePair<IVertex, Double> valPair : valPairList) {\n\t\t\t// If this is the vertex to update\n\t\t\tif (vertex.equals(valPair.getValue1())) {\n\t\t\t\tvalPair.setValue2(newWeight); // Update it.\n\t\t\t\treturn; // Dont need to look further\n\t\t\t}\n\t\t}\n\t}", "public Integer getWeight() {\n return weight;\n }", "public double getWeight(){\n\t\treturn weight;\n\t}", "public void setWeight(Item item, int value) {\n\t\tweight.put(item, value);\n\t}", "@Override\n\tpublic void connect(int src, int dest, double w) {\n\t\tif(w<=0)\n\t\t{\n\t\t\tSystem.err.println(\"The weight must be positive! . connect failed\");\n\t\t\treturn;\n\t\t}\n\t\tEdgeData e = new EdgeData(src, dest, w);\n\t\tif (!Nodes.containsKey(src) || !Nodes.containsKey(dest)) {\n\t\t\tSystem.err.println(\"can't connect\");\n\t\t\treturn;\n\t\t}\n\t\tEdges.get(src).put(dest, e);\n\t\tnumOfEdges++;\n\t\tMC++;\n\t}", "public double getWeight(){\n return weight;\n }", "public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "int Weight();", "public void setWeight(int i, int j, double w) {\n if (this.n == -1 || this.m == -1) {\n throw new IllegalStateException(\"Graph size not specified.\");\n }\n if ((i < 0) || (i >= this.n)) {\n throw new IllegalArgumentException(\"i-value out of range: \" + i);\n }\n if ((j < 0) || (j >= this.m)) {\n throw new IllegalArgumentException(\"j-value out of range: \" + j);\n }\n if (Double.isNaN(w)) {\n throw new IllegalArgumentException(\"Illegal weight: \" + w);\n }\n\n this.weights[i][j] = w;\n if ((w > Double.NEGATIVE_INFINITY) && (w < this.minWeight)) {\n this.minWeight = w;\n }\n if (w > this.maxWeight) {\n this.maxWeight = w;\n }\n }", "@Override\r\n\tpublic boolean canHaveAsWeight(int weight) {\r\n\t\treturn (weight >= 10 && weight <= 50);\r\n\t}", "public double getWeight()\r\n {\r\n return this.weightCapacity;\r\n }", "public double getWeight() {\n\t\treturn weight; \n\t\t}", "public double getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "@Override\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}", "@Override\n public double getWeight() {\n return this.weight;\n }", "@Override\r\n\tpublic double Weight() {\n\t\treturn Weight;\r\n\t}", "public double getWeight() {\n\t\treturn weight;\n\t}", "public double getWeight(){return this.aWeight;}" ]
[ "0.66208446", "0.64781135", "0.63769054", "0.6359602", "0.63286406", "0.6289776", "0.62785095", "0.6257171", "0.6214596", "0.6210354", "0.6192479", "0.617161", "0.61634415", "0.6130822", "0.60999036", "0.6098541", "0.6091258", "0.60763735", "0.60447365", "0.6018558", "0.60104614", "0.60074925", "0.6004847", "0.5996174", "0.5976097", "0.59356564", "0.59146386", "0.58777165", "0.5863762", "0.580716", "0.5775422", "0.57643193", "0.57421035", "0.57171494", "0.57125807", "0.57081693", "0.56747466", "0.5670548", "0.5664493", "0.56577307", "0.5626913", "0.56249225", "0.5620602", "0.56037235", "0.55933744", "0.5590478", "0.5590478", "0.5577942", "0.55725455", "0.55682915", "0.55392253", "0.5522299", "0.5519651", "0.5517751", "0.55043364", "0.5498052", "0.5497584", "0.54906434", "0.54864246", "0.54864246", "0.5478417", "0.5464812", "0.5455489", "0.5454218", "0.545411", "0.54433125", "0.5434724", "0.5434724", "0.54337156", "0.54337156", "0.54210055", "0.5416681", "0.54033446", "0.5401613", "0.5396243", "0.5395746", "0.5391502", "0.53833383", "0.536494", "0.53609383", "0.53525996", "0.53444594", "0.5340325", "0.5334267", "0.53300005", "0.53255767", "0.53219557", "0.53219557", "0.5286975", "0.52783203", "0.5275841", "0.5271862", "0.52714866", "0.52674264", "0.52674264", "0.52484715", "0.5246685", "0.52435356", "0.52432245", "0.52411735" ]
0.78619075
0
Test of puteigen method, of class connection.
@Test public void testPuteigen() { System.out.println("puteigen"); double[][] eigTnormal = null; connection instance = new connection(); instance.puteigen(eigTnormal); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetConnection() {\r\n \r\n }", "@Test\n public void testGetConnection() {\n System.out.println(\"getConnection\");\n Connection result = instance.getConnection();\n assertTrue(result!=null);\n \n }", "@Test\r\n\tpublic void testChooseConnection() throws Exception {\n\t}", "private DataConnection() {\n \tperformConnection();\n }", "@Override\n public void testIfConnected() {\n }", "void getConnection() {\n }", "private void openConnection(){}", "public void testConnection() {\n\t\ttry {\n\t\t\tinit();\n\n\t\t} catch (Exception e) {\n\t\t\tif (log.isDebugEnabled())\n\t\t\t\tlog.error(\"Erro teste Conexao \", e);\n\t\t\tthrow new ConnectorException(\"Falha no teste de conexao : \"\n\t\t\t\t\t+ e.getMessage() + \". Check os detalhes da conexao.\");\n\t\t}\n\t}", "public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }", "@Test\n public void testConnectionNominale() throws QualitException {\n Preparateur p = dao.seConnecter(loginValide, mdpValide);\n Assert.assertNotNull(p);\n Assert.assertNotNull(p.getId());\n Assert.assertNotNull(p.getNom());\n Assert.assertNotNull(p.getLogin());\n Assert.assertNull(p.getMdp());\n Assert.assertEquals(preparateurExpected.getId(), p.getId());\n Assert.assertEquals(preparateurExpected.getNom(), p.getNom());\n Assert.assertEquals(preparateurExpected.getLogin(), p.getLogin());\n }", "@Test\n public void testGetterSetterConnection() {\n UserDao userDao = new UserDao();\n userDao.setDatabaseConnection(connection);\n assertEquals(connection, userDao.getDatabaseConnection());\n }", "public abstract ConnectionResult mo27375a();", "abstract T connect();", "@Test\n public void testIsConnected() throws MainException {\n System.out.println(\"isConnected\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n boolean expResult = true;\n boolean result = instance.isConnected();\n assertEquals(expResult, result);\n instance.disconnect();\n result = instance.isConnected();\n assertEquals(false, result);\n\n }", "protected void connectionEstablished() {}", "private Connection () {}", "private static void getConnectionTest() {\n\t\ttry {\r\n\t\t\tConnection conn=CartDao.getConnection();\r\n\t\t\tif(conn==null) System.out.println(\"disconnect\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void testConstructorConnection() {\n assertEquals(connection, dao.getDatabaseConnection());\n }", "@Test\r\n\tpublic void testConnectionAdded() throws Exception {\n\t}", "@Test\n public void testConnectionEchec() {\n try {\n dao.seConnecter(loginInvalide, mdpValide);\n Assert.fail(\"c'est pas normal...\");\n } catch (QualitException paramE) {\n Assert.assertEquals(\n QualitEnum.PROBLEME_IDENTIFICATION,\n paramE.getCodeErreur());\n }\n }", "public void connect() {}", "@Ignore\n @Test\n public void testGetConnection() {\n System.out.println(\"getConnection\");\n Util.commonServiceIPs = \"127.0.0.1\";\n PooledConnection expResult = null;\n try {\n long ret = JMSUtil.getQueuePendingMessageCount(\"127.0.0.1\",\"localhost\",CommonKeys.INDEX_REQUEST);\n fail(\"The test case is a prototype.\");\n }\n catch(Exception e)\n {\n \n } \n }", "@Test\n\tpublic void testGetConnection() throws SQLException\n\t{\n\t\tassertTrue(DatabaseGateway.getConnection() != null);\n\t}", "@Test(dependsOnMethods = {\"testAddConnection\"})\n public void testRemoveConnection() {\n System.out.println(\"removeConnection\");\n instance.removeConnection(testConnection);\n assertEquals(0, instance.getStoredConnections().size());\n }", "@Test(dependsOnMethods = {\"testAddConnection\"})\n public void testGetStoredConnections() {\n System.out.println(\"getStoredConnections\");\n instance.addConnection(testConnection);\n Set result = instance.getStoredConnections();\n assertTrue(result.contains(testConnection));\n }", "@Test\n\tpublic void testGetConnection() throws SQLException {\n\t\tint count = pool.idleConnectionsCount();\n\t\tConnection connection = pool.getConnection(config.getConnectionTimeout());\n\t\tAssert.assertEquals(((ConnectionItem) connection).state().get() , ConnectionItem.STATE_IN_USE);\n\t\tAssert.assertEquals(count - 1 , pool.idleConnectionsCount());\n\t}", "@Override\n public void establishConnectionWithYourTower() {\n }", "@Test(expected = QualitException.class)\n public void testConnectionEchecE() throws QualitException {\n dao.seConnecter(loginInvalide, mdpValide);\n }", "public void setConn(Connection conn) {this.conn = conn;}", "@Test\n public void testAddConnection() throws Exception {\n System.out.println(\"addConnection\");\n instance.addConnection(testConnection);\n assertEquals(1, instance.getStoredConnections().size());\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "abstract public boolean createConnection();", "public void connecting() {\n\n }", "@Test\n public void sessionConnectionTest() {\n Session session = new Session(1215426);\n\n // Set comparison\n int testAbonneeID = 1215426;\n\n // Test\n Assert.assertTrue(session.getAbonneeID()==(1215426));\n System.out.println(\"Test completed succesfully. 2/2\");\n }", "public void testConnect() {\n\t\tConnection con = SQLUtilities.connect();\n\t\tResultSet set = SQLUtilities.executeSQL(\"SELECT * FROM TBL\", con);\n\t\t\n\t\ttry {\n\t\t\tset.last();\n\t\t\tint indx = set.getRow();\n\t\t\tSystem.out.println(indx);\n\t\t} catch (SQLException e) {\n\t\t\tfail();\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSQLUtilities.disconnect(con);\n\t\tassertEquals(true,true);\n\n\t}", "@Test\r\n\tpublic void testAddConnection() throws Exception {\n\t}", "@Override\n\tpublic void connect() {\n\t\t\n\t}", "@Override\n\tpublic void connect() {\n\t\t\n\t}", "@Override\n public void testConnection() {\n\n String in = posId + \"|\" + crc;\n String sig = DigestUtils.md5Digest(in);\n\n logger.debug(in);\n logger.debug(sig);\n\n MultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();\n\n map.add(\"p24_merchant_id\", String.valueOf(merchantId));\n map.add(\"p24_pos_id\", String.valueOf(posId));\n map.add(\"p24_sign\", sig);\n\n String res = restTemplate.postForObject(url + \"/testConnection\", map, String.class);\n\n logger.debug(res);\n\n }", "private Connection() {\n\t\tSystem.out.println(\"--Connection Created--\");\n\t}", "DBConnect() {\n \n }", "public boolean testConnection()\r\n { \r\n try {\r\n myConn = DriverManager.getConnection(getconn + \"?user=\" + user + \"&password=\" + pass);\r\n //Connection successfully connected check sourced from Stack Overflow\r\n //Source: https://stackoverflow.com/questions/7764671/java-jdbc-connection-status\r\n if (!myConn.isClosed() || myConn != null)\r\n return true;\r\n return false;\r\n //End borrowed code\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n //Logger.getLogger(SQLConnector.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }", "@Test\n public void testPersonMethods() throws SQLException, InterruptedException {\n\n //Arrange\n PagingService service = new PagingService(connection);\n Person testPerson = new Person(1, \"TEST\", \"test\", \"testEmail\", \"testCountry\", \"testIpAddress\");\n\n //Act\n service.insertPerson(connection, testPerson);\n Person selectPerson = service.selectPerson(connection, 1);\n\n connection.close();\n\n //Assert\n assertThat(selectPerson.getId(), is(1));\n }", "abstract public void openConnection();", "@Test\n public void testAddConn() {\n System.out.println(\"addConn\");\n String port = \"\";\n String conn = \"\";\n VM instance = null;\n String expResult = \"\";\n String result = instance.addConn(port, conn);\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 testConnect() throws MainException {\n System.out.println(\"connect\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n Connection result = instance.connect();\n assertNotNull(result);\n boolean expResult = true;\n assertEquals(instance.isConnected(), expResult);\n }", "void connect() throws Exception;", "@Test\r\n public void test_IsConnected_false() {\r\n System.out.println(\"isConnected\");\r\n int p = 1;\r\n int q = 2;\r\n UnionFind instance = new QuickUnion(100);\r\n boolean expResult = false;\r\n boolean result = instance.isConnected(p, q);\r\n assertEquals(expResult, result);\r\n }", "private void connectDatabase(){\n }", "boolean connected(int p, int q) {return false; /*mock*/}", "private void test() throws SQLException {\n\n\t}", "@Test\n public void testRemoveConn() {\n System.out.println(\"removeConn\");\n String port = \"\";\n VM instance = null;\n String expResult = \"\";\n String result = instance.removeConn(port);\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(timeout = 4000)\n public void test045() throws Throwable {\n try { \n DBUtil.connect(\"user\", \"6iIP^+.$i+#tan\", (String) null, \"kw9Gj',\", true);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Connecting user failed: \n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "public conectar(){\r\n \r\n }", "void createConnection();", "public void setConnection(Connection connection) {\n //doNothing\n }", "@Override\r\n public void parar(Conexion conexion){\n }", "@Test\n public void tryConnectAsUser() {\n new User(\"bob\", \"secret\", \"Bobík\", \"Ostrava\").save();\n\n // Test \n assertNotNull(User.connect(\"bob\", \"secret\"));\n assertNull(User.connect(\"bob\", \"badpassword\"));\n assertNull(User.connect(\"tom\", \"secret\"));\n }", "private void conntest() {\n\t\tDatabaseDao ddao = null;\r\n\t\tString url;\r\n\r\n\t\tif (dbType.getValue().toString().toUpperCase()\r\n\t\t\t\t.equals((\"oracle\").toUpperCase())) {\r\n\t\t\turl = \"jdbc:oracle:thin:@\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tSystem.out.println(\"?\");\r\n\t\t\tddao = new OracleDaoImpl();\r\n\t\t} else {\r\n\t\t\turl = \"jdbc:mysql://\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tddao = new MysqlDaoImpl();\r\n\t\t}\r\n\t\tSystem.out.println(url);\r\n\t\tString result = ddao.connection(url, logTxtId.getText(),\r\n\t\t\t\tlogTxtPw.getText());\r\n\t\tString resultSet;\r\n\t\tif (result.indexOf(\"오류\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"오류\"));\r\n\t\telse if (result.indexOf(\"ORA\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"ORA\"));\r\n\t\telse {\r\n\t\t\tresultSet = \"접속 테스트 성공\";\r\n\t\t}\r\n\t\tlogLblLogin.setText(resultSet);\r\n\t}", "@Test\r\n public void test_IsConnected_true() {\r\n System.out.println(\"isConnected\");\r\n int p = 2;\r\n int q = 3;\r\n UnionFind instance = new QuickUnion(100);\r\n instance.unionOf(p, q);\r\n boolean expResult = true;\r\n boolean result = instance.isConnected(p, q);\r\n assertEquals(expResult, result);\r\n }", "private DBConnection() \n {\n initConnection();\n }", "Connection createConnection();", "public boolean testConnection(){\n\t\tboolean connected = false;\n\t\ttry {\t\t\t\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tconnected = true;\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\n\t\treturn connected;\n\t}", "private Connection() {\n \n }", "private static void testConnection(GraknSession session) {\n try (GraknGraph graph = session.open(GraknTxType.READ)) {\n\n // construct a match query to find people\n MatchQuery query = graph.graql().match(var(\"x\").isa(\"mirna\"));\n\n // execute the query\n List<Answer> result = query.limit(10).execute();\n\n // if there is no data throw error\n if (result.isEmpty()) {throw new RuntimeException(\"Expected data is not present in the graph.\");}\n System.out.println(\"Connection OK.\");\n }\n }", "@Override\n\tpublic String connectionTest(String testInput) {\n\t\treturn null;\n\t}", "@Before\r\n\tpublic void setUp() throws SQLException {\n\t\tconn = DBManager.getInstance().getConnection();\r\n\t}", "@Test\n public void testGetWriteRequest() {\n System.out.println(\"getWriteRequest\");\n Connection connection = null;\n IoGeneric instance = null;\n WriteRequest expResult = null;\n WriteRequest result = instance.getWriteRequest(connection);\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 boolean testConnection(int keyToTest){\n if (connectedKeys.contains(keyToTest)){\n return true;\n }\n else{\n return false;\n }\n }", "boolean testConnection(RemoteService service);", "private static void testConnection(Properties properties) throws ClassNotFoundException {\n Optional.ofNullable(properties.getProperty(\"oracle.net.tns_admin\"))\n .ifPresent(v -> System.setProperty(\"oracle.net.tns_admin\", v));\n String dbURL = Optional.ofNullable(properties.getProperty(\"url\"))\n .orElseThrow(() -> new IllegalArgumentException(\"missing url property\"));\n\n Class.forName(\"oracle.jdbc.OracleDriver\");\n\n Connection conn = null;\n Statement stmt = null;\n\n try {\n conn = establishConnection(properties, dbURL);\n\n stmt = conn.createStatement();\n\n Stopwatch stmtWatch = Stopwatch.createStarted();\n ResultSet rs = stmt.executeQuery(properties.getProperty(\"query\"));\n System.out.println(\"Executed statement took : \" + stmtWatch.stop());\n\n if (rs.next()) {\n System.out.println(rs.getString(1));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n if (stmt != null) try { stmt.close(); } catch (Exception e) {}\n if (conn != null) try { conn.close(); } catch (Exception e) {}\n }\n }", "public void setConnection(Connection conn);", "@Test(timeout = 4000)\n public void test092() throws Throwable {\n Proxy proxy0 = (Proxy)DBUtil.wrapWithPooledConnection((Connection) null, false);\n // Undeclared exception!\n try { \n DBUtil.prepareStatement((Connection) proxy0, \"SELECT pronae,oid FROM pg_roc WHEE \", false);\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 }", "@Override\n public abstract void connect();", "@Override\r\n public void connectSuccess() {\n super.connectSuccess();\r\n }", "@Override\r\n\t\tpublic void onConnect(Connection connection) {\n\r\n\t\t}", "private Connection(){\n\n }", "@Test\r\n public void testInternetConnection(){\r\n CheckConnection checkConnection = new CheckConnection();\r\n checkConnection.checkURL();\r\n }", "sqlcommands(Connection conn){\n this.conn = conn ;\n }", "public ConnectDB(){\r\n\r\n\t}", "private void connect() {\n\t\t//\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(logInfo, user, pwd);\n\t\t\tsmt = conn.createStatement();\n\t\t\tif (conn != null) {\n\t\t\t\tSystem.out.println(\"[System:] Postgres Connection successful\");\n\t\t\t\tstatus = true;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Failed to make connection!\");\n\t\t\t\tstatus = false;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Connection Failed!\");\n\t\t\te.printStackTrace();\n\t\t\tstatus = false;\n\t\t}\n\t\t\n\t}", "@Test\n public void testConnectToDb() {\n System.out.println(\"connectToDb\");\n ClienteDAO instance = new ClienteDAO();\n instance.connectToDb();\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 testBidu(){\n\t}", "public void connect();", "public void connect();", "public void connect();", "@Test\n\tvoid testLectureChoixInt() {\n\t\t\n\t}", "@Test\n\tpublic void testGetDbInstance(){\n\t\tConnection c = DatabaseConnect.getInstance();\n\t\tassertTrue(c != null);\t\n\t}", "@Test\n public void testGetSdsConnection() {\n System.out.println(\"getSdsConnection\");\n SDSconnection expResult = null;\n SDSconnection result = instance.getSdsConnection();\n assertEquals(expResult, result);\n }", "private ConexionBD() {\n\t\testablecerConexion();\n\t}", "@Override\r\n\tpublic void Conectar() {\n\r\n\t\tSystem.out.println(\"Estoy conectado a un servidor MySql...\");\r\n\t}", "@Override\n public void test() {\n \n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n int int0 = DBUtil.getOpenConnectionCount();\n assertEquals(0, int0);\n }", "@BeforeClass\n\tpublic static void setup() throws SQLException {\n\t\tconfig = new ConnectionConfig();\n\t\tconfig.setDataSource(Mockito.mock(DataSource.class));\n\t\t//mock connection\n\t\tConnection connection = Mockito.mock(Connection.class);\n\t\tMockito.when(config.getDataSource().getConnection()).thenReturn(connection);\n\t\tMockito.when(connection.isValid((int) TimeUnit.MILLISECONDS.toSeconds(config.getValidationTimeout()))).thenReturn(true);\n\t\t//create the connection pool\n\t\tpool = new ConnectionPoolImpl(config);\n\t}", "@Test\n public void testDisconnect() throws MainException {\n System.out.println(\"disconnect\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n boolean expResult = true;\n boolean result = instance.disconnect();\n assertEquals(expResult, result);\n result = instance.isConnected();\n assertEquals(result, false);\n // TODO review the generated test code and remove the default call to fail.\n }", "private void test() {\n\n\t}", "protected boolean internalTestConnection(Subject subject)\n {\n boolean result = false;\n ConnectionListener cl = null;\n try\n {\n if (((PoolStatisticsImpl)getStatistics()).getAvailableCount(true) > 0)\n {\n cl = getConnection(null, subject, null);\n result = true;\n }\n }\n catch (Throwable ignored)\n {\n // Ignore\n }\n finally\n {\n if (cl != null)\n {\n try\n {\n returnConnection(cl, false);\n }\n catch (ResourceException ire)\n {\n // Ignore\n }\n }\n }\n\n return result;\n }", "@Test\n public void testConsultarPelaChave() throws Exception {\n System.out.println(\"consultarPelaChave\");\n String chave = \"\";\n ConfiguracaoTransferencia result = instance.consultarPelaChave(chave);\n assertNotNull(result);\n }", "abstract void onConnect();", "void setConnection(Connection con);" ]
[ "0.7223336", "0.67998606", "0.6681723", "0.6408245", "0.636344", "0.6347211", "0.62373203", "0.621468", "0.6112436", "0.61116004", "0.6110955", "0.60791785", "0.60631204", "0.59972477", "0.5984615", "0.5975834", "0.597428", "0.5970585", "0.59620625", "0.5948975", "0.593353", "0.5912199", "0.589743", "0.58944863", "0.5891017", "0.58836955", "0.5882198", "0.586188", "0.5836019", "0.58359826", "0.5834504", "0.5823172", "0.5812507", "0.581063", "0.57902646", "0.57861286", "0.57604074", "0.57604074", "0.57539773", "0.5733569", "0.5731685", "0.57163924", "0.57133436", "0.5702988", "0.5687911", "0.56811076", "0.5680751", "0.56747866", "0.56724447", "0.5660608", "0.5653282", "0.56480116", "0.5645856", "0.56439584", "0.56396276", "0.5633573", "0.56310874", "0.56216115", "0.56188023", "0.5618497", "0.56021416", "0.56017303", "0.55973554", "0.5594507", "0.559138", "0.5589359", "0.55891454", "0.5583393", "0.55661345", "0.556302", "0.55596745", "0.55420214", "0.55388546", "0.5531442", "0.5519854", "0.5519631", "0.55190414", "0.5518741", "0.55127853", "0.5511424", "0.550271", "0.5500168", "0.5480779", "0.54690444", "0.54690444", "0.54690444", "0.54511833", "0.54421043", "0.544204", "0.54406846", "0.5439694", "0.54358196", "0.54341614", "0.5432986", "0.5429878", "0.5420904", "0.54200375", "0.5418037", "0.5415643", "0.54115826" ]
0.5915806
21
Test of geteigenmatrix method, of class connection.
@Test public void testGeteigenmatrix() { System.out.println("geteigenmatrix"); connection instance = new connection(); double[][] expResult = null; double[][] result = instance.geteigenmatrix(); assertArrayEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPuteigen() {\r\n System.out.println(\"puteigen\");\r\n double[][] eigTnormal = null;\r\n connection instance = new connection();\r\n instance.puteigen(eigTnormal);\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 testProblemFoundInTheWild() {\n\n Primitive64Store matrix = Primitive64Store.FACTORY.rows(new double[][] { { 1, 0, 0 }, { 0.01, 0, -1 }, { 0.01, 1, 0 } });\n\n CaseEigenvalue.doVerifyGeneral(matrix);\n }", "@Test\n public void testComplexEigenpair() {\n\n GenericStore<ComplexNumber> matrix = GenericStore.C128.make(2, 2);\n matrix.set(0, 0, ComplexNumber.of(6.0, 0.0));\n matrix.set(1, 0, ComplexNumber.of(-2.0, -1.0));\n matrix.set(0, 1, ComplexNumber.of(-2.0, 1.0));\n matrix.set(1, 1, ComplexNumber.of(5.0, 0.0));\n\n Eigenvalue<ComplexNumber> evd = Eigenvalue.COMPLEX.make(matrix, true);\n evd.decompose(matrix);\n\n MatrixStore<ComplexNumber> mtrxD = evd.getD();\n MatrixStore<ComplexNumber> mtrxV = evd.getV();\n\n List<Eigenpair> eigenpairs = evd.getEigenpairs();\n\n if (DEBUG) {\n BasicLogger.debugMatrix(\"D\", mtrxD);\n BasicLogger.debugMatrix(\"V\", mtrxV);\n for (Eigenpair eigenpair : eigenpairs) {\n BasicLogger.debug(\"Value: {}\", eigenpair.value.toString());\n BasicLogger.debug(\"Vector: {}\", eigenpair.vector.toString());\n }\n }\n\n Eigenpair pair0 = eigenpairs.get(0);\n TestUtils.assertEquals(mtrxD.get(0, 0), pair0.value);\n TestUtils.assertEquals(mtrxV.get(0, 0), pair0.vector.get(0));\n TestUtils.assertEquals(mtrxV.get(1, 0), pair0.vector.get(1));\n\n Eigenpair pair1 = eigenpairs.get(1);\n TestUtils.assertEquals(mtrxD.get(1, 1), pair1.value);\n TestUtils.assertEquals(mtrxV.get(0, 1), pair1.vector.get(0));\n TestUtils.assertEquals(mtrxV.get(1, 1), pair1.vector.get(1));\n\n TestUtils.assertEquals(matrix, evd, NumberContext.of(8));\n }", "@Test\r\n public void testGetweightmatrix() {\r\n System.out.println(\"getweightmatrix\");\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.getweightmatrix();\r\n assertArrayEquals(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 testGeneralisedComplexEigenvalue() {\n\n GenericStore<ComplexNumber> mtrxA = GenericStore.C128.make(2, 2);\n mtrxA.set(0, 0, ComplexNumber.of(5.0, 0.0));\n mtrxA.set(1, 0, ComplexNumber.of(0.0, -3.0));\n mtrxA.set(0, 1, ComplexNumber.of(0.0, 3.0));\n mtrxA.set(1, 1, ComplexNumber.of(2.0, 0.0));\n\n GenericStore<ComplexNumber> mtrxB = GenericStore.C128.make(2, 2);\n mtrxB.set(0, 0, ComplexNumber.of(6.0, 0.0));\n mtrxB.set(1, 0, ComplexNumber.of(-2.0, -1.0));\n mtrxB.set(0, 1, ComplexNumber.of(-2.0, 1.0));\n mtrxB.set(1, 1, ComplexNumber.of(5.0, 0.0));\n\n if (DEBUG) {\n BasicLogger.debugMatrix(\"A\", mtrxA);\n BasicLogger.debugMatrix(\"B\", mtrxB);\n }\n\n Eigenvalue.Generalised<ComplexNumber> evd = Eigenvalue.COMPLEX.makeGeneralised(mtrxA, Generalisation.A_B);\n evd.decompose(mtrxA, mtrxB); // [A][V]=[B][V][D]\n\n MatrixStore<ComplexNumber> mtrxD = evd.getD();\n MatrixStore<ComplexNumber> mtrxV = evd.getV();\n\n List<Eigenpair> eigenpairs = evd.getEigenpairs();\n\n if (DEBUG) {\n BasicLogger.debugMatrix(\"D\", mtrxD);\n BasicLogger.debugMatrix(\"V\", mtrxV);\n for (Eigenpair eigenpair : eigenpairs) {\n BasicLogger.debug(\"Value: {}\", eigenpair.value.toString());\n BasicLogger.debug(\"Vector: {}\", eigenpair.vector.toString());\n }\n }\n\n Eigenpair pair0 = eigenpairs.get(0);\n TestUtils.assertEquals(mtrxD.get(0, 0), pair0.value);\n TestUtils.assertEquals(mtrxV.get(0, 0), pair0.vector.get(0));\n TestUtils.assertEquals(mtrxV.get(1, 0), pair0.vector.get(1));\n\n Eigenpair pair1 = eigenpairs.get(1);\n TestUtils.assertEquals(mtrxD.get(1, 1), pair1.value);\n TestUtils.assertEquals(mtrxV.get(0, 1), pair1.vector.get(0));\n TestUtils.assertEquals(mtrxV.get(1, 1), pair1.vector.get(1));\n\n MatrixStore<ComplexNumber> left = mtrxA.multiply(mtrxV);\n MatrixStore<ComplexNumber> right = mtrxB.multiply(mtrxV).multiply(mtrxD);\n\n if (DEBUG) {\n BasicLogger.debugMatrix(\"left\", left);\n BasicLogger.debugMatrix(\"right\", right);\n }\n\n TestUtils.assertEquals(left, right);\n }", "@Test\r\n public void testGetaveragematrix() {\r\n System.out.println(\"getaveragematrix\");\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.getaveragematrix();\r\n assertArrayEquals(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 testJamaProblem() throws IOException {\n\n Primitive64Store problematic = Primitive64Store.FACTORY\n .rows(new double[][] { { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 1 }, { 0, 0, 0, 1, 0 }, { 1, 1, 0, 0, 1 }, { 1, 0, 1, 0, 1 } });\n\n CaseEigenvalue.doVerifyGeneral(problematic);\n }", "public double[] eigenValues(){\n if(!this.pcaDone)this.pca();\n return this.eigenValues;\n }", "@Test\n public void testGetInversa() {\n System.out.println(\"getInversa\");\n double[][] mat = new double[][] {{120,111,721},{770,110,121},{115,417,221}};\n\n// double[][] mat = new double[][]{{476,555,678},{250,345,455},{551,145,725}};\n// double[][] mat = new double[][]{{478,592,327},{295,712,592},{674,417,556}};\n// double[][] mat = new double[][]{{130,150,121},{245,580,756},{567,445,624}};\n// double[][] mat = new double[][]{{553,721,317},{454,315,699},{640,755,418}};\n// double[][] mat = new double[][]{{338,687,437},{445,132,647},{523,459,147}};\n Matrix matrix = new Matrix(mat);\n Matrix expResult = null;\n Matrix result = utilsHill.getInversa(matrix);\n utilsHill.printMatrix(result);\n assertEquals(expResult, result);\n }", "public double[][] eigenVectors(){\n if(!this.pcaDone)this.pca();\n return this.eigenVectorsAsColumns;\n }", "public Vector getImagEigenvalues() {\n return e;\n }", "@Test\n public void testDeterminante() {\n System.out.println(\"determinante\");\n Matrix matrix = null;\n double expResult = 0.0;\n double result = utilsHill.determinante(matrix);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix(253);\n expressionMatrixImpl0.addNewNode();\n boolean boolean0 = true;\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n // Undeclared exception!\n try { \n expressionMatrixImpl0.outNoStandardConnections(true, expressionElementMapperImpl0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(1, 2, 830);\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n // Undeclared exception!\n expressionMatrixImpl0.toString();\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(841);\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 0, 841);\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(841, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.setValue(3834, 3834, 18);\n assertEquals(0, expressionMatrixImpl0.getNumberOfNodes());\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix((-693));\n expressionMatrixImpl0.toString();\n assertEquals((-693), expressionMatrixImpl0.getNumberOfElements());\n }", "public SimpleEVD<T> eig() {\n return new SimpleEVD(mat);\n }", "@Test\n public void testMatrixCreation() throws Exception {\n\n testUtilities_3.createAndTestMatrix(false);\n\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.creatMatrix((-2456));\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n assertEquals((-2456), expressionMatrixImpl0.getNumberOfElements());\n }", "@Test\n public void testInversible() {\n System.out.println(\"inversible\");\n Matrix matriz = null;\n boolean expResult = false;\n boolean result = utilsHill.inversible(matriz);\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(timeout = 4000)\n public void test09() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl1 = new ExpressionMatrixImpl();\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl1.toString();\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.creatMatrix(1);\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl2 = new ExpressionMatrixImpl();\n expressionMatrixImpl2.addNewNode();\n expressionMatrixImpl0.setValue(1, 0, 1254);\n expressionMatrixImpl2.toString();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.getNumberOfNodes();\n int int0 = expressionMatrixImpl0.getValue(0, 0);\n assertEquals((-1), int0);\n \n int int1 = expressionMatrixImpl0.getNumberOfNodes();\n assertFalse(int1 == int0);\n }", "public Vector getRealEigenvalues() {\n return d;\n }", "@Test\n public void testConstructor() {\n final Matrix33d m = new Matrix33d();\n double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n assertEquals(a[i], 0D);\n }\n }", "@Test\n public void testIdentity() {\n final double junk[] = new double[Matrix33d.LENGTH];\n for (int i = 0; i < Matrix33d.LENGTH; i++) {\n junk[i] = 1089.1451D;\n }\n final Matrix33d m = new Matrix33d();\n m.setA(junk);\n\n m.identity();\n final double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n if (i == 0 || i == 4 || i == 8) {\n assertEquals(a[i], 1D);\n } else {\n assertEquals(a[i], 0D);\n }\n }\n }", "@Test(timeout = 4000)\n public void test191() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n intArray0[4] = intArray4;\n int[] intArray5 = new int[3];\n intArray5[1] = 1;\n resultMatrixGnuPlot0.setShowAverage(false);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n // Undeclared exception!\n try { \n resultMatrixGnuPlot1.getColSize((String[][]) null, 0, false, true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public boolean getMatrixCheck(){\r\n \treturn this.matrixCheck;\r\n \t}", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.creatMatrix(2632);\n expressionMatrixImpl0.setValue(0, 0, 0);\n expressionMatrixImpl0.setValue(0, 110, 0);\n assertEquals(2632, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix(1960);\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(0, 812, 822);\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n // Undeclared exception!\n try { \n expressionMatrixImpl0.outNoStandardConnections(true, expressionElementMapperImpl0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.creatMatrix((-647));\n expressionMatrixImpl0.setValue(0, 2110, (-647));\n assertEquals((-647), expressionMatrixImpl0.getNumberOfElements());\n }", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.outNoStandardConnections(false, expressionElementMapperImpl0);\n expressionMatrixImpl0.creatMatrix(1986);\n int int0 = 2743;\n expressionMatrixImpl0.creatMatrix(2743);\n expressionMatrixImpl0.addNewNode();\n boolean boolean0 = false;\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n MessageTracerImpl messageTracerImpl1 = new MessageTracerImpl();\n messageTracerImpl1.getMapper();\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n expressionMatrixImpl0.creatMatrix(32768);\n // Undeclared exception!\n expressionMatrixImpl0.addNewNode();\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.getValue(0, 0);\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.getValue(1, 1);\n ExpressionElementMapperItemImpl expressionElementMapperItemImpl0 = new ExpressionElementMapperItemImpl();\n expressionMatrixImpl0.creatMatrix(20);\n expressionMatrixImpl0.setValue(0, (-1), (-1));\n expressionMatrixImpl0.getNumberOfNodes();\n assertEquals(20, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test\n\tpublic void test() {\n\t\tdouble delta = 0.00001;\n\t\tSnp fakeSnp1 = new Snp(\"fakeId1\", 0, 0.3);\n\t\tSnp fakeSnp2 = new Snp(\"fakeId2\", 0, 0.8);\n\t\tSnp fakeSnp3 = new Snp(\"fakeId3\", 0, 1.4);\n\t\tPascal.set.withZScore_=true;\n\t\tArrayList<Snp> geneSnps = new ArrayList<Snp>();\n\t\tgeneSnps.add(fakeSnp1);geneSnps.add(fakeSnp2);geneSnps.add(fakeSnp3);\n\t\tDenseMatrix ld= new DenseMatrix(3,3);\n\t\t//DenseMatrix crossLd= new DenseMatrix(3,2);\n\t\t\n\t\tArrayList<Double> snpScores = new ArrayList<Double>(3);\n\t\tsnpScores.add(fakeSnp1.getZscore());\n\t\tsnpScores.add(fakeSnp2.getZscore());\n\t\tsnpScores.add(fakeSnp3.getZscore());\n\t\t//ld and crossLd calculated as follows:\n\t\t// make 0.9-toeplitz mat of size 5.\n\t\t// 3,4,5 for ld-mat\n\t\t// 1,2 for crossLd-mat\n\t\tld.set(0,0,1);ld.set(1,1,1);ld.set(2,2,1);\n\t\tld.set(0,1,0.9);ld.set(1,2,0.9);\n\t\tld.set(1,0,0.9);ld.set(2,1,0.9);\n\t\tld.set(0,2,0.81);\n\t\tld.set(2,0,0.81);\n\t\tdouble[] weights = {2,2,2};\n\t\tAnalyticVegas myAnalyticObj= null;\n\t\t//UpperSymmDenseMatrix myMatToDecompose = null;\n\t\tdouble[] myEigenvals = null;\n\t\tdouble[] emptyWeights = {1,1,1};\n\t\tmyAnalyticObj= new AnalyticVegas(snpScores, ld, emptyWeights);\n\t\tmyAnalyticObj.computeScore();\n\t\tmyEigenvals = myAnalyticObj.computeLambda();\n\t\tassertEquals(myEigenvals[0],2.74067, delta);\n\t\tassertEquals(myEigenvals[1],0.1900, delta);\n\t\tassertEquals(myEigenvals[2],0.06932, delta);\n\t\t\n\t\tmyAnalyticObj= new AnalyticVegas(snpScores, ld, weights);\n\t\tmyAnalyticObj.computeScore();\n\t\tmyEigenvals = myAnalyticObj.computeLambda();\t\t\t\n\t\tassertEquals(myEigenvals[0], 5.481348, delta);\n\t\tassertEquals(myEigenvals[1],0.380000, delta);\n\t\tassertEquals(myEigenvals[2],0.138652, delta);\n\t\t\t\n\t\tdouble[] weights2 = {1,2,0.5};\n\t\t\n\t\tmyAnalyticObj= new AnalyticVegas(snpScores, ld, weights2);\n\t\tmyAnalyticObj.computeScore();\n\t\tmyEigenvals = myAnalyticObj.computeLambda();\t\t\n\t\tassertEquals(myEigenvals[0],3.27694674, delta);\n\t\tassertEquals(myEigenvals[1],0.1492338, delta);\n\t\tassertEquals(myEigenvals[2],0.07381938, delta);\t\t\t\n\t\t\n\t}", "@Test\n public void testIsTransitionMatrix()\n {\n IDoubleArray T = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean expResult = false;\n boolean result = instance.isTransitionMatrix(T);\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(timeout = 4000)\n public void test01() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(841);\n expressionMatrixImpl0.getNumberOfNodes();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(1, 0, (-3353));\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n // Undeclared exception!\n try { \n expressionMatrixImpl0.outNoStandardConnections(true, expressionElementMapperImpl0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.setValue(0, 0, 0);\n assertEquals(0, expressionMatrixImpl0.getNumberOfNodes());\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n HL72XMLImpl hL72XMLImpl0 = new HL72XMLImpl();\n HL7CheckerImpl hL7CheckerImpl0 = new HL7CheckerImpl();\n messageTracerImpl0.setHandler(hL7CheckerImpl0);\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.creatMatrix(2815);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.getNumberOfElements();\n int int0 = 0;\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(1, 0, 1);\n // Undeclared exception!\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.creatMatrix(4622);\n expressionMatrixImpl0.toString();\n assertEquals(4622, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.creatMatrix(1);\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(3, 0, 3);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.getValue(1, 1);\n }", "public Matrix getBasis() {\n\t\treturn eigenvectors;\n\t}", "@Test\n public void testGetSetInternalMatrixAndAvailability()\n throws WrongSizeException, NotReadyException, LockedException,\n DecomposerException, com.irurueta.algebra.NotAvailableException,\n InvalidFundamentalMatrixException, NotAvailableException {\n final Matrix a = Matrix.createWithUniformRandomValues(FUND_MATRIX_ROWS,\n FUND_MATRIX_COLS, MIN_RANDOM_VALUE, MAX_RANDOM_VALUE);\n\n final SingularValueDecomposer decomposer =\n new SingularValueDecomposer(a);\n\n decomposer.decompose();\n\n final Matrix u = decomposer.getU();\n final Matrix w = decomposer.getW();\n final Matrix v = decomposer.getV();\n\n // transpose V\n final Matrix transV = v.transposeAndReturnNew();\n\n // set last singular value to zero to enforce rank 2\n w.setElementAt(2, 2, 0.0);\n\n Matrix fundamentalInternalMatrix = u.multiplyAndReturnNew(\n w.multiplyAndReturnNew(transV));\n\n // Instantiate empty fundamental matrix\n final FundamentalMatrix fundMatrix = new FundamentalMatrix();\n\n assertFalse(fundMatrix.isInternalMatrixAvailable());\n try {\n fundMatrix.getInternalMatrix();\n fail(\"NotAvailableException expected but not thrown\");\n } catch (final NotAvailableException ignore) {\n }\n\n // set internal matrix\n fundMatrix.setInternalMatrix(fundamentalInternalMatrix);\n\n // Check correctness\n assertTrue(fundMatrix.isInternalMatrixAvailable());\n assertEquals(fundamentalInternalMatrix, fundMatrix.getInternalMatrix());\n assertNotSame(fundamentalInternalMatrix,\n fundMatrix.getInternalMatrix());\n\n // Force InvalidFundamentalMatrixException\n\n // try with a non 3x3 matrix\n fundamentalInternalMatrix = new Matrix(FUND_MATRIX_ROWS + 1,\n FUND_MATRIX_COLS + 1);\n try {\n fundMatrix.setInternalMatrix(fundamentalInternalMatrix);\n fail(\"InvalidFundamentalMatrixException expected but not thrown\");\n } catch (final InvalidFundamentalMatrixException ignore) {\n }\n\n // try with a non rank-2 3x3 matrix\n fundamentalInternalMatrix = Matrix.createWithUniformRandomValues(\n FUND_MATRIX_ROWS, FUND_MATRIX_COLS, MIN_RANDOM_VALUE,\n MAX_RANDOM_VALUE);\n while (Utils.rank(fundamentalInternalMatrix) == 2) {\n fundamentalInternalMatrix = Matrix.createWithUniformRandomValues(\n FUND_MATRIX_ROWS, FUND_MATRIX_COLS, MIN_RANDOM_VALUE,\n MIN_RANDOM_VALUE);\n }\n\n try {\n fundMatrix.setInternalMatrix(fundamentalInternalMatrix);\n fail(\"InvalidFundamentalMatrixException expected but not thrown\");\n } catch (final InvalidFundamentalMatrixException ignore) {\n }\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix((-1));\n expressionMatrixImpl0.creatMatrix(1430);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n HL72XMLImpl hL72XMLImpl0 = new HL72XMLImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(38);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(0, 31, (-1244));\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(38, expressionMatrixImpl0.getNumberOfElements());\n }", "public static double eigen_value(double[][] matrix_leslie) {\n Matrix a = new Basic2DMatrix(matrix_leslie);\n\n //Obtem valores e vetores próprios fazendo \"Eigen Decomposition\"\n EigenDecompositor eigenD = new EigenDecompositor(a);\n Matrix[] mattD = eigenD.decompose();\n\n //Converte objeto Matrix (duas matrizes) para array Java\n double[][] matA = mattD[0].toDenseMatrix().toArray();\n double[][] matB = mattD[1].toDenseMatrix().toArray(); //Dá-nos o valor próprio\n\n double max_eigen_value = -1;\n\n for (int i = 0; i < matB.length; i++) {\n for (int j = 0; j < matB.length; j++) {\n if (max_eigen_value < matB[i][j]) {\n max_eigen_value = matB[i][j];\n }\n }\n }\n\n max_eigen_value = max_eigen_value * 10000;\n max_eigen_value = Math.ceil(max_eigen_value);\n max_eigen_value = max_eigen_value / 10000;\n\n return max_eigen_value;\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix((-1));\n expressionMatrixImpl0.creatMatrix(1430);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n HL72XMLImpl hL72XMLImpl0 = new HL72XMLImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(38);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 20, (-1244));\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(38, expressionMatrixImpl0.getNumberOfElements());\n }", "public double[][] eigenVectorsAsRows(){\n if(!this.pcaDone)this.pca();\n return this.eigenVectorsAsRows;\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n ExpressionElementMapperItemImpl expressionElementMapperItemImpl0 = new ExpressionElementMapperItemImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionElementMapperImpl0.addItem(expressionElementMapperItemImpl0);\n expressionMatrixImpl0.creatMatrix(20);\n // Undeclared exception!\n try { \n expressionMatrixImpl0.outNoStandardConnections(false, expressionElementMapperImpl0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix(1127);\n expressionMatrixImpl0.addNewNode();\n int int0 = expressionMatrixImpl0.getValue(0, 0);\n assertEquals(1127, expressionMatrixImpl0.getNumberOfElements());\n assertEquals((-1), int0);\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(809);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(0, 2, 809);\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n int int0 = expressionMatrixImpl0.addNewNode();\n assertEquals(809, expressionMatrixImpl0.getNumberOfElements());\n assertEquals(1, int0);\n }", "@Test\n public void graphfromBoggleBoard_mn() {\n Graph testgraph = new AdjacencyMatrixGraph();\n BoggleBoard board = new BoggleBoard(20,20);\n Permeate.boggleGraph(board, testgraph);\n /*System.out.println(testgraph.getVertices());\n for (Vertex vertex : testgraph.getVertices()) {\n System.out.println(vertex + \": \" + testgraph.getNeighbors(vertex));\n }*/\n }", "public void testRotationMatrix() {\n\n u = 1;\n RotationMatrix rM = new RotationMatrix(a, b, c, u, v, w, theta);\n // This should be the identity matrix\n double[][] m = rM.getMatrix();\n for(int i=0; i<m.length; i++) {\n for(int j=0; j<m.length; j++) {\n if(j==i) {\n assertEquals(m[i][j], 1, TOLERANCE);\n } else {\n assertEquals(m[i][j], 0, TOLERANCE);\n }\n }\n }\n }", "@Test(timeout = 4000)\n public void test186() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 0);\n resultMatrixLatex0.getDefaultPrintRowNames();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot1.setShowAverage(false);\n String[][] stringArray0 = new String[4][2];\n String[] stringArray1 = new String[2];\n stringArray1[0] = \")\";\n stringArray1[1] = \"*\";\n stringArray0[0] = stringArray1;\n String[] stringArray2 = new String[0];\n stringArray0[1] = stringArray2;\n String[] stringArray3 = new String[5];\n stringArray3[0] = \"$\\bullet$\";\n stringArray3[1] = \"\";\n stringArray3[2] = \")\";\n stringArray3[3] = \"v\";\n stringArray3[4] = \"*\";\n stringArray0[2] = stringArray3;\n String[] stringArray4 = new String[13];\n stringArray4[0] = \")\";\n stringArray4[1] = \"$\\bullet$\";\n stringArray4[2] = \"(\";\n stringArray4[3] = \"*\";\n stringArray4[4] = \" \";\n stringArray4[5] = \")\";\n stringArray4[6] = \"(\";\n stringArray4[7] = \" \";\n stringArray4[8] = \"$\\bullet$\";\n stringArray0[3] = stringArray4;\n // Undeclared exception!\n try { \n resultMatrixGnuPlot1.getColSize(stringArray0, 0, true, true);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n expressionMatrixImpl0.getValue((-2465), (-2465));\n expressionMatrixImpl0.setValue((-1), (-1198), 0);\n }", "@Test\n public void testSetA() {\n final double expected[] = getMatrix().getA();\n final Matrix33d m = new Matrix33d();\n m.setA(Arrays.copyOf(expected, expected.length));\n for (int i = 0; i < expected.length; i++) {\n assertEquals(m.getA()[i], expected[i]);\n }\n }", "public double[][] monteCarloEigenValues(){\n if(!this.monteCarloDone)this.monteCarlo();\n return this.randomEigenValues;\n }", "@Test(timeout = 4000)\n public void test156() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(50, 50);\n resultMatrixLatex0.m_ShowAverage = false;\n resultMatrixLatex0.m_ShowStdDev = true;\n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[0] = false;\n booleanArray0[1] = false;\n resultMatrixLatex0.m_StdDevWidth = (-3085);\n booleanArray0[2] = true;\n resultMatrixLatex0.setPrintColNames(true);\n booleanArray0[3] = true;\n resultMatrixLatex0.setStdDevWidth((-1));\n booleanArray0[4] = true;\n resultMatrixLatex0.m_RowHidden = booleanArray0;\n resultMatrixLatex0.getDefaultEnumerateColNames();\n resultMatrixLatex0.colNameWidthTipText();\n resultMatrixLatex0.setPrintRowNames(false);\n resultMatrixLatex0.removeFilterName(\"\");\n resultMatrixLatex0.padString(\"\", 0, false);\n ResultMatrixSignificance resultMatrixSignificance0 = null;\n try {\n resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 5\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\n public void testPrintMatrix() {\n System.out.println(\"printMatrix\");\n Matrix matrix = null;\n utilsHill.printMatrix(matrix);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.setValue(1, 1, 1);\n expressionMatrixImpl0.getNumberOfNodes();\n expressionMatrixImpl0.creatMatrix((-2187));\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.getNumberOfNodes();\n expressionMatrixImpl0.creatMatrix(0);\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue((-2187), 0, (-2187));\n expressionMatrixImpl0.getNumberOfNodes();\n assertEquals(0, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test\n public void testGetMatrixFromVector() {\n System.out.println(\"getMatrixFromVector\");\n Vector instance = null;\n Matrix expResult = null;\n Matrix result = instance.getMatrixFromVector();\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 testGetMatrixColumn() {\n final Matrix33d m = getMatrix();\n final Vector3d expected = V2;\n final Vector3d v = new Vector3d();\n m.getMatrixColumn(v, 1);\n assertEquals(v.toString(), expected.toString());\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.getNumberOfNodes();\n int int0 = expressionMatrixImpl0.getNumberOfElements();\n assertEquals(0, int0);\n \n expressionMatrixImpl0.setValue((-1553), (-1553), 0);\n assertEquals(0, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test(timeout = 4000)\n public void test183() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.toStringMatrix();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.globalInfo();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n resultMatrixCSV1.setCountWidth(2);\n resultMatrixCSV1.setSignificanceWidth((-259));\n resultMatrixCSV1.setShowAverage(true);\n resultMatrixCSV0.toStringKey();\n resultMatrixCSV1.clear();\n resultMatrixPlainText0.meanPrecTipText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixCSV0);\n resultMatrixLatex0.toStringMatrix();\n resultMatrixCSV0.getColOrder();\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n resultMatrixLatex1.getDefaultPrintColNames();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixPlainText0);\n resultMatrixSignificance0.toStringRanking();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n resultMatrixSignificance1.globalInfo();\n resultMatrixLatex1.getDefaultMeanPrec();\n ResultMatrixHTML resultMatrixHTML0 = null;\n try {\n resultMatrixHTML0 = new ResultMatrixHTML(1, (-1056));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\n public void testGetMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(0, 0), -10.615, 0.001);\n assertEquals(reader.getMatrix().get(9, 1), 10.148, 0.001);\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.getNumberOfNodes();\n }", "private void constructECMatrix() \n {\n final int COLUMNS = dimSquared * CONSTRAINTS;\n ecMatrix = new boolean[dimCubed][COLUMNS];\n int r, c, v, v1, v2;\n\n //Loop through each row of the ECM\n for(int i = 0; i < dimCubed; i++)\n {\n //Get the grid row, column and value for the current row in the ECM\n r = matrixRowToGridRow(i);\n c = matrixRowToGridCol(i);\n v = matrixRowToGridVal(i);\n //Loop through each column of the ECM\n for(int j = 0; j < COLUMNS; j++)\n {\n //Get the values for the current constraint column using j\n v1 = matrixColToV1(j);\n v2 = matrixColToV2(j);\n\n //Compare with the values for the current row, if equal set to true\n if(j < dimSquared) //Cell occupied constraint\n {\n if(v1 == r && v2 == c)\n {\n ecMatrix[i][j] = true;\n }\n }\n else if(j >= dimSquared && j < dimSquared * 2) //Row value constraint\n {\n if(v1 == r && v2 == v)\n {\n ecMatrix[i][j] = true;\n }\n }\n else if(j >= dimSquared * 2 && j < dimSquared * 3) //Column value constraint\n {\n if(v1 == c && v2 == v)\n {\n ecMatrix[i][j] = true;\n }\n }\n else if(j >= dimSquared * 3 && j < dimSquared * 4) //Box value constraint\n {\n if(v1 == getBox(r, c) && v2 == v)\n {\n ecMatrix[i][j] = true;\n }\n }\n }\n }\n }", "@Test\n public void testGetRotationMatrix() {\n \n AxisRotation rotation = new AxisRotation(0, 0, 1, 54);\n Mat3D rotationMatrix1 = rotation.getRotationMatrix();\n \n AxisRotation rotation2 = new AxisRotation(0, 0, 1, 324);\n Mat3D rotationMatrix2 = rotation2.getRotationMatrix();\n \n System.out.println(\"test\");\n }", "public static void test() {\n // create M-by-N matrix that doesn't have full rank\n int M = 8, N = 5;\n Matrix B = Matrix.random(5, 3);\n Matrix A = Matrix.random(M, N).times(B).times(B.transpose());\n System.out.print(\"A = \");\n A.print(9, 6);\n\n // compute the singular vallue decomposition\n System.out.println(\"A = U S V^T\");\n System.out.println();\n SingularValueDecomposition s = A.svd();\n System.out.print(\"U = \");\n Matrix U = s.getU();\n U.print(9, 6);\n System.out.print(\"Sigma = \");\n Matrix S = s.getS();\n S.print(9, 6);\n System.out.print(\"V = \");\n Matrix V = s.getV();\n V.print(9, 6);\n System.out.println(\"rank = \" + s.rank());\n System.out.println(\"condition number = \" + s.cond());\n System.out.println(\"2-norm = \" + s.norm2());\n\n // print out singular values\n System.out.print(\"singular values = \");\n Matrix svalues = new Matrix(s.getSingularValues(), 1);\n svalues.print(9, 6);\n\n\t\t Matrix C = U.times(S).times(V.transpose());\n\t\t C.print(9, 6);\n\n\t\t Matrix D = A.transpose();\n\t\t D.print(9, 6);\n\n\t\t Matrix E = D.times(A);\n\t\t E.print(9, 6);\n }", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.creatMatrix(0);\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(0, (-1404), 0);\n expressionMatrixImpl0.toString();\n }", "@Test\n public void checkGetNullVersusNot() {\n int width = 5;\n int height = 10;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n // get the results from a provided matrix\n DMatrixRMaj Q_provided = RandomMatrices_DDRM.rectangle(height,height,rand);\n DMatrixRMaj R_provided = RandomMatrices_DDRM.rectangle(height,width,rand);\n\n assertSame(R_provided, alg.getR(R_provided, false));\n assertSame(Q_provided, alg.getQ(Q_provided, false));\n\n // get the results when no matrix is provided\n DMatrixRMaj Q_null = alg.getQ(null, false);\n DMatrixRMaj R_null = alg.getR(null,false);\n\n // see if they are the same\n assertTrue(MatrixFeatures_DDRM.isEquals(Q_provided,Q_null));\n assertTrue(MatrixFeatures_DDRM.isEquals(R_provided,R_null));\n }", "public int[][] getMatriceAdjacence()\n {\n return matriceAdjacence;\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n MessageTracerImpl messageTracerImpl1 = new MessageTracerImpl();\n messageTracerImpl0.getMapper();\n ExpressionMatrixImpl expressionMatrixImpl1 = new ExpressionMatrixImpl();\n expressionMatrixImpl1.getNumberOfElements();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 47, 0);\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(1986, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test\n public void testGetSetEulerAngles() throws WrongSizeException {\n UniformRandomizer randomizer = new UniformRandomizer(new Random());\n double alphaEuler = randomizer.nextDouble(2.0 * MIN_ANGLE_DEGREES, \n 2.0 * MAX_ANGLE_DEGREES) * Math.PI / 180.0;\n double betaEuler = randomizer.nextDouble(MIN_ANGLE_DEGREES, \n MAX_ANGLE_DEGREES) * Math.PI / 180.0;\n double gammaEuler = randomizer.nextDouble(2.0 * MIN_ANGLE_DEGREES, \n 2.0 * MAX_ANGLE_DEGREES) * Math.PI / 180.0;\n boolean valid = false;\n \n MatrixRotation3D rotation = new MatrixRotation3D();\n \n //set euler angles\n rotation.setEulerAngles(alphaEuler, betaEuler, gammaEuler);\n \n //retrieve euler angles to check correctness\n if (Math.abs(rotation.getAlphaEulerAngle() - alphaEuler) <\n ABSOLUTE_ERROR) {\n valid = true;\n } else if (Math.abs(rotation.getAlphaEulerAngle() - (alphaEuler -\n Math.PI)) < ABSOLUTE_ERROR) {\n valid = true;\n }\n assertTrue(valid);\n //bet ambiguity: can be beta or -beta\n valid = false;\n if (Math.abs(rotation.getBetaEulerAngle() - betaEuler) <\n ABSOLUTE_ERROR) {\n valid = true;\n } else if (Math.abs(rotation.getBetaEulerAngle() + betaEuler) <\n ABSOLUTE_ERROR) {\n valid = true;\n }\n assertTrue(valid);\n //gamma ambiguity: gamma can be gamma or gamma - pi\n valid = false;\n if (Math.abs(rotation.getGammaEulerAngle() - gammaEuler) <\n ABSOLUTE_ERROR) {\n valid = true;\n } else if (Math.abs(rotation.getGammaEulerAngle() -\n (gammaEuler - Math.PI)) < ABSOLUTE_ERROR) {\n valid = true;\n }\n assertTrue(valid);\n\n //check internal matrix\n Matrix rotationMatrix = rotation.getInternalMatrix();\n \n Matrix rotationMatrix2 = new Matrix(ROTATION_ROWS, ROTATION_COLS);\n rotationMatrix2.setElementAt(0, 0, Math.cos(alphaEuler) * \n Math.cos(gammaEuler) - Math.sin(alphaEuler) * Math.sin(\n betaEuler) * Math.sin(gammaEuler));\n rotationMatrix2.setElementAt(1, 0, Math.cos(alphaEuler) * Math.sin(\n gammaEuler) + Math.sin(alphaEuler) * Math.sin(betaEuler) *\n Math.cos(gammaEuler));\n rotationMatrix2.setElementAt(2, 0, -Math.sin(alphaEuler) * Math.cos(\n betaEuler));\n \n rotationMatrix2.setElementAt(0, 1, -Math.cos(betaEuler) * Math.sin(\n gammaEuler));\n rotationMatrix2.setElementAt(1, 1, Math.cos(betaEuler) * Math.cos(\n gammaEuler));\n rotationMatrix2.setElementAt(2, 1, Math.sin(betaEuler));\n \n rotationMatrix2.setElementAt(0, 2, Math.sin(alphaEuler) * Math.cos(\n gammaEuler) + Math.cos(alphaEuler) * Math.sin(betaEuler) * \n Math.sin(gammaEuler));\n rotationMatrix2.setElementAt(1, 2, Math.sin(alphaEuler) * Math.sin(\n gammaEuler) - Math.cos(alphaEuler) * Math.sin(betaEuler) *\n Math.cos(gammaEuler));\n rotationMatrix2.setElementAt(2, 2, Math.cos(alphaEuler) * Math.cos(\n betaEuler));\n \n //check that rotation matrices are equal (up to a certain error)\n assertTrue(rotationMatrix.equals(rotationMatrix2, ABSOLUTE_ERROR));\n }", "private static Node setupMatrix()\n {\n Node thomasAnderson = graphDb.createNode();\n thomasAnderson.setProperty( \"name\", \"Thomas Anderson\" );\n thomasAnderson.setProperty( \"age\", 29 );\n \n Node trinity = graphDb.createNode();\n trinity.setProperty( \"name\", \"Trinity\" );\n Relationship rel = thomasAnderson.createRelationshipTo( trinity, \n MatrixRelationshipTypes.KNOWS );\n rel.setProperty( \"age\", \"3 days\" );\n \n Node morpheus = graphDb.createNode();\n morpheus.setProperty( \"name\", \"Morpheus\" );\n morpheus.setProperty( \"rank\", \"Captain\" );\n morpheus.setProperty( \"occupation\", \"Total badass\" );\n thomasAnderson.createRelationshipTo( morpheus, MatrixRelationshipTypes.KNOWS );\n rel = morpheus.createRelationshipTo( trinity, \n MatrixRelationshipTypes.KNOWS );\n rel.setProperty( \"age\", \"12 years\" );\n \n Node cypher = graphDb.createNode();\n cypher.setProperty( \"name\", \"Cypher\" );\n cypher.setProperty( \"last name\", \"Reagan\" );\n rel = morpheus.createRelationshipTo( cypher, \n MatrixRelationshipTypes.KNOWS );\n rel.setProperty( \"disclosure\", \"public\" );\n \n Node smith = graphDb.createNode();\n smith.setProperty( \"name\", \"Agent Smith\" );\n smith.setProperty( \"version\", \"1.0b\" );\n smith.setProperty( \"language\", \"C++\" );\n rel = cypher.createRelationshipTo( smith, MatrixRelationshipTypes.KNOWS );\n rel.setProperty( \"disclosure\", \"secret\" );\n rel.setProperty( \"age\", \"6 months\" );\n \n Node architect = graphDb.createNode();\n architect.setProperty( \"name\", \"The Architect\" );\n smith.createRelationshipTo( architect, MatrixRelationshipTypes.CODED_BY );\n \n return thomasAnderson;\n }", "public double getEigenValue(int i) {\n\t\treturn eigenvalues[i];\n\t}", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix(0);\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl1 = new ExpressionMatrixImpl();\n expressionMatrixImpl1.toString();\n expressionMatrixImpl0.creatMatrix(0);\n ExpressionElementMapper expressionElementMapper0 = null;\n expressionMatrixImpl1.creatMatrix(1118);\n expressionMatrixImpl1.toString();\n expressionMatrixImpl0.getValue(0, (-1364));\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.getValue((-1), 1118);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl1.toString();\n int int0 = (-554);\n expressionMatrixImpl0.creatMatrix((-554));\n // Undeclared exception!\n try { \n expressionMatrixImpl0.addNewNode();\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.browsersoft.openhre.hl7.impl.regular.ExpressionMatrixImpl\", e);\n }\n }", "@Before\n public void setUp() throws Exception {\n myM = new Matrix();\n /** matrix1 = new int[4][4];\n for (int i = 0; i < matrix1.length; i++) {\n for (int j = 0; j < matrix1[0].length; j++) {\n if( i == j) {\n matrix1[i][j] = 1;\n }\n }\n }\n matrix2 = new int[6][6];\n for (int i = 0; i < matrix2.length; i++) {\n for (int j = 0; j < matrix2[0].length; j++) {\n matrix2[i][j] = i;\n }\n }\n matrix3 = new int[3][4];\n for (int i = 0; i < matrix3.length; i++) {\n for (int j = 0; j < matrix3[0].length; j++) {\n if( i == j) {\n matrix3[i][j] = 1;\n }\n\n }\n } **/\n }", "public boolean equals(Object x){\n if (!(x instanceof Matrix)) return false;\n Matrix m = (Matrix) x;\n if(m.nnz != this.nnz){\n return false;\n }\n if(m.matrixSize != this.matrixSize){\n return false;\n }\n for(int i = 0; i<matrixSize; i++){\n if(!(m.rows[i].equals(rows[i]))){\n return false;\n }\n }\n return true;\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl1 = new ExpressionMatrixImpl();\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl1.toString();\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl2 = new ExpressionMatrixImpl();\n expressionMatrixImpl2.addNewNode();\n expressionMatrixImpl0.setValue(1, 0, 1254);\n expressionMatrixImpl2.toString();\n expressionMatrixImpl0.toString();\n ExpressionMatrixImpl expressionMatrixImpl3 = new ExpressionMatrixImpl();\n expressionMatrixImpl3.setValue(1, 12354, (-3));\n expressionMatrixImpl3.toString();\n expressionMatrixImpl3.toString();\n expressionMatrixImpl1.toString();\n }", "public int[] eigenValueIndices(){\n if(!this.pcaDone)this.pca();\n return this.eigenValueIndices;\n }", "public static void main(String[] args) {\n\t\tEquation eq = new Equation();\n\t\teq.process(\"A = [ 2, -2, 0, 3, 4; 4, -1, 0, 1, -1; 0, 5, 0, 0, -1; 3, 2, -3, 4, 3; 7, -2, 0, 9, -5 ]\");\n\t\tDMatrixRMaj A = eq.lookupDDRM(\"A\");\n\t\t\n\t\tSystem.out.println(\"<==== A ====>\");\n\t\tSystem.out.println(A);\n\t\tSystem.out.println(\"Det(A): \" + CommonOps_DDRM.det(A));\n\t\t\n\t\tDMatrixRMaj C = cofactor(A);\n\t\teq.alias(C, \"C\");\n\t\t\n\t\tdouble det = A.get(3, 2) * C.get(3, 2);\n\t\t\n\t\tSystem.out.println(\"Column[\" + 2 + \"] has 4 zeros entries\");\n\t\tSystem.out.println(\"Det(A) = A[3][2] * cofactors[3][2]: \" + det);\n\t\t\n\t\n\t\tSystem.out.println(\"<==== adj(A) ====>\");\n\t\tSystem.out.println(C);\n\t\t\n\t\t\n\t\teq.process(\"AI = inv(A)\");\n\t\teq.process(\"AC = inv(det(A)) * C'\");\n\t\t\n\t\t\n\t\tSystem.out.println(\"<==== inv(A) ====>\");\n\t\tSystem.out.println(eq.lookupDDRM(\"AI\"));\n\t\t\n\t\tSystem.out.println(\"<==== 1 / det(A) * adj(A) ====>\");\n\t\tSystem.out.println(eq.lookupDDRM(\"AC\"));\n\t\t\n\t\tSystem.out.println(\"inv(A) == 1 / det(A) * adj(A): \" + MatrixFeatures.isIdentical(eq.lookupDDRM(\"AI\"), eq.lookupDDRM(\"AC\"), 0.00000001));\n\t\t\n\t\t\n\t}", "@Test\n public void testNeighbors() {\n\n // Make a bigger nanoverse.runtime.geometry than the one from setUp\n Lattice lattice = new TriangularLattice();\n hex = new Hexagon(lattice, 3);\n Boundary boundary = new Arena(hex, lattice);\n Geometry geometry = new Geometry(lattice, hex, boundary);\n\n Coordinate query;\n\n // Check center\n query = new Coordinate2D(2, 2, 0);\n assertNeighborCount(6, query, geometry);\n\n // Check corner\n query = new Coordinate2D(0, 0, 0);\n assertNeighborCount(3, query, geometry);\n\n // Check side\n query = new Coordinate2D(1, 0, 0);\n assertNeighborCount(4, query, geometry);\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix((-1));\n // Undeclared exception!\n try { \n expressionMatrixImpl0.addNewNode();\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.browsersoft.openhre.hl7.impl.regular.ExpressionMatrixImpl\", e);\n }\n }", "@Test\n public void testIsRateMatrix()\n {\n IDoubleArray K = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean expResult = false;\n boolean result = instance.isRateMatrix(K);\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 }", "@Before\n public void setup() {\n threeByTwo = new Matrix(new int[][] {{1, 2, 3}, {2, 5, 6}});\n compareTwoByThree = new Matrix(new int[][] {{1, 42, 32}, {2, 15, 65}});\n oneByOne = new Matrix(new int[][] {{4}});\n rightOneByOne = new Matrix(new int[][] {{8}});\n twoByFour = new Matrix(new int[][] {{1, 2, 3, 4}, {2, 5, 6, 8}});\n twoByThree = new Matrix(new int[][] {{4, 5}, {3, 2}, {1, 1}});\n threeByThree = new Matrix(new int[][] {{4, 5, 6}, {3, 2, 0}, {1, 1, 1}});\n rightThreeByThree = new Matrix(new int[][] {{1, 2, 3}, {5, 2, 0}, {1, 1, 1}});\n emptyMatrix = new Matrix(new int[0][0]);\n // this is the known correct result of multiplying M1 by M2\n twoByTwoResult = new Matrix(new int[][] {{13, 12}, {29, 26}});\n threeByThreeResult = new Matrix(new int[][] {{35, 24, 18}, {13, 10, 9}, {7, 5, 4}});\n oneByOneSum = new Matrix(new int[][] {{12}});\n oneByOneProduct = new Matrix(new int[][] {{32}});\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n int int0 = expressionMatrixImpl0.getValue((-1), (-1));\n assertEquals((-1), int0);\n }", "abstract public Matrix4fc getViewMatrix();", "public void WriteEigenImages() {\r\n\r\n\t\tint nmodes = m_pModel.TexturePCA().NParameters();\r\n\t\tModelSimpleImage img = new ModelSimpleImage();\r\n\t\tCDVector texture = new CDVector();\r\n\t\tfor (int i = 0; i < nmodes; i++) {\r\n\r\n\t\t\tm_pModel.TexturePCA().EigenVectors().Col(nmodes - i - 1, texture); // take\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// largest\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// first\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\tString str = new String();\r\n\t\t\t// str.format(\"eigen_image%02i.bmp\", i );\r\n\t\t\tstr = \"eigen_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixCSV0);\n resultMatrixCSV0.setPrintColNames(true);\n resultMatrixCSV0.TIE_STRING = \" \";\n resultMatrixCSV0.m_RowNameWidth = 2;\n resultMatrixPlainText0.padString(\"A7'@51RZ\", 45);\n resultMatrixPlainText0.meanWidthTipText();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixCSV0);\n resultMatrixHTML0.LEFT_PARENTHESES = \"\";\n resultMatrixHTML0.getDefaultEnumerateColNames();\n resultMatrixCSV0.globalInfo();\n resultMatrixPlainText0.showStdDevTipText();\n resultMatrixPlainText0.setMeanWidth(2);\n resultMatrixHTML0.getRemoveFilterName();\n int int0 = 0;\n resultMatrixPlainText0.getRowName(0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 0);\n resultMatrixLatex0.setMeanWidth(45);\n resultMatrixLatex0.m_ShowAverage = true;\n resultMatrixHTML0.listOptions();\n resultMatrixLatex0.globalInfo();\n resultMatrixLatex0.stdDevPrecTipText();\n resultMatrixLatex0.setSize(0, 1);\n resultMatrixCSV0.toStringRanking();\n resultMatrixCSV0.clearRanking();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 1);\n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.toString();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\n\tpublic void testDiagonalIzquierda() {\n\n\t\ttablero.agregar(0, 0, jugador1);\n\t\ttablero.agregar(1, 2, jugador1);\n\t\ttablero.agregar(2, 1, jugador1);\n\n\t\tassertEquals(jugador1.getPieza(), reglas.getGanador(jugador1));\n\t}", "@Override\n public void testIfConnected() {\n }", "@Test(timeout = 4000)\n public void test173() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 0);\n int[] intArray0 = new int[0];\n resultMatrixCSV0.setRowOrder(intArray0);\n // Undeclared exception!\n try { \n resultMatrixCSV0.toString();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 12);\n resultMatrixCSV0.doubleToString((-1649.242085), 0);\n resultMatrixCSV0.clearSummary();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 0);\n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.toArray();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public void testContainsEdgeEdge( ) {\n init( );\n\n //TODO Implement containsEdge().\n }", "public static int[][] getEdgeMatrix() {\n\t\treturn edge;\n\t}", "@Test(timeout = 4000)\n public void test148() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.setRowNameWidth(97);\n resultMatrixPlainText0.m_ColNameWidth = 97;\n resultMatrixPlainText0.getDefaultEnumerateColNames();\n resultMatrixPlainText0.setColNameWidth((-4324));\n resultMatrixPlainText0.isRowName((-4324));\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixPlainText0);\n resultMatrixGnuPlot0.m_MeanWidth = (-4324);\n resultMatrixGnuPlot0.padString(\"(\", 158, false);\n resultMatrixPlainText0.setEnumerateRowNames(false);\n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\n public void testSetMatrixColumn() {\n final Matrix33d mBase = getMatrix();\n final Matrix33d m = getMatrix();\n final Vector3d v = new Vector3d(D10, D11, D12);\n\n m.setMatrixColumn(v, 1);\n for (int i = 0; i < m.getA().length; i++) {\n if (i > 2 && i < 6) {\n // compare the row set to the vector values\n int vectorIndex = i - 3;\n assertEquals(m.getA()[i], v.a[vectorIndex]);\n } else {\n assertEquals(m.getA()[i], mBase.getA()[i]);\n }\n }\n }", "public static void makeMatrix()\n {\n\n n = Graph.getN();\n m = Graph.getM();\n e = Graph.getE();\n\n connectMatrix = new int[n][n];\n\n // sets the row of value u and the column of value v to 1 (this means they are connected) and vice versa\n // vertices are not considered to be connected to themselves.\n for(int i = 0; i < m;i++)\n {\n connectMatrix[e[i].u-1][e[i].v-1] = 1;\n connectMatrix[e[i].v-1][e[i].u-1] = 1;\n }\n }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.assign(resultMatrixLatex0);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[1][5];\n int[] intArray1 = new int[1];\n intArray1[0] = 2;\n intArray0[0] = intArray1;\n resultMatrixGnuPlot0.setRanking(intArray0);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, intArray0.length);\n \n resultMatrixGnuPlot0.setSize(26, 45);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(45, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(26, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(45, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(26, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixGnuPlot0.setRowName(2186, \")\");\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(45, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(26, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(45, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(26, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n }", "@Test(timeout = 4000)\n public void test180() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.clearRanking();\n int int0 = 2365;\n resultMatrixSignificance0.doubleToString(63.65294946501, 2365);\n resultMatrixSignificance0.clearHeader();\n int[][] intArray0 = new int[1][8];\n int[] intArray1 = new int[5];\n intArray1[0] = 2;\n intArray1[1] = 2365;\n intArray1[2] = 1;\n intArray1[3] = 0;\n intArray1[4] = 2365;\n intArray0[0] = intArray1;\n // Undeclared exception!\n try { \n resultMatrixSignificance0.setRanking(intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }" ]
[ "0.74727786", "0.6802758", "0.6377177", "0.63236064", "0.6295914", "0.6254952", "0.59058565", "0.5837329", "0.578344", "0.5663606", "0.5662106", "0.5554519", "0.5518915", "0.55003184", "0.5493777", "0.54734564", "0.5458123", "0.5455343", "0.5444406", "0.5441309", "0.542118", "0.5417183", "0.54129195", "0.5403527", "0.54007065", "0.5393784", "0.53910494", "0.5380232", "0.53786033", "0.5353509", "0.53465945", "0.5334561", "0.53293353", "0.53253275", "0.5314389", "0.529923", "0.5288484", "0.5278305", "0.5277175", "0.52764785", "0.5275632", "0.52713984", "0.5271322", "0.52617294", "0.52489597", "0.5244735", "0.5224901", "0.5218376", "0.52145785", "0.5214107", "0.52035", "0.51932883", "0.51837254", "0.51791173", "0.5165804", "0.51371956", "0.51308185", "0.5124688", "0.5124509", "0.5121013", "0.51138616", "0.51119083", "0.5111342", "0.5105752", "0.50855124", "0.5083119", "0.507666", "0.5057736", "0.50576156", "0.5056074", "0.5050404", "0.5024765", "0.5017462", "0.50152713", "0.50009143", "0.49994755", "0.49930713", "0.4983812", "0.49772948", "0.49731988", "0.4972915", "0.4972708", "0.49535984", "0.4946853", "0.49343365", "0.49263424", "0.49249688", "0.4906017", "0.49038798", "0.48967573", "0.48935294", "0.48930082", "0.48807275", "0.48750964", "0.48733693", "0.48681778", "0.4865993", "0.4856692", "0.4856518", "0.48513228" ]
0.87055343
0
Test of getweightmatrix method, of class connection.
@Test public void testGetweightmatrix() { System.out.println("getweightmatrix"); connection instance = new connection(); double[][] expResult = null; double[][] result = instance.getweightmatrix(); assertArrayEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Matrix getWeight() {\n return weights;\n }", "@Test\r\n public void testPutweight() throws Exception {\r\n System.out.println(\"putweight\");\r\n double[][] weightvector = null;\r\n String[] name = null;\r\n int[] faceid = null;\r\n connection instance = new connection();\r\n instance.putweight(weightvector, name, faceid);\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\tpublic void testGetWeight() {\n\t\tEdge edge1 = new Edge(\"a\", \"b\", 1);\n\t\tEdge edge2 = new Edge(\"b\", \"c\", 2);\n\t\tEdge edge3 = new Edge(\"c\", \"a\", 3);\n\t\tassertEquals(1, edge1.getWeight());\n\t\tassertEquals(2, edge2.getWeight());\n\t\tassertEquals(3, edge3.getWeight());\n\t}", "public void testGetWeight()\n {\n this.testSetWeight();\n }", "@Test\r\n public void testGetaveragematrix() {\r\n System.out.println(\"getaveragematrix\");\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.getaveragematrix();\r\n assertArrayEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public int weight(int i,int j){\r\n\t\treturn matrix[i][j];\r\n\t}", "public double[][] getWtMatrix() {\n return this.weightMatrix;\n }", "@Override\n\t\tpublic int get_weights() {\n\t\t\treturn weight;\n\t\t}", "@Test\n public void graphfromBoggleBoard_mn() {\n Graph testgraph = new AdjacencyMatrixGraph();\n BoggleBoard board = new BoggleBoard(20,20);\n Permeate.boggleGraph(board, testgraph);\n /*System.out.println(testgraph.getVertices());\n for (Vertex vertex : testgraph.getVertices()) {\n System.out.println(vertex + \": \" + testgraph.getNeighbors(vertex));\n }*/\n }", "@Test\r\n public void testGeteigenmatrix() {\r\n System.out.println(\"geteigenmatrix\");\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.geteigenmatrix();\r\n assertArrayEquals(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 \r\n public void testGetWeight()\r\n {\r\n assertEquals(1.0, seed.getWeight(), 0.01);\r\n }", "public int weight ();", "int getWeight();", "int getWeight();", "abstract Double getWeight(int i, int j);", "public int getWeight();", "public Weight getWeight();", "public void testSetWeight()\n {\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>();\n assertEquals(WeightedKernel.DEFAULT_WEIGHT, instance.getWeight());\n \n double weight = RANDOM.nextDouble();\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 0.0;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 4.7;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n boolean exceptionThrown = false;\n try\n {\n instance.setWeight(-1.0);\n }\n catch ( IllegalArgumentException ex )\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n \n }", "public void initWeights(){\n setNextLayer(network.getNextLayer(layerNumber));\n //determine the number of neurons in the next layer\n int neuronNextLayer = next.neuronCount;\n //create arrays for backpopagation learning\n createArr();\n //set the weightThreshold\n weightThreshold = new double[neuronCount+1][neuronNextLayer];\n //System.out.println(\"weightThreshold row:\"+weightThreshold.length+\" col:\"+weightThreshold[0].length);\n //randomize all the elements. range is between -.5 and .5\n for(int i=0; i<weightThreshold.length; i++){\n for(int j=0; j<weightThreshold[i].length; j++){\n weightThreshold[i][j] = getRandomNumber();\n }\n }\n }", "@Test\r\n public void testGetWeight() {\r\n System.out.println(\"getWeight\");\r\n int weight = 0;\r\n Polygon instance = new Polygon();\r\n instance.setWeight(weight);\r\n int expResult = weight;\r\n int result = instance.getWeight();\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testIsRateMatrix()\n {\n IDoubleArray K = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean expResult = false;\n boolean result = instance.isRateMatrix(K);\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(timeout = 4000)\n public void test09() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl1 = new ExpressionMatrixImpl();\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl1.toString();\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.creatMatrix(1);\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl2 = new ExpressionMatrixImpl();\n expressionMatrixImpl2.addNewNode();\n expressionMatrixImpl0.setValue(1, 0, 1254);\n expressionMatrixImpl2.toString();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n }", "public WeightedAdjMatGraph(){\n this.edges = new int[DEFAULT_CAPACITY][DEFAULT_CAPACITY];\n this.n = 0;\n this.vertices = (T[])(new Object[DEFAULT_CAPACITY]);\n }", "public int weight(){\n\t\treturn this.weight;\n\t}", "public int weight() {\n \treturn weight;\n }", "public Weight[] getWeights() {\n return weights;\n }", "int Weight();", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "public abstract double getWeight ();", "public int getWeight()\n {\n return weight;\n }", "@Test\n void testIsConnected(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,50);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(ga.isConnected());\n g.removeEdge(7,4);\n g.removeEdge(6,4);\n g.removeEdge(3,4);\n assertFalse(ga.isConnected());\n }", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.creatMatrix((-2456));\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n assertEquals((-2456), expressionMatrixImpl0.getNumberOfElements());\n }", "public int getWeight()\r\n\t{\r\n\t\treturn edgeWeight;\t\t\r\n\t}", "public void updateWeights() {\n\t\t\n\t}", "public int getWeight() {\n return this.weight;\n }", "@Override\n\tpublic double getInternalWeight(int nodeIndex) {\n\t\treturn this.inWeights[nodeIndex];\n\t}", "int getSize(){\n return this.matrixSize;\n }", "public int getWeight(){\n \treturn weight;\n }", "double getWeight(int node) {\n\n return this.neighbors.get(node);\n }", "public int getWeight() {\n\t\treturn _weight;\n\t}", "abstract void setWeight(int i, int j, Double weight);", "public int getWeight(){\n\t\treturn weight;\n\t}", "@Override\n public double solutionWeight(){\n return solutionweight;\n }", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight()\r\n {\r\n return this.weightCapacity;\r\n }", "public int getWeight() {\n return weight;\n }", "public int getWeight()\n\t{\n\t\treturn this.weight;\n\t}", "public double getWeight(){\n return weight;\n }", "public double getWeight(){\n\t\treturn weight;\n\t}", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}", "public int length() {\n return this.weightMatrix.length;\n }", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "public double getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n MessageTracerImpl messageTracerImpl1 = new MessageTracerImpl();\n messageTracerImpl0.getMapper();\n ExpressionMatrixImpl expressionMatrixImpl1 = new ExpressionMatrixImpl();\n expressionMatrixImpl1.getNumberOfElements();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 47, 0);\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(1986, expressionMatrixImpl0.getNumberOfElements());\n }", "public int getWeight() {\n return weight;\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(841);\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 0, 841);\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(841, expressionMatrixImpl0.getNumberOfElements());\n }", "private void toListWeighted(int[][] matrix) {\r\n\t\tfor (int i = 0; i < this.getNbNodes(); i++) {\r\n\t\t\tint[] neighbor = this.getNeighbors(i);\r\n\t\t\tthis.listWeighted[i] = new int[neighbor.length];\r\n\t\t\tfor (int j = 0; j < neighbor.length; j++) {\r\n\t\t\t\tthis.listWeighted[i][j] = matrix[i][neighbor[j]];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public double getWeight() {\n\t\treturn weight; \n\t\t}", "public int getWeight(){\n\t\treturn this.edgeWeight;\n\t}", "public int getWeight() {\r\n\t\treturn this.weight;\r\n\t}", "public float getWeight();", "public final void initializeWeights(String rowMatrix){\n\t\ttry {\n\t\t\tBufferedReader matrixReader = new BufferedReader(new FileReader(rowMatrix));\n\t\n\t\t\tString firstLine = matrixReader.readLine(); // get first line\n\t\t\tmatrixReader.close();\n\t\t\n\t\t\tString[] sizes = firstLine.split(\"\\\\s+\");\n\t\t\t\n\t\t\tint columnCount = Integer.parseInt(sizes[1]); \n\t\n\t\t\tweights = new double[columnCount]; \n\t\t\tfor(int i = 0; i < weights.length; i++){\n\t\t\t\tweights[i] = 1;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.warning(e.getMessage());\n\t\t}\n\t}", "public boolean getMatrixCheck(){\r\n \treturn this.matrixCheck;\r\n \t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "@Override\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}", "public Integer getWeight() {\n return weight;\n }", "public double getWeight() {\n\t\treturn weight;\n\t}", "@Override\n public double getWeight() {\n return this.weight;\n }", "public void setWeights(float[][] w) {\n _w2D = w;\n _weights = true;\n }", "@Test\n public void testGetMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(0, 0), -10.615, 0.001);\n assertEquals(reader.getMatrix().get(9, 1), 10.148, 0.001);\n }", "public Byte getWeight() {\n\t\treturn weight;\n\t}", "@Test\r\n public void testSetWeight() {\r\n System.out.println(\"setWeight\");\r\n int weight = 0;\r\n Polygon instance = new Polygon();\r\n instance.setWeight(weight);\r\n int expResult = weight;\r\n int result = instance.getWeight();\r\n assertEquals(expResult, result);\r\n }", "public void printWeight(){\n\t\tSystem.out.printf(\"Cell [%d][%d] weight = %d\\n\",position[0],\n\t\t\t\tposition[1],weight);\n\t}", "public double getWeight() {\n \treturn this.trainWeight;\n }", "NetWeightMeasureType getNetWeightMeasure();", "@Test\r\n\tpublic void testAdjacency11() {\r\n\t\tBoardCell cell = board.getCell(1, 1);\r\n\t\tSet<BoardCell> testList = board.getAdjList(cell);\r\n\t\tassertTrue(testList != null);\r\n\t\tassertTrue(testList.contains(board.getCell(0, 1)));\r\n\t\tassertTrue(testList.contains(board.getCell(1, 0)));\r\n\t\tassertTrue(testList.contains(board.getCell(1, 2)));\r\n\t\tassertTrue(testList.contains(board.getCell(2, 1)));\r\n\t\tassertEquals(4, testList.size());\r\n\t}", "@Test\n\tpublic void testGetWeights() throws GeoTessException, IOException\n\t{\n\t\tdouble[] u = VectorGeo.getVectorDegrees(20., 90.);\n\n\t\t// construct raypth: unit vectors and radii.\n\t\tArrayList<double[]> v = new ArrayList<double[]>();\n\n\t\t// add a bunch of points along a great circle path at \n\t\t// a constant radius.\n\t\tv.clear();\n\t\tdouble[][] gc = VectorUnit.getGreatCircle(u, Math.PI/2);\n\n\t\tdouble angle = PI/6;\n\t\tdouble radius = 5350;\n\t\tint n = 100;\n\t\t\n\t\tdouble[] r = new double[n];\n\t\tArrays.fill(r, radius);\n\n\t\tdouble len = angle /(n-1.);\n\t\tfor (int i=0; i<n; ++i)\n\t\t\tv.add(VectorUnit.getGreatCirclePoint(gc, i* len));\n\n\t\t// get weights from the model.\n\t\tHashMap<Integer, Double> w = new HashMap<Integer, Double>(2*n);\n\t\t\t\t\n\t\tmodel.getWeights(v, r, null, InterpolatorType.LINEAR, InterpolatorType.LINEAR, w);\n\n\t\tdouble sum=0;\n\t\tfor (Map.Entry<Integer, Double> e : w.entrySet())\n\t\t\tsum += e.getValue();\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\t// print out the weights, the locations of the points.\n\t\tbuf.append(\"\\nPt Index weight layer lat lon depth\\n\");\n\t\tfor (Map.Entry<Integer, Double> e : w.entrySet())\n\t\t\tbuf.append(String.format(\"%6d %10.4f %3d %s%n\", e.getKey(), e.getValue(), \n\t\t\t\t\tmodel.getPointMap().getLayerIndex(e.getKey()),\n\t\t\t\t\tmodel.getPointMap().toString(e.getKey())));\n\n\t\t// compute the length of the great circle path in km.\n\t\tbuf.append(String.format(\"%nActual length of great circle path = %1.4f km%n%n\", angle*radius));\n\n\t\t// sum of the weights should equal length of great circle path.\n\t\tbuf.append(String.format(\"Size = %d Sum weights = %1.4f km%n\", w.size(), sum));\n\n\t\tassertEquals(buf.toString(), sum, angle*radius, 0.01);\n\n\t}", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(809);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(0, 2, 809);\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n int int0 = expressionMatrixImpl0.addNewNode();\n assertEquals(809, expressionMatrixImpl0.getNumberOfElements());\n assertEquals(1, int0);\n }", "public float getWeight() {\n return weight;\n }", "public int getWeight()\n {\n return this.aWeight;\n\n }", "@Test\r\n public void testAssignWeight() {\r\n System.out.println(\"assignWeight\");\r\n double notExpResult = 0.0;\r\n double result = weightAssignment.assignWeight();\r\n assertNotEquals(result, notExpResult, 0.0);\r\n }", "public double getWeight()\r\n {\r\n return this.aWeight ;\r\n }", "public double getWeight() {\n return 0;\n }", "@Test\n public void testPrintMatrix() {\n System.out.println(\"printMatrix\");\n Matrix matrix = null;\n utilsHill.printMatrix(matrix);\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 testConstructor() {\n final Matrix33d m = new Matrix33d();\n double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n assertEquals(a[i], 0D);\n }\n }", "@Override\n public void testIfConnected() {\n }", "@Override\r\n\tpublic double Weight() {\n\t\treturn Weight;\r\n\t}", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.creatMatrix(2632);\n expressionMatrixImpl0.setValue(0, 0, 0);\n expressionMatrixImpl0.setValue(0, 110, 0);\n assertEquals(2632, expressionMatrixImpl0.getNumberOfElements());\n }", "NetNetWeightMeasureType getNetNetWeightMeasure();", "public boolean isWeighted();", "public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.creatMatrix(4622);\n expressionMatrixImpl0.toString();\n assertEquals(4622, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test\n public void testConnected() {\n System.out.println(\"**** connected *****\");\n int v = 9;\n int w = 12;\n ConnectedComponentsDepthSearch instance = new ConnectedComponentsDepthSearch(g);\n boolean expResult = true;\n boolean result = instance.connected(v, w);\n assertEquals(expResult, result);\n }" ]
[ "0.6622749", "0.63896894", "0.6154587", "0.607691", "0.60005665", "0.5888386", "0.58277076", "0.57597816", "0.5757035", "0.5650635", "0.5638218", "0.5598223", "0.5584324", "0.5584324", "0.55595255", "0.55329424", "0.5528766", "0.5517054", "0.54902023", "0.54625565", "0.54531646", "0.5449346", "0.5444324", "0.54354495", "0.54288733", "0.5422075", "0.5421998", "0.53938514", "0.53938514", "0.53733224", "0.5364859", "0.5361827", "0.5352005", "0.5343944", "0.5326911", "0.5322879", "0.5319867", "0.53164244", "0.5315512", "0.5314931", "0.53025", "0.5299728", "0.5296336", "0.52961123", "0.529541", "0.5294949", "0.5294949", "0.5288774", "0.52863735", "0.52849215", "0.5280072", "0.5277345", "0.52677214", "0.52677214", "0.5267688", "0.5265218", "0.5261626", "0.52537864", "0.52537864", "0.5249503", "0.52478915", "0.5246103", "0.52456754", "0.5245625", "0.52347875", "0.5232984", "0.52142525", "0.5213415", "0.52070993", "0.5192293", "0.5192293", "0.51919436", "0.51819134", "0.5171106", "0.5170446", "0.5166092", "0.5163261", "0.5152373", "0.51427585", "0.51407623", "0.5139199", "0.51295185", "0.5128326", "0.51213354", "0.5114564", "0.51050615", "0.5098017", "0.5097989", "0.50908315", "0.5088008", "0.5076483", "0.5074085", "0.50662047", "0.50657713", "0.5063533", "0.5061642", "0.50548995", "0.50504833", "0.5048519", "0.50417775" ]
0.85474336
0
Test of getaveragematrix method, of class connection.
@Test public void testGetaveragematrix() { System.out.println("getaveragematrix"); connection instance = new connection(); double[][] expResult = null; double[][] result = instance.getaveragematrix(); assertArrayEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPutaverage() throws Exception {\r\n System.out.println(\"putaverage\");\r\n double[][] average = null;\r\n connection instance = new connection();\r\n instance.putaverage(average);\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\r\n public void testGetweightmatrix() {\r\n System.out.println(\"getweightmatrix\");\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.getweightmatrix();\r\n assertArrayEquals(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\r\n public void testGeteigenmatrix() {\r\n System.out.println(\"geteigenmatrix\");\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.geteigenmatrix();\r\n assertArrayEquals(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\r\n public void testGetAverage() {\r\n System.out.println(\"getAverage\");\r\n Student instance = new Student();\r\n double expResult = 0.0;\r\n double result = instance.getAverage();\r\n assertEquals(expResult, result, 0.0);\r\n \r\n }", "@Test\r\n public void testGetdiffarrange() throws Exception {\r\n System.out.println(\"getdiffarrange\");\r\n double[][] average = null;\r\n connection instance = new connection();\r\n double[][] expResult = null;\r\n double[][] result = instance.getdiffarrange(average);\r\n assertArrayEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public static double Average(int[][] matrix){\n double total = 0;\n double promedio =0;\n double divisor = 0;\n \n for(int i=0; i<matrix.length; i++){\n for (int j=0;j<matrix[i].length;j++ ) {\n \n total += matrix[i][j];\n } \n divisor = matrix[i].length * matrix.length; \n promedio = total / divisor; \n }\n \n return promedio;\n }", "@Test(expected = ArraySizeNotEqualsException.class)\r\n\r\n public void avgExceptions() throws ArraySizeNotEqualsException {\r\n System.out.println(\"AverageExceptions\");\r\n assertEquals(7.5, Jednostkowe.wAvg(new double[]{0, 15}, new double[]{2}), 0.0);\r\n }", "@Test\n public void testGetA() {\n final double expected[] = {D1, D2, D3, D4, D5, D6, D7, D8, D9};\n final double a[] = getMatrix().getA();\n for (int i = 0; i < a.length; i++) {\n assertEquals(a[i], expected[i]);\n }\n }", "protected abstract NDArray[] onMatrix(NDArray matrix);", "public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }", "@Test\n public void testGetMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(0, 0), -10.615, 0.001);\n assertEquals(reader.getMatrix().get(9, 1), 10.148, 0.001);\n }", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 12);\n resultMatrixCSV0.doubleToString((-1649.242085), 0);\n resultMatrixCSV0.clearSummary();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 0);\n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.toArray();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "double average();", "@Test\n public void testSetA() {\n final double expected[] = getMatrix().getA();\n final Matrix33d m = new Matrix33d();\n m.setA(Arrays.copyOf(expected, expected.length));\n for (int i = 0; i < expected.length; i++) {\n assertEquals(m.getA()[i], expected[i]);\n }\n }", "@Test(timeout = 4000)\n public void test169() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 0);\n int[] intArray0 = new int[3];\n intArray0[1] = 0;\n intArray0[2] = 0;\n resultMatrixSignificance0.setColOrder(intArray0);\n resultMatrixSignificance0.getRevision();\n resultMatrixSignificance0.getAverage(1785);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader(\" \");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test\n public void testConstructor() {\n final Matrix33d m = new Matrix33d();\n double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n assertEquals(a[i], 0D);\n }\n }", "@Test\n public void testGetInversa() {\n System.out.println(\"getInversa\");\n double[][] mat = new double[][] {{120,111,721},{770,110,121},{115,417,221}};\n\n// double[][] mat = new double[][]{{476,555,678},{250,345,455},{551,145,725}};\n// double[][] mat = new double[][]{{478,592,327},{295,712,592},{674,417,556}};\n// double[][] mat = new double[][]{{130,150,121},{245,580,756},{567,445,624}};\n// double[][] mat = new double[][]{{553,721,317},{454,315,699},{640,755,418}};\n// double[][] mat = new double[][]{{338,687,437},{445,132,647},{523,459,147}};\n Matrix matrix = new Matrix(mat);\n Matrix expResult = null;\n Matrix result = utilsHill.getInversa(matrix);\n utilsHill.printMatrix(result);\n assertEquals(expResult, result);\n }", "public double[] compute(Matrix matrix, double[] mean) {\r\n \tThrow.when().isNull(() -> matrix, () -> \"No matrix to compute.\");\r\n if(matrix.getRowCount() == 0){\r\n return new double[0];\r\n }\r\n \r\n double[] var = this.serial(matrix, 0, matrix.getRowCount(), mean);\r\n for(int i = 0; i < var.length; i++){\r\n var[i] /= matrix.getRowCount();\r\n }\r\n return var;\r\n }", "@Test(timeout = 4000)\n public void test186() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 0);\n resultMatrixLatex0.getDefaultPrintRowNames();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot1.setShowAverage(false);\n String[][] stringArray0 = new String[4][2];\n String[] stringArray1 = new String[2];\n stringArray1[0] = \")\";\n stringArray1[1] = \"*\";\n stringArray0[0] = stringArray1;\n String[] stringArray2 = new String[0];\n stringArray0[1] = stringArray2;\n String[] stringArray3 = new String[5];\n stringArray3[0] = \"$\\bullet$\";\n stringArray3[1] = \"\";\n stringArray3[2] = \")\";\n stringArray3[3] = \"v\";\n stringArray3[4] = \"*\";\n stringArray0[2] = stringArray3;\n String[] stringArray4 = new String[13];\n stringArray4[0] = \")\";\n stringArray4[1] = \"$\\bullet$\";\n stringArray4[2] = \"(\";\n stringArray4[3] = \"*\";\n stringArray4[4] = \" \";\n stringArray4[5] = \")\";\n stringArray4[6] = \"(\";\n stringArray4[7] = \" \";\n stringArray4[8] = \"$\\bullet$\";\n stringArray0[3] = stringArray4;\n // Undeclared exception!\n try { \n resultMatrixGnuPlot1.getColSize(stringArray0, 0, true, true);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test191() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n intArray0[4] = intArray4;\n int[] intArray5 = new int[3];\n intArray5[1] = 1;\n resultMatrixGnuPlot0.setShowAverage(false);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n // Undeclared exception!\n try { \n resultMatrixGnuPlot1.getColSize((String[][]) null, 0, false, true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public Matrix calculate();", "public void getAvg()\n {\n this.avg = sum/intData.length;\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertNotNull(resultMatrixLatex0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.setSignificanceWidth(0);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.assign(resultMatrixLatex0);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader(\" \");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test142() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n boolean boolean0 = resultMatrixSignificance1.isAverage(120);\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(boolean0);\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n }", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixLatex0.setStdDevPrec(0);\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixLatex0.setMean((-3113), (-2645), (-2645));\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixLatex0.WIN_STRING = \"*\";\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n \n resultMatrixHTML0.setPrintRowNames(true);\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n // Undeclared exception!\n try { \n resultMatrixHTML0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public BigDecimal getRows_examined_avg() {\n return rows_examined_avg;\n }", "@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }", "public MatOfDouble getMean()\r\n {\r\n \r\n MatOfDouble retVal = MatOfDouble.fromNativeAddr(getMean_0(nativeObj));\r\n \r\n return retVal;\r\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.getValue(1, 1);\n }", "@Test(timeout = 4000)\n public void test130() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 0);\n int[] intArray0 = new int[0];\n resultMatrixCSV0.setRowOrder(intArray0);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setMeanPrec(0);\n resultMatrixHTML0.setPrintRowNames(true);\n resultMatrixCSV0.isMean((-791));\n ResultMatrixPlainText resultMatrixPlainText0 = null;\n try {\n resultMatrixPlainText0 = new ResultMatrixPlainText(364, (-791));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\r\n\tpublic void driverAvgMinMaxStdMuseumsPerDirector() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgMinMaxStdMuseumsPerDirector((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test155() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n resultMatrixCSV1.removeFilterName(\"\");\n // Undeclared exception!\n try { \n resultMatrixCSV1.setRanking((int[][]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\n public void testModuloMatriz_doubleArrArr() {\n System.out.println(\"moduloMatriz\");\n double[][] array = null;\n double[][] expResult = null;\n double[][] result = utilsHill.moduloMatriz(array);\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(timeout = 4000)\n public void test015() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[] intArray0 = new int[7];\n intArray0[0] = 0;\n intArray0[1] = 1;\n intArray0[2] = 952;\n intArray0[3] = 2;\n intArray0[4] = 1;\n intArray0[5] = 1;\n intArray0[6] = 0;\n resultMatrixSignificance0.setColOrder(intArray0);\n assertArrayEquals(new int[] {0, 1, 952, 2, 1, 1, 0}, intArray0);\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(7, intArray0.length);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixGnuPlot0.getRevision();\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n double double0 = resultMatrixGnuPlot0.getMean(2, 2);\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixGnuPlot1.getRowNameWidth());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot1.getRowName(2);\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixGnuPlot1.getRowNameWidth());\n assertNull(string1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n int int0 = resultMatrixGnuPlot0.getDefaultColNameWidth();\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(50, int0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n \n resultMatrixGnuPlot0.setRowHidden(0, false);\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultShowStdDev();\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n \n String string2 = resultMatrixGnuPlot0.toStringRanking();\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotNull(string2);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"-ranking data not set-\", string2);\n assertFalse(string2.equals((Object)string0));\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int int1 = resultMatrixPlainText0.getDisplayRow(44);\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals((-1), int1);\n assertFalse(int1 == int0);\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[0];\n // Undeclared exception!\n try { \n evaluation0.updateNumericScores(doubleArray0, doubleArray0, (-3363.03107));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[] intArray0 = new int[4];\n intArray0[0] = 0;\n resultMatrixPlainText0.m_SignificanceWidth = 1;\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n \n resultMatrixSignificance0.setColOrder(intArray0);\n assertArrayEquals(new int[] {0, 0, 0, 0}, intArray0);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(4, intArray0.length);\n \n String string0 = resultMatrixPlainText0.rowNameWidthTipText();\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", string0);\n \n int int0 = resultMatrixPlainText0.getDefaultCountWidth();\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(5, int0);\n \n String string1 = resultMatrixPlainText0.toString();\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Dataset (1) col0 \\n-----------------------------------\\nrow0 (0) |\\n-----------------------------------\\n(v/ /*) |\\n\", string1);\n assertFalse(string1.equals((Object)string0));\n \n ResultMatrixHTML resultMatrixHTML0 = null;\n try {\n resultMatrixHTML0 = new ResultMatrixHTML(1, (-62));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public double getAverage() {\n return this.average;\n }", "@Test(timeout = 4000)\n public void test183() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.toStringMatrix();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.globalInfo();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n resultMatrixCSV1.setCountWidth(2);\n resultMatrixCSV1.setSignificanceWidth((-259));\n resultMatrixCSV1.setShowAverage(true);\n resultMatrixCSV0.toStringKey();\n resultMatrixCSV1.clear();\n resultMatrixPlainText0.meanPrecTipText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixCSV0);\n resultMatrixLatex0.toStringMatrix();\n resultMatrixCSV0.getColOrder();\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n resultMatrixLatex1.getDefaultPrintColNames();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixPlainText0);\n resultMatrixSignificance0.toStringRanking();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n resultMatrixSignificance1.globalInfo();\n resultMatrixLatex1.getDefaultMeanPrec();\n ResultMatrixHTML resultMatrixHTML0 = null;\n try {\n resultMatrixHTML0 = new ResultMatrixHTML(1, (-1056));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixCSV0);\n resultMatrixCSV0.setPrintColNames(true);\n resultMatrixCSV0.TIE_STRING = \" \";\n resultMatrixCSV0.m_RowNameWidth = 2;\n resultMatrixPlainText0.padString(\"A7'@51RZ\", 45);\n resultMatrixPlainText0.meanWidthTipText();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixCSV0);\n resultMatrixHTML0.LEFT_PARENTHESES = \"\";\n resultMatrixHTML0.getDefaultEnumerateColNames();\n resultMatrixCSV0.globalInfo();\n resultMatrixPlainText0.showStdDevTipText();\n resultMatrixPlainText0.setMeanWidth(2);\n resultMatrixHTML0.getRemoveFilterName();\n int int0 = 0;\n resultMatrixPlainText0.getRowName(0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 0);\n resultMatrixLatex0.setMeanWidth(45);\n resultMatrixLatex0.m_ShowAverage = true;\n resultMatrixHTML0.listOptions();\n resultMatrixLatex0.globalInfo();\n resultMatrixLatex0.stdDevPrecTipText();\n resultMatrixLatex0.setSize(0, 1);\n resultMatrixCSV0.toStringRanking();\n resultMatrixCSV0.clearRanking();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 1);\n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.toString();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\r\n\tpublic void driverAvgMinMaxStdDayPassesPerMuseum() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgMinMaxStdDayPassesPerMuseum((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(1, 1);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int int0 = 1204;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1, 1204);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(1204, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(1204, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixPlainText0.addHeader(\"}\\\\\\nhline\\n\", \"]\");\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixCSV0.toStringKey();\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(1204, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(1204, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Key,\\n[1],col0\\n\", string0);\n \n // Undeclared exception!\n resultMatrixCSV0.toStringMatrix();\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixSignificance0.assign(resultMatrixLatex0);\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(11, 0);\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(11, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(11, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n double double0 = resultMatrixGnuPlot0.getMean(1, 48);\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(11, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(11, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \"*\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"$circ$\";\n ResultMatrixGnuPlot.main(stringArray0);\n assertEquals(3, stringArray0.length);\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(11, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(11, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(50, resultMatrixLatex1.getRowNameWidth());\n assertEquals(11, resultMatrixLatex1.getVisibleColCount());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex1.getRowCount());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex1.getVisibleRowCount());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertTrue(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(11, resultMatrixLatex1.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertNotNull(resultMatrixLatex1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex(26, 28);\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertEquals(28, resultMatrixLatex2.getRowCount());\n assertEquals(26, resultMatrixLatex2.getVisibleColCount());\n assertEquals(26, resultMatrixLatex2.getColCount());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(28, resultMatrixLatex2.getVisibleRowCount());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertNotNull(resultMatrixLatex2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex1));\n \n // Undeclared exception!\n try { \n resultMatrixLatex2.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[] intArray0 = new int[5];\n intArray0[0] = 1;\n intArray0[1] = 2;\n intArray0[2] = 0;\n String string0 = resultMatrixCSV0.toStringKey();\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Key,\\n[1],col0\\n\", string0);\n \n String string1 = resultMatrixCSV0.toStringMatrix();\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertNotNull(string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Dataset,[1]\\nrow0,''\\n'[v/ /*]',''\\n\", string1);\n assertFalse(string1.equals((Object)string0));\n \n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertNotNull(resultMatrixCSV1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n String string2 = resultMatrixCSV1.toStringRanking();\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertNotNull(string2);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"-ranking data not set-\", string2);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n resultMatrixCSV1.setColName(0, \"v\");\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(30, 239);\n }", "@Override\n\tvoid averageDistance() {\n\t\t\n\t}", "double getAvgControl();", "@Test\n public void testPrintMatrix() {\n System.out.println(\"printMatrix\");\n Matrix matrix = null;\n utilsHill.printMatrix(matrix);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n // Undeclared exception!\n try { \n evaluation0.fMeasure(32);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 32\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public double average()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tdouble sum = this.sum();\n\t\t\treturn sum / arraySize;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\t}", "@Override\n public Double average() {\n return (sum() / (double) count());\n }", "public double getAverage(){\n return getTotal()/array.length;\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[] intArray0 = new int[1];\n intArray0[0] = 1;\n resultMatrixLatex0.setRowOrder(intArray0);\n assertArrayEquals(new int[] {1}, intArray0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, intArray0.length);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(1, 1);\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.m_StdDevPrec = 1;\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n \n int int0 = resultMatrixPlainText0.getDefaultCountWidth();\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(5, int0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixGnuPlot0.toStringMatrix();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"\\n##################\\n# file: plot.dat #\\n##################\\n# generated by WEKA 3.7.7\\n# contains the data for the plot\\n\\n# key for the x-axis\\n# 1 - row0\\n\\n# data for the plot\\n1 ''\\n#######\\n# end #\\n#######\\n\\n##################\\n# file: plot.scr #\\n##################\\n# generated by WEKA 3.7.7\\n# script to plot the data\\n\\n# display it in a window:\\nset terminal x11\\nset output\\n\\n# to display all data rows:\\nset xrange [0:2]\\n\\n# axis labels, e.g.:\\n#set xlabel \\\"Datasets\\\"\\n#set ylabel \\\"Accuracy in %\\\"\\n\\n# the plot commands\\nplot \\\"plot.dat\\\" using 1:2 with lines title \\\"(1)\\\"\\n\\n# generate ps:\\n#set terminal postscript\\n#set output \\\"plot.ps\\\"\\n#replot\\n\\n# generate png:\\n#set terminal png size 800,600\\n#set output \\\"plot.png\\\"\\n#replot\\n\\n# wait for user to hit <Return>\\npause -1\\n#######\\n# end #\\n#######\\n\", string0);\n \n resultMatrixLatex0.m_ColOrder = intArray0;\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1, 1);\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixCSV0.m_EnumerateRowNames = true;\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n \n resultMatrixCSV0.clearHeader();\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixGnuPlot0.assign(resultMatrixCSV0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixGnuPlot0.setCountWidth(661);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string1 = resultMatrixGnuPlot0.toStringSummary();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-summary data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n int int1 = resultMatrixGnuPlot0.getStdDevWidth();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, int1);\n assertFalse(int1 == int0);\n \n String string2 = resultMatrixLatex0.trimString(\"\", 2);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertNotNull(string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"\", string2);\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(661, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setSize(2417, 1);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(661, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(2417, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2417, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string3 = resultMatrixHTML0.toStringRanking();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(661, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(2417, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2417, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(string3);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string3);\n assertFalse(string3.equals((Object)string1));\n assertFalse(string3.equals((Object)string0));\n assertFalse(string3.equals((Object)string2));\n \n String string4 = resultMatrixCSV0.countWidthTipText();\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertNotNull(string4);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", string4);\n assertFalse(string4.equals((Object)string2));\n assertFalse(string4.equals((Object)string0));\n assertFalse(string4.equals((Object)string1));\n assertFalse(string4.equals((Object)string3));\n \n String string5 = resultMatrixLatex0.globalInfo();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertNotNull(string5);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", string5);\n assertFalse(string5.equals((Object)string0));\n assertFalse(string5.equals((Object)string4));\n assertFalse(string5.equals((Object)string2));\n assertFalse(string5.equals((Object)string1));\n assertFalse(string5.equals((Object)string3));\n \n String[][] stringArray0 = new String[6][8];\n String[] stringArray1 = new String[6];\n stringArray1[0] = \"$circ$\";\n stringArray1[1] = \"]\";\n stringArray1[2] = \" \";\n stringArray1[3] = \"]\";\n stringArray1[4] = \"v\";\n stringArray1[5] = \"The width of the counts (0 = optimal).\";\n stringArray0[0] = stringArray1;\n String[] stringArray2 = new String[9];\n assertFalse(stringArray2.equals((Object)stringArray1));\n \n stringArray2[0] = \"v\";\n stringArray2[1] = \"*\";\n stringArray2[2] = \"[\";\n stringArray2[3] = \"-summary data not set-\";\n stringArray2[4] = \"Generates the matrix output in LaTeX-syntax.\";\n stringArray2[5] = \"(\";\n stringArray2[6] = \"(\";\n stringArray2[7] = \" \";\n stringArray2[8] = \" \";\n stringArray0[1] = stringArray2;\n String[] stringArray3 = new String[2];\n assertFalse(stringArray3.equals((Object)stringArray1));\n assertFalse(stringArray3.equals((Object)stringArray2));\n \n stringArray3[0] = \"[\";\n stringArray3[1] = \"[\";\n stringArray0[2] = stringArray3;\n String[] stringArray4 = new String[1];\n assertFalse(stringArray4.equals((Object)stringArray2));\n assertFalse(stringArray4.equals((Object)stringArray1));\n assertFalse(stringArray4.equals((Object)stringArray3));\n \n stringArray4[0] = \"\";\n stringArray0[3] = stringArray4;\n String[] stringArray5 = new String[6];\n assertFalse(stringArray5.equals((Object)stringArray2));\n assertFalse(stringArray5.equals((Object)stringArray1));\n assertFalse(stringArray5.equals((Object)stringArray4));\n assertFalse(stringArray5.equals((Object)stringArray3));\n \n stringArray5[0] = \"$circ$\";\n stringArray5[1] = \"\\n##################\\n# file: plot.dat #\\n##################\\n# generated by WEKA 3.7.7\\n# contains the data for the plot\\n\\n# key for the x-axis\\n# 1 - row0\\n\\n# data for the plot\\n1 ''\\n#######\\n# end #\\n#######\\n\\n##################\\n# file: plot.scr #\\n##################\\n# generated by WEKA 3.7.7\\n# script to plot the data\\n\\n# display it in a window:\\nset terminal x11\\nset output\\n\\n# to display all data rows:\\nset xrange [0:2]\\n\\n# axis labels, e.g.:\\n#set xlabel \\\"Datasets\\\"\\n#set ylabel \\\"Accuracy in %\\\"\\n\\n# the plot commands\\nplot \\\"plot.dat\\\" using 1:2 with lines title \\\"(1)\\\"\\n\\n# generate ps:\\n#set terminal postscript\\n#set output \\\"plot.ps\\\"\\n#replot\\n\\n# generate png:\\n#set terminal png size 800,600\\n#set output \\\"plot.png\\\"\\n#replot\\n\\n# wait for user to hit <Return>\\npause -1\\n#######\\n# end #\\n#######\\n\";\n stringArray5[2] = \"*\";\n stringArray5[3] = \" \";\n stringArray5[4] = \"$circ$\";\n stringArray5[5] = \" \";\n stringArray0[4] = stringArray5;\n String[] stringArray6 = new String[7];\n assertFalse(stringArray6.equals((Object)stringArray5));\n assertFalse(stringArray6.equals((Object)stringArray3));\n assertFalse(stringArray6.equals((Object)stringArray2));\n assertFalse(stringArray6.equals((Object)stringArray1));\n assertFalse(stringArray6.equals((Object)stringArray4));\n \n stringArray6[0] = \"]\";\n stringArray6[1] = \" \";\n stringArray6[2] = \"v\";\n stringArray6[3] = \"v\";\n stringArray6[4] = \" \";\n stringArray6[5] = \"$circ$\";\n stringArray6[6] = \"v\";\n stringArray0[5] = stringArray6;\n // Undeclared exception!\n try { \n resultMatrixLatex0.getColSize(stringArray0, 2, true, true);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[2][0];\n int[] intArray1 = new int[5];\n intArray1[0] = 1;\n intArray1[1] = 2;\n resultMatrixCSV0.m_ShowAverage = true;\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertTrue(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n \n intArray1[2] = 0;\n intArray1[3] = 1;\n intArray1[4] = 1;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[9];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 2;\n intArray2[1] = 2;\n intArray2[2] = 0;\n intArray2[3] = 682;\n intArray2[4] = 682;\n intArray2[5] = 0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n double double0 = resultMatrixSignificance0.getAverage(1);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n String string0 = resultMatrixSignificance0.getRowName(1389);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string1 = resultMatrixSignificance0.toStringMatrix();\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Dataset (1)\\n-----------\\nrow0 \\n\", string1);\n \n int int0 = resultMatrixSignificance0.getVisibleRowCount();\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, int0);\n \n double double1 = resultMatrixSignificance0.getStdDev(1, 1);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double1, 0.01);\n assertEquals(double1, double0, 0.01);\n \n Enumeration enumeration0 = resultMatrixSignificance0.headerKeys();\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertNotNull(enumeration0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string2 = resultMatrixSignificance0.colNameWidthTipText();\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertNotNull(string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", string2);\n assertFalse(string2.equals((Object)string1));\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixPlainText0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[] intArray0 = new int[1];\n intArray0[0] = 0;\n resultMatrixSignificance0.setColOrder(intArray0);\n assertArrayEquals(new int[] {0}, intArray0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, intArray0.length);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixGnuPlot0.getRevision();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"8034\", string0);\n \n double double0 = resultMatrixGnuPlot0.getMean(1041, 1041);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n resultMatrixGnuPlot1.m_RankingLosses = intArray0;\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n \n String string1 = resultMatrixGnuPlot1.getRowName(0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertNotNull(string1);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"row0\", string1);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertFalse(string1.equals((Object)string0));\n \n int int0 = resultMatrixGnuPlot1.getDefaultColNameWidth();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(50, int0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n resultMatrixGnuPlot1.setRowHidden(0, false);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultShowStdDev();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n String string2 = resultMatrixGnuPlot1.toStringRanking();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertNotNull(string2);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string2);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n int int1 = resultMatrixPlainText0.getDisplayRow((-950));\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals((-1), int1);\n assertFalse(int1 == int0);\n }", "@Test(timeout = 4000)\n public void test134() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.getStdDev(1766, 1766);\n int[] intArray0 = new int[2];\n intArray0[0] = 2;\n intArray0[1] = 2;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.setRowNameWidth(13);\n resultMatrixPlainText0.getOptions();\n assertEquals(13, resultMatrixPlainText0.getRowNameWidth());\n \n resultMatrixGnuPlot0.m_Mean = null;\n resultMatrixGnuPlot0.getColHidden(47);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n }", "public double[] compute(Matrix matrix) {\r\n return this.compute(matrix, new RowReduce.Mean().compute(matrix));\r\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(841);\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 0, 841);\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(841, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[3][0];\n int[] intArray1 = new int[1];\n intArray1[0] = 1;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[9];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 1;\n intArray2[1] = 2;\n intArray2[2] = 2;\n intArray2[3] = 0;\n intArray2[4] = 2;\n intArray2[5] = 1;\n intArray2[7] = 1;\n intArray2[8] = 2;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[3];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray3[1] = 0;\n intArray3[2] = 1;\n String string0 = resultMatrixCSV0.removeFilterName(\"[V1$);my_W/XHJet/\");\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"[V1$);my_W/XHJet/\", string0);\n \n intArray0[2] = intArray3;\n // Undeclared exception!\n try { \n resultMatrixCSV0.setRanking(intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 3\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(1, 1);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixPlainText0.LOSS_STRING = \"\";\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixPlainText resultMatrixPlainText1 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText1.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixPlainText1.getSignificanceWidth());\n assertTrue(resultMatrixPlainText1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText1.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText1.meanWidthTipText());\n assertFalse(resultMatrixPlainText1.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText1.getVisibleRowCount());\n assertFalse(resultMatrixPlainText1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText1.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText1.getStdDevPrec());\n assertEquals(2, resultMatrixPlainText1.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText1.getPrintRowNames());\n assertFalse(resultMatrixPlainText1.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText1.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText1.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText1.stdDevPrecTipText());\n assertEquals(1, resultMatrixPlainText1.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText1.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText1.getVisibleColCount());\n assertFalse(resultMatrixPlainText1.getRemoveFilterName());\n assertFalse(resultMatrixPlainText1.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText1.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText1.globalInfo());\n assertTrue(resultMatrixPlainText1.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText1.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText1.significanceWidthTipText());\n assertTrue(resultMatrixPlainText1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText1.printRowNamesTipText());\n assertFalse(resultMatrixPlainText1.getShowAverage());\n assertFalse(resultMatrixPlainText1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText1.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText1.meanPrecTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText1.showAverageTipText());\n assertEquals(0, resultMatrixPlainText1.getStdDevWidth());\n assertTrue(resultMatrixPlainText1.getEnumerateColNames());\n assertTrue(resultMatrixPlainText1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText1.getMeanWidth());\n assertEquals(25, resultMatrixPlainText1.getRowNameWidth());\n assertNotNull(resultMatrixPlainText1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixPlainText1.equals((Object)resultMatrixPlainText0));\n \n resultMatrixPlainText1.m_MeanWidth = 1034;\n assertFalse(resultMatrixPlainText1.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixPlainText1.getSignificanceWidth());\n assertTrue(resultMatrixPlainText1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText1.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText1.meanWidthTipText());\n assertFalse(resultMatrixPlainText1.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText1.getVisibleRowCount());\n assertFalse(resultMatrixPlainText1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText1.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText1.getStdDevPrec());\n assertEquals(2, resultMatrixPlainText1.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText1.getPrintRowNames());\n assertEquals(1034, resultMatrixPlainText1.getMeanWidth());\n assertFalse(resultMatrixPlainText1.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText1.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText1.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText1.stdDevPrecTipText());\n assertEquals(1, resultMatrixPlainText1.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText1.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText1.getVisibleColCount());\n assertFalse(resultMatrixPlainText1.getRemoveFilterName());\n assertFalse(resultMatrixPlainText1.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText1.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText1.globalInfo());\n assertTrue(resultMatrixPlainText1.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText1.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText1.significanceWidthTipText());\n assertTrue(resultMatrixPlainText1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText1.printRowNamesTipText());\n assertFalse(resultMatrixPlainText1.getShowAverage());\n assertFalse(resultMatrixPlainText1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText1.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText1.meanPrecTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText1.showAverageTipText());\n assertEquals(0, resultMatrixPlainText1.getStdDevWidth());\n assertTrue(resultMatrixPlainText1.getEnumerateColNames());\n assertTrue(resultMatrixPlainText1.getDefaultPrintColNames());\n assertEquals(25, resultMatrixPlainText1.getRowNameWidth());\n \n resultMatrixPlainText0.setRowNameWidth(5);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(5, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertNotSame(resultMatrixPlainText0, resultMatrixPlainText1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixPlainText0.equals((Object)resultMatrixPlainText1));\n \n String[] stringArray0 = resultMatrixPlainText1.getOptions();\n assertFalse(resultMatrixPlainText1.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixPlainText1.getSignificanceWidth());\n assertTrue(resultMatrixPlainText1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText1.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText1.meanWidthTipText());\n assertFalse(resultMatrixPlainText1.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText1.getVisibleRowCount());\n assertFalse(resultMatrixPlainText1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText1.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText1.getStdDevPrec());\n assertEquals(2, resultMatrixPlainText1.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText1.getPrintRowNames());\n assertEquals(1034, resultMatrixPlainText1.getMeanWidth());\n assertFalse(resultMatrixPlainText1.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText1.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText1.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText1.stdDevPrecTipText());\n assertEquals(1, resultMatrixPlainText1.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText1.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText1.getVisibleColCount());\n assertFalse(resultMatrixPlainText1.getRemoveFilterName());\n assertFalse(resultMatrixPlainText1.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText1.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText1.globalInfo());\n assertTrue(resultMatrixPlainText1.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText1.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText1.significanceWidthTipText());\n assertTrue(resultMatrixPlainText1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText1.printRowNamesTipText());\n assertFalse(resultMatrixPlainText1.getShowAverage());\n assertFalse(resultMatrixPlainText1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText1.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText1.meanPrecTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText1.showAverageTipText());\n assertEquals(0, resultMatrixPlainText1.getStdDevWidth());\n assertTrue(resultMatrixPlainText1.getEnumerateColNames());\n assertTrue(resultMatrixPlainText1.getDefaultPrintColNames());\n assertEquals(25, resultMatrixPlainText1.getRowNameWidth());\n assertNotNull(stringArray0);\n assertNotSame(resultMatrixPlainText1, resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(19, stringArray0.length);\n assertFalse(resultMatrixPlainText1.equals((Object)resultMatrixPlainText0));\n \n int int0 = resultMatrixCSV0.getStdDevPrec();\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, int0);\n }", "public double averageTestScore() {\n double average; // Initialize the variable for the average.\n int sum = 0; // Sum of array.\n \n // Sum all the test scores in the array.\n for (int i = 0; i < testScores.length; i++) {\n if (testScores[i] < 0 || testScores[i] > 100) {\n throw new IllegalArgumentException(\"One of your test scores\" + \n \" is negative or greater than 100!\");\n }\n sum = sum + testScores[i];\n }\n \n // Calculate the average.\n average = sum / testScores.length;\n \n // Return the average.\n return average; \n }", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setRowNameWidth(1);\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String[] stringArray0 = resultMatrixPlainText0.getOptions();\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertNotNull(stringArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(19, stringArray0.length);\n \n String string0 = resultMatrixPlainText0.enumerateRowNamesTipText();\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", string0);\n \n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n intArray0[1] = 2;\n intArray0[2] = 2;\n resultMatrixHTML0.setRowOrder(intArray0);\n assertArrayEquals(new int[] {0, 2, 2}, intArray0);\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(3, intArray0.length);\n }", "@Test(timeout = 4000)\n public void test139() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n int int0 = 25;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(25, 0);\n resultMatrixPlainText0.isMean(2);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = null;\n try {\n resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(39, (-742));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixLatex0.toStringRanking();\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string0);\n \n int[] intArray0 = new int[1];\n double[] doubleArray0 = new double[0];\n resultMatrixLatex0.m_Counts = doubleArray0;\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n \n intArray0[0] = 2;\n String string1 = resultMatrixLatex0.toStringKey();\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertNotNull(string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string1);\n assertFalse(string1.equals((Object)string0));\n \n resultMatrixLatex0.m_RowOrder = intArray0;\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n \n resultMatrixLatex0.m_RemoveFilterName = true;\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertTrue(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n \n String string2 = resultMatrixLatex0.toStringKey();\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertTrue(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertNotNull(string2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string2);\n assertTrue(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n resultMatrixLatex0.setColName(1, \"$\");\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertTrue(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean0 = resultMatrixPlainText0.getEnumerateRowNames();\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n int int0 = resultMatrixPlainText0.getVisibleColCount();\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, int0);\n \n boolean boolean1 = resultMatrixPlainText0.getDefaultShowAverage();\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixPlainText0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n \n resultMatrixSignificance0.setColOrder((int[]) null);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixSignificance0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixHTML0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n \n resultMatrixGnuPlot0.toStringSummary();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n \n resultMatrixGnuPlot0.getMean(11, (-1));\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot2 = new ResultMatrixGnuPlot(resultMatrixGnuPlot1);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot2.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(5, resultMatrixGnuPlot2.getCountWidth());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot2.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot2.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertTrue(resultMatrixGnuPlot2.getEnumerateColNames());\n \n resultMatrixGnuPlot1.getRowName(0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n \n resultMatrixGnuPlot2.getDefaultColNameWidth();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot2.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(5, resultMatrixGnuPlot2.getCountWidth());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot2.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(25, resultMatrixGnuPlot2.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertTrue(resultMatrixGnuPlot2.getEnumerateColNames());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot3 = new ResultMatrixGnuPlot();\n assertEquals(0, resultMatrixGnuPlot3.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot3.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot3.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot3.getShowStdDev());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot3.globalInfo());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot3.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot3.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot3.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot3.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot3.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot3.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot3.getDisplayName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot3.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot3.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot3.getMeanPrec());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot3.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot3.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot3.showAverageTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot3.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot3.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot3.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot3.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot3.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot3.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot3.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot3.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot3.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot3.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot3.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot3.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot3.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot3.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot3.showStdDevTipText());\n \n resultMatrixGnuPlot0.setRowHidden(97, false);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n \n resultMatrixSignificance0.getDefaultShowStdDev();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n \n resultMatrixSignificance0.headerKeys();\n }", "@Test(timeout = 4000)\n public void test154() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n int int0 = 3;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.setRowNameWidth(3);\n resultMatrixHTML0.setRowNameWidth(0);\n resultMatrixHTML0.setRowNameWidth(0);\n resultMatrixHTML0.getShowAverage();\n resultMatrixPlainText0.isSignificance(0);\n resultMatrixHTML0.getColCount();\n resultMatrixHTML0.getRowOrder();\n resultMatrixHTML0.setMeanPrec((-1));\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n resultMatrixPlainText0.toArray();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(1, 3486);\n }", "@Test\r\n\tpublic void testGetBatchWeekAverageValue() throws Exception{\r\n\t\tlog.debug(\"Validate retrieval of batch's overall average in a week\");\r\n\t\t\r\n\t\tDouble expected = new Double(80.26d);\r\n\t\tDouble actual = \r\n\t\t\tgiven().\r\n\t\t\t\tspec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON).\r\n\t\t\twhen().\r\n\t\t\t\tget(baseUrl + batchAverage, 2150, 1).\r\n\t\t\tthen().\r\n\t\t\t\tassertThat().statusCode(200).\r\n\t\t\tand().\r\n\t\t\t\textract().as(Double.class);\r\n\t\t\r\n\t\tassertEquals(expected, actual, 0.01d);\r\n\t}", "@Test(timeout = 4000)\n public void test152() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"v\";\n stringArray0[1] = \"[\";\n stringArray0[2] = \"*\";\n double[] doubleArray0 = new double[7];\n resultMatrixCSV0.setSize(1, 0);\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 2;\n doubleArray0[3] = (double) 1;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(8, 2);\n resultMatrixPlainText0.isSignificance(0);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(1, 2);\n resultMatrixHTML0.getColCount();\n resultMatrixHTML0.getRowOrder();\n ResultMatrixCSV resultMatrixCSV1 = null;\n try {\n resultMatrixCSV1 = new ResultMatrixCSV(1065, (-2915));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Override\n\tpublic void calucate(EuroMatrices Result, OFNMatchData matchData) {\n\t\t\n\t}", "public static double mean(double[][] mat) { \n int counter = 0;\n double total = 0;\n for (int row = 0; row < mat.length; row++){\n for (int column = 0; column < mat[0].length; column++){\n total += mat[row][column];\n }\n }\n return total/counter;\n }", "@Test(timeout = 4000)\n public void test180() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.clearRanking();\n int int0 = 2365;\n resultMatrixSignificance0.doubleToString(63.65294946501, 2365);\n resultMatrixSignificance0.clearHeader();\n int[][] intArray0 = new int[1][8];\n int[] intArray1 = new int[5];\n intArray1[0] = 2;\n intArray1[1] = 2365;\n intArray1[2] = 1;\n intArray1[3] = 0;\n intArray1[4] = 2365;\n intArray0[0] = intArray1;\n // Undeclared exception!\n try { \n resultMatrixSignificance0.setRanking(intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n int[] intArray0 = new int[2];\n intArray0[0] = 0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(166, 0);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(166, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(166, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n assertEquals(2, int0);\n \n int int1 = resultMatrixSignificance0.getDefaultRowNameWidth();\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(166, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(166, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(40, int1);\n assertFalse(int1 == int0);\n }", "public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[2] = \" using 1:\";\n stringArray0[3] = \"<3\\\"uyx{[a7=aq,-hIYf\";\n stringArray0[4] = \":\";\n stringArray0[5] = \"\";\n ResultMatrixCSV.main(stringArray0);\n assertEquals(6, stringArray0.length);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixCSV0);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixCSV0.m_PrintColNames = true;\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n \n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV(resultMatrixGnuPlot0);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertNotNull(resultMatrixCSV1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n resultMatrixCSV1.clearRanking();\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n resultMatrixCSV1.addHeader(\"v\", (String) null);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n resultMatrixCSV1.setEnumerateRowNames(false);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n resultMatrixCSV0.m_CountWidth = 1;\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n \n int[] intArray0 = resultMatrixCSV1.getColOrder();\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertNull(intArray0);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixCSV0);\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n \n boolean boolean0 = resultMatrixGnuPlot1.getDefaultEnumerateColNames();\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n \n String string0 = resultMatrixCSV0.padString(\"P?*}l4!B1F{[#9\", 1);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertNotNull(string0);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"P\", string0);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n MessageTracerImpl messageTracerImpl1 = new MessageTracerImpl();\n messageTracerImpl0.getMapper();\n ExpressionMatrixImpl expressionMatrixImpl1 = new ExpressionMatrixImpl();\n expressionMatrixImpl1.getNumberOfElements();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 47, 0);\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(1986, expressionMatrixImpl0.getNumberOfElements());\n }", "@Test(timeout = 4000)\n public void test091() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 56);\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(56, resultMatrixCSV0.getVisibleRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(56, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[] intArray0 = new int[0];\n resultMatrixCSV0.setRowOrder(intArray0);\n assertArrayEquals(new int[] {}, intArray0);\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(56, resultMatrixCSV0.getVisibleRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(56, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, intArray0.length);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setMeanPrec(0);\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixHTML resultMatrixHTML1 = null;\n try {\n resultMatrixHTML1 = new ResultMatrixHTML(0, (-791));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\r\n public void testAverageacceleration() {\r\n System.out.println(\"Average Acceleration\");\r\n \r\n // Test case one.\r\n System.out.println(\"Test case #1\"); \r\n \r\n double distance = 200;\r\n long time = 16;\r\n \r\n SceneControl instance = new SceneControl();\r\n \r\n double expResult = 0.78125;\r\n double result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case two.\r\n System.out.println(\"Test case #2\"); \r\n \r\n distance = 80;\r\n time = 200;\r\n \r\n \r\n expResult = .002;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case three.\r\n System.out.println(\"Test case #3\"); \r\n \r\n distance = 0;\r\n time = 15;\r\n \r\n \r\n expResult = 0;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case four.\r\n System.out.println(\"Test case #4\"); \r\n \r\n distance = 12;\r\n time = 1;\r\n \r\n \r\n expResult = 12;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case five.\r\n System.out.println(\"Test case #5\"); \r\n \r\n distance = 1;\r\n time = 1;\r\n \r\n \r\n expResult = 1;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case six.\r\n System.out.println(\"Test case #6\"); \r\n \r\n distance = 3;\r\n time = 8;\r\n \r\n \r\n expResult = .046875;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n // Test case seven.\r\n System.out.println(\"Test case #7\"); \r\n \r\n distance = 200;\r\n time = 1;\r\n \r\n \r\n expResult = 200;\r\n result = instance.averageAcceleration(distance, time);\r\n assertEquals(expResult, result, -1);\r\n \r\n \r\n \r\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixPlainText0.setRowNameWidth(97);\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(97, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixCSV0.toStringKey();\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Key,\\n[1],col0\\n\", string0);\n \n resultMatrixCSV0.clear();\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(50, 2);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(50, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(50, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string1 = resultMatrixSignificance0.globalInfo();\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(50, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(50, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertNotNull(string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", string1);\n assertFalse(string1.equals((Object)string0));\n \n int int0 = resultMatrixSignificance0.getCountWidth();\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(50, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(50, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, int0);\n \n ResultMatrixPlainText resultMatrixPlainText1 = new ResultMatrixPlainText();\n assertEquals(2, resultMatrixPlainText1.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText1.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText1.getDefaultCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText1.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText1.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText1.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText1.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText1.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText1.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText1.showAverageTipText());\n assertEquals(1, resultMatrixPlainText1.getVisibleColCount());\n assertTrue(resultMatrixPlainText1.getPrintRowNames());\n assertFalse(resultMatrixPlainText1.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText1.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText1.getColCount());\n assertEquals(1, resultMatrixPlainText1.getVisibleRowCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText1.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText1.printColNamesTipText());\n assertTrue(resultMatrixPlainText1.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText1.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText1.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText1.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText1.stdDevPrecTipText());\n assertEquals(25, resultMatrixPlainText1.getRowNameWidth());\n assertTrue(resultMatrixPlainText1.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText1.showStdDevTipText());\n assertTrue(resultMatrixPlainText1.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText1.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText1.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText1.getStdDevPrec());\n assertEquals(1, resultMatrixPlainText1.getRowCount());\n assertFalse(resultMatrixPlainText1.getShowStdDev());\n assertFalse(resultMatrixPlainText1.getShowAverage());\n assertEquals(0, resultMatrixPlainText1.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText1.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText1.getMeanPrec());\n assertEquals(0, resultMatrixPlainText1.getSignificanceWidth());\n assertFalse(resultMatrixPlainText1.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText1.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText1.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateRowNamesTipText());\n assertEquals(5, resultMatrixPlainText1.getCountWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText1.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixPlainText1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixPlainText1.equals((Object)resultMatrixPlainText0));\n \n int int1 = 0;\n // Undeclared exception!\n try { \n resultMatrixPlainText1.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixPlainText0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[] intArray0 = new int[1];\n intArray0[0] = 0;\n int[] intArray1 = new int[8];\n assertFalse(intArray1.equals((Object)intArray0));\n \n intArray1[0] = 2;\n intArray1[1] = 1;\n intArray1[2] = 0;\n intArray1[3] = 0;\n intArray1[4] = 1;\n intArray1[6] = (-4845);\n intArray1[7] = 2;\n resultMatrixSignificance0.setColOrder(intArray1);\n assertArrayEquals(new int[] {2, 1, 0, 0, 1, 0, (-4845), 2}, intArray1);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertNotSame(intArray1, intArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(8, intArray1.length);\n assertFalse(intArray1.equals((Object)intArray0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixGnuPlot0.getRevision();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"8034\", string0);\n \n double double0 = resultMatrixGnuPlot0.getMean(3756, 1);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(25, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(5, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot2 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixGnuPlot2.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot2.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot2.getRowCount());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot2.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(25, resultMatrixGnuPlot2.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertNotNull(resultMatrixGnuPlot2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot2.getRowName((-4845));\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixGnuPlot2.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot2.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot2.getRowCount());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot2.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(25, resultMatrixGnuPlot2.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertNull(string1);\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot0));\n \n int int0 = resultMatrixGnuPlot2.getDefaultColNameWidth();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertEquals(5, resultMatrixGnuPlot2.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot2.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot2.getRowCount());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot2.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(25, resultMatrixGnuPlot2.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(50, int0);\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot3 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot3.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot3.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot3.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot3.globalInfo());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot3.getDisplayName());\n assertFalse(resultMatrixGnuPlot3.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot3.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot3.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot3.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot3.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot3.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot3.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot3.getMeanPrec());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot3.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot3.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot3.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot3.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getCountWidth());\n assertTrue(resultMatrixGnuPlot3.getPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot3.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot3.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot3.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintColNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot3.countWidthTipText());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot3.getColCount());\n assertEquals(50, resultMatrixGnuPlot3.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot3.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot3.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot3.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot3.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot3.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot3.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot3.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot3.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultStdDevPrec());\n assertNotNull(resultMatrixGnuPlot3);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot2));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot1));\n \n resultMatrixGnuPlot3.setRowHidden(1, false);\n assertEquals(50, resultMatrixGnuPlot3.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot3.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot3.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot3.globalInfo());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot3.getDisplayName());\n assertFalse(resultMatrixGnuPlot3.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot3.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot3.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot3.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot3.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot3.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot3.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot3.getMeanPrec());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot3.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot3.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot3.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot3.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getCountWidth());\n assertTrue(resultMatrixGnuPlot3.getPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot3.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot3.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot3.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintColNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot3.countWidthTipText());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot3.getColCount());\n assertEquals(50, resultMatrixGnuPlot3.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot3.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot3.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot3.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot3.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot3.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot3.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot3.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot3.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultStdDevPrec());\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot2);\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot0);\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot2));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot1));\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultShowStdDev();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n \n Enumeration enumeration0 = resultMatrixSignificance0.headerKeys();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertNotNull(enumeration0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n }", "public synchronized double getAverage() {\n return average;\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[] stringArray0 = new String[4];\n stringArray0[0] = \"v\";\n stringArray0[2] = \"*\";\n double[] doubleArray0 = new double[7];\n resultMatrixCSV0.setSize(1, 0);\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n doubleArray0[6] = (double) 0;\n doubleArray0[1] = (double) 2;\n doubleArray0[3] = (double) 1;\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixGnuPlot0.getRevision();\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n double double0 = resultMatrixGnuPlot0.getMean(1, 2);\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(40, resultMatrixGnuPlot1.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot0.getRowName(1);\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertNull(string1);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot2 = new ResultMatrixGnuPlot(2, 0);\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot2.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot2.getColCount());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot2.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot2.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot2.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot2.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertNotNull(resultMatrixGnuPlot2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot0));\n \n int int0 = resultMatrixGnuPlot2.getDefaultColNameWidth();\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot2.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot2.getColCount());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot2.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot2.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot2.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot2.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(50, int0);\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot0));\n }", "@Test(timeout = 4000)\n public void test156() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(50, 50);\n resultMatrixLatex0.m_ShowAverage = false;\n resultMatrixLatex0.m_ShowStdDev = true;\n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[0] = false;\n booleanArray0[1] = false;\n resultMatrixLatex0.m_StdDevWidth = (-3085);\n booleanArray0[2] = true;\n resultMatrixLatex0.setPrintColNames(true);\n booleanArray0[3] = true;\n resultMatrixLatex0.setStdDevWidth((-1));\n booleanArray0[4] = true;\n resultMatrixLatex0.m_RowHidden = booleanArray0;\n resultMatrixLatex0.getDefaultEnumerateColNames();\n resultMatrixLatex0.colNameWidthTipText();\n resultMatrixLatex0.setPrintRowNames(false);\n resultMatrixLatex0.removeFilterName(\"\");\n resultMatrixLatex0.padString(\"\", 0, false);\n ResultMatrixSignificance resultMatrixSignificance0 = null;\n try {\n resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 5\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixLatex0.setShowAverage(true);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.assign(resultMatrixLatex0);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertNotNull(resultMatrixSignificance1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n String[] stringArray0 = new String[24];\n resultMatrixSignificance0.setColNameWidth(0);\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n stringArray0[0] = \")\";\n stringArray0[1] = \"$circ$\";\n stringArray0[2] = \"*\";\n stringArray0[3] = \" \";\n stringArray0[4] = \"$\\bullet$\";\n try { \n resultMatrixSignificance1.setOptions(stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Utils\", e);\n }\n }", "@Test\n public void testIsRateMatrix()\n {\n IDoubleArray K = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean expResult = false;\n boolean result = instance.isRateMatrix(K);\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(timeout = 4000)\n public void test168() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n int[] intArray0 = new int[1];\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"v\";\n stringArray0[1] = \"[\";\n stringArray0[2] = \"*\";\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 2;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 1;\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixPlainText0);\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(5, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n \n String string0 = resultMatrixPlainText0.getSummaryTitle(216);\n assertEquals(\"i\", string0);\n \n int[][] intArray1 = new int[8][0];\n intArray1[0] = intArray0;\n intArray1[1] = intArray0;\n intArray1[2] = intArray0;\n intArray1[3] = intArray0;\n resultMatrixSignificance0.getRevision();\n resultMatrixSignificance0.toStringRanking();\n resultMatrixPlainText0.getDefaultRemoveFilterName();\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n }", "private void testBlackLevelMatrix(BlackLevel[][] matrix)\n {\n for (BlackLevel[] row : matrix)\n {\n double exposureTime = row[0].exposureTime;\n for (BlackLevel blackLevel : row)\n {\n assertEquals(exposureTime, blackLevel.exposureTime, 0.001);\n }\n }\n\n //The ISO of each column should be the same\n /*for (int row = 0; row < matrix.length; row ++)\n {\n int iso = matrix[row][0].iso;\n for (int col = 0; col < matrix[row].length; col ++)\n {\n assertEquals(iso, matrix[row][col].iso);\n }\n }*/\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[][] intArray0 = new int[0][1];\n // Undeclared exception!\n try { \n resultMatrixLatex0.setSummary((int[][]) null, (int[][]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n String[] stringArray0 = new String[1];\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV(resultMatrixCSV0);\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertNotNull(resultMatrixCSV1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n resultMatrixCSV0.clearRanking();\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n \n boolean boolean0 = resultMatrixCSV0.getShowStdDev();\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n \n resultMatrixCSV0.setEnumerateRowNames(true);\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n \n int[] intArray0 = resultMatrixCSV1.getColOrder();\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertNull(intArray0);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixCSV1);\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n int int0 = resultMatrixGnuPlot0.getColNameWidth();\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, int0);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixCSV0);\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[0][9];\n // Undeclared exception!\n try { \n resultMatrixCSV0.setSummary(intArray0, intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public BigDecimal getRows_affected_avg() {\n return rows_affected_avg;\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertNotNull(resultMatrixLatex0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixSignificance0.assign(resultMatrixLatex0);\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixSignificance0.setPrintColNames(false);\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader(\" \");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n int int0 = 61;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(61, 61);\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(61, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(61, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(61, resultMatrixPlainText0.getColCount());\n assertEquals(61, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixPlainText0.trimString(\"\", (-1222));\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(61, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(61, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(61, resultMatrixPlainText0.getColCount());\n assertEquals(61, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"\", string0);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixPlainText0);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[] intArray0 = new int[5];\n intArray0[0] = 1;\n intArray0[1] = 2;\n intArray0[2] = 0;\n String string0 = resultMatrixCSV0.toStringKey();\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Key,\\n[1],col0\\n\", string0);\n \n String string1 = resultMatrixCSV0.toStringMatrix();\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Dataset,[1]\\nrow0,''\\n'[v/ /*]',''\\n\", string1);\n assertFalse(string1.equals((Object)string0));\n \n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV(resultMatrixCSV0);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertNotNull(resultMatrixCSV1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n String string2 = resultMatrixCSV1.toStringRanking();\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertNotNull(string2);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string2);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n resultMatrixCSV1.setColName(0, (String) null);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(2, 2);\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixGnuPlot0.clear();\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n double double0 = resultMatrixCSV1.getCount(1);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 12);\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(12, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(12, resultMatrixCSV0.getVisibleRowCount());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixCSV0.doubleToString((-1649.242085), 0);\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(12, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(12, resultMatrixCSV0.getVisibleRowCount());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-1649.\", string0);\n \n resultMatrixCSV0.clearSummary();\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(12, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(12, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 0);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n double double0 = resultMatrixGnuPlot0.getCount(95);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(454, 0);\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getRowCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(454, resultMatrixGnuPlot1.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(454, resultMatrixGnuPlot1.getColCount());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n double[][] doubleArray0 = new double[4][2];\n double[] doubleArray1 = new double[7];\n doubleArray1[0] = (double) 2;\n doubleArray1[1] = (double) 0;\n doubleArray1[2] = (double) 1;\n doubleArray1[3] = (double) 1;\n doubleArray1[4] = (double) 1;\n doubleArray1[5] = (double) 1;\n doubleArray1[6] = (double) 2;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n assertFalse(doubleArray2.equals((Object)doubleArray1));\n \n doubleArray2[0] = (double) 0;\n doubleArray2[1] = (double) 2;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[3];\n assertFalse(doubleArray3.equals((Object)doubleArray2));\n assertFalse(doubleArray3.equals((Object)doubleArray1));\n \n doubleArray3[0] = (double) 0;\n doubleArray3[1] = (-2740.0);\n doubleArray3[2] = (double) 1;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[7];\n assertFalse(doubleArray4.equals((Object)doubleArray3));\n assertFalse(doubleArray4.equals((Object)doubleArray2));\n assertFalse(doubleArray4.equals((Object)doubleArray1));\n \n doubleArray4[0] = (-372.1747797129);\n doubleArray4[1] = (double) 1;\n doubleArray4[2] = (double) 1;\n doubleArray4[3] = (double) 1;\n doubleArray4[4] = (double) 1;\n doubleArray4[5] = (-2740.0);\n doubleArray4[6] = (double) 2;\n doubleArray0[3] = doubleArray4;\n resultMatrixPlainText0.m_Mean = doubleArray0;\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n \n String string0 = resultMatrixPlainText0.getDisplayName();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Plain Text\", string0);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(1, 1);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixPlainText0.LOSS_STRING = \"\";\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n \n resultMatrixPlainText0.m_RowOrder = null;\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n \n String string0 = resultMatrixPlainText0.doubleToString((-685.04), 1);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"-685.0\", string0);\n \n Enumeration enumeration0 = resultMatrixPlainText0.headerKeys();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertNotNull(enumeration0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int int0 = resultMatrixPlainText0.getDisplayCol(1);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals((-1), int0);\n \n String string1 = resultMatrixPlainText0.toStringMatrix();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Dataset (1) col0 \\n-----------------------------------\\nrow0 (0) |\\n-----------------------------------\\n(v/ /) |\\n\", string1);\n assertFalse(string1.equals((Object)string0));\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertNotNull(stringArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(3, stringArray0.length);\n \n boolean boolean0 = resultMatrixPlainText0.isMean(47);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(27, 2);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixLatex0.setCountWidth((-1570));\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string2 = resultMatrixLatex0.toStringMatrix();\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertNotNull(string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n boolean boolean1 = resultMatrixLatex0.getDefaultPrintColNames();\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(27, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(27, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.m_RemoveFilterName = false;\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(27, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(27, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n \n String string3 = resultMatrixSignificance0.toStringRanking();\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(27, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(27, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertNotNull(string3);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"-ranking data not set-\", string3);\n assertFalse(string3.equals((Object)string1));\n assertFalse(string3.equals((Object)string0));\n assertFalse(string3.equals((Object)string2));\n \n String string4 = resultMatrixSignificance0.globalInfo();\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(27, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(27, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertNotNull(string4);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", string4);\n assertFalse(string4.equals((Object)string2));\n assertFalse(string4.equals((Object)string3));\n assertFalse(string4.equals((Object)string1));\n assertFalse(string4.equals((Object)string0));\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixLatex0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(2, resultMatrixLatex1.getRowCount());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(27, resultMatrixLatex1.getVisibleColCount());\n assertEquals(27, resultMatrixLatex1.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertNotNull(resultMatrixLatex1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n boolean boolean2 = resultMatrixLatex1.getDefaultPrintRowNames();\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(2, resultMatrixLatex1.getRowCount());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(27, resultMatrixLatex1.getVisibleColCount());\n assertEquals(27, resultMatrixLatex1.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(27, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(27, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(boolean2);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(boolean2 == boolean1);\n assertFalse(boolean2 == boolean0);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n \n String string5 = resultMatrixPlainText0.showAverageTipText();\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertNotNull(string5);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to show the row with averages.\", string5);\n assertFalse(string5.equals((Object)string1));\n assertFalse(string5.equals((Object)string0));\n assertFalse(string5.equals((Object)string3));\n assertFalse(string5.equals((Object)string2));\n assertFalse(string5.equals((Object)string4));\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixSignificance0.getRowName((-1040));\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixSignificance0.m_StdDev = null;\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n \n String string1 = resultMatrixSignificance0.getDisplayName();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Significance only\", string1);\n \n double double0 = resultMatrixSignificance0.getAverage((-1040));\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixPlainText resultMatrixPlainText0 = null;\n try {\n resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixSignificance0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.assign(resultMatrixLatex0);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[1][5];\n int[] intArray1 = new int[1];\n intArray1[0] = 2;\n intArray0[0] = intArray1;\n resultMatrixGnuPlot0.setRanking(intArray0);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, intArray0.length);\n \n resultMatrixGnuPlot0.setSize(26, 45);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(45, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(26, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(45, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(26, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixGnuPlot0.setRowName(2186, \")\");\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(45, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(26, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(45, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(26, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n }", "int score(OfcHandMatrix matrix);", "@Test(timeout = 4000)\n public void test170() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(9, 9);\n int[] intArray0 = new int[6];\n intArray0[0] = 2;\n resultMatrixPlainText0.clear();\n intArray0[1] = 9;\n intArray0[2] = 1;\n intArray0[3] = 0;\n intArray0[4] = 1;\n resultMatrixPlainText0.m_RankingWins = intArray0;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(1, 0);\n resultMatrixHTML0.setEnumerateRowNames(false);\n ResultMatrixHTML resultMatrixHTML1 = null;\n try {\n resultMatrixHTML1 = new ResultMatrixHTML(9, (-716));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test126() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixCSV0.toString();\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Dataset,[1]\\nrow0,''\\n'[v/ /*]',''\\n\", string0);\n \n String[] stringArray0 = new String[4];\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixGnuPlot0.setSize(0, 0);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int int0 = resultMatrixGnuPlot0.getDefaultColNameWidth();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(50, int0);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int int0 = 2238;\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(1, 2238);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2238, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(2238, resultMatrixGnuPlot0.getRowCount());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int int1 = (-69);\n String string0 = resultMatrixGnuPlot0.getSummaryTitle((-69));\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2238, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(2238, resultMatrixGnuPlot0.getRowCount());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"P\", string0);\n \n boolean boolean0 = false;\n String string1 = \"\";\n // Undeclared exception!\n resultMatrixCSV0.assign(resultMatrixGnuPlot0);\n }" ]
[ "0.72243357", "0.66871125", "0.6376005", "0.59079206", "0.5834879", "0.57265687", "0.5723964", "0.5707717", "0.57038516", "0.55717874", "0.5570453", "0.55677164", "0.5540835", "0.54478127", "0.54437596", "0.54112184", "0.5389821", "0.5389337", "0.53813803", "0.5347207", "0.53456235", "0.5338442", "0.53336316", "0.53333646", "0.5320728", "0.5319712", "0.53120565", "0.52919745", "0.5258121", "0.5251415", "0.5239778", "0.52121836", "0.51899606", "0.51896566", "0.5189408", "0.51864034", "0.5181141", "0.517006", "0.5157223", "0.5152124", "0.514692", "0.5139276", "0.5126402", "0.512345", "0.51201075", "0.51187104", "0.51161236", "0.51137143", "0.5112875", "0.5110996", "0.51074076", "0.5106384", "0.51021594", "0.5100674", "0.50957805", "0.50947315", "0.5088222", "0.5087899", "0.50868094", "0.508509", "0.5081497", "0.5081343", "0.5080418", "0.5076388", "0.50750005", "0.50740975", "0.5073376", "0.50731206", "0.50730073", "0.50725603", "0.50702983", "0.50700366", "0.50675184", "0.50658584", "0.50621325", "0.5060762", "0.5057934", "0.504114", "0.50410706", "0.50296247", "0.502479", "0.50217825", "0.5021373", "0.5020638", "0.5017719", "0.5013103", "0.50096667", "0.5005372", "0.50035113", "0.50034136", "0.50001323", "0.4999778", "0.49983516", "0.49938336", "0.49927446", "0.49921966", "0.49907362", "0.49894327", "0.4982178", "0.4981377" ]
0.87293196
0
Test of getname method, of class connection.
@Test public void testGetname() { System.out.println("getname"); connection instance = new connection(); String[] expResult = null; String[] result = instance.getname(); assertArrayEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetName ()\n {\n System.out.println (\"getName\");\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n String expResult = \"nom\";\n String result = instance.getName ();\n Assert.assertEquals (expResult, result);\n\n }", "@Test\n\tpublic void testPetWhenGetNameBolt() {\n\t\tPet pet = new Pet(\"Bolt\", \"owloo\");\t\t\n\t\tString expect = \"Bolt\";\n\t\tString result = pet.getPetName();\t\t\n\t\tassertEquals(expect, result);\t\n\t}", "@Test\n\tpublic void test_getName() {\n\tTennisPlayer c1 = new TennisPlayer(24,\"John Isner\");\n\tassertEquals(\"John Isner\",c1.getName());\n }", "@Test\r\n\tpublic void getName() {\r\n\t\tassertEquals(\"Name was intialized as 'test'\", \"test\", testObj.getName());\r\n\t}", "@Test\n public void getName() {\n assertTrue(channel.getDisplayName().equals(\"Together4Ever\"));\n }", "@Test\n public void getName() {\n System.out.println(\"getName\");\n BBDParameterMetaData instance = new BBDParameterMetaData(1,\"test\",2);\n String expResult = \"test\";\n String result = instance.getName();\n assertEquals(expResult, result);\n }", "String getName() ;", "abstract String getName();", "Name getName();", "String getName( );", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6712658", "0.6694958", "0.6693125", "0.6638009", "0.66050905", "0.6604658", "0.6572679", "0.6547456", "0.65135753", "0.65068483", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115" ]
0.7325983
0
Test of deleteDirectory method, of class connection.
@Test public void testDeleteDirectory() { System.out.println("deleteDirectory"); File directory = null; boolean expResult = false; boolean result = connection.deleteDirectory(directory); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDeleteDirectory() {\n System.out.println(\"deleteDirectory with existing folder as input\");\n File testFolder = new File(folder.toString()+fSeparator+\"Texts\");\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.deleteDirectory(testFolder);\n assertEquals(\"Some message\",expResult, result);\n }", "@Test\n public void testDeleteFolder() {\n System.out.println(\"deleteFolder\");\n String folder = \"\";\n FileSystemStorage instance = null;\n instance.deleteFolderAndAllContents(folder);\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 testCreateAfterConfigDirDelete() throws IOException {\n // Delete CONNECTIONS_PATH\n FileObject fo = FileUtil.getConfigFile(CONNECTIONS_PATH);\n assertNotNull(fo);\n\n fo.delete();\n fo = FileUtil.getConfigFile(CONNECTIONS_PATH);\n assertNull(fo);\n\n // Test connection creation\n DatabaseConnection dbconn = new DatabaseConnection(\"a\", \"b\", \"c\", \"d\", \"e\", (String) null);\n DataObject data = DatabaseConnectionConvertor.create(dbconn);\n\n assertNotNull(data);\n }", "private static void doDeleteEmptyDir(String dir) {\n\n boolean success = (new File(dir)).delete();\n\n if (success) {\n System.out.println(\"Successfully deleted empty directory: \" + dir);\n } else {\n System.out.println(\"Failed to delete empty directory: \" + dir);\n }\n\n }", "@Override\n protected void setUp() throws Exception {\n baseDirectory = new File(TEST_DIR_NAME);\n assertTrue(ConnectorTestUtils.deleteAllFiles(baseDirectory));\n // Then recreate it empty\n assertTrue(baseDirectory.mkdirs());\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 }", "public void testDeleteFileFilePersistenceException() {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n assertTrue(\"should be a Directory\", new File(VALID_FILELOCATION, DIRNAME).isDirectory());\r\n try {\r\n filePersistence.deleteFile(VALID_FILELOCATION, DIRNAME);\r\n fail(\"if the file to delete exist and is a directory, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "@TestFor(issues = \"TW-42737\")\n public void test_directory_remove() throws Exception {\n CommitPatchBuilder patchBuilder = myCommitSupport.getCommitPatchBuilder(myRoot);\n patchBuilder.createFile(\"dir/file\", new ByteArrayInputStream(\"content\".getBytes()));\n patchBuilder.createFile(\"dir2/file\", new ByteArrayInputStream(\"content\".getBytes()));\n patchBuilder.commit(new CommitSettingsImpl(\"user\", \"Create dir with file\"));\n patchBuilder.dispose();\n\n RepositoryStateData state1 = myGit.getCurrentState(myRoot);\n\n patchBuilder = myCommitSupport.getCommitPatchBuilder(myRoot);\n patchBuilder.deleteDirectory(\"dir\");\n patchBuilder.commit(new CommitSettingsImpl(\"user\", \"Delete dir\"));\n patchBuilder.dispose();\n\n RepositoryStateData state2 = myGit.getCurrentState(myRoot);\n\n List<ModificationData> changes = myGit.getCollectChangesPolicy().collectChanges(myRoot, state1, state2, CheckoutRules.DEFAULT);\n then(changes).hasSize(1);\n then(changes.get(0).getChanges()).extracting(\"fileName\", \"type\").containsOnly(Tuple.tuple(\"dir/file\", VcsChange.Type.REMOVED));\n }", "void deleteCoverDirectory() {\n\n try {\n\n Log.i(\"Deleting Covr Directory\", cover_directory.toString());\n FileUtils.deleteDirectory(cover_directory);\n } catch (IOException e) {\n\n }\n\n }", "@Test\n final void testDeleteDevice() {\n when(deviceDao.deleteDevice(user, DeviceFixture.SERIAL_NUMBER)).thenReturn(Long.valueOf(1));\n ResponseEntity<String> response = deviceController.deleteDevice(DeviceFixture.SERIAL_NUMBER);\n assertEquals(200, response.getStatusCodeValue());\n assertEquals(\"Device with serial number 1 deleted\", response.getBody());\n }", "@Test\n public void deleteCategory_ReturnsTrue(){\n int returned = testDatabase.addCategory(category);\n assertEquals(\"deleteCategory - Returns True\", true, testDatabase.deleteCategory(returned));\n }", "void folderDeleted(String remoteFolder);", "@Test\n\tpublic void testDelete(){\n\t}", "void deleteTagDirectory() {\n\n try {\n\n Log.i(\"Deleting Tag Directory\", tag_directory.toString());\n FileUtils.deleteDirectory(tag_directory);\n } catch (IOException e) {\n\n }\n\n }", "public static synchronized void emptyDerbyTestDirectory(final String derbyTestDirectory) {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.emptyDerbyTestDirectory\");\n // Delete the files in the derbyTestDirectory directory.\n File tempDirectory = new File(derbyTestDirectory);\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }", "@Test\n\tpublic void deleteFolderAsAuditorTest() {\n\t\tauthenticate(\"polyglot1\");\n\t\tint principalId = actorService.findByPrincipal().getId();\n\t\tFolderForm folderFormAux = new FolderForm();\n\t\tfolderFormAux.setName(\"New Polyglot1 Folder for testing its deletion\");\n\t\tFolder folder = folderService.reconstruct(folderFormAux,0);\n\t\tfolderService.save(folder);\n\t\tint numFoldersNow = folderService.findFoldersOfActor(principalId).size();\n\t\tFolder folderToDelete = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tfolderService.delete(folderToDelete);\n\t\tint numFoldersExpected = folderService.findFoldersOfActor(principalId).size();\n\t\tunauthenticate();\t\n\t\tAssert.isTrue(numFoldersNow - 1 == numFoldersExpected);\n\t}", "@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 }", "@Override\n public FileVisitResult postVisitDirectory(Path dir,\n IOException exc)\n throws IOException {\n Files.delete(dir);\n System.out.printf(\"Directory is deleted : %s%n\", dir);\n return FileVisitResult.CONTINUE;\n }", "public void deleteDir() throws Exception\n{\n if(_repo!=null) _repo.close(); _repo = null;\n _gdir.delete();\n _gdir.setProp(GitDir.class.getName(), null);\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 }", "public boolean removeDirectory(String directory_path) {\n\n\t\t//\n\t\t// delete directory from observed table list\n\t\t//\n\t\tlong rows_affected = m_db.delete(DIRECTORY_TABLE_NAME,\n\t\t\t\tDIRECTORY_FIELD_PATH + \"=?\", new String[] { directory_path });\n\n\t\t//\n\t\t// informal debug message\n\t\t//\n\t\tLogger.i(\"DBManager::removeDirectory> executeInsert: \" + rows_affected);\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn rows_affected != 0;\n\t}", "private boolean deleteDirectoryWithRetries(File directory, int retryCount) {\n if (retryCount > 100) {\n return false;\n }\n if (FileUtils.deleteQuietly(directory)) {\n return true;\n }\n else {\n try {\n Thread.sleep(10);\n }\n catch (InterruptedException ex) {\n // ignore\n }\n return deleteDirectoryWithRetries(directory, retryCount + 1);\n }\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }", "public void testDelete() {\n TDelete_Return[] Basket_delete_out = basketService.delete(new String[] { BasketPath });\n assertNoError(Basket_delete_out[0].getError());\n }", "@Test\r\n public void testDelete() {\r\n assertTrue(false);\r\n }", "@AfterClass(groups ={\"All\"})\n\tpublic void deleteFolder() {\n\t\ttry {\n\t\t\tUserAccount account = dciFunctions.getUserAccount(suiteData);\n\t\t\tUniversalApi universalApi = dciFunctions.getUniversalApi(suiteData, account);\n\t\t\tif(suiteData.getSaasApp().equalsIgnoreCase(\"Salesforce\")){\n\t\t\t\tfor(String id:uploadId){\n\t\t\t\t\tMap<String,String> fileInfo = new HashMap<String,String> ();\n\t\t\t\t\tfileInfo.put(\"fileId\", id);\n\t\t\t\t\tdciFunctions.deleteFile(universalApi, suiteData, fileInfo);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tdciFunctions.deleteFolder(universalApi, suiteData, folderInfo);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogger.info(\"Issue with Delete Folder Operation \" + ex.getLocalizedMessage());\n\t\t}\n\t}", "@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 shouldDeleteAllDataInDatabase(){\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }", "@Test\n public void deleteRecipeDirections_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipeDirections - Returns True\",true, testDatabase.deleteRecipeDirections(returned));\n }", "public abstract boolean delete(long arg, Connection conn) throws DeleteException;", "public deleteDir_result(deleteDir_result other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n }", "public String do_rmdir(String pathOnServer) throws RemoteException {\r\n\t\tString directoryPath = pathOnServer;\r\n\t\tString message;\r\n\t\t\r\n\t\t\tFile dir = new File(directoryPath);\r\n\t\t\tif (!dir.isDirectory()) {\r\n\t\t\t\tmessage = \"Invalid directory\";\t}\t\r\n\t\t\telse {\r\n\t\t\t\t\r\n\t\t\tif(dir.list().length>0) {\r\n\r\n\t\t\tFile[] filesList = dir.listFiles();\r\n\t\t\t//Deleting Directory Content\r\n\t\t\tfor(File file : filesList){\r\n\t\t\t\tSystem.out.println(\"Deleting \"+file.getName());\r\n\t\t\t\tfile.delete();\r\n\t\t\t}}\r\n\t\t\tif (dir.delete()) message =\"Successfully deleted the Directory: \" + directoryPath ;\r\n\t\t\telse message =\"Error deleting the directory: \" + directoryPath ;\r\n\t\t\t}//else end \r\n\t\treturn message;\r\n\t}", "@Test\n void deleteSuccess() {\n genericDAO.delete(genericDAO.getByID(2));\n assertNull(genericDAO.getByID(2));\n }", "@Test\n public void deleteRecipeCategory_Deletes(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedCategory = testDatabase.addRecipeCategory(recipeCategory);\n testDatabase.deleteRecipeCategory(returnedCategory);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returnedRecipe);\n boolean deleted = true;\n if(allCategories != null){\n for(int i = 0; i < allCategories.size(); i++){\n if(allCategories.get(i).getCategoryID() == returnedCategory){\n deleted = false;\n }\n }\n }\n assertEquals(\"deleteRecipeCategory - Deletes From Database\", true, deleted);\n }", "@Test\n public void testDeleteGetAll() {\n lib.addDVD(dvd1);\n lib.addDVD(dvd2);\n \n lib.deleteDVD(0);\n \n Assert.assertEquals(1, lib.getDVDLibrary().size());\n }", "@Test\n void delete() {\n }", "@Test\n void delete() {\n }", "@Test\n\tpublic void testAdminDelete() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(06, \"temp\", 00001, 0, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Deleted\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to delete account as admin\", testResult);\n\t}", "@After\n public void tearDown() throws IOException {\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.DELETE, config.resolveURL(\"tethering/connections/xyz\"));\n\n HttpResponse response = HttpRequests.execute(builder.build());\n int responseCode = response.getResponseCode();\n Assert.assertTrue(\n responseCode == HttpResponseStatus.OK.code()\n || responseCode == HttpResponseStatus.NOT_FOUND.code());\n }", "@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 }", "protected abstract void doDelete();", "@Test(enabled=true)\n\tpublic void verifySuccessfullyCreateFolderAndDeleted()\n\t{\t\t\n\t\thomepg = new LoginPage(driver);\n\t\tlandingpg = new LandingPage(driver);\n\t\thomepg.login();\n\t\tlandingpg.addNewFolder();\n\t\tlandingpg.deleteFolder();\n\t\thomepg.logOut();\n\t}", "@Test\n public void deleteDoctor() {\n\t\tList<Doctor> doctors = drepository.findByName(\"Katri Halonen\");\n\t\tassertThat(doctors).hasSize(1);\n \tdrepository.deleteById((long) 3);\n \tdoctors = drepository.findByName(\"Katri Halonen\");\n \tassertThat(doctors).hasSize(0);\n }", "public void testDelete() {\n\t\ttry {\n\t\t\tServerParameterTDG.create();\n\n\t\t\t// insert\n\t\t\tServerParameterTDG.insert(\"paramName\", \"A description\", \"A value\");\n\t\t\t// delete\n\t\t\tassertEquals(1, ServerParameterTDG.delete(\"paramName\"));\n\t\t\t\t\n\t\t\tServerParameterTDG.drop();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\t\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tServerParameterTDG.drop();\n\t\t\t} catch (SQLException e) {\n\t\t\t}\n\t\t}\n\t}", "@Test\n void deleteTest() {\n URI uri = URI.create(endBody + \"/delete\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n assertEquals(200, response.statusCode());\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.deleteFile(\"\");\n }", "public void testDelete() {\n TDelete_Return[] PriceLists_delete_out = priceListService.delete(new String[] { path + alias });\n\n // test if deletion was successful\n assertEquals(\"delete result set\", 1, PriceLists_delete_out.length);\n\n TDelete_Return PriceList_delete_out = PriceLists_delete_out[0];\n\n assertNoError(PriceList_delete_out.getError());\n\n assertEquals(\"deleted?\", true, PriceList_delete_out.getDeleted());\n }", "@Test\n public void testCdDoesNotExsist() {\n FileTree myTree = new FileTree();\n boolean result = false;\n try{\n myTree.cd(\"/test\");\n }\n catch (NotDirectoryException e){\n result = true;\n }\n assertTrue(result);\n }", "@Test\n public void deleteRecipe_Deletes(){\n int returned = testDatabase.addRecipe(testRecipe);\n testDatabase.deleteRecipe(returned);\n assertEquals(\"deleteRecipe - Deletes From Database\", null, testDatabase.getRecipe(returned));\n }", "@Test\n\tpublic void testDelete() throws FOMException, FluidException, JSONException, IOException {\n\t\tNamespace testNamespace = new Namespace(this.fdb, \"\", this.fdb.getUsername());\n\t\tString newName = UUID.randomUUID().toString();\n\t\tNamespace newNamespace = testNamespace.createNamespace(newName, \"This is a test namespace\");\n\t\tassertEquals(true, TestUtils.contains(testNamespace.getNamespaceNames(), newName));\n\t\tnewNamespace.delete();\n\t\ttestNamespace.getItem();\n\t\tassertEquals(false, TestUtils.contains(testNamespace.getNamespaceNames(), newName));\t\n\t}", "public boolean delete();", "private static boolean deleteDirectory(File directory) {\n\t if(directory.exists()){\n\t File[] files = directory.listFiles();\n\t if(null!=files){\n\t for(int i=0; i<files.length; i++) {\n\t if(files[i].isDirectory()) {\n\t deleteDirectory(files[i]);\n\t }\n\t else {\n\t files[i].delete();\n\t }\n\t }\n\t }\n\t }\n\t return(directory.delete());\n\t}", "@Test\n public void deleteTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.delete(1);\n Servizio servizio= manager.retriveById(1);\n assertNull(servizio,\"Should return true if delete Servizio\");\n }", "@Test\n void deleteSuccess() {\n genericDao.delete(genericDao.getById(3));\n assertNull(genericDao.getById(3));\n }", "@Test\n public void testInitialCleanup() throws Exception{\n File f = new File(path);\n assertTrue(f.exists());\n assertTrue(f.isDirectory());\n File[] files = f.listFiles();\n // Expect all files were deleted\n assertTrue(files.length == 0);\n }", "@Test\n public void deleteRecipe_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipe - Returns True\",true, testDatabase.deleteRecipe(returned));\n\n }", "void deleteStoryDirectory() {\n\n try {\n\n Log.i(\"Deleting StoryDirectory\", story_directory.toString());\n FileUtils.deleteDirectory(story_directory);\n } catch (IOException e) {\n\n }\n\n }", "@Test\n public void deleteRecipeDirections_Deletes(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedDirection1 = testDatabase.addRecipeDirection(recipeDirection1);\n int returnedDirection2 = testDatabase.addRecipeDirection(recipeDirection2);\n testDatabase.deleteRecipeDirections(returnedRecipe);\n ArrayList<RecipeDirection> allDirections = testDatabase.getAllRecipeDirections(returnedRecipe);\n boolean deleted1 = true;\n boolean deleted2 = true;\n if(allDirections != null){\n for(int i = 0; i < allDirections.size(); i++){\n if(allDirections.get(i).getKeyID() == returnedDirection1){\n deleted1 = false;\n }\n if(allDirections.get(i).getKeyID() == returnedDirection2){\n deleted2 = false;\n }\n }\n }\n assertEquals(\"deleteRecipeDirections - Deleted Direction1\", true, deleted1);\n assertEquals(\"deleteRecipeDirections - Deleted Direction2\", true, deleted2);\n }", "boolean delete();", "@Test\n\tpublic void test_Delete_Account() throws DatabaseException, BadParameterException, NotFoundException{\n\t\ttry (MockedStatic<ConnectionUtil> mockedConnectionUtil = mockStatic(ConnectionUtil.class)) {\n\t\t\tmockedConnectionUtil.when(ConnectionUtil::connectToDB).thenReturn(mockConn);\n\t\t\t\n\t\t\tassertEquals(accountService.deleteAccount(\"1\",\"1\"), true);\n\t\t}\n\t}", "public void delete(String so_cd);", "@Test\r\n\tpublic void testExecuteCommandsDeleteAdl() throws Exception {\r\n\t\t\r\n\t\tadvertising.executeCommand(advertising, \"adl delete --Name L1-r-medical\");\r\n\t\tassertTrue(\"adc all\", true);\r\n\t\t\r\n\t}", "@SmallTest\n public void testDelete() {\n int result = -1;\n if (this.entity != null) {\n result = (int) this.adapter.remove(this.entity.getId());\n Assert.assertTrue(result >= 0);\n }\n }", "private static void deleteDatabaseHelper(final Path path) {\n if (path != null) {\n\n try {\n if (!Files.isDirectory(path)) {\n Files.delete(path);\n } else {\n \n // see http://www.oracle.com/technetwork/articles/java/ma14-java-se-8-streams-2177646.html\n // for an explanation of streams and foreach\n Files.newDirectoryStream(path).forEach(filePath -> deleteDatabaseHelper(filePath));\n Files.delete(path);\n }\n\n } catch (IOException ex) {\n Logger.getLogger(ConnectionManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\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\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 }", "private static void deleteTest() throws SailException{\n\n\t\tString dir2 = \"repo-temp\";\n\t\tSail sail2 = new NativeStore(new File(dir2));\n\t\tsail2 = new IndexingSail(sail2, IndexManager.getInstance());\n\t\t\n//\t\tsail.initialize();\n\t\tsail2.initialize();\n\t\t\n//\t\tValueFactory factory = sail2.getValueFactory();\n//\t\tCloseableIteration<? extends Statement, SailException> statements = sail2\n//\t\t\t\t.getConnection().getStatements(null, null, null, false);\n\n\t\tSailConnection connection = sail2.getConnection();\n\n\t\tint cachesize = 1000;\n\t\tint cached = 0;\n\t\tlong count = 0;\n\t\tconnection.removeStatements(null, null, null, null);\n//\t\tconnection.commit();\n\t}", "@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 }", "@AfterClass\n public static void cleanup() throws Exception {\n fs.delete(new Path(baseDir), true);\n }", "@Test\n public void deleteAccount() {\n Account accountToBeDeleted = new Account(\"deleteMe\", \"deleteMe\", false,\n \"Fontys Stappegoor\", \"[email protected]\");\n accountQueries.addAccount(accountToBeDeleted);\n\n // Get ID of recently inserted Account to be able to test deletion\n Account toDelete = accountQueries.getAccountByUserName(\"deleteMe\");\n boolean succeeded = accountQueries.deleteAccount(toDelete.getID());\n\n assertEquals(succeeded, true);\n }", "@Test\n void deleteSuccess() {\n carDao.delete(carDao.getById(1));\n assertNull(carDao.getById(1));\n\n //Delete repairs\n GenericDao<Repair> repairDao = new GenericDao(Repair.class);\n Repair repair = repairDao.getById(2);\n assertNull(carDao.getById(2));\n\n //Delete part\n GenericDao<Part> partDao = new GenericDao(Part.class);\n Role part = partDao.getById(2);\n assertNull(partDao.getById(2));\n }", "@Override\n\tpublic boolean delete() {\n\t\tboolean result = false;\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.isDirectory()) {\n\t\t\t\t\tif (this.listFiles() != null) {\n\t\t\t\t\t\tfor (java.io.File file : this.listFiles()) {\n\t\t\t\t\t\t\tif (file.isDirectory()) ((File) file).delete();\n\t\t\t\t\t\t\telse if (file.isFile()) super.delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsuper.delete();\n\t\t\t\t} else if (this.isFile()) super.delete();\n\t\t\t}\n\t\t\t\n\t\t\tresult = true;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}", "@Test\r\n\tpublic void testDelete() {\n\t\tint todos = modelo.getAll().size();\r\n\r\n\t\tassertTrue(modelo.delete(1));\r\n\r\n\t\t// comprobar que este borrado\r\n\t\tassertNull(modelo.getById(1));\r\n\r\n\t\t// borrar un registro que no existe\r\n\t\tassertFalse(modelo.delete(13));\r\n\t\tassertNull(modelo.getById(13));\r\n\r\n\t\tassertEquals(\"debemos tener un registro menos\", (todos - 1), modelo\r\n\t\t\t\t.getAll().size());\r\n\r\n\t}", "@Test\n public void normal_recursive_delete_WebDAV_collection() {\n String collectionName = \"deleteDavCollection\";\n String davFileName = \"davFile.txt\";\n\n try {\n // Create collection.\n DavResourceUtils.createWebDAVCollection(Setup.TEST_CELL1, Setup.TEST_BOX1, collectionName,\n Setup.BEARER_MASTER_TOKEN, HttpStatus.SC_CREATED);\n // Create dav file.\n DavResourceUtils.createWebDAVFile(Setup.TEST_CELL1, Setup.TEST_BOX1, collectionName + \"/\" + davFileName,\n \"text/html\", TOKEN, \"foobar\", HttpStatus.SC_CREATED);\n // Recursive delete collection.\n deleteRecursive(collectionName, \"true\", HttpStatus.SC_NO_CONTENT);\n } finally {\n deleteRecursive(collectionName, \"true\", -1);\n }\n }", "@Test\n public void testDeleteMember() throws Exception {\n }", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testDelete() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/tec_dump.xml.smalltest\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(10, mi.getNodeDao().countAll());\n }", "public boolean delete(String path, boolean recurse) throws SystemException;", "@Test\n public void deleteContact() {\n }", "public void testDelete() {\r\n Dao dao = new DaoTag();\r\n Tag tag = new Tag(\"50798,6874,visceral,1273666358\");\r\n assertTrue(dao.delete(tag));\r\n }", "public static void deleteDirectory(String inputDirectory) {\n File directory = new File(inputDirectory);\n //check if it is a directory\n if (directory.isDirectory()) {\n //check if the directory has children\n if (directory.listFiles().length == 0) {\n directory.delete();\n System.out.println(\"Directory is deleted: \"\n + directory.getAbsolutePath());\n } else {\n //ask user whether he wants to delete the directory\n System.out.println(\"The chosen directory contains few files.\");\n viewDirectory(inputDirectory);\n System.out.println(\"Do you really want to delete the whole directory: \\n 1.Yes\\n 2.No\");\n Scanner userInput = new Scanner(System.in);\n String userRes = userInput.nextLine();\n if (userRes.equalsIgnoreCase(\"yes\") || userRes.equalsIgnoreCase(\"1\")) {\n //delete files inside the directory one by one\n deleteFilesInsideDirectory(directory);\n //delete parent directory\n directory.delete();\n if (!directory.exists()) {\n System.out.println(\"Directory has been deleted.\");\n } else {\n System.out.println(\"Deletion failed\");\n }\n } else if (userRes.equalsIgnoreCase(\"no\") || userRes.equalsIgnoreCase(\"2\")) {\n System.out.println(\"Delete directory request cancelled by user.\");\n } else {\n deleteDirectory(inputDirectory);\n }\n }\n } else {\n System.out.println(\"Invalid path or directory.\");\n }\n }", "public void testDelete() {\r\n\r\n\t\ttry {\r\n\t\t\tlong count, newCount, diff = 0;\r\n\t\t\tcount = levelOfCourtService.getCount();\r\n\t\t\tLevelOfCourt levelOfCourt = (LevelOfCourt) levelOfCourtTestDataFactory\r\n\t\t\t\t\t.loadOneRecord();\r\n\t\t\tlevelOfCourtService.delete(levelOfCourt);\r\n\t\t\tnewCount = levelOfCourtService.getCount();\r\n\t\t\tdiff = newCount - count;\r\n\t\t\tassertEquals(diff, 1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n public void deleteCategory_ReturnsFalse(){\n assertEquals(\"deleteCategory - Returns False\", false, testDatabase.deleteCategory(Integer.MAX_VALUE));\n }", "@Test(dependsOnMethods = {\"testAddConnection\"})\n public void testRemoveConnection() {\n System.out.println(\"removeConnection\");\n instance.removeConnection(testConnection);\n assertEquals(0, instance.getStoredConnections().size());\n }", "@Test\n\tpublic void testDelete() throws Exception {\n\t\tString testFileName = \"testDelete.pdf\";\n\t\tString absPath = scratchFileUtils.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH);\n\t\tString localFileName = FileGenerator.generateFileOfFixedLengthGivenName(absPath, testFileName, 2);\n\n\t\tString targetIrodsFile = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties(\n\t\t\t\ttestingProperties, IRODS_TEST_SUBDIR_PATH + '/' + testFileName);\n\t\tFile localFile = new File(localFileName);\n\n\t\t// now put the file\n\n\t\tIRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties);\n\t\tDataTransferOperations dto = irodsFileSystem.getIRODSAccessObjectFactory()\n\t\t\t\t.getDataTransferOperations(irodsAccount);\n\t\tIRODSFile destFile = irodsFileSystem.getIRODSFileFactory(irodsAccount).instanceIRODSFile(targetIrodsFile);\n\n\t\tdto.putOperation(localFile, destFile, null, null);\n\n\t\tIrodsSecurityManager manager = Mockito.mock(IrodsSecurityManager.class);\n\n\t\tIrodsFileSystemResourceFactory factory = new IrodsFileSystemResourceFactory(manager);\n\t\tLockManager lockManager = Mockito.mock(LockManager.class);\n\t\tfactory.setLockManager(lockManager);\n\n\t\tWebDavConfig config = new WebDavConfig();\n\t\tfactory.setWebDavConfig(config);\n\n\t\tIrodsFileContentService service = Mockito.mock(IrodsFileContentService.class);\n\n\t\tIrodsFileResource resource = new IrodsFileResource(\"host\", factory, destFile, service);\n\n\t\tresource.delete();\n\t\tAssert.assertFalse(\"file not deleted\", destFile.exists());\n\n\t}", "void deleteDirectory(String path, boolean recursive) throws IOException;", "public static void delete0() {\n File class0 = new File(\"/\");\n boolean ret0 = class0.delete();\n assert !ret0;\n System.out.println(ret0);\n }", "public static void main(String[] args){\nFile filez = new File(\"d:/prac/sub1\");\r\ndeleteFolder(filez);\r\n}", "@Override\r\n public void deleteFolder(long id) {\n this.folderRepository.deleteById(id);; \r\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 public void testDeleteMessage() {\n System.out.println(\"deleteMessage\");\n String message = \"\";\n FileSystemStorage instance = null;\n instance.deleteMessage(message);\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 }", "public File delete(File f) throws FileDAOException;", "private void tearDown() {\n if (tempDir != null) {\n OS.deleteDirectory(tempDir);\n tempFiles.clear();\n tempDir = null;\n }\n }", "void deleteDirectories() {\n\n if (story_directory != null && !newStoryReady) {\n deleteStoryDirectory();\n }\n\n if (tag_directory != null && !newStoryReady) {\n deleteTagDirectory();\n }\n\n if (cover_directory != null && !newStoryReady) {\n deleteCoverDirectory();\n }\n }", "@Test\n public void deleteIngredient_ReturnsTrue(){\n int returned = testDatabase.addIngredient(ingredient);\n assertEquals(\"deleteIngredient - Returns True\",true, testDatabase.deleteIngredient(returned));\n }", "public static void main(String[] args) {\n\n doDeleteEmptyDir(\"new_dir1\");\n \n String newDir2 = \"new_dir2\";\n boolean success = deleteDir(new File(newDir2));\n if (success) {\n System.out.println(\"Successfully deleted populated directory: \" + newDir2);\n } else {\n System.out.println(\"Failed to delete populated directory: \" + newDir2);\n }\n \n }", "public static boolean delete(final String dirname) {\r\n return delete(new File(dirname));\r\n }", "@Test\n public void testDelete() throws Exception {\n System.out.println(\"delete\");\n Connection con = ConnexionMySQL.newConnexion();\n int size = Inscription.size(con);\n Timestamp timestamp = stringToTimestamp(\"2020/01/17 08:40:00\");\n Inscription result = Inscription.create(con, \"[email protected]\", timestamp);\n assertEquals(size + 1, Inscription.size(con));\n result.delete(con);\n assertEquals(size, Inscription.size(con));\n }" ]
[ "0.75870675", "0.6793876", "0.6210896", "0.61811554", "0.61561847", "0.6077528", "0.60686034", "0.60609853", "0.6011903", "0.5975404", "0.59664214", "0.5953575", "0.5949593", "0.59429336", "0.59345585", "0.5929067", "0.59234667", "0.5918491", "0.58936703", "0.5871226", "0.58583236", "0.5858188", "0.58537835", "0.58183104", "0.5815005", "0.58127326", "0.580928", "0.57977414", "0.5796525", "0.57778895", "0.57632464", "0.5754671", "0.57496434", "0.5745236", "0.57449937", "0.5744251", "0.57393", "0.57311934", "0.57311934", "0.571127", "0.56895894", "0.56860334", "0.56840724", "0.56736505", "0.56725", "0.56697994", "0.566589", "0.5660917", "0.5645034", "0.5644204", "0.56369084", "0.56334037", "0.5625255", "0.562501", "0.5624414", "0.56144094", "0.5613518", "0.5612935", "0.56042", "0.5598698", "0.5598355", "0.55931205", "0.5587372", "0.5580155", "0.55540454", "0.55512434", "0.55455357", "0.5545284", "0.55403894", "0.5530017", "0.552911", "0.5526715", "0.55262834", "0.5523699", "0.55221784", "0.55193", "0.551793", "0.55142", "0.5513401", "0.5509376", "0.5501602", "0.54878134", "0.5486612", "0.5481457", "0.5476049", "0.5472115", "0.5454042", "0.54497665", "0.544824", "0.54480785", "0.5447082", "0.5445721", "0.5443777", "0.5440533", "0.54347974", "0.5431639", "0.5421308", "0.54212576", "0.54176", "0.5417042" ]
0.8586312
0
Test of getdiffarrange method, of class connection.
@Test public void testGetdiffarrange() throws Exception { System.out.println("getdiffarrange"); double[][] average = null; connection instance = new connection(); double[][] expResult = null; double[][] result = instance.getdiffarrange(average); assertArrayEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void integrateDisconnectionCommand() {\n Peer removedPeer1 = new Peer(2L, \"Peer Mock (id=2)\");\r\n integrateDisconnectionCommand.setPeerId(removedPeer1.getId());\r\n integrateDisconnectionCommand.execute();\r\n\r\n // Removing Peer with ID = 3\r\n Peer removedPeer2 = new Peer(3L, \"Peer Mock (id=3)\");\r\n integrateDisconnectionCommand.setPeerId(removedPeer2.getId());\r\n integrateDisconnectionCommand.execute();\r\n\r\n int activePeerListSize = appModel.getActivePeerList().getActivePeers().size();\r\n\r\n Assert.assertEquals(\"2 Peers removed form the connected list failed.\", 2, activePeerListSize);\r\n }", "Diff() {\n\t}", "public void testGetConnection() {\r\n \r\n }", "@Test\n\tpublic void testDiffLibs() \n\t{\n\t\tString id = \"diffLib\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertLCVol2NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t}", "@Test\n\tvoid testSwapPair()\n\t{\n\t\tSystem.out.println(\"test SwapPair\");\n\t\tString[] exp = {\"suruchi\", \"kunal\"};\n\t\toperate.swapPair(p);\n\t\t\n\t\t//act = {\"suruchi\",\"kunal\"}\n\t\tString[] act = {p.getFirst(),p.getSecond()};\n\n\t\t//if equal the pass then test\n\t\tassertArrayEquals(exp, act);\n\t\n\t}", "@Test(dependsOnMethods = {\"testAddConnection\"})\n public void testGetStoredConnections() {\n System.out.println(\"getStoredConnections\");\n instance.addConnection(testConnection);\n Set result = instance.getStoredConnections();\n assertTrue(result.contains(testConnection));\n }", "@Test\n public void testDiff() {\n \t//create data set\n final LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n lastWriteWinSet1.add(time3, \"php\");\n lastWriteWinSet1.add(time1, \"java\");\n lastWriteWinSet1.add(time2, \"python\");\n lastWriteWinSet1.add(time1, \"scala\");\n lastWriteWinSet1.delete(time2, \"scala\");\n\n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n lastWriteWinSet2.add(time1, \"php\");\n lastWriteWinSet2.add(time3, \"python\");\n lastWriteWinSet2.add(time1, \"scala\");\n lastWriteWinSet2.delete(time2, \"php\");\n\n // run test\n final LastWriteWinSet<String> resultSet = lastWriteWinSet1.diff(lastWriteWinSet2);\n \n assertTrue(resultSet.getData().size() == 3);\n assertTrue(resultSet.getData().contains(\"php\"));\n assertTrue(resultSet.getData().contains(\"python\"));\n assertTrue(resultSet.getData().contains(\"java\"));\n \n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultAddSet = resultSet.getAddSet();\n final Set<LastWriteWinSet.ItemTD<String>> addedData = resultAddSet.getData();\n assertTrue(addedData.size() == 3);\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(3, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"java\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(2, \"python\")));\n\n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultDeleteSet = resultSet.getDeleteSet();\n final Set<LastWriteWinSet.ItemTD<String>> deletedData = resultDeleteSet.getData();\n assertTrue(deletedData.size() == 1);\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"scala\")));\n }", "@Test\n\tpublic void testGetTestDifference() {\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"1\";\n\t\tLine line = new Line(added, removed, \"test/dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tint diff = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(0, diff);\n\n\t\tint test = line.getTestDiff(types);\n\t\tassertEquals(2, test);\n\t}", "@Test\n void test08_getAllAdjacentVertices() {\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"a\", \"c\"); // add two edges\n\n List<String> check = new ArrayList<>();\n check.add(\"b\");\n check.add(\"c\"); // create mock up adjacent list\n\n if (!check.equals(graph.getAdjacentVerticesOf(\"a\"))) { // checks if both are same\n fail(\"graph didn't record adjacent vertices correctly\");\n }\n }", "@Test\n public void testCompareAfter() {\n Tile t7 = new Tile(6, 3);\n assertEquals(6, board3by3.compareAfter(t7));\n }", "@Test\r\n public void testCompliment1() {\r\n int actual[] = set1.getComplement();\r\n Assert.assertArrayEquals(new int[] { 100, 200, 456, 234, 890, 990, 100,\r\n 210, 500, 700, 900 }, actual);\r\n }", "@Test\n public void callGetPossibleMoves() {\n\n game.setNode(new NodeImp(\"3,3\",\"P2\"));\n\n game.setNode(new NodeImp(\"3,4\",\"P1\"));\n\n game.setNode(new NodeImp(\"4,3\",\"P1\"));\n\n game.setNode(new NodeImp(\"4,4\",\"P2\"));\n\n String[] expectedMoves = {\"2,3\",\"4,5\",\"3,2\",\"5,4\"};\n Arrays.sort(expectedMoves);\n\n List<Node> actualPossibleMoves = game.getPossibleMoves();\n List<String> stringList = new Vector<>();\n for(Node node:actualPossibleMoves) {\n\n stringList.add(node.getId());\n\n }\n\n Object[] objectList = stringList.toArray();\n String[] actualMoves = Arrays.copyOf(objectList, objectList.length, String[].class);\n Arrays.sort(actualMoves);\n assertArrayEquals(expectedMoves, actualMoves);\n }", "@Test\n public void testPrueba1(){\n \n System.out.println(\"Prueba 1\");\n int[] input = new int[]{1, 2, 3, 5, 4};\n int[] expectedResult = new int[]{1, 2, 3, 4, 5};\n int[] actualResult = BubbleSort.sortBasic(input);\n assertArrayEquals(expectedResult, actualResult);\n \n }", "@Test\n public void testDiff() throws Exception {\n String newVersionJarPath = \"data/sample/jar/change4.jar\";\n String oldVersionJarPath = \"data/sample/jar/change3.jar\";\n String changePath = \"data/sample/changes_change4_change3.txt\";\n\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionCodePath, oldVersionCodePath, changePath, false);\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionJarPath, oldVersionJarPath, changePath, false);\n// CallRelationGraph callGraphForChangedPart = new CallRelationGraph(relationInfoForChangedPart);\n//\n// double thresholdForInitialRegion = 0.35;\n// RelationInfo oldRelationInfo = new RelationInfo(newVersionJarPath,false);\n// oldRelationInfo.setPruning(thresholdForInitialRegion);\n// RelationInfo newRelationInfo = new RelationInfo(oldVersionJarPath,false);\n// newRelationInfo.setPruning(thresholdForInitialRegion);\n//\n// CallRelationGraph oldCallGraph = new CallRelationGraph(oldRelationInfo);\n// CallRelationGraph newCallGraph = new CallRelationGraph(newRelationInfo);\n//\n// ChangedArtifacts changedArtifacts = new ChangedArtifacts();\n// changedArtifacts.parse(changePath);\n//\n// InitialRegionFetcher fetcher = new InitialRegionFetcher(changedArtifacts, newCallGraph, oldCallGraph);\n//\n// ExportInitialRegion exporter = new ExportInitialRegion(fetcher.getChangeRegion());\n\n }", "public void testRevert() {\n\t\tthis.two.revert();\n\t\tthis.one.revert();\n\t\tthis.replayMockObjects();\n\t\tthis.aggregate.revert();\n\t\tthis.verifyMockObjects();\n\t}", "public void testConnect() {\n\t\tConnection con = SQLUtilities.connect();\n\t\tResultSet set = SQLUtilities.executeSQL(\"SELECT * FROM TBL\", con);\n\t\t\n\t\ttry {\n\t\t\tset.last();\n\t\t\tint indx = set.getRow();\n\t\t\tSystem.out.println(indx);\n\t\t} catch (SQLException e) {\n\t\t\tfail();\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSQLUtilities.disconnect(con);\n\t\tassertEquals(true,true);\n\n\t}", "public void test2() {\n //$NON-NLS-1$\n deployBundles(\"test2\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 1, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.VALUE, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\n public void testAirliftCommand() {\n List<Country> l_countryList = d_gameData.getD_warMap().getD_continents().get(1).getD_countryList();\n l_countryList.add(d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0));\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).setD_noOfArmies(7);\n d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0).setD_noOfArmies(3);\n\n d_orderProcessor.processOrder(\"airlift india nepal 6\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(true, l_order.executeOrder());\n\n assertEquals(0, d_gameData.getD_playerList().get(1).getD_ownedCountries().size());\n assertEquals(3, d_gameData.getD_playerList().get(0).getD_ownedCountries().size());\n assertEquals(4, d_gameData.getD_playerList().get(0).getD_ownedCountries().get(2).getD_noOfArmies());\n assertEquals(1, d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).getD_noOfArmies());\n }", "@Test(dependsOnMethods = {\"testAddConnection\"})\n public void testRemoveConnection() {\n System.out.println(\"removeConnection\");\n instance.removeConnection(testConnection);\n assertEquals(0, instance.getStoredConnections().size());\n }", "@Test\n\t\tpublic void walkwayAdjacencyTests() {\n\t\t\t//Tests a walkway space that should have 4 surrounding walkway spaces\n\t\t\tSet<BoardCell> testList = board.getAdjList(11, 10);\n\t\t\tassertEquals(4, testList.size());\n\t\t\tassertTrue(testList.contains(board.getCellAt(11, 9)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(11, 11)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(10, 10)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(12, 10)));\n\t\t\t//Tests a walkway space that is against a room space with 3 surrounding walkway spaces\n\t\t\ttestList = board.getAdjList(11, 7);\n\t\t\tassertEquals(3, testList.size());\n\t\t\tassertTrue(testList.contains(board.getCellAt(11, 8)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(10, 7)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(12, 7)));\n\t\t\n\t\t}", "@Test\r\n\tpublic void testDifference() {\n\t\tnum1 = 12;\r\n\t\tnum2 = 3;\r\n\t\tresult = calculate.difference(num1, num2); //stores the difference between two int into result\r\n\t\texpected = 9;\r\n\t\t\r\n\t\tassertEquals(expected,result);\t//compares the expected to the actual result, if they dont match a fail occurs\r\n\t}", "@Test\r\n\tpublic void testAdjacency00() {\r\n\t\tBoardCell cell = board.getCell(0, 0);\r\n\t\tSet<BoardCell> testList = board.getAdjList(cell);\r\n\t\tassertTrue(testList != null);\r\n\t\tassertTrue(testList.contains(board.getCell(1, 0)));\r\n\t\tassertTrue(testList.contains(board.getCell(0, 1)));\r\n\t\tassertEquals(2, testList.size());\r\n\r\n\t}", "@Test\n public void getAllRecipeDirections_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeDirection> allDirections = testDatabase.getAllRecipeDirections(returned);\n RecipeDirection retrieved = allDirections.get(allDirections.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipeDirections - Correct Text\", \"TestDirection2\", retrieved.getDirectionText());\n assertEquals(\"getAllRecipeDirections - Correct Number\", 2, retrieved.getDirectionNumber());\n }", "@Test\r\n\tpublic void testAdjacency22() {\r\n\t\tBoardCell cell = board.getCell(2, 2);\r\n\t\tSet<BoardCell> testList = board.getAdjList(cell);\r\n\t\tassertTrue(testList != null);\r\n\t\tassertTrue(testList.contains(board.getCell(2, 1)));\r\n\t\tassertTrue(testList.contains(board.getCell(1, 2)));\r\n\t\tassertTrue(testList.contains(board.getCell(3, 2)));\r\n\t\tassertTrue(testList.contains(board.getCell(2, 3)));\r\n\t\tassertEquals(4, testList.size());\r\n\t}", "@Test\n public void testSwapFirstTwo() {\n setUpCorrect();\n assertEquals(1, ((Board) boardManager.getBoard()).getTile(0, 0).getId());\n assertEquals(2, ((Board) boardManager.getBoard()).getTile(0, 1).getId());\n ((Board) boardManager.getBoard()).swapTiles(0, 0, 0, 1);\n assertEquals(2, ((Board) boardManager.getBoard()).getTile(0, 0).getId());\n assertEquals(1, ((Board) boardManager.getBoard()).getTile(0, 1).getId());\n }", "@Test\n\tpublic void testGetSourceDifference() {\n\t\t\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"1\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\t\t\n\t\t// Exercise\n\t\tint diff = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(2, diff);\n\n\t\tint test = line.getTestDiff(types);\n\t\tassertEquals(0, test);\n\t}", "@Test\n\tpublic void testSameLibDiffLocs() \n\t{\n\t\tString id = \"diffHomeLoc\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertLCVol2NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t}", "public void setDiff(){\n diff=true;\n }", "@Ignore\n\t@Test\n\tpublic void testCreateDiff() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException,\n\t\t\tNoSuchMethodException, SecurityException, IOException {\n\n\t\tFile testFile = new File(\"testdata/test_input_linux/incrementalProblems.txt\");\n\t\tDiffAnalyzer analyzer = new DiffAnalyzer(testFile);\n\t\t\n\t\tArrayList<String> diffEntries = new ArrayList<String>();\n\t\tStringJoiner joiner = new StringJoiner(\"\\n\");\n\t\tfor (String line : Files.readAllLines(testFile.toPath())) {\n\t\t\tif (line.startsWith(\"diff --git\")) {\n\t\t\t\tString currentJoinerContent = joiner.toString();\n\t\t\t\tif (!currentJoinerContent.isEmpty() && currentJoinerContent.startsWith(\"diff --git\")) {\n\t\t\t\t\tdiffEntries.add(currentJoinerContent);\n\t\t\t\t\tjoiner = new StringJoiner(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tjoiner.add(line);\n\t\t}\n\n\t\tMethod method = analyzer.getClass().getDeclaredMethod(\"createFileDiff\", String.class);\n\t\tmethod.setAccessible(true);\n\n\t\tfor (String diffEntry : diffEntries) {\n\t\t\tSystem.out.println(diffEntry);\n\t\t\tFileDiff fileDiff = (FileDiff) method.invoke(analyzer, diffEntry);\n\t\t\tAssert.assertTrue(fileDiff != null);\n\t\t}\n\t}", "void assertEnhancementsRepository(RepositoryConnection metaConn);", "@Test\r\n public void testAreAdjacent() {\r\n System.out.println(\"areAdjacent\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e = instance.insertEdge(v1, v2, edgeElement);\r\n\r\n Object result = instance.areAdjacent(v1, v2);\r\n Object expectedResult = true;\r\n assertEquals(expectedResult, result);\r\n }", "IFileDiff[] getDiffs();", "@Test\n public void diffDagGraphsTest() throws Exception {\n // NOTE: unlike equalDagGraphsTest(), the second trace in this example\n // omits a \"d\" event.\n String traceStr = \"1,0 a\\n\" + \"2,1 c\\n\" + \"1,2 b\\n\" + \"2,3 d\\n\"\n + \"--\\n\" + \"1,0 a\\n\" + \"2,1 b\\n\" + \"1,2 c\\n\";\n\n TraceParser parser = genParser();\n ArrayList<EventNode> parsedEvents = parser.parseTraceString(traceStr,\n testName.getMethodName(), -1);\n DAGsTraceGraph g2 = parser.generateDirectPORelation(parsedEvents);\n exportTestGraph(g2, 1);\n\n List<Transition<EventNode>> initNodeTransitions = g2\n .getDummyInitialNode().getAllTransitions();\n EventNode firstA = initNodeTransitions.get(0).getTarget();\n EventNode secondA = initNodeTransitions.get(1).getTarget();\n\n testKEqual(firstA, secondA, 1);\n testKEqual(firstA, secondA, 2);\n\n // The 'd' in g2 makes it different from g1 at k >= 3.\n testNotKEqual(firstA, secondA, 3);\n testNotKEqual(firstA, secondA, 4);\n }", "private void testEdge(final ManagementEdge origEdge, final ManagementEdge copyEdge) {\n\n\t\tassertEquals(origEdge.getChannelType(), copyEdge.getChannelType());\n\t\tassertEquals(origEdge.getSourceIndex(), copyEdge.getSourceIndex());\n\t\tassertEquals(origEdge.getTargetIndex(), copyEdge.getTargetIndex());\n\t}", "@Test\n\tpublic void testDiffMonth() {\n diffMonth.addOneDay();\n diffMonthTwo.addOneDay();\n diffMonthThree.addOneDay();\n assertEquals(2, diffMonth.getMonth());\n assertEquals(3, diffMonthTwo.getMonth());\n assertEquals(5, diffMonthThree.getMonth());\n }", "@Test\n public void newSortingTest4() {\n newSorting sort = new newSorting();\n int[] arr = {-1, 0, 1, 0, 1, 0, -1};\n int[] expected = {-1, -1, 0, 0, 0, 1, 1};\n sort.newSorting(arr, 3);\n assertArrayEquals(arr, expected);\n\n }", "int planDiff (ArrayList<String> planR, ArrayList<String> planH) {\n \tif (planR.equals(planH)) return -1;\n\t\tint actionNumber = 0;\n\t\tfor (int i = 0; i < (planR.size() & planH.size()); i++) {\n\t\t\tif (!planR.get(i).equals(planH.get(i))) {\n\t\t\t\tactionNumber = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n//\t\tif ((actionNumber > 0 && planR.size() == planH.size())) return -1; // for planner indp\n\t\treturn actionNumber;\n\t}", "@Test\r\n public void testSwapFirstTwo() {\r\n int id1 = boardManager4.getBoard().getTile(0,0).getId();\r\n int id2 = boardManager4.getBoard().getTile(0,1).getId();\r\n boardManager4.getBoard().swapTiles(0,0,0,1);\r\n assertEquals(id1, boardManager4.getBoard().getTile(0,1).getId());\r\n assertEquals(id2,boardManager4.getBoard().getTile(0,0).getId());\r\n }", "@Test\n\tpublic void testLopSameTranslLoc() \n\t{\n\t\tString id = \"sameTransLoc\";\n\t\tassertLCVolLopped(id);\n\t\tassertNoUnloppedLCVol1(id);\n\t\tassertNoUnloppedLCVol2(id);\n\t}", "public void test11() {\n //$NON-NLS-1$\n deployBundles(\"test11\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 1, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.INCREASE_ACCESS, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertTrue(\"Not compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\r\n\tpublic void testAdjacencyWalkways()\r\n\t{\r\n\t\t// Test on top edge of board, two walkway pieces\r\n\t\tSet<BoardCell> testList = board.getAdjList(0, 7);\r\n\t\tassertTrue(testList.contains(board.getCellAt(0, 8)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(1, 7)));\r\n\t\tassertEquals(2, testList.size());\r\n\t\t\r\n\t\t// Test on left edge of board, one walkway piece\r\n\t\ttestList = board.getAdjList(8, 0);\r\n\t\tassertTrue(testList.contains(board.getCellAt(9, 0)));\r\n\t\tassertEquals(1, testList.size());\r\n\r\n\t\t// Test a walkway next to closet, 2 walkway pieces\r\n\t\ttestList = board.getAdjList(12, 9);\r\n\t\tassertTrue(testList.contains(board.getCellAt(12, 10)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(13, 9)));\r\n\t\tassertEquals(2, testList.size());\r\n\r\n\t\t// Test surrounded by 4 walkways\r\n\t\ttestList = board.getAdjList(11,4);\r\n\t\tassertTrue(testList.contains(board.getCellAt(11, 5)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(11, 3)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(12, 4)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(10, 4)));\r\n\t\tassertEquals(4, testList.size());\r\n\t\t\r\n\t\t// Test on bottom edge of board, next to 1 room piece\r\n\t\ttestList = board.getAdjList(24, 18);\r\n\t\tassertTrue(testList.contains(board.getCellAt(23, 18)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(24, 17)));\r\n\t\tassertEquals(2, testList.size());\r\n\t\t\r\n\t\t// Test on right edge of board, next to 1 room piece\r\n\t\ttestList = board.getAdjList(10, 24);\r\n\t\tassertTrue(testList.contains(board.getCellAt(11, 24)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(10, 23)));\r\n\t\tassertEquals(2, testList.size());\r\n\r\n\t\t// Test on walkway next to door that is not in the needed\r\n\t\t// direction to enter\r\n\t\ttestList = board.getAdjList(12, 21);\r\n\t\tassertTrue(testList.contains(board.getCellAt(11, 21)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(13, 21)));\r\n\t\tassertTrue(testList.contains(board.getCellAt(12, 20)));\r\n\t\tassertEquals(3, testList.size());\r\n\t}", "@Test\n public void testSwapLastTwo() {\n setUpCorrect();\n assertEquals(15, ((Board) boardManager.getBoard()).getTile(3, 2).getId());\n assertEquals(16, ((Board) boardManager.getBoard()).getTile(3, 3).getId());\n ((Board) boardManager.getBoard()).swapTiles(3, 3, 3, 2);\n assertEquals(16, ((Board) boardManager.getBoard()).getTile(3, 2).getId());\n assertEquals(15, ((Board) boardManager.getBoard()).getTile(3, 3).getId());\n }", "public void testCmdUpdate() {\n\t\ttestCmdUpdate_taskID_field();\n\t\ttestCmdUpdate_taskName_field();\n\t\ttestCmdUpdate_time_field();\n\t\ttestCmdUpdate_priority_field();\n\t}", "@Test\n\tpublic void testGetDifferenceRemoved() {\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"-\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tint diff = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(1, diff);\n\n\t}", "private void assertEqual(Iterator expected, Iterator actual) {\n\t\t\n\t}", "@Test\n\tpublic void testAdjacencyWalkways()\n\t{\n\t\t// Test on top edge of board, just one walkway piece\n\t\tSet<BoardCell> testList = board.getAdjList(22, 9);\n\t\tassertTrue(testList.contains(board.getCellAt(21, 9)));\n\t\tassertEquals(1, testList.size());\n\n\t\t// Test left edge of board, edge of room\n\t\ttestList = board.getAdjList(16, 0);\n\t\tassertTrue(testList.contains(board.getCellAt(17, 0)));\n\t\tassertTrue(testList.contains(board.getCellAt(16, 1)));\n\t\tassertEquals(2, testList.size());\n\n\t\t// Test on left edge of board, three walkway pieces\n\t\ttestList = board.getAdjList(6, 0);\n\t\tassertTrue(testList.contains(board.getCellAt(5, 0)));\n\t\tassertTrue(testList.contains(board.getCellAt(6, 1)));\n\t\tassertTrue(testList.contains(board.getCellAt(7, 0)));\n\t\tassertEquals(3, testList.size());\n\n\t\t// Test surrounded by 4 walkways\n\t\ttestList = board.getAdjList(16,19);\n\t\tassertTrue(testList.contains(board.getCellAt(15, 19)));\n\t\tassertTrue(testList.contains(board.getCellAt(17, 19)));\n\t\tassertTrue(testList.contains(board.getCellAt(16, 20)));\n\t\tassertTrue(testList.contains(board.getCellAt(16, 18)));\n\t\tassertEquals(4, testList.size());\n\n\t\t// Test on bottom edge of board, next to 1 room piece\n\t\ttestList = board.getAdjList(22, 15);\n\t\tassertTrue(testList.contains(board.getCellAt(21, 15)));\n\t\tassertTrue(testList.contains(board.getCellAt(22, 16)));\n\t\tassertEquals(2, testList.size());\n\n\n\t\t// Test on walkway next to door that is not in the needed\n\t\t// direction to enter\n\t\ttestList = board.getAdjList(9, 6);\n\t\tassertTrue(testList.contains(board.getCellAt(8, 6)));\n\t\tassertTrue(testList.contains(board.getCellAt(9, 7)));\n\t\tassertTrue(testList.contains(board.getCellAt(10, 6)));\n\t\tassertEquals(3, testList.size());\n\t}", "@Test\r\n\tpublic void testChooseConnection() throws Exception {\n\t}", "@Test\n public void testGetConnection() {\n System.out.println(\"getConnection\");\n Connection result = instance.getConnection();\n assertTrue(result!=null);\n \n }", "@Test\n void test03_addEdgeBetweenVerticesWhichDontExist() {\n graph.addEdge(\"a\", \"b\");\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates mock up vertex list\n if (!graph.getAllVertices().equals(vertices)) { // compares vertices list\n fail(\"Graph didn't add the vertices correctly\");\n }\n List<String> adjOfA = new ArrayList<>();\n adjOfA.add(\"b\"); // creates mock up adjacent list\n if (!graph.getAdjacentVerticesOf(\"a\").equals(adjOfA)) { // compares adjacent lists\n fail(\"Graph didn't correctly place adjacent vertices\");\n }\n }", "public void test44() {\n //$NON-NLS-1$\n deployBundles(\"test44\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 1, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.NON_VOLATILE_TO_VOLATILE, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertTrue(\"Not compatible\", DeltaProcessor.isCompatible(child));\n }", "private void assertUnchanged(SyncInfoTree set) throws TeamException {\n //TODO: Need to refresh the subscriber since flush of remote state is deep\n CVSProviderPlugin.getPlugin().getCVSWorkspaceSubscriber().refresh(set.getResources(), IResource.DEPTH_ZERO, DEFAULT_MONITOR);\n SyncInfo[] infos = set.getSyncInfos();\n for (int i = 0; i < infos.length; i++) {\n SyncInfo info = infos[i];\n assertUnchanged(info);\n }\n }", "@Test\n public void test_read_input_and_sort() {\n\n }", "@Test\n public void testGetInversions3by3() {\n int inversions = board3by3.getInversions();\n assertEquals(17, inversions);\n }", "@Test\r\n\tpublic void testAdjacency11() {\r\n\t\tBoardCell cell = board.getCell(1, 1);\r\n\t\tSet<BoardCell> testList = board.getAdjList(cell);\r\n\t\tassertTrue(testList != null);\r\n\t\tassertTrue(testList.contains(board.getCell(0, 1)));\r\n\t\tassertTrue(testList.contains(board.getCell(1, 0)));\r\n\t\tassertTrue(testList.contains(board.getCell(1, 2)));\r\n\t\tassertTrue(testList.contains(board.getCell(2, 1)));\r\n\t\tassertEquals(4, testList.size());\r\n\t}", "@Test\n\tpublic void testGetDifferenceAdded() {\n\t\t// Setup\n\t\tString added = \"-\";\n\t\tString removed = \"1\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\t\t\n\t\t// Exercise\n\t\tint src = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(1, src);\n\n\t}", "@Test\n public void testTaskConfigs() {\n PowerMock.replayAll();\n connector.start(sampleConfig);\n assertThat(connector.taskConfigs(0), hasSize(0));\n assertThat(connector.taskConfigs(10), hasSize(10));\n PowerMock.verifyAll();\n }", "@Test\n\tpublic void testDifference5() {\n\n\t\t// parameters inpt here\n\n\t\tint[] arr = { 1, 2, 3, 5, 7, 8, 9 };\n\t\tint[] diff1 = { 1, 2, 3, 7, 8 }; // this list\n\n\t\t// test difference\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet listObj19 = new SLLSet(diff1);\n\t\tSLLSet listObj20 = listObj2.difference(listObj19);\n\n\t\tString expected = \"5, 9\";\n\t\tint expectedSize = 2;\n\n\t\tassertEquals(expectedSize, listObj20.getSize());\n\t\tassertEquals(expected, listObj20.toString());\n\n\t}", "public abstract void sort() throws RemoteException;", "@Override\n\tpublic void handleDiffException(List<? extends DataObject>[] paramArr) {\n\t\t\n\t}", "public void test22() {\n //$NON-NLS-1$\n deployBundles(\"test22\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 2, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.ADDED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.VALUE, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertTrue(\"Not compatible\", DeltaProcessor.isCompatible(child));\n child = allLeavesDeltas[1];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.NON_FINAL_TO_FINAL, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\r\n\tpublic void testAdjacency33() {\r\n\t\tBoardCell cell = board.getCell(3, 3);\r\n\t\tSet<BoardCell> testList = board.getAdjList(cell);\r\n\t\tassertTrue(testList != null);\r\n\t\tassertTrue(testList.contains(board.getCell(2, 3)));\r\n\t\tassertTrue(testList.contains(board.getCell(3, 2)));\r\n\t\tassertEquals(2, testList.size());\r\n\t}", "@Test(dependsOnMethods = \"verifyDaysSortTest\")\r\n\tpublic void verifyAmountSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickAmountColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// click Amount Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickAmountColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// compare to the database when sorted by given column-Descending (EXISTING BUG\r\n\t\t// BACKLOGGED)\r\n\t\t// if (carrierschedulepayment.getRowCount() > 1)\r\n\t\t// Assert.assertNotEquals(firstRowData, lastRowData,\r\n\t\t// \"First Row Data: \\n\" + firstRowData + \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}", "@Test\n public void testDelete() throws Exception {\n String theTaskId = \"222\";\n String query = String.format(\"select empId from %s.%s where taskId = '%s'\",\n tableSchema.schemaName, TASK_TABLE_NAME, theTaskId);\n\n TestConnection connection = methodWatcher.getOrCreateConnection();\n connection.setAutoCommit(false);\n\n // insert good data\n PreparedStatement ps = methodWatcher.prepareStatement(\n String.format(\"insert into %s.%s (taskId, empId, startedAt, finishedAt) values (?,?,?,?)\",\n tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setString(1, theTaskId);\n ps.setInt(2, 101);\n ps.setInt(3, 0600);\n ps.setInt(4, 0700);\n int rows = ps.executeUpdate();\n Assert.assertEquals(1, rows);\n connection.commit();\n\n ResultSet rs = connection.createStatement().executeQuery(query);\n rs.next();\n Assert.assertEquals(101, rs.getInt(1));\n Assert.assertFalse(\"Only one row expected.\", rs.next());\n connection.commit();\n\n ps = methodWatcher.prepareStatement(\n String.format(\"delete from %s.%s where taskId = ?\", tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setString(1, theTaskId);\n rows = ps.executeUpdate();\n Assert.assertEquals(1, rows);\n connection.commit();\n\n rs = connection.createStatement().executeQuery(query);\n Assert.assertFalse(\"No rows expected.\", rs.next());\n connection.commit();\n }", "public void test26() {\n //$NON-NLS-1$\n deployBundles(\"test26\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 1, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertTrue(\"Is visible\", !Util.isVisible(child.getNewModifiers()));\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.VALUE, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertTrue(\"Not compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\r\n\tpublic void testSyncAb() throws Throwable {\n\r\n\t\tsyncService.syncAB();\r\n\r\n//\t\tnotProcessedCount = (Number) jdbcTemplate.queryForObject(\r\n//\t\t\t\t\"select count(1) from ab_sync_changes_tbl where processed=0\", Number.class);\r\n//\t\tassertEquals(\"Should not have not processed data\", 0, notProcessedCount.intValue());\r\n\t}", "public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }", "@Test\r\n\tpublic void testAdjacency30() {\r\n\t\tBoardCell cell = board.getCell(3, 0);\r\n\t\tSet<BoardCell> testList = board.getAdjList(cell);\r\n\t\tassertTrue(testList != null);\r\n\t\tassertTrue(testList.contains(board.getCell(2, 0)));\r\n\t\tassertTrue(testList.contains(board.getCell(3, 1)));\r\n\t\tassertEquals(2, testList.size());\r\n\t}", "@Test\n public void testAddConn() {\n System.out.println(\"addConn\");\n String port = \"\";\n String conn = \"\";\n VM instance = null;\n String expResult = \"\";\n String result = instance.addConn(port, conn);\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 testGetInversions4by4() {\n int inversions = board4by4.getInversions();\n assertEquals(44, inversions);\n }", "@Test\n public void testSortAlgorithm() {\n System.out.println(\"sortAlgorithm\");\n String input = \"8 0 3 1 6 5 -2 4 7\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult = 5;\n int result = instance.sortAlgorithm(input);\n assertEquals(result, expResult);\n }", "@Test\n public void testDiffConstraint () throws IOException\n {\n CacheList clist = new CacheList(new Scanner(\n \"GCABCD\\tAs The World Turns\\tbunny\\t1\\t1\\tN40 45.875\\tW111 48.986\\nGCRQWK\\tOld Three Tooth\\tgeocadet\\t3.5\\t3\\tN40 45.850\\tW111 48.045\\n\"));\n clist.setDifficultyConstraints(2, 4);\n ArrayList<Cache> selected = clist.select();\n assertEquals(\"GCRQWK\", selected.get(0).getGcCode());\n }", "@Test\n public void testDisconnect() throws MainException {\n System.out.println(\"disconnect\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n boolean expResult = true;\n boolean result = instance.disconnect();\n assertEquals(expResult, result);\n result = instance.isConnected();\n assertEquals(result, false);\n // TODO review the generated test code and remove the default call to fail.\n }", "@Test\n public void testDeployCommand() {\n d_gameData.getD_playerList().get(0).setD_noOfArmies(10);\n d_orderProcessor.processOrder(\"deploy india 6\", d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n boolean l_check = l_order.executeOrder();\n assertEquals(true, l_check);\n int l_countryArmies = d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).getD_noOfArmies();\n assertEquals(6, l_countryArmies);\n int l_actualArmiesInPlayer = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n assertEquals(4, l_actualArmiesInPlayer);\n }", "@Test\r\n public void testCreateTourWithOrder_SameOrder() {\r\n Tour tour = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour result = tour.createTourWithOrder(new int[]{0, 1, 2, 3});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\r\n\tpublic void testAdjacency13() {\r\n\t\tBoardCell cell = board.getCell(1, 3);\r\n\t\tSet<BoardCell> testList = board.getAdjList(cell);\r\n\t\tassertTrue(testList != null);\r\n\t\tassertTrue(testList.contains(board.getCell(0, 3)));\r\n\t\tassertTrue(testList.contains(board.getCell(2, 3)));\r\n\t\tassertTrue(testList.contains(board.getCell(1, 2)));\r\n\t\tassertEquals(3, testList.size());\r\n\t}", "public void test1() {\n //$NON-NLS-1$\n deployBundles(\"test1\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 1, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.TYPE, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\r\n public void testCreatePopularTour_EveryScndWaypointFromFirst() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour result = tourA.createPopularTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result)); \r\n }", "@Test\n public void testCasesVidePlacement() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test casesVidePlacement ====================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n JoueurHumain j1 = new JoueurHumain(instance, true, NumJoueur.JOUEUR1);\n JoueurHumain j2 = new JoueurHumain(instance, true, NumJoueur.JOUEUR1);\n Reine reinej1 = j1.getReine(j1.getPions());\n Reine reinej2 = j2.getReine(j2.getPions());\n\n ArrayList<HexaPoint> expectedj1;\n ArrayList<HexaPoint> expectedj2;\n ArrayList<HexaPoint> resj1;\n ArrayList<HexaPoint> resj2;\n\n System.out.println(\"test sur une ruche venant d'être créé :\");\n expectedj1 = new ArrayList<>();\n expectedj1.add(orig);\n expectedj2 = new ArrayList<>();\n expectedj2.add(orig);\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n arrayCorrespondsp(resj1, expectedj1);\n arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur avec l'insecte de j1 à l'origine :\");\n instance.ajoutInsecte(reinej1, orig);\n expectedj1 = new ArrayList<>();\n expectedj1.addAll(orig.coordonneesVoisins());\n expectedj2 = new ArrayList<>();\n expectedj2.addAll(orig.coordonneesVoisins());\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n arrayCorrespondsp(resj1, expectedj1);\n arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n \n System.out.println(\"test sur avec l'insecte de j1 à l'origine et j2 en bas:\");\n instance.ajoutInsecte(reinej2, orig.voisinBas());\n expectedj1 = new ArrayList<>();\n expectedj1.add(orig.voisinDroiteHaut());\n expectedj1.add(orig.voisinGaucheHaut());\n expectedj1.add(orig.voisinHaut());\n expectedj2 = new ArrayList<>();\n expectedj2.add(orig.voisinBas().voisinBas());\n expectedj2.add(orig.voisinBas().voisinDroiteBas());\n expectedj2.add(orig.voisinBas().voisinGaucheBas());;\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n //arrayCorrespondsp(resj1, expectedj1);\n //arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\r\n public void testCreateTourWithOrder_ReversedOrder() {\r\n Tour tour = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour expected = new Tour(new int[][]{{3, 3}, {2, 2}, {1, 1}, {0, 0}});\r\n Tour result = tour.createTourWithOrder(new int[]{3, 2, 1, 0});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test void testDesc() {\n final String sql = \"select desc\\n\"\n + \"from t\\n\"\n + \"order by desc asc, desc desc\";\n final String expected = \"SELECT `DESC`\\n\"\n + \"FROM `T`\\n\"\n + \"ORDER BY `DESC`, `DESC` DESC\";\n sql(sql).ok(expected);\n }", "@Test\r\n public void testSwapLastTwo() {\r\n int id1 = boardManager4.getBoard().getTile(3,2).getId();\r\n int id2 = boardManager4.getBoard().getTile(3,3).getId();\r\n boardManager4.getBoard().swapTiles(3,3,3,2);\r\n assertEquals(id1, boardManager4.getBoard().getTile(3,3).getId());\r\n assertEquals(id2,boardManager4.getBoard().getTile(3,2).getId());\r\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(11, \"xuL|;?{*vu=xht\");\n fBProcedureParam0.setType(11);\n fBProcedureCall0.getSQL(true);\n FBProcedureParam fBProcedureParam1 = new FBProcedureParam(2, \"xuL|;?{*vu=xht\");\n fBProcedureParam0.setValue(fBProcedureParam1);\n fBProcedureCall0.getSQL(true);\n fBProcedureParam1.setIndex((-408));\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n FBProcedureParam fBProcedureParam2 = new FBProcedureParam();\n fBProcedureCall0.addInputParam(fBProcedureParam0);\n fBProcedureCall0.addParam(2, \"not\");\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n fBProcedureCall2.getOutputParam(2762);\n FBProcedureCall fBProcedureCall3 = (FBProcedureCall)fBProcedureCall0.clone();\n fBProcedureCall0.equals(fBProcedureCall3);\n fBProcedureCall2.getName();\n assertTrue(fBProcedureCall2.equals((Object)fBProcedureCall1));\n \n FBProcedureCall fBProcedureCall4 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam3 = new FBProcedureParam();\n fBProcedureCall3.getOutputParam((-1));\n fBProcedureCall1.addOutputParam(fBProcedureParam0);\n fBProcedureCall2.clone();\n assertFalse(fBProcedureCall2.equals((Object)fBProcedureCall1));\n }", "private Boolean compararQueries(Configuracion config,Consulta consultaOriginal, Consulta consultaAlternativa, int itemConsultaOriginal, int itemConsultaAlternativa){\n\t\tDatabase database1 = new Database();\n\t\tDatabase database2 = new Database();\n\t\tList<Map<String, Object>> resultadosConsulta1 = database1.ejecutarQuery(config, consultaOriginal, database1);\n\t\tList<Map<String, Object>> resultadosConsulta2 = database2.ejecutarQuery(config, consultaAlternativa, database2);\n\t\tif (resultadosConsulta1.equals(resultadosConsulta2)){\n\t\t\treturn true;\t\t\t\t\t\n\t\t}\n\t\telse\n\t\t\treturn false;\t\t\t\n\t}", "@Test\n\t\tpublic void boardEdgeTests() {\n\t\t\t//Testing a walkway space that is on the top edge of the board and is next to a door that points in its direction (\n\t\t\tSet<BoardCell> testList = board.getAdjList(0, 17);\n\t\t\tassertEquals(3, testList.size());\n\t\t\tassertTrue(testList.contains(board.getCellAt(0, 16)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(0, 18)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(1, 17)));\n\t\t\t//Testing a walkway space on the bottom edge of the board that is near a room space\n\t\t\ttestList = board.getAdjList(20, 5);\n\t\t\tassertEquals(2, testList.size());\n\t\t\tassertTrue(testList.contains(board.getCellAt(19, 5)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(20, 6)));\n\t\t\t//Testing walkway a space on the left edge of the board that is surrounded by 3 other walkway spaces\n\t\t\ttestList = board.getAdjList(5, 0);\n\t\t\tassertEquals(3, testList.size());\n\t\t\tassertTrue(testList.contains(board.getCellAt(4, 0)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(6, 0)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(5, 1)));\n\t\t\t//Testing a room space in the bottom right corner\n\t\t\ttestList = board.getAdjList(20, 21);\n\t\t\tassertEquals(0, testList.size());\n\n\t\t}", "public void test31() {\n //$NON-NLS-1$\n deployBundles(\"test31\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 1, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.ADDED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.TYPE_ARGUMENTS, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertTrue(\"Is compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\n public void newSortingTest2() {\n newSorting sort = new newSorting();\n int[] arr = {0, 5, 1, 8, 0, 0};\n int[] expected = {0, 0, 0, 1, 5, 8};\n sort.newSorting(arr, 4);\n assertArrayEquals(arr, expected);\n }", "@Test\r\n void insert_multiple_vertexes_and_edges_remove_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"B\", \"D\");\r\n \r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n int numberOfEdges = graph.size();\r\n int numberOfVertices = graph.order();\r\n if(numberOfEdges != 4) {\r\n fail();\r\n }\r\n if(numberOfVertices != 4) {\r\n fail();\r\n }\r\n \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")|!vertices.contains(\"D\")) {\r\n fail();\r\n }\r\n \r\n // Check that A's outgoing edges are correct\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\") || !adjacent.contains(\"C\"))\r\n fail();\r\n // Check that B's outgoing edges are correct\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\") | !adjacent.contains(\"D\"))\r\n fail(); \r\n // C and D have no out going edges \r\n adjacent = graph.getAdjacentVerticesOf(\"C\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n adjacent = graph.getAdjacentVerticesOf(\"D\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n // Remove B from the graph \r\n graph.removeVertex(\"B\");\r\n // Check that A's outgoing edges are correct\r\n // An edge to B should no exist any more \r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (adjacent.contains(\"B\") || !adjacent.contains(\"C\"))\r\n fail();\r\n // There should be no elements in the list of successors\r\n // of B since its deleted form the graph\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n // Check that graph has still has all vertexes not removed\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"C\")|\r\n !vertices.contains(\"D\")) {\r\n fail();\r\n }\r\n //Check that vertex B was removed from graph \r\n if(vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n numberOfEdges = graph.size();\r\n numberOfVertices = graph.order();\r\n if(numberOfEdges != 1) {\r\n fail();\r\n }\r\n if(numberOfVertices != 3) {\r\n fail();\r\n }\r\n }", "@Test\n public void testSort_intArr_IntComparator_Desc() {\n IntComparator comparator = IntComparatorDesc.getInstance();\n int[] expResult = DESC_CHECK_ARRAY;\n sorter.sort(data, comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.addParam(0, \"gZbnc2Y!%jU?C2`8\");\n fBProcedureCall0.getSQL(true);\n fBProcedureCall0.getInputParam(137);\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(0, \"Ouv(!}2Ulje!\");\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(0, \" not set and \");\n fBProcedureParam1.setIndex((-1079));\n fBProcedureParam0.setIndex(60);\n fBProcedureParam1.setIndex(1);\n fBProcedureParam1.setIndex(9);\n fBProcedureParam1.setIndex(1861);\n fBProcedureParam1.setIndex(137);\n FBProcedureCall fBProcedureCall1 = (FBProcedureCall)fBProcedureCall0.clone();\n String string0 = fBProcedureCall0.getSQL(true);\n // // Unstable assertion: assertEquals(\"SELECT * FROM null(not set and, null)\", string0);\n \n FBProcedureParam fBProcedureParam2 = fBProcedureCall1.getInputParam(137);\n // // Unstable assertion: assertNotSame(fBProcedureParam2, fBProcedureParam1);\n \n FBProcedureParam fBProcedureParam3 = fBProcedureCall0.getInputParam(1);\n // // Unstable assertion: assertEquals(1428, fBProcedureParam3.getType());\n // // Unstable assertion: assertTrue(fBProcedureCall0.equals((Object)fBProcedureCall1));\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}", "@Test\n public void testCompareTo() throws InterruptedException {\n Thread.sleep(10); // so we get an older message\n ChatMessage newerChatMessage = new ChatMessage(\"Javache\", \"JaJa!\");\n \n assertEquals(0,chatMessage.compareTo(chatMessage));\n assertTrue(chatMessage.compareTo(newerChatMessage) < 0);\n assertTrue(newerChatMessage.compareTo(chatMessage) > 0);\n }", "@Test\n public void testOrderInNegotiation() {\n Player l_player = new Player();\n l_player.setD_playerName(\"user2\");\n l_player.setD_negotiatePlayer(d_player.getD_playerName());\n\n Country l_country2 = new Country();\n l_country2.setD_continentIndex(1);\n l_country2.setD_countryIndex(3);\n l_country2.setD_countryName(\"nepal\");\n List<Country> l_countryList = new ArrayList();\n l_countryList.add(l_country2);\n l_player.setD_ownedCountries(l_countryList);\n\n d_gameData.getD_playerList().add(l_player);\n\n d_orderProcessor.processOrder(\"negotiate user2\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n\n d_orderProcessor.processOrder(\"advance india nepal 5\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order1 = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order1.executeOrder());\n }", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test \r\n void insert_two_vertexs_then_create_edge(){\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }", "@Test\n public void newSortingTest3() {\n newSorting sort = new newSorting();\n int[] arr = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n int[] expected = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\n sort.newSorting(arr, 5);\n assertArrayEquals(arr, expected);\n\n }", "public void test12() {\n //$NON-NLS-1$\n deployBundles(\"test12\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 2, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.FINAL_TO_NON_FINAL_NON_STATIC, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertTrue(\"Not compatible\", DeltaProcessor.isCompatible(child));\n child = allLeavesDeltas[1];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.REMOVED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.VALUE, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\n public void configurationChanged_ClearsCurrentAdapters() {\n mDiffRequestManagerHolder.configurationChanged();\n\n // Then\n then(mDiffRequestManager).should().swapAdapter(null);\n }", "public void test56() {\n //$NON-NLS-1$\n deployBundles(\"test56\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 2, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.REMOVED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.TYPE_PARAMETER, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.CLASS_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n child = allLeavesDeltas[1];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.REMOVED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.TYPE_ARGUMENT, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\r\n void test_check_order_properly_increased_and_decreased() {\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"C\");\r\n graph.addVertex(\"D\");\r\n graph.addVertex(\"C\");\r\n if(graph.order() != 3) {\r\n fail();\r\n } \r\n graph.removeVertex(\"A\");\r\n graph.removeVertex(\"B\");\r\n graph.removeVertex(\"C\");\r\n if(graph.order() != 1) {\r\n fail();\r\n }\r\n \r\n }", "public ReversiDifferenceBoard compare(ReversiBoard reversiBoard, ReversiBoard differenceBoard) {\r\n\t\tdifferenceBoard.counts[0] = 0;\r\n\t\tdifferenceBoard.counts[1] = 0;\r\n\t\tdifferenceBoard.setCurrentPlayer(getCurrentPlayer());\r\n\t\tfor (int y = 0; y <= 7; y++) {\r\n\t\t\tdifferenceBoard.squares[y] = (squares[y] ^ reversiBoard.squares[y]) & squares[y];\r\n\t\t\tif (differenceBoard.squares[y] != 0) {\r\n\t\t\t\tfor (int x = 0; x <= 7; x++) {\r\n\t\t\t\t\tint colr = (differenceBoard.squares[y] >> (2 * x)) & 3;\r\n\t\t\t\t\tif (colr != 0) {\r\n\t\t\t\t\t\tdifferenceBoard.counts[colr - 1]++;\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 differenceBoard;\r\n\t}" ]
[ "0.53666663", "0.53388375", "0.5308899", "0.52177095", "0.5209482", "0.52060765", "0.51597506", "0.5151724", "0.51270825", "0.5039549", "0.50004476", "0.49996057", "0.49500126", "0.4940052", "0.49381337", "0.4915145", "0.4914422", "0.49142435", "0.49029168", "0.49005872", "0.48876667", "0.4880698", "0.4879472", "0.4867084", "0.4865684", "0.4859427", "0.48580718", "0.48562753", "0.4852526", "0.48346967", "0.48345625", "0.48334795", "0.48308656", "0.47968677", "0.47893062", "0.4787834", "0.4787704", "0.47857013", "0.47763547", "0.47757965", "0.47654337", "0.4764634", "0.4760329", "0.47580522", "0.47557873", "0.47550958", "0.47544372", "0.47508514", "0.47489855", "0.4748578", "0.47478482", "0.47477138", "0.474563", "0.47432232", "0.4740905", "0.472326", "0.47212455", "0.47162414", "0.47123262", "0.4711044", "0.47097707", "0.470871", "0.4700873", "0.4698696", "0.46927693", "0.46924692", "0.4689566", "0.46883062", "0.4685713", "0.468505", "0.4680156", "0.46783698", "0.46774384", "0.46733943", "0.4670791", "0.4666971", "0.46578765", "0.46578556", "0.46570793", "0.46511096", "0.46489564", "0.46416342", "0.46414855", "0.46413425", "0.46371457", "0.46351677", "0.46344325", "0.46328807", "0.46282852", "0.46268055", "0.46209887", "0.46115533", "0.4607473", "0.46052", "0.46051267", "0.46018773", "0.45865408", "0.4586363", "0.45842847", "0.45788896" ]
0.76198244
0
Constructs the key of multicast filtering objective store.
public McastFilteringObjStoreKey(ConnectPoint ingressCP, VlanId vlanId, boolean isIpv4) { checkNotNull(ingressCP, "connectpoint cannot be null"); checkNotNull(vlanId, "vlanid cannot be null"); this.ingressCP = ingressCP; this.vlanId = vlanId; this.isIpv4 = isIpv4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public OptimizedKey createOptimizedKey() {\r\n\t\treturn new OptimizedKey();\r\n\t}", "public MultiKey() {}", "String key();", "public HardZoneSearchKey()\n\t{\n\t\tsuper(new HardZone()) ;\n\t\t_Prefix = getTableName() + \".\";\n\t}", "String newKey();", "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 NetworkMapKey(NetworkMapKey source) {\n this._pid = source._pid;\n }", "public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }", "@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}", "public java.lang.String getKey(){\n return localKey;\n }", "public GroupTrainerCacheKey<Void> key() {\n return key;\n }", "public String createCacheKey() {\n return \"organization.\" + userEmail;\n }", "private String getHashKey(Restriction restriction)\n\t\t{\n\t\t\treturn LabelUtils.getRestrictionString(restriction);\n\t\t}", "public String getMinKey();", "private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }", "public interface SKey {\n\n String FAIL_STORE = \"job.fail.store\";\n\n String LOADBALANCE = \"loadbalance\";\n\n String EVENT_CENTER = \"event.center\";\n\n String REMOTING = \"lts.remoting\";\n\n String REMOTING_SERIALIZABLE_DFT = \"lts.remoting.serializable.default\";\n\n String ZK_CLIENT_KEY = \"zk.client\";\n\n String JOB_ID_GENERATOR = \"id.generator\";\n\n String JOB_LOGGER = \"job.logger\";\n\n String JOB_QUEUE = \"job.queue\";\n}", "@Nonnull\n protected KeyExpression buildPrimaryKey() {\n return Key.Expressions.concat(\n Key.Expressions.recordType(),\n Key.Expressions.list(constituents.stream()\n .map(c -> Key.Expressions.field(c.getName()).nest(c.getRecordType().getPrimaryKey()))\n .collect(Collectors.toList())));\n }", "QueryKey createQueryKey(String name);", "abstract public String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "private int genKey()\n {\n return (nameValue.getData() + scopeDefined.getTag()).hashCode();\n }", "@Override\n\tpublic ManagedFunctionObjectTypeBuilder<M> setKey(M key) {\n\t\tthis.key = key;\n\t\tthis.index = key.ordinal();\n\t\treturn this;\n\t}", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "static String makeKey(String id,\n String for_,\n String attrname,\n String attrtype) {\n return format(KEY_FMT, id, for_, attrname, attrtype);\n }", "private static String walGroupIdToKey(int grpId, boolean local) {\n if (local)\n return WAL_LOCAL_KEY_PREFIX + grpId;\n else\n return WAL_GLOBAL_KEY_PREFIX + grpId;\n }", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "public NodeKey createNodeKey( String sourceName,\n String identifier );", "public BroadKeysRequest()\n\t{\n\t\tsuper(CacheMessageType.BROAD_KEYS_REQUEST);\n\t}", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "@Override\n public String getKey() {\n return key;\n }", "@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}", "public static String getKey(){\n\t\treturn key;\n\t}", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "@Override\n default String getKey(){\n return key();\n }", "@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}", "Object getKey();", "public NodeKey createNodeKey();", "@Override\n public byte[] getKey() {\n return MetricUtils.concat2(clusterName, topologyName, getTime().getTime()).getBytes();\n\n }", "private String createKey(OwObject object_p, OwPluginEntry pluginEntry_p) throws Exception\r\n {\r\n String objectId = object_p.getDMSID();\r\n String key = objectId + \"_\" + pluginEntry_p.getIndex();\r\n return key;\r\n }", "static DbQuery createKeyQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.KEY;\n return query;\n }", "@Override\n\tpublic String getKey() {\n\t\treturn getCid();\n\t}", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "@Override\n public String getParameterKey() throws ApplicationException {\n if (this.attributeGroupIds != null && this.attributeGroupIds.size()>0) {\n throw new ApplicationException(\"not cacheable\");\n }\n String networks = formattedNetworkList(this.networkIds);\n return String.format(PARAM_KEY_FORMAT, Constants.CombiningMethod.AVERAGE, networks);\n }", "public NodeKey createNodeKeyWithSource( String sourceName );", "Observable<QueryKey> createQueryKeyAsync(String name);", "public com.hps.july.persistence.OperatorKey getOperatorKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((com.hps.july.persistence.OperatorKey) __getCache(\"operatorKey\")));\n }", "java.lang.String getClientKey();", "public String getKey() {\n\t\treturn id + \"\";\n\t}", "public FuncTestKey() {\n super();\n }", "private com.hps.july.persistence.SuperRegionKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionKey keyClass = new com.hps.july.persistence.SuperRegionKey();\n keyClass.supregid = f0;\n return keyClass;\n }", "public interface CacheKey {\n\n String CK_TOPICS = \"ck.mqtt.service\";\n String CK_TOPICS_FRESH = \"ck.mqtt.topics.is.refresh\";\n String CK_TOPIC_IS_SUBSCRIBE = \"ck.mqtt.topic.is.subscribe.%s\";\n}", "public String getMaxKey();", "@Override\n\tpublic String getMapKey()\n\t{\n\t\tsbTemp.delete(0, sbTemp.length());\n\t\tsbTemp.append(areaCell.iCityID);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iAreatype);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iAreaID);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iECI);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iTime);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iInterface);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.kpiSet);\n\t\treturn sbTemp.toString();\n\t}", "private com.hps.july.trailcom.beans.OpticalHopKey keyFromFields ( java.lang.Integer f0 ) {\n com.hps.july.trailcom.beans.OpticalHopKey keyClass = new com.hps.july.trailcom.beans.OpticalHopKey();\n keyClass.hopid_hopsid = f0;\n return keyClass;\n }", "private com.hps.july.persistence.SuperRegionAccKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionAccKey keyClass = new com.hps.july.persistence.SuperRegionAccKey();\n keyClass.accessid = f0;\n return keyClass;\n }", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "@Override\n public String getKey()\n {\n return id; \n }", "private DataKeys(String pKey) {\n key = pKey;\n }", "public static void initMatchKey() {\n matchKey = mTeamNum + \"-\" + \"Q\" + mMatchNum + \"-\" + mScoutid;\n }", "MemberVdusKey getKey();", "UnderlayTopologyKey getKey();", "public void setIdentifierKey(java.lang.String param) {\r\n localIdentifierKeyTracker = true;\r\n\r\n this.localIdentifierKey = param;\r\n\r\n\r\n }", "public String routingKey();", "public RateMonitorKeyContainer(String userId, String exchange, String acronym, String session, short type)\n {\n \tthis.userId = userId;\n this.session = session;\n this.exchange = exchange;\n this.acronym = acronym;\n this.type = type;\n\n StringBuilder sb = new StringBuilder(32);\n hashCode = (sb.append(exchange).append(acronym).append(userId).toString()).hashCode() + type;\n }", "private com.hps.july.persistence.StoragePlaceKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.StoragePlaceKey keyClass = new com.hps.july.persistence.StoragePlaceKey();\n keyClass.storageplace = f0;\n return keyClass;\n }", "KeyIdPair createKeyIdPair();", "String getLongNameKey();", "@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}", "public String getMcKey ()\n\t{\n\t\tString mcKey = getContent().substring(OFF_ID27_MCKEY, OFF_ID27_MCKEY + LEN_ID27_MCKEY) ;\n\t\treturn (mcKey);\n\t}", "public String getKey(){\n\t\treturn key;\n\t}", "public String getPrefixKey() {\n return \"qa.journal.item.\" + key;\n }", "java.lang.String getRoutingKey();", "public Key getKey() {\n\t\tString fieldvalue = getValue(\"sys_id\");\n\t\tassert fieldvalue != null;\n\t\treturn new Key(fieldvalue);\n\t}", "@Override\n public Scope keyScope(String key) {\n long hasherCount = hasher.getCount();\n return () -> {\n if (hasher.getCount() > hasherCount) {\n hasher.putKey(key);\n }\n };\n }" ]
[ "0.56604105", "0.56456417", "0.56332076", "0.55641115", "0.5539149", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.5482784", "0.5456345", "0.54266703", "0.54158247", "0.53975254", "0.5342869", "0.53280115", "0.5309282", "0.52918243", "0.5283627", "0.5282307", "0.527209", "0.52712536", "0.5268268", "0.5268268", "0.5268268", "0.5268268", "0.5268268", "0.5268268", "0.526236", "0.52595025", "0.5251797", "0.525103", "0.52436256", "0.52265006", "0.52265006", "0.52265006", "0.52265006", "0.5199136", "0.51911587", "0.518189", "0.5154988", "0.51535803", "0.51075464", "0.51075464", "0.5106602", "0.51024073", "0.51024073", "0.5100352", "0.5097295", "0.5094611", "0.5093289", "0.5082271", "0.5071792", "0.50632465", "0.5056725", "0.50563943", "0.50551546", "0.5044299", "0.5022567", "0.5011113", "0.4999707", "0.49936202", "0.49870354", "0.49855566", "0.49843052", "0.49723148", "0.49713406", "0.49701348", "0.49653944", "0.49563867", "0.49563867", "0.49563867", "0.49563867", "0.49462795", "0.49360818", "0.49332124", "0.49323487", "0.49308068", "0.49306715", "0.49285164", "0.49279457", "0.4919668", "0.49191052", "0.49190563", "0.49093363", "0.49084863", "0.49054345", "0.49003434", "0.4896245", "0.4892254", "0.48919564" ]
0.49556968
82
Returns the connect point.
public ConnectPoint ingressCP() { return ingressCP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Pure\n\tPT getGraphPoint();", "private Point2D calcConnectionPoint(double x1, double y1, double x2, double y2) {\n\t\t// calculating midpoint for x on the edge between obj1\n\t\t// and obj2\n\t\tif (x1 > x2) {\n\t\t\tx1 = ((x1 - x2) / 2) + x2;\n\t\t} else if (x2 > x1) {\n\t\t\tx1 = ((x2 - x1) / 2) + x1;\n\t\t}\n\n\t\t// calculating midpoint for y on the edge between obj1\n\t\t// and obj2\n\t\tif (y1 > y2) {\n\t\t\ty1 = ((y1 - y2) / 2) + y2;\n\t\t} else if (y2 > y1) {\n\t\t\ty1 = ((y2 - y1) / 2) + y1;\n\t\t}\n\n\t\treturn new Point2D.Double(x1, y1);\n\t}", "@Override\n public Point getConnectionPoint(Point to) {\n if (to.x >= (getPos().x - getSize().width / 2) && to.x <= (getPos().x + getSize().width / 2)) {\n int newY = getPos().y - getSize().height / 2;\n // Detect upper or lower y\n if (to.y > getPos().y) {\n newY = getPos().y + getSize().height / 2;\n }\n\n return new Point(to.x, newY);\n }\n\n return super.getConnectionPoint(to);\n }", "public String getConnectId() {\n return connectId;\n }", "public Integer getPoint() {\n return point;\n }", "public Point getEndPoint(){\r\n\t\treturn new Point( this.x, this.y, this.z );\r\n\t}", "public static Connect getConnect() {\n\t\treturn connection;\n\t}", "public long getConnectTime()\n {\n if (isConnected())\n {\n return connectTime;\n }\n else\n {\n return -1L;\n }\n }", "public int connectToWhichEnd(Point p) {\n\t\tif (resistorPosEnd.contains(p))\n\t\t\treturn 2;\n\t\telse if (resistorNegEnd.contains(p))\n\t\t\treturn 1;\n\t\treturn 0;\n\t}", "public double getPoint() {\r\n return point;\r\n }", "public double getPoint() {\r\n return point;\r\n }", "public Point getPoint() {\n return this.mPoint;\n }", "public Point getPoint(){\n\t\treturn _point;\n\t}", "public ConnectPoint getClientCp() {\n return clientCp;\n }", "public Point getPoint()\n\t{\n\t\treturn point;\n\t}", "public Coordinates closestPoint() {\n return closestPoint;\n }", "public Point getPoint() {\n return point;\n }", "boolean hasXconnect(ConnectPoint cp);", "public KDPoint getPoint() {\n\t\treturn new KDPoint(this.loc.lat,this.loc.lng,0.0);\n\t}", "public Point getLocation ( )\r\n\t{\r\n\t\treturn new Point ( currentCol, currentRow );\r\n\t}", "public Point getCorner() {\r\n\t\treturn basePoly.getBounds().getLocation();\r\n\t}", "public int connect(FPointType fpt) {\n moved = true;\n if (tLayerPool.size() != 1)\n throw new IllegalStateException(\"Must only be one layer in this TransformDesign: \" + tLayerPool.size());\n return tLayerPool.getFirst().connect(fpt);\n }", "public Point getCorner() {\n\t\treturn corner;\n\t}", "public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }", "public String getPointColor()\n {\n return myPointColor;\n }", "public int getPoint(){\n return point;\n }", "public GeoPointND getStartPoint();", "public int getCrossoverPoints() {\n\t\treturn 1;\r\n\t}", "public String getStartPoint()\n\t{\n\t\tString getStart;\n\t\tgetStart = (this.startPoint.xPosition + \",\" + this.startPoint.yPosition);\n\t\treturn getStart;\n\t}", "public GPoint getFirstPoint() {\n return(point1);\n }", "public Point getLocation();", "public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}", "private void drawConnectLine(double[] startPoint, double[] endPoint, Color color) {\r\n\t\tdouble startX = startPoint[0];\r\n\t\tdouble startY = startPoint[1];\r\n\t\t\r\n\t\tdouble endX = endPoint[0];\r\n\t\tdouble endY = endPoint[1];\r\n\t\t\r\n\t\tGLine line = new GLine();\r\n\t\tline.setStartPoint(startX, startY);\r\n\t\tline.setEndPoint(endX, endY);\r\n\t\tline.setColor(color);\r\n\t\tadd(line);\r\n\t}", "public String getPointCode() {\n return pointCode;\n }", "public String get_attachPoint() {\n return _attachPoint;\n }", "public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }", "public int getPointX() {\n return pointX;\n }", "IntPoint getLocation();", "public final Point getLocation() {\n return this.location ;\n }", "public Point getGapCoordinates()\n {\n Point gap = new Point(50,50);\n return gap;\n }", "public Point getclickedPoint() {\r\n return clickedPoint;\r\n }", "public Point getLocPoint(){\n return super.getLocation();\n }", "private SPlotPoint findClosestPoint( Point mousePoint )\r\n {\r\n SPlotPoint plotPoint;\r\n\r\n\r\n // The distance between cursor position and given plot point\r\n double distance;\r\n \r\n // A large amount - used to isolate the closest plot point to the \r\n // mouse,in the case of the cursor being within the radius of two \r\n // plot points\r\n double minDistance = 300;\r\n\r\n\r\n SPlotPoint closestPoint = null;\r\n \r\n // Holder in loop for points\r\n SPlotPoint currPoint;\r\n\r\n\r\n for (int i = 0; i<pointVector_.size(); i++)\r\n {\r\n currPoint = (SPlotPoint)pointVector_.elementAt(i);\r\n distance = calcDistance(mousePoint, currPoint);\r\n \r\n // If the cursor is on a plot point,\r\n if (distance < OVAL_DIAMETER)\r\n {\r\n // Isolate the closest plot point to the cursor\r\n if (distance < minDistance)\r\n {\r\n closestPoint = currPoint;\r\n\r\n\r\n // Reset the distance\r\n minDistance = distance;\r\n }\r\n }\r\n }\r\n return closestPoint;\r\n }", "@Override\n\tpublic Point getLocation() {\n\t\treturn new Point(x,y);\n\t}", "public String getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}", "public Point getMPoint() {\n\t\treturn new Point(getX() + (getWidth() / 2), getY() + (getHeight() / 2));\n\t}", "public int getXPoint() {\r\n return this.x;\r\n }", "public Point3D getLocation() {\n\t\treturn p;\n\t}", "public Point getLocation() {\r\n return layout.location;\r\n }", "public IPoint getSecondPoint()\n {\n\n Set<IPoint> vertices = this.getVertices();\n Object[] verticesArray = vertices.toArray();\n IPoint secondPoint = (IPoint)verticesArray[1];\n\n return secondPoint;\n }", "public GPoint getSecondPoint(){\n return(point2);\n }", "public Point getCoordinate() {\n return this.coordinate;\n }", "ResponseItem getConnectTo();", "public Point getAWTPoint() {\n\t\treturn new Point(this.x0, this.y0);\n\t}", "public Point getClosest(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMax = 0.0;\n\t\t\tPoint centroid = centroid();\n\t\t\tPoint furthermost = new Point();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance > distanceMax){\n\t\t\t\t\tdistanceMax = distance;\n\t\t\t\t\tfurthermost = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn furthermost;\n\t\t}", "public GJPoint2D firstPoint() {\n\t\tif (this.segments.isEmpty()) \n\t\t\treturn null;\n\t\treturn this.segments.get(0).controlPoints()[0];\n\t}", "public Point3D getPoint() {\r\n\t\treturn point;\r\n\t}", "public native GLatLng getPoint(GInfoWindow self)/*-{\r\n\t\treturn self.getPoint();\r\n\t}-*/;", "private Point findLeadingPt() {\n\t\tPoint2D.Double pt1 = new Point2D.Double(xs[0], ys[0]);\n\t\tPoint2D.Double pt2 = new Point2D.Double(xs[1], ys[1]);\n\t\tPoint2D.Double pt3 = new Point2D.Double(xs[2], ys[2]);\n\n\t\tPoint leadingPt = new Point((int) pt2.getX(), (int) pt2.getY());\n\t\tdouble smallestRadius = this.findRadiusFromChordAndPt(pt1, pt3, pt2);\n\n\t\tfor (int i = 2; i < xs.length - 1; i++) {\n\t\t\tPoint2D.Double ptA = new Point2D.Double(xs[i - 1], ys[i - 1]);\n\t\t\tPoint2D.Double ptC = new Point2D.Double(xs[i], ys[i]);\n\t\t\tPoint2D.Double ptB = new Point2D.Double(xs[i + 1], ys[i + 1]);\n\t\t\tif (smallestRadius > this.findRadiusFromChordAndPt(ptA, ptB, ptC)) {\n\t\t\t\tsmallestRadius = this.findRadiusFromChordAndPt(ptA, ptB, ptC);\n\t\t\t\tleadingPt = new Point((int) ptC.getX(), (int) ptC.getY());\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * double yArrow = Controller.flowArrow.findCenterOfMass().getY(); for (int i =\n\t\t * 0; i < xs.length; i++) { if (ys[i] == yArrow) { leadingPt = new Point((int)\n\t\t * xs[i], (int) ys[i]); } }\n\t\t */\n\t\treturn leadingPt;\n\t}", "public Point getPoint(final Point otherPoint)\n\t\t{\n\n\t\t\t//to get the edge point on the shape\n\t\t\tif(shape.equals(\"poly\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn getCentrePoint();\n\n\t\t\tfinal Point cp = getCentrePoint();\n\t\t\tfinal int rise = otherPoint.y-cp.y;\n\t\t\tfinal int run = otherPoint.x-cp.x;\n\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tif(rise == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.x >= cp.x)\n\t\t\t\t\t\treturn new Point(coords[0]+coords[2]+4,coords[1]+(coords[3]/2));\n\t\t\t\t\treturn new Point(coords[0]-2,coords[1]+(coords[3]/2));\n\t\t\t\t}\n\t\t\t\telse if(run == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.y >= cp.y)\n\t\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]+coords[3]+4);\n\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]-2);\n\t\t\t\t}else\n\t\t\t\t{\n\n\t\t\t\t\tfinal double m = (double)rise / (double)run;\n\t\t\t\t\tfinal double mx = (double)run / (double)rise;\n\n\t\t\t\t\tif(otherPoint.x >= cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\n\t\t\t\t\t}else if(otherPoint.x < cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else if(otherPoint.x < cp.x)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}else if(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tif(rise != 0 && run != 0)\n\t\t\t\t{\n\t\t\t\t\tfinal double ratio = (coords[2] / Math.sqrt(rise*rise+run*run));\n\n\t\t\t\t\treturn new Point(cp.x+(int)(run*ratio),cp.y+(int)(rise*ratio));\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif(rise == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(run > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x+coords[2],cp.y);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x-coords[2],cp.y);\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(rise > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y+coords[2]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y-coords[2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t\t//return cp;\n\t\t}", "public Point getLocation() {\n return pos;\n }", "public Vec4 getReferencePoint()\n {\n return this.currentData.getReferencePoint();\n }", "public Point getPointerPosition() {\n\t\treturn new Point(getXPointerPosition(), getYPointerPosition());\n\t}", "public Point getCarLocation() {\r\n\r\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n builder.setTables(FTS_VIRTUAL_TABLE_CAR);\r\n builder.setProjectionMap(mColumnMapCar);\r\n\r\n Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(),\r\n null, null, null, null, null, null);\r\n\r\n if (cursor == null) {\r\n return null;\r\n } else if (!cursor.moveToFirst()) {\r\n cursor.close();\r\n return null;\r\n }\r\n\r\n String point_str = cursor.getString(1);\r\n\r\n point_str = point_str.trim();\r\n String[] coordinates = point_str.split(\",\");\r\n String lon = coordinates[0];\r\n String lat = coordinates[1];\r\n\r\n double flon = Float.valueOf(lon);\r\n double flat = Float.valueOf(lat);\r\n\r\n return (new Point(flon, flat));\r\n }", "public Point getLocation() {\n Map<String, Long> map = (java.util.Map<String, Long>) driver.executeAtom(\n atoms.getLocationJs, false, this);\n return new Point(map.get(\"x\").intValue(), map.get(\"y\").intValue());\n }", "private List<Point> getPath(int index) {\n\t\t \n\t \n\t\t Node fromNode = oEdge.fromNode;\n\t\t Node toNode = oEdge.toNode;\n\t\t float x1 = fromNode.longitude;\n\t\t float x2 = toNode.longitude;\n\t\t float y1 = fromNode.latitude;\n\t\t float y2 = toNode.latitude;\n\t\t double slope, angle;\n\t\t if(x1!=x2) {\n\t\t\t slope = (y2-y1)/(x2-x1);\n\t\t\t \tangle = Math.atan(slope);\n\t\t\t \t} else {\n\t\t\t \t\tangle = Math.PI/2;\n\t\t\t \t}\n\t\t Double L = Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));\n\t\t float offsetPixels=0;\n\t\t if(Math.toDegrees(angle)>Math.toDegrees(90)) {\n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=roadWidth*1/10;\n\t\t\t }\n\t\t\t \n\t\t } else {\n\t\t\t \n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=-roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=-roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=-roadWidth*1/10;\n\t\t\t }\n\t\t }\n\t\t \n\t\t // This is the first parallel line\n\t\t float x1p1 = x1 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float x2p1 = x2 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float y1p1 = y1 + offsetPixels * (x1-x2) / L.floatValue();\n\t\t float y2p1 = y2 + offsetPixels * (x1-x2) / L.floatValue();\n//\t\t if(oEdge.edgeID==16) {\n//\t\t\t System.out.println(\"testing\");\n//\t\t }\n\t\t \n\t\t Point P1 = new Point(x1p1,y1p1);\n\t\t Point P2 = new Point(x2p1,y2p1);\n\t\t List<Point> gP = GetPoints(P1, P2);\n\t\t return gP;\n\t \n\t}", "public Point2D getLocation();", "public Coordinate getCoordinate() {\n\t\treturn super.listCoordinates().get(0);\n\t}", "public SimpleStringProperty getPointMessage() {\r\n\t\treturn this.pointMessage;\r\n\t}", "public Point getLocation(){\r\n return super.getLocation();\r\n }", "public TCSObjectReference<Point> getDestinationPoint() {\n if (hops.isEmpty()) {\n return null;\n }\n else {\n return hops.get(hops.size() - 1);\n }\n }", "private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }", "public Point getLocation() {\n\t\treturn location;\n\t}", "public Point getLocation() {\n return location;\n }", "GraphNode firstEndpoint() \n\t{\n\t\treturn this.firstEndpoint;\n\t\t\n\t}", "public Status connect()\n {\n return connect(5.0);\n }", "public Point getLocation() {\r\n\t\tint[] p = value.getIntArray();\r\n\t\tif (p.length < 2) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Location parameters must contain at least 2 values\");\r\n\t\t}\r\n\t\treturn (new Point(p[0], p[1]));\r\n\t}", "public Integer getPointId() {\n return pointId;\n }", "public abstract Point adjPoint(Point p, Direction d);", "public int pointValue() {\r\n return pointValue;\r\n }", "@Pure\n\tST getArrivalConnection();", "public Point getReferencePoint(){\n return referencePoint;\n }", "public Point getLocation() { return loc; }", "public String getEndPoint()\n\t{\n\t\tString getEnd;\n\t\tgetEnd = (this.endPoint.xPosition + \",\" + this.endPoint.yPosition);\n\t\treturn getEnd;\n\t}", "protected GeoElement polarPoint(String label, GeoLineND line,\n\t\t\tGeoConicND c) {\n\t\tAlgoPolarPoint algo = new AlgoPolarPoint(cons, label, c, line);\n\t\treturn (GeoElement) algo.getPoint();\n\t}", "public double GetSetpoint() {\n\t\treturn msc.GetSetpoint();\n\t}", "@Override\n\tpublic WB_Point nextPoint();", "public Point.Double getPosition(){\r\n return new Point.Double(x, y);\r\n }", "public Point getOrigin() {\n return origin;\n }", "public Point getLocation() {\n return currentLocation;\n }", "public Point getPosition(){\r\n return new Point(this.position);\r\n }", "public IPoint getFirstPoint()\n {\n Object[] verticesArray = this.getVertices().toArray();\n IPoint firstPoint = (IPoint)verticesArray[0];\n\n return firstPoint;\n }", "public ConnectPoint getServerCp() {\n return serverCp;\n }", "public Point getLocation() {\n\t\treturn location.getCopy();\n\t}", "public Point2D getPoint1() {\n return this.point1;\n }", "public double getX() {\n\t\treturn point[0];\n\t}", "float getWindingConnectionAngle();", "public String toString() {\n\t\treturn \"LINE:(\"+startPoint.getX()+\"-\"+startPoint.getY() + \")->(\" + endPoint.getX()+\"-\"+endPoint.getY()+\")->\"+getColor().toString();\n\t}", "public boolean getConnectRequest() {\n\t\treturn connectRequest;\n\t\t\n\t}", "public Ndimensional getStartPoint();", "public GridPoint digitise() {\n\n Location myLocation = myLocation();\n GridPoint myGP = myGridPoint();\n //myLocationClick();\n points.add(myGridPoint());\n if (points.size() > 2) {\n\n\n mFinishButton.setVisibility(View.VISIBLE);\n\n }\n double latitude = myGridPoint().x;\n double longitude = myGridPoint().y;\n String stringLat = Double.toString(latitude);\n String stringLong = Double.toString(longitude);\n String coordPair = \" \" + stringLat + \",\" + stringLong;\n collectedPoints.add(coordPair);\n locations.add(myLocation);\n\n return myGP;\n\n }" ]
[ "0.65447795", "0.6241636", "0.60807294", "0.60163486", "0.5981601", "0.5969477", "0.58874434", "0.5885367", "0.5854763", "0.5843404", "0.5843404", "0.58133507", "0.57936794", "0.5790819", "0.5789784", "0.57780075", "0.5752943", "0.5739597", "0.5708796", "0.5695195", "0.5647172", "0.5609346", "0.56043065", "0.5596819", "0.5586698", "0.5581679", "0.5562302", "0.55568767", "0.5550313", "0.5540246", "0.55326855", "0.5530397", "0.5528438", "0.5506341", "0.5503855", "0.55018365", "0.5491049", "0.5468566", "0.5455513", "0.54496694", "0.5449122", "0.5440564", "0.54360145", "0.5410712", "0.54076195", "0.5406613", "0.5403404", "0.53946054", "0.53938067", "0.53894347", "0.5383722", "0.5371628", "0.537048", "0.5369729", "0.5364425", "0.53570855", "0.535686", "0.53436625", "0.5331031", "0.53245986", "0.53238577", "0.52913404", "0.5290925", "0.52870965", "0.52773196", "0.5276928", "0.5269566", "0.52665484", "0.5265125", "0.5261623", "0.52542514", "0.5249177", "0.52456284", "0.52345115", "0.52283776", "0.5225479", "0.52245307", "0.52213264", "0.5220488", "0.520644", "0.5199894", "0.5198119", "0.5196931", "0.5193472", "0.5191069", "0.51907176", "0.51893497", "0.51778615", "0.5177233", "0.51744384", "0.51656264", "0.51641756", "0.51640826", "0.51633245", "0.5159952", "0.5155476", "0.5154132", "0.51511425", "0.5148146", "0.51460767", "0.5136075" ]
0.0
-1
Returns whether the filtering is for ipv4 mcast.
public boolean isIpv4() { return isIpv4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasClientIpV4();", "public boolean videoMulticastEnabled();", "public boolean verificarFormatoIPV4(String ip) {\n\t\ttry {\n\t\t\tif (ip == null || ip.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tString[] parts = ip.split(\"\\\\.\");\n\t\t\tif (parts.length != 4) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfor (String s : parts) {\n\t\t\t\tint i = Integer.parseInt(s);\n\t\t\t\tif ((i < 0) || (i > 255)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ip.endsWith(\".\")) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n public boolean hasClientIpV4() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasCanIpForward();", "java.lang.String getIpv4();", "public boolean isMulticastAddress() {\n\t\treturn javaNetAddress.isMulticastAddress();\n\t}", "boolean getCanIpForward();", "public boolean isMulticast() {\n return multicast;\n }", "public boolean audioMulticastEnabled();", "public boolean hasField4() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasField4() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasS4() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasS4() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean mo43873m() {\n return ((String) this.f42902g.get(C13822a.Domain)).endsWith(\"ip6.arpa\");\n }", "private boolean m30313d() {\n NetworkInfo activeNetworkInfo = ((ConnectivityManager) this.f30042b.getSystemService(\"connectivity\")).getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "public boolean mo43872l() {\n return ((String) this.f42902g.get(C13822a.Domain)).endsWith(\"in-addr.arpa\");\n }", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "public boolean hasVar4() {\n return fieldSetFlags()[5];\n }", "public boolean hasUnknown4() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasMAddr() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasMaddr () \");\n Via via=(Via)sipHeader;\n \n return via.hasParameter(Via.MADDR);\n }", "public boolean isInMappedDmMode () {\n\t\tif( vo_resource != null ) {\n\t\t\tString lc_name = vo_resource.getName().toLowerCase();\t\t\n\t\t\tif( !lc_name.startsWith(\"native\") && !lc_name.startsWith(\"class\") && !lc_name.endsWith(\"default\")){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isMipMapFilter() {\n switch (values[MIN_FILTER_INDEX]) {\n case LINEAR_MIPMAP_LINEAR:\n case NEAREST_MIPMAP_LINEAR:\n case LINEAR_MIPMAP_NEAREST:\n case NEAREST_MIPMAP_NEAREST:\n return true;\n default:\n return false;\n }\n }", "public boolean hasUnknown4() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean mo4324N() {\n return this.f3140u.mo5116d() == 0 && this.f3140u.mo5109a() == 0;\n }", "public String getVideoMulticastAddr();", "public boolean isMCOrgLocal() {\n\t\treturn javaNetAddress.isMCOrgLocal();\n\t}", "int getClientIpV4();", "private static boolean isValidIpAddress(String value) {\n boolean status = true;\n try {\n Ip4Address ipAddress = Ip4Address.valueOf(value);\n } catch (Exception e) {\n log.debug(\"Invalid IP address string: {}\", value);\n return false;\n }\n\n return status;\n }", "public boolean isMCLinkLocal() {\n\t\treturn javaNetAddress.isMCLinkLocal();\n\t}", "public Boolean enableFloatingIp() {\n return this.enableFloatingIp;\n }", "public boolean ipv6Enabled();", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean equals(IPv4 other) {\n return this.address.equals(other);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean isForwarding();", "private boolean isIpv6Multicast(Ethernet eth) {\n return eth.getEtherType() == Ethernet.TYPE_IPV6 && eth.isMulticast();\n }", "public boolean mo4323M() {\n return mo4746k() == 1;\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean getIsBcast();", "private boolean m44a(String str, AttributeSet attributeSet) {\n return attributeSet.getAttributeValue(\"http://schemas.android.com/apk/lib/com.google.ads\", str) != null;\n }", "public boolean m414a() {\n return this.f565a != null;\n }", "public static boolean m128359d() {\n if (!C39182e.m125104g()) {\n return false;\n }\n return C35563c.f93231M.mo93305a(Property.EnableVideoImageMixed);\n }", "public String getDnResolvability() {\n int v4Resv = checkDomainNameResolvable(\"ipv4\");\n int v6Resv = checkDomainNameResolvable(\"ipv6\");\n if (v4Resv == DN_RESOLVABLE && v6Resv == DN_RESOLVABLE)\n return IP_TYPE_IPV4_IPV6_BOTH;\n if (v4Resv == DN_RESOLVABLE && v6Resv != DN_RESOLVABLE)\n return IP_TYPE_IPV4_ONLY;\n if (v4Resv != DN_RESOLVABLE && v6Resv == DN_RESOLVABLE)\n return IP_TYPE_IPV6_ONLY;\n if (v4Resv == DN_UNRESOLVABLE && v6Resv == DN_UNRESOLVABLE)\n return IP_TYPE_NONE;\n return IP_TYPE_UNKNOWN;\n }", "public Boolean isDataEnabled() {\n return (mask / 4) > 0;\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n ipv4_ = s;\n return s;\n }\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public static boolean isWellFormedIPv4Address(String address) {\n \n int addrLength = address.length();\n char testChar;\n int numDots = 0;\n int numDigits = 0;\n \n // make sure that 1) we see only digits and dot separators, 2) that\n // any dot separator is preceded and followed by a digit and\n // 3) that we find 3 dots\n //\n // RFC 2732 amended RFC 2396 by replacing the definition \n // of IPv4address with the one defined by RFC 2373. - mrglavas\n //\n // IPv4address = 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT\n //\n // One to three digits must be in each segment.\n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if ((i > 0 && !isDigit(address.charAt(i-1))) || \n (i+1 < addrLength && !isDigit(address.charAt(i+1)))) {\n return false;\n }\n numDigits = 0;\n if (++numDots > 3) {\n return false;\n }\n }\n else if (!isDigit(testChar)) {\n return false;\n }\n // Check that that there are no more than three digits\n // in this segment.\n else if (++numDigits > 3) {\n return false;\n }\n // Check that this segment is not greater than 255.\n else if (numDigits == 3) {\n char first = address.charAt(i-2);\n char second = address.charAt(i-1);\n if (!(first < '2' || \n (first == '2' && \n (second < '5' || \n (second == '5' && testChar <= '5'))))) {\n return false;\n }\n }\n }\n return (numDots == 3);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private boolean C4(SchedulingPlan plan) {\n for (int i = 0; i < sockets; i++) {\n if (!C4_socket(plan, i)) {\n return false;\n }\n }\n return true;\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Override\n\tpublic boolean isUDPEnabled()\n\t{\n\t\treturn isUDPEnabled;\n\t}", "public java.lang.Boolean getPerVMNetworkTrafficShapingSupported() {\r\n return perVMNetworkTrafficShapingSupported;\r\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public String getIpConnectivity() {\n int v4Conn = checkIPCompatibility(\"ipv4\");\n int v6Conn = checkIPCompatibility(\"ipv6\");\n if (v4Conn == IP_TYPE_CONNECTIVITY && v6Conn == IP_TYPE_CONNECTIVITY)\n return IP_TYPE_IPV4_IPV6_BOTH;\n if (v4Conn == IP_TYPE_CONNECTIVITY && v6Conn != IP_TYPE_CONNECTIVITY)\n return IP_TYPE_IPV4_ONLY;\n if (v4Conn != IP_TYPE_CONNECTIVITY && v6Conn == IP_TYPE_CONNECTIVITY)\n return IP_TYPE_IPV6_ONLY;\n if (v4Conn == IP_TYPE_UNCONNECTIVITY && v6Conn == IP_TYPE_UNCONNECTIVITY)\n return IP_TYPE_NONE;\n return IP_TYPE_UNKNOWN;\n }", "public boolean hasWeek4() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasWeek4() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean getVIP();", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "protected boolean isAddressInRange(String range, String address) \r\n\t\t\tthrows ServletException {\r\n\t\t\r\n\t\tString network;\r\n\t\tString mask;\r\n\t\t\r\n\t\tint slashPos = range.indexOf('/');\r\n\t\tif (slashPos == -1) {\r\n\t\t\tnetwork = range;\r\n\t\t\tmask = \"255.255.255.255\";\r\n\t\t} else {\r\n\t\t\tnetwork = range.substring(0, slashPos);\r\n\t\t\tmask = range.substring(slashPos + 1);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tbyte[] netBytes = InetAddress.getByName(network).getAddress();\r\n\t\t\tbyte[] maskBytes = InetAddress.getByName(mask).getAddress();\r\n\t\t\tbyte[] addrBytes = InetAddress.getByName(address).getAddress();\r\n\t\t\tfor (int i = 0; i < netBytes.length; i++) {\r\n\t\t\t\tif ((netBytes[i] & maskBytes[i]) != (addrBytes[i] & maskBytes[i]))\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// Should never happen, because we work with raw IP addresses, not\r\n\t\t\t// with host names.\r\n\t\t\tthrow new ServletException(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public Boolean isWifiEnabled() {\n return (mask / 2) % 2 == 1;\n }", "boolean hasNetworkSettings();", "public boolean hasVar168() {\n return fieldSetFlags()[169];\n }", "public final boolean mo4167a() {\n return !TextUtils.isEmpty(this.f8352c) && this.f8353d != null;\n }", "boolean hasUnknown4();", "public String getAudioMulticastAddr();", "boolean hasSubnetRequest();", "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 getAllowFlight ( ) {\n\t\treturn extract ( handle -> handle.getAllowFlight ( ) );\n\t}", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "public boolean isFilterOn() {\r\n\t\treturn !packageTypeSet.isEmpty();\r\n\t}", "public boolean hasReceiverAddress() {\n return fieldSetFlags()[19];\n }", "@Override\n\t\t\t\t\tpublic boolean filter(OFMessage m) {\n\t\t\t\t\t\tOFPacketIn pi = (OFPacketIn) m;\n\t\t\t\t\t\t\n\t\t\t\t\t\tbyte[] packet = pi.getData();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// this checks if the Packet-In is for LLDP!\n\t\t\t\t\t\t// This is very important to guarantee maximum performance. (-_-;)\n\t\t\t\t\t\tif ( packet[12] != (byte)0x88 || packet[13] != (byte)0xcc ) {\n\t\t\t\t\t\t\t// LLDP packet is not mine!\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "public boolean isDirectFromOrigin() {\n if ((packetHeader == null) || (packetHeader.getOriginUUID() == PacketHeader.BROADCAST_ADDRESS))\n return false;\n return packetHeader.isDirectFromOrigin();\n }", "public /* synthetic */ boolean m76077a(MatchResult awVar) {\n GrowthGobalFilterInterface growthGobalFilterInterface;\n GrowthGobalFilterInterface growthGobalFilterInterface2;\n if (awVar == null) {\n return true;\n }\n if (awVar.f104113b != null && (TextUtils.equals(awVar.f104113b.getString(C6969H.m41409d(\"G6C9BC108BE0FAC26E40F9C77F4ECCFC36C91EA13B83EA43BE3\")), C6969H.m41409d(\"G7D91C01F\")) || awVar.f104113b.getBoolean(C6969H.m41409d(\"G6C9BC108BE0FAC26E40F9C77F4ECCFC36C91EA13B83EA43BE3\")))) {\n return true;\n }\n if (NewUserLaunchManager.f44705a.mo67994a()) {\n String d = C6969H.m41409d(\"G6786C225AA23AE3BD902915DFCE6CB\");\n Log.d(d, \"addFilter 不拦截,是场景还原逻辑 url = \" + awVar.f104112a);\n return true;\n }\n if (ZHActivity.getActivityStack() != null && ZHActivity.getActivityStack().size() > 0) {\n Iterator<ZHActivity> it = ZHActivity.getActivityStack().iterator();\n while (it.hasNext()) {\n if (TextUtils.equals(AppBuildConfig.MAIN_ACTIVITY_NAME(), it.next().getClass().getName())) {\n return true;\n }\n }\n }\n if (awVar.f104112a.startsWith(C6969H.m41409d(\"G738BDC12AA6AE466EA0F8546F1EDFCD66D\")) && (growthGobalFilterInterface2 = (GrowthGobalFilterInterface) InstanceProvider.m107964b(GrowthGobalFilterInterface.class)) != null) {\n return !growthGobalFilterInterface2.isFilterIntercept();\n }\n if (!m76078a(awVar.f104112a) && !awVar.f104112a.startsWith(C6969H.m41409d(\"G738BDC12AA6AE466EA0F8546F1EDC6C5\")) && (growthGobalFilterInterface = (GrowthGobalFilterInterface) InstanceProvider.m107964b(GrowthGobalFilterInterface.class)) != null) {\n return !growthGobalFilterInterface.isFilterInterceptAndCallback(awVar.f104112a);\n }\n return true;\n }", "public final boolean mo44053d(String str) {\n return \"1\".equals(this.f47356a.mo43629a(str, \"measurement.event_sampling_enabled\"));\n }", "public boolean hasVlan(){\n return vlanPacket;\n }", "private boolean connectNAT() {\n\t\tint mapUpdateInterval = BuildConfig.PEER_MAP_UPDATE_INTERVAL;\n\t\tString mapUpdateIntervalString = prefs.getString(context.getString(R.string.pref_map_update_interval_key), String.valueOf(mapUpdateInterval));\n\t\ttry {\n\t\t\tmapUpdateInterval = Integer.valueOf(mapUpdateIntervalString);\n\t\t\tLOG.debug(\"Use configured map update interval of {}s\", mapUpdateInterval);\n\t\t} catch (NumberFormatException e) {\n\t\t\tLOG.warn(\"Cannot parse the invalid map update interval string '{}'. Use default value {}s\", mapUpdateIntervalString, mapUpdateInterval);\n\t\t}\n\n\t\tRelayClientConfig config;\n\t\tswitch (relayMode) {\n\t\t\tcase FULL:\n\t\t\t\t// don't set up any NAT\n\t\t\t\tLOG.warn(\"Don't use relay functionality. Make sure to not be behind a firewall!\");\n\t\t\t\treturn true;\n\t\t\tcase GCM:\n\t\t\t\tconfig = new AndroidRelayClientConfig(registrationId, mapUpdateInterval).manualRelays(boostrapAddresses);\n\t\t\t\tbreak;\n\t\t\tcase TCP:\n\t\t\t\tconfig = new TCPRelayClientConfig().manualRelays(boostrapAddresses).peerMapUpdateInterval(mapUpdateInterval);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tLOG.debug(\"Invalid relay mode {}\", relayMode);\n\t\t\t\treturn false;\n\t\t}\n\t\tLOG.debug(\"Use {} as relay type. Map updateView interval is {}s\", relayMode, mapUpdateInterval);\n\n\t\tPeerNAT peerNat = new PeerBuilderNAT(h2hNode.getPeer().peer()).start();\n\t\tFutureRelayNAT futureRelayNAT = peerNat.startRelay(config, boostrapAddresses.iterator().next()).awaitUninterruptibly();\n\t\tif (futureRelayNAT.isSuccess()) {\n\t\t\tLOG.debug(\"Successfully connected to Relay.\");\n\t\t\tbufferListener = futureRelayNAT.bufferRequestListener();\n\t\t\treturn true;\n\t\t} else {\n\t\t\tLOG.error(\"Cannot connect to Relay. Reason: {}\", futureRelayNAT.failedReason());\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean process_multicast_ROUTE(char sender, DatagramPacket dp,\n String ip, DataInputStream dis) {\n if (sender == local_name) {\n // Packet loopback - ignore\n return true;\n }\n Log2(\"multicast \");\n return process_ROUTE(sender, dp, ip, dis);\n }", "boolean hasClientIpV6();", "public boolean mo42406f() {\n return this.f12821d != null;\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "boolean hasDnsSettings();", "private static boolean m15031a(View view, float f, float f2, float f3, float f4) {\n return f >= f3 && f <= f3 + ((float) view.getWidth()) && f2 >= f4 && f2 <= f4 + ((float) view.getHeight());\n }", "public static String getIpFilter() {\r\n return OWNIP;\r\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 }", "public boolean supportsMips32Isa() {\r\n return (isMips32() && getSubFamily() != SubFamily.PIC32MM);\r\n }", "public java.util.List<String> getIpv4Addresses() {\n return ipv4Addresses;\n }", "Ip4Address interfaceIpAddress();", "public boolean isNetwork() {\r\n \t\treturn (network != null);\r\n \t}", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public boolean dnsSrvEnabled();", "public boolean mo42416o() {\n return this.f12815a.get(3);\n }" ]
[ "0.5875425", "0.57135963", "0.55915344", "0.558785", "0.55853903", "0.54619265", "0.5455105", "0.5444441", "0.53977144", "0.53839463", "0.5256074", "0.52458346", "0.5238921", "0.5217122", "0.52148825", "0.51945025", "0.514637", "0.51354253", "0.5051923", "0.5051923", "0.5051923", "0.5051923", "0.5029075", "0.49778295", "0.4949867", "0.49455264", "0.4938402", "0.49379167", "0.49276572", "0.4914371", "0.4912708", "0.49066356", "0.48478037", "0.48358017", "0.48337787", "0.48299384", "0.48066446", "0.47963908", "0.4788915", "0.4788849", "0.47796023", "0.4772772", "0.47681072", "0.4766383", "0.47662374", "0.47562414", "0.47536343", "0.4738001", "0.4724077", "0.47194058", "0.47122708", "0.47120073", "0.47082436", "0.46998864", "0.46965936", "0.46953833", "0.46915972", "0.46881184", "0.46770212", "0.46761957", "0.46661368", "0.46604627", "0.4656273", "0.4650647", "0.46441638", "0.46427298", "0.46414536", "0.4622948", "0.46105567", "0.46074915", "0.4607231", "0.46043432", "0.46012944", "0.46010882", "0.4600995", "0.4592548", "0.4588032", "0.4555812", "0.45548847", "0.4553165", "0.45512378", "0.453704", "0.45297906", "0.4512347", "0.45036393", "0.44953182", "0.44951785", "0.44920787", "0.44911653", "0.44875428", "0.44871643", "0.4481455", "0.447269", "0.4470804", "0.44624162", "0.44612953", "0.4456489", "0.44554967", "0.44553047", "0.4454368" ]
0.66905934
0
Returns the vlan ID of this key.
public VlanId vlanId() { return vlanId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long vlan() {\n return this.innerProperties() == null ? 0L : this.innerProperties().vlan();\n }", "public org.apache.axis.types.UnsignedInt getVlan() {\n return vlan;\n }", "public String getVlan() {\n return vlan;\n }", "public String getKeyId() {\n return getProperty(KEY_ID);\n }", "String getEncryptionKeyId();", "int getNextId(DeviceId deviceId, VlanId vlanId);", "public final int getKeyId()\r\n\t{\r\n\t\treturn keyId;\r\n\t}", "public int keyId() {\n return keyId;\n }", "public long key()\n\t\t{\n\t\t\treturn nid.key();\n\t\t}", "default VlanId getNativeVlanId(ConnectPoint connectPoint) {\n return null;\n }", "public long getKeyID()\n {\n return keyID;\n }", "int getPacketId();", "public int getKey() {\n return this.key;\n }", "public String getKey() {\n\t\treturn id + \"\";\n\t}", "public Key getID () {\n\t\treturn id;\n\t}", "public int getKey() {\n return key;\n }", "public int getKey() {\r\n return key;\r\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public String getKey() {\r\n return getAttribute(\"id\");\r\n }", "public String keyIdentifier() {\n return this.keyIdentifier;\n }", "public String keyIdentifier() {\n return this.keyIdentifier;\n }", "default VlanId getUntaggedVlanId(ConnectPoint connectPoint) {\n return null;\n }", "int getKey() {\n return this.key;\n }", "public void setVlan(String vlan) {\n this.vlan = vlan;\n }", "public long getVocubalaryId();", "public char getKey() {\n return key;\n }", "public Integer key() {\n return this.key;\n }", "public int getKey() {\n\t\t\treturn this.key; // to be replaced by student code\n\t\t}", "public void setVlan(org.apache.axis.types.UnsignedInt vlan) {\n this.vlan = vlan;\n }", "public IdKey getKey() {\n return idKey;\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "public K llave() {\n return key;\n }", "public int getKey(){\n return key;\n }", "public long getNodeID()\n {\n return vnodeid; \n }", "@Override\n public int getKey() {\n return this.key;\n }", "public Integer key() {\n return key;\n }", "public String getVolumeId() {\n return this.volumeId;\n }", "public String getCardPk() {\r\n return (String) getAttributeInternal(CARDPK);\r\n }", "public String getKey()\n\t{\n\t\treturn this.key;\n\t}", "public Key getKey() {\n\t\tString fieldvalue = getValue(\"sys_id\");\n\t\tassert fieldvalue != null;\n\t\treturn new Key(fieldvalue);\n\t}", "public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}", "Key getPrimaryKey();", "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{\n\t\treturn key;\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() {\r\n\t\treturn key;\r\n\t}", "int getKey();", "int getKey();", "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}", "@ZAttr(id=1)\n public String getId() {\n return getAttr(Provisioning.A_zimbraId, null);\n }", "MemberVdusKey getKey();", "public String getKey() {\n\n return this.key;\n }", "public int getvID() {\n return vID;\n }", "@DISPID(38)\r\n\t// = 0x26. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint id();", "@Override\n public int getKey() {\n return key_;\n }", "public String naturalKeyName() {\n return idName();\n }", "public PacketId getPacketId() {\n return packetId;\n }", "@Override\n public int getKey() {\n return key_;\n }", "public final String getKey() {\n return key;\n }", "public Key getKey() {\n\t\treturn key;\n\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 long getSurrogateKey()\n {\n \n return __surrogateKey;\n }", "public String subnetId() {\n return this.subnetId;\n }", "public String getId() {\n switch (this.getType()) {\n case BGP:\n /*return this.bgpConfig.getNeighbors().get(\n this.bgpConfig.getNeighbors().firstKey()).getLocalAs().toString();*/\n case OSPF:\n return this.vrf.getName();\n case STATIC:\n return this.staticConfig.getNetwork().getStartIp().toString();\n }\n return this.vrf.getName();\n }", "public String getKey(){\n\t\treturn key;\n\t}", "UUID getNegotiationId();", "public java.lang.Integer getLanId() {\r\n return lanId;\r\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 key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public Common1LevelLOVHeaderPK getId() {\r\n\t\treturn id;\r\n\t}", "public String getKey() {\n return key;\n }", "public Long getVoucherId() {\n\t\treturn voucherId;\n\t}", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "public String getKey() {\r\n return key;\r\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 }" ]
[ "0.73828334", "0.68906575", "0.666191", "0.61570424", "0.6026382", "0.6010658", "0.5963065", "0.5823962", "0.57787645", "0.5771745", "0.5757553", "0.57459843", "0.5707022", "0.56667835", "0.5658291", "0.56426895", "0.5638571", "0.56333256", "0.5617332", "0.5617332", "0.5617332", "0.5617332", "0.5595038", "0.554107", "0.554107", "0.5485495", "0.5471642", "0.54663247", "0.5451663", "0.5448883", "0.54427457", "0.54234064", "0.54148954", "0.5414453", "0.54107946", "0.5406413", "0.5402329", "0.5398163", "0.538259", "0.5376562", "0.5349268", "0.53264153", "0.53192544", "0.5310616", "0.5309232", "0.5295749", "0.5279371", "0.5279371", "0.5279371", "0.52775055", "0.52746373", "0.52746373", "0.52746373", "0.5272605", "0.5272605", "0.52679515", "0.52679515", "0.52679515", "0.52638096", "0.52630407", "0.5258036", "0.525478", "0.52513707", "0.5245507", "0.52448267", "0.5238499", "0.52354634", "0.52233547", "0.52224", "0.52184033", "0.52184033", "0.52184033", "0.52126807", "0.5212556", "0.5211426", "0.52103966", "0.5208218", "0.5205627", "0.52048355", "0.52048355", "0.52048355", "0.52048355", "0.52048355", "0.52048355", "0.52048355", "0.52048355", "0.52048355", "0.52048355", "0.51975083", "0.51975083", "0.5196994", "0.5187599", "0.51841414", "0.5179697", "0.5179697", "0.5179697", "0.517913", "0.5176885", "0.5175921", "0.5175921" ]
0.78911626
0
Tests that assertions are enabled.
@Test(expected=AssertionError.class) public void testAssertionsEnabled() { assert false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAssertionsEnabled() {\n assertTrue(Assertions.ENABLED, \"assertion is disabled - enable it with 'java -ea ...'\");\n }", "@Test public void testAssertionsEnabled() {\n assertThrows(AssertionError.class, () -> {\n assert false;\n }, \"make sure assertions are enabled with VM argument '-ea'\");\n }", "@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}", "private void assertAll() {\n\t\t\n\t}", "public boolean containsAssertions() {\n return containsAssertions;\n }", "private static final void m108assert(boolean value) {\n if (_Assertions.ENABLED && !value) {\n throw new AssertionError(\"Assertion failed\");\n }\n }", "public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }", "public void test() {\n\tassertTrue(true);\n\t}", "@VisibleForTesting\n @SuppressWarnings(\"CheckReturnValue\")\n void checkAssertions() {\n checkAssertions(root);\n }", "@Test\n\tpublic void isEnabled() {\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.TRACE)).isEqualTo(traceEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.DEBUG)).isEqualTo(debugEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.INFO)).isEqualTo(infoEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.WARN)).isEqualTo(warnEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.ERROR)).isEqualTo(errorEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.FATAL)).isEqualTo(errorEnabled);\n\t}", "@Test\n public void boolean_true_assert() throws Exception {\n check(\"boolean_true_assert.c\",\n ImmutableMap.of(\"cpa.stator.policy.generateOctagons\", \"true\",\n \"CompositeCPA.cpas\",\n \"cpa.location.LocationCPA, cpa.callstack.CallstackCPA, cpa.functionpointer.FunctionPointerCPA, cpa.loopstack.LoopstackCPA, cpa.value.ValueAnalysisCPA, cpa.policyiteration.PolicyCPA\",\n \"precision.trackIntAddVariables\", \"false\",\n \"precision.trackVariablesBesidesEqAddBool\", \"false\"));\n }", "Assert createAssert();", "@Test\n\t void testEnabled() {\n\t\tassertTrue(user.isEnabled());\n\t}", "private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }", "private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }", "protected Assert() {\n\t}", "public void testIsEnabledAccuracy() {\r\n assertFalse(\"Should return the proper value.\", log.isEnabled(null));\r\n assertTrue(\"Should return the proper value.\", log.isEnabled(Level.ALL));\r\n }", "public static void assertEnabled(PmObject... pms) {\n for (PmObject pm : pms) {\n if (!pm.isPmEnabled()) {\n fail(pm.getPmRelativeName() + \" should be enabled.\");\n }\n }\n }", "@Test\n public void testStuff() {\n\n assertTrue(true);\n }", "@Test\n public void sanityCheck() {\n assertThat(true, is(true));\n }", "public void assertPerformance() {\n\tsuper.assertPerformance();\n}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}", "public TestCase assertTrue( boolean passIfTrue );", "public void setAssertAllowedType(boolean assertType) {\n _assertType = assertType;\n }", "boolean assertExpected(Exception e);", "protected Assert() {\n }", "protected Assert() {\n }", "private static void assertTrue(boolean condition) {\n if (!condition) {\n throw new AssertionError(\"Expected condition to be true\");\n }\n }", "public void assertExpectations() {\n\t\tassertExpectations(this.expectations);\n\t}", "private void assertTrue(boolean equals) {\n\t\t\r\n\t}", "public boolean getAssertAllowedType() {\n return _assertType;\n }", "@Test\n\tpublic void testAssertFalse()\n\t{\n\t\tassertFalse(service.MultiplicationCalculator(0, 2)> 0); // False\n\t}", "private void AndOrderIsSentToKitchen() throws Exception {\n assert true;\n }", "@Test\n\t public void contextLoads() throws Exception {\n\t \tassertThat(false).isFalse();\n\t }", "public boolean test() throws Exception {\n throw new Exception(\"Test funcationality not yet implemented: unclear API\");\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAp() {\n\t\tboolean flag = oTest.checkAp();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n public void testGetOnlinePosition() {\n assert false : \"testGetOnlinePosition not implemented.\";\n }", "public static void assertTrue(boolean z) {\n if (!z) {\n throw new AssertionError(\"Expected condition to be true\");\n }\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAbout() {\n\t\tboolean flag = oTest.checkAbout();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public Collection<AssertStatement> getAsserts() {\n return asserts;\n }", "@Test\n void testDisabledOnFailedAssumption(){\n assumeTrue(DayOfWeek.TUESDAY.equals(LocalDate.now().getDayOfWeek()));\n assertEquals(1, 2);\n }", "@Test\n void basicTest() {\n final OSEntropyCheck.Report report =\n assertDoesNotThrow(() -> OSEntropyCheck.execute(), \"Check should not throw\");\n assertTrue(report.success(), \"Check should succeed\");\n assertNotNull(report.elapsedNanos(), \"Elapsed nanos should not be null\");\n assertTrue(report.elapsedNanos() > 0, \"Elapsed nanos should have a positive value\");\n assertNotNull(report.randomLong(), \"A random long should have been generated\");\n }", "@Test\t\t\n\tpublic void TestToFail()\t\t\t\t\n\t{\t\t\n\t System.out.println(\"This method to test fail\");\t\t\t\t\t\n\t // Assert.assertTrue(false);\t\t\t\n\t}", "@Test\n public void test1(){\n assertEquals(true, Program.and(true, true));\n }", "@Test\n public void testIsEnabled() throws Exception {\n AccessibilityManager manager = createManager(WITH_A11Y_ENABLED);\n assertTrue(\"Must be enabled since the mock service is enabled\", manager.isEnabled());\n\n // Disable accessibility\n manager.getClient().setState(0);\n mHandler.sendAllMessages();\n assertFalse(\"Must be disabled since the mock service is disabled\", manager.isEnabled());\n }", "public interface IViewAssertionWrapper {\n\n Assertion isDisplayed(boolean display);\n\n Assertion withText(String content);\n\n Assertion isFullScreen(boolean full);\n\n Assertion hasFocus(boolean hasFocues);\n}", "@Test\n\tpublic void shouldFireAssertIfAllPresent() {\n\n\t\tval mapa = new LinkedHashMap<String, String>();\n\t\tmapa.put(\"name\", \"myproject\");\n\t\tmapa.put(\"project_type\", \"billable\");\n\t\tmapa.put(\"start_date\", \"1-1-15\");\n\t\tmapa.put(\"end_date\", \"1-1-16\");\n\t\truleObj.setData(mapa);\n\n\t\tkSession = kbase.newStatefulKnowledgeSession();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tEvaluator eval = (Evaluator) ruleObj;\n\t\tkSession.insert(eval);\n\t\tkSession.insert(list);\n\n\t\tint actualNumberOfRulesFired = kSession.fireAllRules();\n\n\t\tassertEquals(list.size(), 0);\n\t}", "@Test\n public void test5(){\n Assert.assertFalse(0>1, \"verify 0 not big then 1 \");\n }", "public TestCase pass();", "@Test\n\t@Disabled\n\tpublic void test() {\n\t}", "public void testDummy() {\n \t\tassertTrue(true);\r\n \t}", "private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }", "@Test\r\n\tpublic static void test1() {\r\n\t\tSystem.out.println(\"test 1\");\r\n\t\tAssertions.assertEquals( 1, 1 );\r\n\t}", "@Test\r\n\tpublic void testSanity() {\n\t}", "public void testPreConditions() {\n\t\tassertNotNull(activity);\n\t\tassertNotNull(mFragment);\n\t\tassertNotNull(mAdapter);\n\t\tassertTrue(mAdapter instanceof MensaListAdapter);\n\t}", "@Test// to tell jUnit that method with @Test annotation has to be run. \n\tvoid testAdd() {\n\t\tSystem.out.println(\"Before assumption method: Add Method\");\n\t\tboolean isServerUp = false;\n\t\tassumeTrue(isServerUp,\"If this method ran without skipping, my assumption is right\"); //Eg: This is used in occasions like run only when server is up.\n\t\t\n\t\tint expected = 2;\n\t\tint actual = mathUtils.add(0, 2);\n\t\t//\t\tassertEquals(expected, actual);\n\t\t// can add a string message to log \n\t\tassertEquals(expected, actual,\"add method mathUtils\");\n\t}", "@Ignore\n @Test\n @Override\n public void testBoolean(TestContext ctx) {\n super.testBoolean(ctx);\n }", "@Test\n public void getBooleanFlagTest() throws Exception {\n testFlag(\"skipTests\");\n testFlag(\"skipITs\");\n testFlag(\"skipUTs\");\n }", "@Test\n\tpublic void testIsPermitted_6()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public static void assert_simple(boolean conditionIn)\r\n\t{\r\n\t\tSystem.err.printf(\"\\r\\n%s\\r\\n\", ASSERT_TEXT);\r\n\t\tSystem.err.flush();\r\n\t\tSystem.exit(EXIT_CODE);\r\n\t}", "public void testDummy() {\n\t\tassertTrue(true);\n\t}", "boolean isTestEligible();", "@Test\n\tpublic void testIsPermitted_8()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(null);\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "private void checkEnabled() {\n }", "@Test\n @DisplayName(\"Enabled when it is built\")\n @Disabled\n @Tag(\"development\")\n void developmentTest() {\n }", "@Test\n\t void testAccountNonExpired() {\n\t\tassertTrue(user.isAccountNonExpired());\n\t}", "public void printAssertions(JmlFile jf) {\n\t\tstream.println(\"ASSERTIONS\");\n\t\tprinter.firstItem = true;\n\t\tprintProofAssert(jf.getClasses());\n\t\tstream.println(\"\\nEND\");\n\t}", "@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}", "@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }", "@Test(priority = 4)\n public void testVerifyQuestionThree() {\n\t\tassertTrue(true);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setAllLevelsVisible(true);\n boolean boolean0 = homeEnvironment0.isAllLevelsVisible();\n assertTrue(boolean0);\n }", "private static final void m109assert(boolean value, Function0<? extends Object> lazyMessage) {\n if (_Assertions.ENABLED && !value) {\n throw new AssertionError(lazyMessage.invoke());\n }\n }", "@Test\n\tpublic void testIsPermitted_7()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "protected void assertTestStandardTransaction(EquationStandardTransaction transaction, boolean expectedResult) throws Exception\n\t{\n\t\tSystem.out.println(\"JobId = \" + session.getConnectionWrapper().getJobId() + \"\\n\");\n\t\tsession.addEquationTransaction(transaction);\n\t\tsession.applyTransactions();\n\t\tsession.commitTransactions();\n\t\tSystem.out.println(transaction);\n\t\tSystem.out.println(transaction.getWarningList());\n\t\tString errorMessage = \"\\r\\n\" + \"Errors: \" + transaction.getErrorList() + \"\\r\\n\";\n\t\tassertEquals(errorMessage, expectedResult, transaction.getValid());\n\t}", "@Test\n\tpublic void testIsPermitted_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkThrough() {\n\t\tboolean flag = oTest.checkThrough();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }", "@Test\n public void emptyTest() {\n assertEquals(true, true);\n }", "@Test\n public void emptyTest() {\n assertEquals(true, true);\n }", "@Test\n\t void testAccountNonLocked() {\n\t\tassertTrue(user.isAccountNonLocked());\n\t}", "public void testCanCreateInvoiceAccuracy() throws Exception {\n assertEquals(\"The result is not as expected\", true, invoiceSessionBean.canCreateInvoice(5));\n\n }", "public void addAssertions(Assertions asserts) {\r\n if (getCommandLine().getAssertions() != null) {\r\n throw new BuildException(\"Only one assertion declaration is allowed\");\r\n }\r\n getCommandLine().setAssertions(asserts);\r\n }", "@Test\n\tpublic void execute() throws Exception {\n\t\tassertTrue(argumentAnalyzer.getFlags().contains(Context.CHECK.getSyntax()));\n\t}", "default void assertTrue(boolean condition, String message) {\n try {\n Assert.assertTrue(message, condition);\n LOGGER.info(\"assertTrue success for condition {}\", condition);\n } catch (AssertionError assertionError) {\n LOGGER.error(\"assertTrue failure for condition {} with message {}\", condition, message);\n Assert.fail(\"Test case failed: assertion failed:\" + message);\n }\n }", "@Test\n\tpublic void testTAlive3() {\n\t\tassertEquals(false, (tank.getHealth() == 0));\n\t}", "protected void assertTestStandardEnquiry(EquationStandardEnquiry enquiry, boolean expectedResult) throws Exception\n\t{\n\t\tenquiry = session.executeEnquiry(enquiry);\n\t\tSystem.out.println(enquiry);\n\t\tString errorMessage = \"\\r\\n\" + \"Error code: \" + enquiry.getErcod() + \"\\r\\n\" + \"Error parm: \" + enquiry.getErprm() + \"\\r\\n\";\n\t\tassertEquals(errorMessage, expectedResult, enquiry.getValid());\n\t}", "@Test\n public void testExecutdAsPlanned() {\n assertFalse(action.executedAsPlanned());\n // TODO add assertTrue after execute\n }", "public static void assertEnabled(JComponent component, boolean enabled) {\n\t\tAtomicBoolean ref = new AtomicBoolean();\n\t\trunSwing(() -> ref.set(component.isEnabled()));\n\t\tAssert.assertEquals(\"Component not in expected enablement state\", enabled, ref.get());\n\t}", "AssertionBlock createAssertionBlock();", "@Test\n\tpublic void testCanEnter(){\n\t}", "@Test(priority = 3)\n public void testVerifyQuestionTwo() {\n\t\tassertTrue(true);\n }", "@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}", "@Test\n\tpublic void test() throws Exception {\n\t\tTestingUtils.assertSuccessfulReplay(new File(System.getProperty(\"swing-testing-toolkit.project.directory\", \"./\")\n\t\t\t\t+ \"test-specifications/testExtensibility.stt\"));\n\t}", "@Test\n\tpublic void testIsAccountNonExpired() {\n\t\tassertTrue(user.isAccountNonExpired());\n\t}", "public TestCase assertFalse( boolean passIfFalse);", "private void assertTrue(String name, boolean result) {\n if (!result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" + totalTests);\n totalErrors = totalErrors + 1;\n } \n else {\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" + totalTests);\n }\n totalTests = totalTests + 1;\n }", "@Test\n @Disabled\n public void testValidateFecha() {\n assertTrue(RegExprMain.validateFecha(\"10/06/2022\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2011\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2015\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2016\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2021\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/1999\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2007\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2000\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2002\"));\n assertFalse(RegExprMain.validateFecha(\"38/06/2009\"));\n assertFalse(RegExprMain.validateFecha(\"10/20/2010\"));\n \n \n\n }" ]
[ "0.8325878", "0.812283", "0.7394786", "0.6835295", "0.6523808", "0.6491753", "0.6433929", "0.6388031", "0.6374659", "0.63504064", "0.63329554", "0.62918717", "0.62866545", "0.62713283", "0.62713283", "0.6227881", "0.6209689", "0.61309636", "0.6125218", "0.61112416", "0.61054474", "0.6103253", "0.60578746", "0.60554755", "0.6038083", "0.60010105", "0.599931", "0.599931", "0.59984326", "0.5971961", "0.59625936", "0.58314365", "0.58147144", "0.5800602", "0.57794225", "0.57655734", "0.574734", "0.5746178", "0.57375187", "0.5726353", "0.5726308", "0.5725968", "0.5696553", "0.56681484", "0.5659429", "0.56590194", "0.5638747", "0.562351", "0.56204", "0.5611388", "0.5608926", "0.5607666", "0.5604371", "0.5594283", "0.5593662", "0.55759186", "0.5561113", "0.5531526", "0.55262095", "0.55216604", "0.55214953", "0.55182636", "0.55094683", "0.5496853", "0.5487007", "0.5486495", "0.5480977", "0.54762536", "0.5475644", "0.54737425", "0.5468038", "0.54672986", "0.5465157", "0.54615796", "0.5460855", "0.54455566", "0.54234904", "0.5418281", "0.54172695", "0.54172695", "0.54041666", "0.5403371", "0.5385318", "0.5377376", "0.53736305", "0.53714544", "0.5364476", "0.5363132", "0.5362492", "0.53527874", "0.53478926", "0.534467", "0.53416806", "0.5337536", "0.53342026", "0.53338176", "0.53309035", "0.5330835" ]
0.80754536
4
Scanner in = new Scanner(System.in); String s = in.nextLine(); a.viewnextchap(c,1,1); System.out.println( "" +s); int r = in.nextInt(); System.out.println("You entered integer "+r); float b = in.nextFloat(); System.out.println("You entered float "+b);
public void createbook(Author a, Connection c) throws SQLException{ a.insert(c, "While the cows lie", "Cows are big and cannot run", 2, 2, 0); //a.createTable(c); //String chapName= "Toodloo"; //String chap = "Bippidee boppidee"; //a.insert(c, chapName, chap); //a.viewnextchap(c,2); //a.getNextChap(c, 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[])throws IOException\n\t{\n\tScanner obj=new Scanner(System.in);\n\n\t//Entering a string\n\tSystem.out.println(\"\\nEnter a string !\");\n\tString s=obj.nextLine();\n\tSystem.out.println(\"you have entered \"+ s);\n\n\t//entering a word\n\tSystem.out.println(\"\\nEnter a word !\");\n\tString w=obj.next();\n\n\t//entering an integer\n\tSystem.out.println(\"\\nEnter an integer !\");\n\tint n=obj.nextInt();\n\n\t//entering a float\n\tSystem.out.println(\"\\nEnter a floating point number !\");\n\tfloat f=obj.nextFloat();\n\n\t//Printing the inputs\n\tSystem.out.println(\"\\nThe inputs are .....\");\n\tSystem.out.println(\"\\nWord : \"+w+\"\\nInteger : \"+n+\"\\nFloat : \"+f);\n\n\n}", "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 }", "view2() {\n Scanner input = new Scanner(System.in);\n Scanner StringInput = new Scanner(System.in);\n System.out.println(\"Calculator\");\n System.out.println(\"Enter the numbers you would like to operate on in order.\");\n System.out.print(\"Enter the first number: \");\n float first = StringInput.nextInt();\n System.out.print(\"which operation would you like to perform? ( Enter +, -, *, or / ) \");\n String operator = input.nextLine();\n System.out.print(\"Enter the second number: \");\n float second = input.nextInt();\n\n setFirstNumber(first);\n setOperator(operator);\n setSecondNumber(second);\n input.close();\n }", "public static void main(String[] args) {\n\t\tScanner S=new Scanner(System.in);\r\n\t\tfloat n= S.nextFloat();\r\n\t\tSystem.out.printf(\"%.0f\\n\",n);\r\n\t\tSystem.out.printf(\"%.01f\\n\",n);\r\n\t\tSystem.out.printf(\"%.02f\\n\",n);\r\n\t\tSystem.out.printf(\"%.03f\\n\",n);\r\n\t\tS.close();\r\n\t}", "public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\r\n System.out.println(\"Introduzca un entero: \");\r\n int a = scn.nextInt();\r\n System.out.println(\"El numero introducido es el: \" + a);\r\n String b = scn.nextLine();\r\n System.out.println(b);\r\n String c = scn.next();\r\n System.out.println(c);\r\n }", "public void inputScanner(){\n\t\t Scanner sc=new Scanner(System.in); \n\t \n\t\t System.out.println(\"Enter your rollno\"); \n\t\t int rollno=sc.nextInt(); \n\t\t System.out.println(\"Enter your name\"); \n\t\t String name=sc.next(); \n\t\t System.out.println(\"Enter your fee\"); \n\t\t double fee=sc.nextDouble(); \n\t\t System.out.println(\"Rollno:\"+rollno+\" name:\"+name+\" fee:\"+fee); \n\t\t sc.close(); \n\t}", "public static void main(String[] args) {\n\t\tScanner entrada = new Scanner(System.in);\n\t\tint numEntero;\n\t\tfloat numFlotante;\n\t\tchar caracter;\n\t\tString cadena;\n\t\t\n\t\tSystem.out.print(\"Ingrese un numero entero: \");\n\t\tnumEntero = entrada.nextInt();\n\t\tSystem.out.println(\"El numero ingresado es: \" + numEntero);\n\t\t\n\t\tSystem.out.print(\"Ingrese un numero float: \");\n\t\tnumFlotante = entrada.nextFloat();\n\t\tSystem.out.println(\"El numero ingresado es: \" + numFlotante);\n\t\t\n\t\t//CharaAt con indice 0 hace que el primer caracter ingresado sea \n\t\t//el que se va a guardar\n\t\tSystem.out.print(\"Ingrese un caracter: \");\n\t\tcaracter = entrada.next().charAt(0); \n\t\tSystem.out.println(\"El numero ingresado es: \" + caracter);\n\t\t\n\t\tSystem.out.print(\"Ingrese una cadena: \");\n\t\tcadena = entrada.next();\n\t\tSystem.out.println(\"El numero ingresado es: \" + cadena);\n\t\t\n\t\t\n\t\t\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}", "public void input() {\r\n System.out.print(\"Enter your employee ID number: \");\r\n ID = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Gross Pay: \");\r\n grosspay = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your State Tax: \");\r\n Statetax = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Federal Tax: \");\r\n Fedtax = enter.nextDouble(); }", "public void intro(){Scanner teclado = new Scanner(System.in);\nSystem.out.println(\"Introduzca la unidad de medida a la que transformar \"\n + \"pies, cm o yardas\");\nSystem.out.println(\"o escriba salir si quiere volver al primer menu\");\nopcion=teclado.nextLine();}", "void Input() {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter name of the book::\");\n Bname = scanner.nextLine();\n System.out.println(\"Enter price of the book::\");\n price = scanner.nextDouble();\n }", "public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tString input = null;\n\twhile(true){\n\tint style = -1;\n\tinput = sc.nextLine();\n\ttry{\n\t\tint i = Integer.valueOf(input);\t//字符串-》Integer\n\t\tstyle = 0;\n\t\tSystem.out.println(\"您输入的是一个整数:\"+i);\n\t}\n\tcatch(Exception e)\n\t{\t\t\n\t}\n\t\tif(style!=0)\n\t\t{\t\t\n\t\t\ttry{\n\t\t\t\tfloat f = Float.valueOf(input);\n\t\t\t\tstyle = 1;\n\t\t\t\tSystem.out.println(\"您输入的是一个小数:\"+f);\n\t\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\tif(style==-1)\n\t\t{\n\t\t\tSystem.out.println(\"您输入的是一个字符串:\"+input);\n\t\t}\n\t\t}\n\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the value of principle, time and rate respectively:\");\r\n\t\tfloat p =input.nextFloat();\r\n\t\tfloat t =input.nextFloat();\r\n\t\tfloat r=input.nextFloat();\r\n\t\tfloat si;\r\n\t\tsi=(p*t*r)/100;\r\n\t\tSystem.out.println(\"The required simple interest is \"+si);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tfloat f = sc.nextFloat();\r\n\t\tSystem.out.print(String.format(\"%.2f\", f));\r\n\t\tsc.close();\r\n\t}", "public static void main(String args[]) {\n var edad = Integer.parseInt(\"20\");\n System.out.println(\"edad = \" + edad);\n \n double valorPI = Double.parseDouble(\"3.1416\");\n System.out.println(\"valorPI = \" + valorPI);\n \n //Convertir un char a un String\n //Realmente no es convertir toda la cadena \"hola\"\n //sino seleccionar uno de los elementos un caracter de este string\n char c = \"hola\".charAt(3);\n System.out.println(\"c = \" + c);\n \n var scanner = new Scanner(System.in);\n edad = Integer.parseInt(scanner.nextLine());\n System.out.println(\"edad = \" + edad);\n \n char caracter = scanner.nextLine().charAt(0);\n System.out.println(\"caracter = \" + caracter);\n \n //Conversion de tipos enteros a string\n String edadTexto = String.valueOf(25);\n System.out.println(\"edadTexto = \" + edadTexto);\n \n \n \n }", "static float queryFloat (String prompt)\n\t{\n\t\tString entry ;\n\t\tfloat entryFloat ;\n\t\tSystem.out.print (prompt) ;\n\t\tentry = scanIn.nextLine() ;\n\t\tif (entry.length() == 0)\n\t\t{\n\t\t\tentryFloat = 0f ;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tentryFloat = Float.parseFloat (entry) ;\n\t\t}\n\n\t\treturn entryFloat ;\n\t}", "public static void take_inputs(){\n\t\tScanner in = new Scanner(System.in);\n\t\tSystem.out.println(\"Input the ideal restaurant attributes:\");\n\t\tSystem.out.print(\"Cheap: \"); cheap = in.nextFloat();\n\t\tSystem.out.print(\"Nice: \"); nice = in.nextFloat();\n\t\tSystem.out.print(\"Traditional: \"); traditional = in.nextFloat();\n\t\tSystem.out.print(\"creative: \"); creative = in.nextFloat();\n\t\tSystem.out.print(\"Lively: \"); lively = in.nextFloat();\n\t\tSystem.out.print(\"Quiet: \"); quiet = in.nextFloat();\n\t\t\n\t\tSystem.out.println(\"Input the attributes weights:\");\n\t\tSystem.out.print(\"Weight for Cheap: \"); wt_cheap = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Nice: \"); wt_nice = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Traditional: \"); wt_traditional = in.nextFloat();\n\t\tSystem.out.print(\"Weight for creative: \"); wt_creative = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Lively: \"); wt_lively = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Quiet: \"); wt_quiet = in.nextFloat();\n\t}", "public static void main(String args[]){\n\t\tDataInputStream in = new DataInputStream(System.in);\n\t\tint ni = 0;\n\t\tfloat fi = 0.0f;\n\t\ttry{\n\t\t\tSystem.out.println(\"Enter an Integer : \");\n\t\t\tni = Integer.parseInt(in.readLine());\n\t\t\tSystem.out.println(\"Enter float Number : \");\n\t\t\tfi = Float.valueOf(in.readLine()).floatValue();\n\t\t\t\n\t\t\tSystem.out.println(\" Int Number : \"+ni);\n\t\t\tSystem.out.println(\" Float Number : \"+fi);\n\t\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t}\n\t}", "public void get_UserInput(){\r\n\t Scanner s = new Scanner(System.in);\r\n\t // get User inputs \r\n\t System.out.println(\"Please enter a number for Dry (double):\");\r\n\t DRY = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wet (double):\");\r\n\t WET = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for ISNOW (double):\");\r\n\t ISNOW = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wind(double):\");\r\n\t WIND = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for BUO (double):\");\r\n\t BUO = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Iherb (int):\");\r\n\t IHERB = s.nextInt(); \r\n\t System.out.println(\"****Data for parameters are collected****.\");\r\n\t System.out.println(\"Data for parameters are collected.\");\r\n\t dry=DRY;\r\n\t wet=WET;\r\n}", "private void getInput() {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tn=scan.nextInt();\r\n\r\n\t}", "@Test\n\tpublic void one()\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"enter the value of a\");\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(\"value of a is: \" +a);\n\t}", "static void gatherInfo() {\n Scanner keyboard = new Scanner(System.in);\n System.out.print(\"Enter the type of measurement (inches, feet, etc.). >> \");\n measurementType = keyboard.nextLine();\n System.out.print(\"Enter the rectangle width. >> \");\n height = keyboard.nextDouble();\n System.out.print(\"Enter the rectangle height. >> \");\n width = keyboard.nextDouble();\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Insert Celsius: \");\n float celsius = scanner.nextFloat();\n\n System.out.println();\n System.out.print(\"Convert from celsius to fahrenheit: \");\n float fahrenheit = ((9*celsius)/5) + 32;\n System.out.print(fahrenheit);\n }", "public static float inputFloat()\n\t{\n\t\treturn(sc.nextFloat());\n\t}", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n \t\tint b,h;\n \t\tSystem.out.println(\"Enter The value of Base : \");\n \t\tint b=sc.nextInt();\n \t\tSystem.out.println(\"Enter the valueb of Height : \");\n \t\tint h=sc.nextInt();\n \t\tfloat a=1/2*b*h;\n \t\tSystem.out.println(\"The Area of Triangle is : \"+a);\n\t}", "public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n float x,y;\n x=in.nextFloat();\n y=in.nextFloat();\n if(y==1)\n System.out.printf(\"%.1f\\n\",(x-80)*0.7);\n else\n System.out.printf(\"%.1f\\n\",(x-70)*0.6);\n\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.print(\"請輸入性別和身高:\");\n\t\tString sex=sc.next();\n\t\tfloat high=sc.nextInt();\n\t\tswitch (sex){\t\n\t\tcase \"男\":\n\t\t\tSystem.out.print(\"男:\"+((high-170)*0.6+62));\n\t\t\tbreak;\n\t\tcase \"女\":\n\t\t\tSystem.out.print(\"女:\"+((high-158)*0.5+52));\n\t\t\tbreak;\n\t}\n\n}", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\t\r\n\t\tString name = scanner.nextLine();\r\n\r\n\t\tchar gender = scanner.next().charAt(0); // F\r\n\t\t\r\n\t\tint age = scanner.nextInt();\r\n\t\t\r\n\t\tlong mobileNo = scanner.nextLong();\r\n\t\t\r\n\t\tdouble cgpa = scanner.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Name: \"+name);\r\n\t\tSystem.out.println(\"Gender: \"+gender);\r\n\t\tSystem.out.println(\"Age: \"+age);\r\n\t\tSystem.out.println(\"Mobile: \"+mobileNo);\r\n\t\tSystem.out.println(\"CGPA: \"+cgpa);\r\n\t\t\r\n\t\tSystem.out.println(\"Your name is: \"+name+\" \"+gender+\" \"+age);\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint x = scanner.nextInt();\n\t\tSystem.out.println(\"Gia tri cua x la \" + x);\n\t\t\n\t\tSystem.out.println(\"Vui long nhap gia tri cua y va z :\");\n\t\tlong y = scanner.nextLong();\n\t\tdouble z = scanner.nextDouble();\n\t\tdouble tong = z + y;\n\t\tSystem.out.println(\"Tong gia tri cua y va z la \" + tong);\n\t\t\n\t\tboolean b = scanner.nextBoolean();\n\t\tshort s = scanner.nextShort();\n\t\tString str = scanner.nextLine();\n\t}", "private static void input(Scanner userScn)\n {\n // Prompt\n //System.out.print(\"Degree value of polynomial? (1-4): \");\n Prompt();\n\n // Sanitation logic... .next() should catch all\n if(!userScn.hasNextInt())\n {\n userScn.next();\n Prompt();\n }\n else if((d = userScn.nextInt()) > MaxDegree || d < MinDegree) // super efficient\n {\n Prompt();\n }\n else // exits with valid input\n {\n System.out.println(\"Your polynomial degree is: \" + d);\n }\n }", "@Override\n public void input() {\n super.input();\n Scanner sc = new Scanner(System.in);\n System.out.printf(\"Nhập số trang sách giáo khoa: \");\n amountPage = Integer.valueOf(sc.nextLine());\n System.out.printf(\"Nhập tình trạng sách giáo khoa: \");\n status = sc.nextLine();\n System.out.printf(\"Nhập số lượng mượn: \");\n amountBorrow= Integer.valueOf(sc.nextLine());\n }", "public static void main(String[] args) {\n\t\t\tSystem.out.println(\"Question 1\");\r\n\t\t\tfloat a = 5240.5f;\r\n\t\t\tfloat b = 10970.055f;\r\n\t\t\tint x = (int) a;\r\n\t\t\tint y = (int) b;\r\n\t\t\tSystem.out.println(x);\r\n\t\t\tSystem.out.println(y + \"\\n\");\r\n\r\n\t\t\t// Question 2:\r\n\t\t\tSystem.out.println(\"Question 2\");\r\n\t\t\tint a1 = random.nextInt(100000);\r\n\t\t\tSystem.out.printf(\"%05d\", a1);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\r\n\t\t\t// Question 3:\r\n\t\t\tSystem.out.println(\"Question 3\");\r\n\t\t\tint b1 = a1 % 100;\r\n\t\t\tSystem.out.println(\"Hai số cuối của a1: \" + b1);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\r\n\t\t\tQuestion4();\r\n\r\n\t\t\tExercise2();\r\n\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\r\n\t\t\t// Exercise 3:\r\n\t\t\tSystem.out.println(\"Exercise3\");\r\n\t\t\t// Question 1:\r\n\t\t\tSystem.out.println(\"Question 1:\");\r\n\t\t\tInteger salary = 5000;\r\n\t\t\tfloat salaryf = salary;\r\n\t\t\tSystem.out.printf(\"%.2f\", salaryf);\r\n\r\n\t\t\t// Question 2:\r\n\t\t\tSystem.out.println(\"Question 2:\");\r\n\t\t\tString value = \"1234567\";\r\n\t\t\tint a2 = Integer.parseInt(value);\r\n\t\t\tSystem.out.println(a2);\r\n\r\n\t\t\t// Question 3:\r\n\t\t\tSystem.out.println(\"Question 3:\");\r\n\t\t\tInteger value1 = 1234567;\r\n\t\t\tint a3 = value1.intValue();\r\n\t\t\tSystem.out.println(a3);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\r\n\t\t\t// Exercise 4:\r\n\t\t\tSystem.out.println(\"Exercise 4:\");\r\n\t\t\t// Question 1:\r\n\t\t\tSystem.out.println(\"Question 1\");\r\n\t\t\tSystem.out.println(\"Mời bạn nhập họ và tên: \");\r\n\t\t\tString nhapGiaTri1 = scanner.nextLine();\r\n\t\t\tString nhapGiaTri = scanner.nextLine();\r\n\t\t\tint count = 1;\r\n\t\t\tint j;\r\n\t\t\tfor (j = 0; j < nhapGiaTri.length(); j++) {\r\n\t\t\t\tif (nhapGiaTri.charAt(j) != ' ') {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Độ dài của chuỗi ký tự nhapGiaTri: \" + count);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\r\n\t\t\t// Question 2:\r\n\t\t\tSystem.out.println(\"Question 2\");\r\n\t\t\tSystem.out.println(\"Mời bạn nhập chuỗi ký tự 1: \");\r\n\t\t\tString s1 = scanner.next();\r\n\t\t\tSystem.out.println(\" \");\r\n\t\t\tSystem.out.println(\"Mời bạn nhập chuỗi ký tự 2: \");\r\n\t\t\tString s2 = scanner.next();\r\n\t\t\tSystem.out.println(\"Kết quả khi nối hai xâu kí tự s1 và s2: \" + s1 + s2);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\r\n\t\t\t// Question 3:\r\n\t\t\tSystem.out.println(\"Mời bạn nhập họ tên: \");\r\n\t\t\tString hoTen1 = scanner.nextLine();\r\n\t\t\tString hoTen2 = scanner.nextLine();\r\n\t\t\tString hoTen = hoTen2.substring(0, 1).toUpperCase() + hoTen2.substring(1);\r\n\t\t\tSystem.out.println(hoTen);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\r\n\t\t\t// question 4:\r\n\t\t\tString name;\r\n\t\t\tSystem.out.println(\"Nhập tên: \");\r\n\t\t\tname = scanner.nextLine();\r\n\t\t\tname = name.toUpperCase();\r\n\t\t\tfor (int i = 0; i < name.length(); i++) {\r\n\t\t\t\tSystem.out.println(\"Ký tự thứ \" + i + \" là: \" + name.charAt(i));\r\n\t\t\t}\r\n\r\n\t\t\t// question 5:;\r\n\t\t\tSystem.out.println(\"Nhập họ: \");\r\n\t\t\tString firstName = scanner.nextLine();\r\n\t\t\tSystem.out.println(\"Nhập tên: \");\r\n\t\t\tString lastName = scanner.nextLine();\r\n\t\t\tSystem.out.println(\"Họ tên đầy đủ: \" + firstName.concat(lastName));\r\n\r\n\t\t\t// question 6:\r\n\t\t\tSystem.out.println(\"Nhập họ: \");\r\n\t\t\tString firstName1 = scanner.nextLine();\r\n\t\t\tSystem.out.println(\"Nhập tên: \");\r\n\t\t\tString lastName1 = scanner.nextLine();\r\n\t\t\tSystem.out.println(\"Họ tên đầy đủ: \" + firstName.concat(lastName));\r\n\r\n\t\t\t// question 7:\r\n\r\n\t\t\tString fullName;\r\n\t\t\tSystem.out.println(\"Nhập họ tên đầy đủ\");\r\n\t\t\tfullName = scanner.nextLine();\r\n\t\t\t// remove space characters\r\n\t\t\tfullName = fullName.trim();\r\n\t\t\tfullName = fullName.replaceAll(\"\\\\s+\", \" \");\r\n\t\t\tSystem.out.println(fullName);\r\n\t\t\tString[] words = fullName.split(\" \");\r\n\t\t\tfullName = \"\";\r\n\t\t\tfor (String word : words) {\r\n\t\t\t\tString firstCharacter = word.substring(0, 1).toUpperCase();\r\n\t\t\t\tString leftCharacter = word.substring(1);\r\n\t\t\t\tword = firstCharacter + leftCharacter;\r\n\t\t\t\tfullName += word + \" \";\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Họ tên sau khi chuẩn hóa: \" + fullName);\r\n\r\n\t\t\t// question 8:\r\n\t\t\tString[] groupNames = { \"Java with VTI\", \"Cách qua môn gia va\", \"Học Java có khó không?\" };\r\n\t\t\tfor (String groupName : groupNames) {\r\n\t\t\t\tif (groupName.contains(\"Java\")) {\r\n\t\t\t\t\tSystem.out.println(groupName);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Question 9:\r\n\t\t\tString[] groupNames1 = { \"Java\", \"C#\", \"C++\" };\r\n\t\t\tfor (String groupName : groupNames) {\r\n\t\t\t\tif (groupName.equals(\"Java\")) {\r\n\t\t\t\t\tSystem.out.println(groupName);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// question 10:\r\n\t\t\tString x1, x2, reversex1 = \"\";\r\n\t\t\tSystem.out.println(\"Nhập chuỗi 1\");\r\n\t\t\tx1 = scanner.nextLine();\r\n\t\t\tSystem.out.println(\"Nhập chuỗi 2\");\r\n\t\t\tx2 = scanner.nextLine();\r\n\t\t\tfor (int i = x1.length() - 1; i >= 0; i--) {\r\n\t\t\t\treversex1 += x1.substring(i, i + 1);\r\n\t\t\t}\r\n\t\t\tif (x2.equals(reversex1)) {\r\n\t\t\t\tSystem.out.println(\"Đây là chuỗi đảo ngược !\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Đây không phải chuỗi đảo ngược\");\r\n\t\t\t}\r\n\r\n\t\t\t// question 11:\r\n\t\t\tSystem.out.println(\"Mời bạn nhập vào một chuỗi: \");\r\n\t\t\tString str = scanner.nextLine();\r\n\t\t\tint count1 = 0;\r\n\t\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\t\tif ('a' == str.charAt(i)) {\r\n\t\t\t\t\tcount1++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(count);\r\n\r\n\t\t\t// question 12:\r\n\t\t\tString daoNguoc = \"\";\r\n\t\t\tSystem.out.println(\"Nhập chuỗi 1\");\r\n\t\t\tString x3 = scanner.nextLine();\r\n\t\t\tfor (int i = x3.length() - 1; i >= 0; i--) {\r\n\t\t\t\tdaoNguoc += x3.charAt(i);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(daoNguoc);\t\t\t\r\n\t\t\t\r\n\t\t}", "public static void main(String[] args) {\n System.out.print(\"Enter a degree in C to be converted to F: \");\n Scanner input = new Scanner(System.in);\n double celcius = input.nextDouble();\n double fahrenheit = (celcius * (9.0 / 5)) + 32;\n System.out.println(celcius + \" C is \" + fahrenheit + \" F\");\n }", "public static void main(String[] args) {\n\n Solution18 obj = new Solution18();\n final Scanner scan = new Scanner(System.in);\n\n String character;\n double temp;\n String output;\n\n System.out.print(\"Enter [F] to convert Fahrenheit to Celcius \\nOr [C] to convert Celcius to Fahrenheit: \");\n character = scan.next();\n scan.nextLine();\n\n System.out.print(\"\\nPlease enter the temperature: \");\n temp = scan.nextDouble();\n\n output = character.equalsIgnoreCase(\"f\")\n ? temp + \"F in C is \" + obj.cFromF(temp)\n : temp + \"C in F is \" + obj.fFromC(temp);\n\n System.out.println(output);\n scan.close();\n\n\n }", "public static void main(String[] args) {\n \n \n Scanner scan = new Scanner(System.in);\n \n System.out.println(\" Enter a number of inches pls!\");\n int num1 = scan.nextInt();\n \n System.out.println(num1 + \"in is \" + (num1 / 12) + \"ft converted!\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static void main(String...strings) {\n\t\tboolean exitTriggered = false;\n\t\tScanner myKeyb= new Scanner(System.in);\n\t\tString fractionHolder = \"\";\n\t\tint choice=0;\n\t\tFraction fr1 =null,fr2=null;\n\t\twhile(!exitTriggered) {\n\t\t\tSystem.out.println(\"1-Enter one Fraction\\n2-Enter two Fractions\\n3-Exit\\n\");\n\t\t\t choice =myKeyb.nextInt();\n\t\t\t myKeyb.nextLine();\n\t\t\tif(choice ==3)\n\t\t\t\treturn;\n\t\t\tif (choice ==2) {\n\t\t\t\tSystem.out.println(\"\\nEnter Fraction 1:\\n\");\n\t\t\t\ttry {\n\t\t\t\tfractionHolder = myKeyb.nextLine();\n\t\t\t\tfr1 = new Fraction(Integer.parseInt(fractionHolder.substring(0,fractionHolder.indexOf(\"/\") )), Integer.parseInt(fractionHolder.substring(fractionHolder.indexOf(\"/\")+1)));\n\t\t\t\t}\n\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"An error has occured ... Exiting\"); return;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nEnter Fraction 2:\\n\");\n\t\t\t\ttry {\n\t\t\t\tfractionHolder = myKeyb.nextLine();\n\t\t\t\tfr2 = new Fraction(Integer.parseInt(fractionHolder.substring(0,fractionHolder.indexOf(\"/\") )), Integer.parseInt(fractionHolder.substring(fractionHolder.indexOf(\"/\")+1)));\n\t\t\t\t}\n\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"An error has occured ... Exiting\"); return;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"1-Display\\n2-Add\\n3-Subtract\\n4-Multiply\\n5-Devide\\n6-Exit\");\n\t\t\t\tchoice =myKeyb.nextInt();\n\t\t\t\tmyKeyb.nextLine();\n\t\t\t\tif(choice ==6) return;\n\t\t\t\tif(choice ==1) System.out.println(fr1+\" \"+fr2);\n\t\t\t\tif(choice ==2) System.out.println(fr1.add(fr2));\n\t\t\t\tif(choice ==3) System.out.println(fr2.subtract(fr2));\n\t\t\t\tif(choice ==4) System.out.println(fr1.multiply(fr2));\n\t\t\t\tif(choice ==5) System.out.println(fr1.devide(fr2));\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tif (choice ==1) {\n\t\t\t\tSystem.out.println(\"\\nEnter one Fraction:\\n\");\n\t\t\t\ttry {\n\t\t\t\tfractionHolder = myKeyb.nextLine();\n\t\t\t\tfr1 = new Fraction(Integer.parseInt(fractionHolder.substring(0,fractionHolder.indexOf(\"/\") )), Integer.parseInt(fractionHolder.substring(fractionHolder.indexOf(\"/\")+1)));\n\t\t\t\t}\n\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"An error has occured ... Exiting\"); return;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"1-Display Fraction\\n2-Exit\");\n\t\t\t\tchoice =myKeyb.nextInt();\n\t\t\t\tmyKeyb.nextLine();\n\t\t\t\tif(choice ==2) return;\n\t\t\t\tif(choice ==1) System.out.println(fr1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t Scanner scan = new Scanner (System.in);\n\t\t \n\t\t System.out.println(\"tam isminizi giriniz\");\n\t String tamisim = scan.nextLine();\n\t \n \n System.out.println(\"Yasinizi giriniz\");\n int yas = scan.nextInt();\n System.out.println(yas);\n \n System.out.println(\"Isminizın ilk harfini girin\");\n char ilkHarf = scan.next().charAt(0);\n System.out.println(ilkHarf);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\nint a,b,c;\r\nScanner input=new Scanner(System.in);\r\nSystem.out.println(\"Enter value for num1\");\r\na = input.nextInt();\r\nSystem.out.println(\"Enter value for num2\");\r\nb = input.nextInt();\r\nSystem.out.println(\"Enter value for num3\");\r\nc = input.nextInt();\r\n\r\nSystem.out.println(a*b+c);\r\n\t}", "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n System.out.print(SimpleSymbols(s.nextLine())); \n }", "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n System.out.print(SimpleSymbols(s.nextLine())); \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 static int f_number_user(){\n Scanner keyboard=new Scanner(System.in);\r\n int digits;\r\n System.out.println(\"input the entire number \");\r\n digits=keyboard.nextInt();\r\n return digits;\r\n }", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String str=sc.next();\n String str1=sc.next();\n String str2=sc.next();\n String str3=sc.next();\n System.out.println(str);\n System.out.println(str1);\n System.out.println(str2);\n System.out.println(str3);\n\n\n }", "public static float readNumFromConsole(Scanner scan1) {\n \t String str = null;\r\n \t Pattern p = Pattern.compile(\"^\\\\d+(?:\\\\.\\\\d+)?$\");\r\n \t Matcher m = null;\r\n \t int counter = 0;\r\n \t \tdo {\r\n \t \t\tif (counter != 0) {\r\n \t \t\t\tSystem.out.println(\"Invalid numeric input\");\r\n \t \t\t}\r\n \t \t\tstr = scan1.nextLine();\r\n \t \t\tm = p.matcher(str);\r\n \t \t\tcounter++;\r\n\t \t} while(!m.matches());\r\n \t //scan1.close();\r\n \t return Float.parseFloat(str);\r\n\t }", "public static int f_number_user() {\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"Input the number\");\n int number = keyboard.nextInt();\n return number;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Gimme a number: \");\n int numo = scanner.nextInt();\n System.out.println(factorio(numo));\n\n }", "public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(System.in);\n /* Use nextInt to get user integer */\n System.out.print(\"Enter Integer:\\n\");\n try{\n int i = scanner.nextInt();\n System.out.printf(\"%d\\n\", i);\n }catch(NumberFormatException nfe){\n System.err.println(\"Invalid Format!\\n\");\n }\n /* Use next to get 3 strings from user */\n System.out.println(\"Enter 3 words:\");\n String first = scanner.next();\n String second = scanner.next();\n String third = scanner.next();\n\n System.out.printf(\"%s %s %s\\n\", first, second, third);\n\n /* Use nextLine to capture user sentence */\n System.out.println(\"Enter a sentence:\");\n try{\n String userSentence = scanner.nextLine();\n userSentence = scanner.nextLine();\n System.out.printf(\"%s\\n\", userSentence);\n }catch(NumberFormatException nfe){\n System.out.println(\"No sentence\");\n }\n\n System.out.println(\"Enter length: \");\n int length = scanner.nextInt();\n\n System.out.println(\"Enter width: \");\n int width = scanner.nextInt();\n\n System.out.printf(\"area: %d\\n\", length*width);\n System.out.printf(\"perimeter: %d\\n\", 2*length+2*width);\n\n // close the scanner\n scanner.close();\n }", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n System.out.println(\"Enter your salary here: \");\n int salary = scan.nextInt();\n System.out.println(\"Enter the hours a week you work: \");\n byte hours = scan.nextByte();\n System.out.println(\"The hourly rate is \"+(salary/(hours*52)));\n\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in) ;\n System.out.println(\"Enter\");\n int a = input.nextInt();\n int b = input.nextInt();\n int c = input.nextInt();\n int d = input.nextInt();\n int e = input.nextInt();\n int f = input.nextInt();\n int g = input.nextInt();\n int h = input.nextInt();\n System.out.printf(\"%8d%8d%8d%8d\\n\",a,b,c,d);\n System.out.printf(\"%8d%8d%8d%8d\",e,f,g,h);\n \n \n\t}", "public void main()throws IOException\n {\n BufferedReader br= new BufferedReader( new InputStreamReader(System.in));\n System.out.println(\" 1>. Enter plus symbol for addition \");\n System.out.println(\" 2>. Enter minus symbol for substraction \");\n System.out.println(\" 3>. Enter star symbol for multiplication \");\n System.out.println(\" 4>. Enter backslash symbol for division \");\n System.out.println(\" 5>. Enter percentage symbol for remainder \");\n System.out.println(\" Enter the user choice \");\n String s;\n s=br.readLine();\n char ch=s.charAt(0);\n double n1,n2;\n switch(ch)\n {\n case '+':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double add=n1+n2;\n System.out.println(\" The total of the two is \"+add);\n break;\n case '-':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double sub=n1-n2;\n System.out.println(\" The difference of the two is \"+sub);\n break;\n case '*':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double mul=n1*n2;\n System.out.println(\" The product of the two is \"+mul);\n break;\n case '/':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double div=n1/n2;\n System.out.println(\" The quotient of the two is \"+div);\n break;\n case '%':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double rem=n1%n2;\n System.out.println(\" The remainder of the two is \"+rem);\n break;\n default:\n System.out.println(\" Wrong Choice\");\n break;\n }\n }", "public static void main(String[] args) {\n\t\tint t,b,h;\n\t\tScanner sc= new Scanner(System.in);\n\t\tSystem.out.println(\"enter student type\");\n\t\tString str=sc.next();\n\t\tSystem.out.println(\"enter the tution fee\");\n\t\tt=sc.nextInt();\n\t\tSystem.out.println(\"enter the bus fee\");\n\t\tb=sc.nextInt();\n\t\tSystem.out.println(\"enter the values hostel fee \");\n\t\th=sc.nextInt();\n\t\tswitch(str)\n\t\t{\n\t\tcase \"msds\":System.out.println(t+b);break;\n\t\tcase \"msh\":System.out.println(t+h);break;\n\t\tcase \"mgsds\":System.out.println(150%(t+b));break;\n\t\tcase \"mgsh\":System.out.println(150%(t+h));break;\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args)\r\n\t{\nSystem.out.print(\"enter any number: \");\r\nScanner s=new Scanner(System.in);\r\nint a=s.nextInt();\r\nif(a>0)\r\n\r\n{\r\n\tSystem.out.print(\"it is a positive number\");\r\n}\r\n\telse if(a<0)\r\n\t\r\n\t\t{\r\n\t\tSystem.out.println(\"it is a negative number\");\r\n\t\t}\r\n\t\r\n\telse \r\n\t{\r\n\t\tSystem.out.println(\"it is zero\");\r\n\t\t}\r\n\t\r\n}", "public static void getString()\n\t{\n\t\t\n\t\tScanner s=new Scanner(System.in);\n\t\t\n\t\t//Here Scanner is the class name, a is the name of object, \n\t\t//new keyword is used to allocate the memory and System.in is the input stream. \n\t\t\n\t\tSystem.out.println(\"Entered a string \");\n\t\tString inputString = s.nextLine();\n\t\tSystem.out.println(\"You entered a string \" + inputString );\n\t\tSystem.out.println();\n\t}", "public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\tdouble a,b,result;\n\t\tchar operation;\n\t\tSystem.out.println(\"PLease enter a first number\");\n\t\ta=input.nextDouble();\n\t\tSystem.out.println(\"Please enter a second number\");\n\t\tb=input.nextDouble();\n\t\tSystem.out.println(\"PLease tell us what kind of operation you want to use (+,-,*,/)\");\n\t\toperation=input.next().charAt(0);\n\t\t\n\t\tswitch(operation) {\n\t\t case '+':\n\t\t \tresult=a+b;\n\t\t \tbreak;\n\t\t case '-':\n\t\t \tresult=a-b;\n\t\t \tbreak;\n\t\t case'*':\n\t\t \tresult=a*b;\n\t\t \tbreak;\n\t\t case '/':\n\t\t \tresult=a/b;\n\t\t \tbreak;\n\t\t \tdefault:\n\t\t \t\tresult=0;\n\t\t \t\tSystem.out.println(\"Invalid input\");\n\t\t}System.out.println(\"The result is \"+ a+ operation+b+\"=\"+ result);\n \n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n System.out.println(str);\n }", "public static void main(String[] args) {\n\t\tString s = \"We're learning about Scanner\";\n\t\tSystem.out.println(s);\n\t\tScanner sc = new Scanner(System.in);\n//\t\tint m = sc.nextInt();\n//\t\tint n = sc.nextInt();\n//\t\tSystem.out.println(\"The Value of m is: \"+m);\n//\t\tSystem.out.println(\"The Value of n is: \"+n);\n//\t\tdouble d = sc.nextDouble();\n//\t\tString name = sc.next();//Gives us one Word\n//\t\tSystem.out.println(\"Name is: \" + name);\n\t\t\n//\t\tString fullName = sc.nextLine();\n//\t\tSystem.out.println(\"Full Name is: \" + fullName);\n\t\t\n\t\tString intInput = sc.nextLine();\n\t\tint n = Integer.parseInt(intInput);\n\t\tSystem.out.println(n);\n\t}", "public static void getInput() {\n\t\tselectOption();\n\t\tsc = new Scanner(System.in);\n\t userInput2 = sc.nextInt();\n\t \n\t switch (userInput2) {\n\t \tcase 1: System.out.print(\"Enter the number for the factorial function: \");\n\t \t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The factorial of \" + userInput2 + \" is \" + factorial(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 2: System.out.print(\"Enter the Fibonacci position: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The fibonacci number at position \" + userInput2 + \" is \" + fib(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 3: System.out.print(\"Enter the first number: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter the second number: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The GCD of the numbers \" + userInput2 + \" and \" + userInput3 + \" is \" + GCD(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 4: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter r: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(userInput2 + \" choose \" + userInput3 + \" is \" + choose(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 5: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter k: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The Josephus of \" + userInput2 + \" and \" + userInput3 + \" is \" + josephus(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 6: System.out.println(\"Ending program...\");\n \t\t\t\tSystem.exit(0);\n \t\t\t\tbreak;\n \t\tdefault: System.out.println(\"\\nPlease enter number between 1 and 6\\n\");\n\t \t\t\tgetInput();\n\t \t\t\tbreak;\n\t }\t\n\t}", "public static void main(String[] args) {\n Scanner keyboard = new Scanner (System.in);\r\n\r\n double userTemp;\r\n double convertedTemperature;\r\n String input;\r\n String degreesIn;\r\n\r\n System.out.println (\" Please enter the temperature:\");\r\n input = keyboard.nextLine ();\r\n userTemp = Double.parseDouble (input);\r\n\r\n System.out.println (\"Is the temperature in [C]elsius, or [F]ahrenheit?\");\r\n degreesIn = keyboard.nextLine ();\r\n\r\n\r\n if (degreesIn.equalsIgnoreCase (\"c\")) {\r\n convertedTemperature = userTemp * 1.8 + 32;\r\n System.out.printf (\"%.1f C is %.1f F\", userTemp, convertedTemperature);\r\n } else {\r\n convertedTemperature = (userTemp - 32) / 1.8;\r\n System.out.printf (\"%.1f F is %.1f C\", userTemp, convertedTemperature);\r\n }\r\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Welcome to the calculator. What operation would you like to do?(+,-,*,/)\");\n\t\tString answer = input.next();\n\t\t\n\t\tif (answer.equals(\"add\") || answer.equals(\"Add\") || answer.equals(\"+\")) \n\t\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to add?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat add1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number you want to add\");\n\t\t\t\tfloat add2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat addanswer = add1 + add2;\n\t\t\t\tSystem.out.println(addanswer);\n\t\t\t\t}\n\t\telse if(answer.equals(\"minus\") || answer.equals(\"-\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to subtract?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat sub1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat sub2 = input.nextFloat();\n\t\t\t\t\t\n\t\t\t\tfloat subanswer = sub1 - sub2;\n\t\t\t\tSystem.out.println(subanswer);\n\t\t\t}\n\t\telse if(answer.equals(\"multiply\") || answer.equals(\"x\") || answer.equals(\"*\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to multiply?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat mul1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat mul2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat mulanswer = mul1 * mul2;\n\t\t\t\tSystem.out.println(mulanswer);\n\t\t\t}\n\t\telse if(answer.equals(\"divide\") || answer.equals(\"/\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to divide?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat div1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat div2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat divanswer = div1 / div2;\n\t\t\t\tSystem.out.println(divanswer);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Please try again.\");\n\t\t\t}\n\t\tinput.close();\n\t\t}", "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 }", "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}", "public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n String str=in.nextLine();\n System.out.println(str);\n }", "private static int userInterface()\n {\n int uinput = 0;\n boolean badInput = true;\n\n System.out.println(\"This program will print a table of x\");\n System.out.println(\"and f(x) for x from 0 to the user\");\n System.out.println(\"inputted integer with f(x) being\");\n System.out.println(\"equal to:\");\n System.out.println(\"x^2 for x < 5\");\n System.out.println(\"x^2 - 3x - 10 for 5 <= x < 10\");\n System.out.println(\"x^2 - 7x - 8 for 10 <= x.\");\n \n Scanner read = new Scanner(System.in);\n System.out.print(\"Enter number of x: \");\n \n while (badInput)\n {\n if (read.hasNextInt())\n {\n uinput = read.nextInt();\n \t \tbadInput = false;\n\n if (uinput <= 0)\n {\n System.out.print(\"Enter a positive integer: \");\n badInput = true;\n }\n }\n else\n {\n \tSystem.out.print(\"Enter a positive integer: \");\n \t \tbadInput = true;\n \t }\n read.nextLine();\n }\n\n return uinput;\n }", "public static void main( String[] args )\n {\n Scanner scanner = new Scanner(System.in);\n\n // start a loop\n while (true) {\n // Print the instructions\n System.out.println(\"Select a conversion:\\n1. Feet to Inches\\n2. Feet to Yards\\n\" \n + \"3. Feet to Miles\\n4. Meters to Miles\\n0. Quit Program\");\n\n // Declare the user selection. Default to 0\n int selection = 0;\n \n // Try to get the user input as an int\n try {\n selection = scanner.nextInt();\n } catch (Exception e) {\n // If the user messes this up, tell them they messed up\n System.out.println(\"Invalid input. Try again. [Options 0-4]\");\n\n // Get rid of the user's bad input\n scanner.next();\n\n // Start the loop over again\n continue;\n }\n \n // If the user selects 0, quit\n if ( selection == 0) {\n System.out.println( \"Loser\");\n // Get out of the loops\n break;\n }\n\n // Ask teh suer the number they want to convert\n System.out.println(\"Enter value to convert\");\n\n // Declare the number to conver.\n float num = 0f;\n\n // Try to get the user's number to convert\n try {\n num = scanner.nextFloat();\n } catch (Exception e) {\n // If the mess it up, tell them\n System.out.println(\"Invalid input. Try again. [Must be a number]\");\n\n // Get rid of the user's bad input\n scanner.next();\n\n // Back to the top of the loops\n continue;\n }\n\n // put conditional statements in \n if ( selection == 1){\n num = num * 12f;\n System.out.println(num + \" inches\");\n } else if ( selection == 2){\n num = num / 3f;\n System.out.println(num + \" yards\");\n } else if ( selection == 3){\n num = num / 5280f;\n System.out.println(num + \" miles\");\n } else if ( selection == 4){\n num = num / 1609.34f;\n System.out.println(num + \" miles\");\n } \n }\n\n scanner.close();\n }", "public static void main(String[] args) {\n\t\tfloat a,b,c,d,e,p,q;\r\n\t\tScanner sc= new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter the variables: \");\r\n\t\ta= sc.nextFloat();\r\n\t\tb= sc.nextFloat();\r\n\t\tc= sc.nextFloat();\r\n\t\td= sc.nextFloat();\r\n\t\te= sc.nextFloat();\r\n\t\t\r\n\t\tp= a*a+2*a*b+b*b;\r\n\t\tq= (a*a*a*a*a +(b*b*b*b * c*c*c)+d*d*e);\r\n\t\tSystem.out.println(\"p=\"+p);\r\n\t\tSystem.out.println(\"q=\"+q);\r\n\t\t}", "public static void main(String[] args) {\n\t\tScanner rd = new Scanner(System.in);\r\n\t\tdouble C = 0, F = 0;\r\n\t\tSystem.out.println(\"Escreva a Temperatura: \");\r\n\t\tC = rd.nextDouble();\r\n\t\tF = (C * 1.8) + 32;\r\n\t\tSystem.out.println(\"A temperatura em Fahrenheit é : \\n\" + F);\r\n\t\t\r\n\t\t\r\n\t}", "String userInput(String question);", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n double convertNum = 1.6;\n\n System.out.println(\"Give me distance number in kilometer please!\");\n\n int userInput = sc.nextInt();\n\n System.out.println(\"The distance is: \" + (userInput*convertNum));\n }", "public static void main(String[] args) {\nScanner sc= new Scanner(System.in);\nString name=sc.nextLine();\n\t\tSystem.out.println(\"hello\\n\"+name);\n\t\t\n\t}", "public void readGrades(){\n Scanner keyboard = new Scanner(System.in);\n\n System.out.println(\"Please, enter the program grade and exam grade for \"+ name + \":\");\n programGrade = keyboard.nextDouble();\n examGrade = keyboard.nextDouble();\n }", "public static void main(String[]args) {\n\n System.out.println( \"enter a number:\" );\n String a = \"homosexual\";\n System.out.println( a.length() );\n\n String andrew = \"Hello\";\n Scanner can = new Scanner (System.in);\n System.out.println( \"Enter the next number\" );\n // to get the next integer\n System.out.println(can.nextInt()) ;\n\n\n\n\n\n\n\n\n\n}", "public static void main(String[] args)\r\n\t{\ndouble f,G,m1,m2,R;\r\nScanner sc =new Scanner(System.in);\r\nSystem.out.println(\"input m1,m2,R\");\r\nm1=sc.nextDouble();\r\nm2=sc.nextDouble();\r\nR=sc.nextDouble();\r\nG = 6.67e-11;\r\nf=G*m1*m2/(R*R);\r\nSystem.out.println(f);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint C, F;\n\t\tF = in.nextInt();\n\t\tC = (int)((F-32)*5/9);\n\t\tSystem.out.println(C);\n\t\t in.close();\n\t}", "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 }", "public static void main(String[] args) {\n Scanner sc = new Scanner (System.in);\n String num;\n try {\n\t do {\n\t\t System.out.println(\"enter the decimal number\");\n\t\t num= sc.next();\n }while(!com.bridgeit.util.Util.isNumber(num));\n\t int num1=Integer.parseInt(num);\n\t System.out.println(com.bridgeit.util.Util.nibble(num1));\n \t}catch(Exception e)\n {\n\t \tSystem.out.println(e.getMessage()+\"error\");\n }\n sc.close();\n\t }", "public static void main (String[] args) throws java.lang.Exception\r\n\t{\n\t\tScanner sc=new Scanner(System.in);int f=0;\r\n\t\twhile(sc.hasNext()){\r\n\t\tint t=sc.nextInt();\r\n\t\t\r\n\t\tif(t==42) f=1;\r\n\t\tif(f==0) System.out.println(t);\r\n\t\t}\r\n\t}", "public void takeUserInput() {\n\t\t\r\n\t}", "static void DanrleiMethod() {\n\n int input1, input2, multiply;\n\n try {\n BufferedReader myKB = new BufferedReader(new InputStreamReader(System.in));\n\n System.out.println(\"Please enter a number\");\n input1 = Integer.parseInt(myKB.readLine());\n\n System.out.println(\"Please enter another number\");\n input2 = Integer.parseInt(myKB.readLine());\n multiply = input1 * input2;\n\n System.out.println(input1 + \" multiplied by \" + input2 + \" is \" + multiply);\n\n } catch (Exception e) {\n System.out.println(\"Invalid input, please enter only numbers\");\n\n }\n\n }", "public static void updateTransactionCharge(){\r\n\tScanner userInput = new Scanner(System.in);\r\n\tSystem.out.println(\"Current STT charge is\" +ApplicableCharge.getSecuritiesTransferTaxRate());\r\n\tSystem.out.println(\"Current Transaction charge is\" +ApplicableCharge.getTransactionChargeRate());\r\n\tSystem.out.println(\"Enter Transaction Charge \");\r\n\tif(!userInput.hasNextDouble()) {\r\n\t\tSystem.out.println(\"Transaction charge entered in invalid, it should be a numeric value. You will be returned to main menu\" + '\\n');\r\n\t\treturn;\r\n\t}\t\r\n\tdouble transactionCharge = userInput.nextDouble();\r\n\tApplicableCharge.setTransactionChargeRate(transactionCharge);\r\n\tSystem.out.println(\"Updated Transaction charge is\" +ApplicableCharge.getTransactionChargeRate() +'\\n');\r\n}", "public void start() {\n\n\tSystem.out.println(\"Welcome on HW8\");\n\tSystem.out.println(\"Avaiable features:\");\n\tSystem.out.println(\"Press 1 for find the book titles by author\");\n\tSystem.out.println(\"Press 2 for find the number of book published in a certain year\");\n\tSystem.out.print(\"Which feature do you like to use?\");\n\n\tString input = sc.nextLine();\n\tif (input.equals(\"1\"))\n\t showBookTitlesByAuthor();\n\telse if (input.equals(\"2\"))\n\t showNumberOfBooksInYear();\n\telse {\n\t System.out.println(\"Input non recognized. Please digit 1 or 2\");\n\t}\n\n }", "public static void main(String[] args) {\n\n\n System.out.println(\"Please input a value for inch:\");\n Scanner scanner = new Scanner(System.in);\n int inchValue = scanner.nextInt();\n double meterValue = 0.0254 * inchValue;\n System.out.println((double)inchValue + \" inch is \" + meterValue + \" meters\");\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n //Reads ints from user\n int class1 = scanner.nextInt();\n int class2 = scanner.nextInt();\n int class3 = scanner.nextInt();\n\n //Your code goes here\n class1 = class1/2 + class1%2;\n class2 = class2/2 + class2%2;\n class3 = class3/2 + class3%2;\n int total = class1 + class2 + class3;\n System.out.print(total);\n\n // closing the scanner object\n scanner.close();\n }", "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nSystem.out.println(\"Enter the school name\");\r\nString a=s.next();\r\nSystem.out.println(\"Enter the student name\");\r\nString b=s.next();\r\nSystem.out.println(\"Enter the roll name\");\r\nString a=s.next();\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t\n\t\tString digito1 = sc.nextLine();\n\t\tString digito2 = sc.nextLine();\n\t\tString digito3 = sc.nextLine();\n\t\tconvertir_decimal(digito1);\n\t\tconvertir_decimal(digito2);\n\t\tconvertir_decimal(digito3);\n\t\t\t\n\t\t\n\t\tsc.close();\n\t}", "public static float leerNumeros(String mensaje){\n Scanner entrada = new Scanner(System.in);\n System.out.println(mensaje);\n return entrada.nextFloat();\n }", "public static void main(String[] args) {\n\t\tint i = 4;\n\t\tdouble d = 4.0;\n\t\tString s = \"HackerRank \";\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tdouble d1 = in.nextDouble();\n\t\tString s1 = in.nextLine();\n\t\tin.close();\n\n\t\tSystem.out.println(i + n);\n\t\tSystem.out.println(d + d1);\n\t\tSystem.out.println(s + s1);\n\t}", "public static void main(String[]args){//inicio del main\r\n\r\n\tScanner in = new Scanner(System.in);// creacion del scanner\r\n\tSystem.out.println(\"Input Character\");//impresion del mensaje en consola\r\n\tchar C= in.next().charAt(0);//lectura del char\r\n\t\r\n\tSystem.out.println(\"The ASCII value of \" +C+ \" is : \"+(int) C);//casteo del caracter e impresion del resultado\r\n\t}", "public static void main(String[] args) {\n\t\t \n\t\tScanner scanner=new Scanner(System.in);\n\t\tUtility utility=new Utility();\n\t\n\t\tdouble c;\n\tSystem.out.println(\"enter the number\");\n\t\tc=scanner.nextInt();\n\n\t\tutility.newt(c);\n\t\tscanner.close();\n\t}", "public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n// System.out.println(\"Enter a brief sentence: \");\n//// String userSentence = scanner.next(); // Doesn't work with more than one word\n// String userSentence = scanner.nextLine();\n// System.out.printf(\"Your sentence was: %s\", userSentence);\n//// System.out.format(\"Here is the random variable: %s%n\", random);\n\n\n\n// Scanner scanner = new Scanner(System.in);\n///////////////// Attempt as using strings ////////////\n// System.out.println(\"Please enter length:\");\n// double userLength = new Double(scanner.nextLine());\n// System.out.println(\"Please enter width:\");\n// double userWidth = scanner.nextDouble();\n\n\n// String userLength = scanner.next();\n// String userWidth = scanner.nextLine();\n// int numLength = (int) userLength;\n// int numWidth = (int) userWidth;\n///////////////////////////////////////////////////////\n\n///////////////// Using integers //////////////////////\n// System.out.println(\"Please enter a length: \");\n// int userLength = scanner.nextInt();\n// System.out.println(\"Please enter a width: \");\n// int userWidth = scanner.nextInt();\n///////////////////////////////////////////////////////\n\n///////////////// Using decimals //////////////////////\n System.out.println(\"Please enter the length of the room, in decimal format: \");\n double userLength = scanner.nextDouble();\n System.out.println(\"Please enter the width of the room, in decimal format: \");\n double userWidth = scanner.nextDouble();\n System.out.println(\"Please enter the height of the room, in decimal format:\");\n double userHeight = scanner.nextDouble();\n///////////////////////////////////////////////////////\n\n System.out.format(\"You entered a length of %.2f, a width of %.2f, and a height of %.2f.\\n\", userLength, userWidth, userHeight);\n\n// System.out.println(\"The area is: \" + (userLength*userWidth));\n// System.out.println(\"The perimeter is: \" + (2*userLength + 2*userWidth));\n\n System.out.printf(\"The area of the room is %.2f square feet.%n\", userLength*userWidth);\n System.out.printf(\"The perimeter of the room is %.2f feet.%n\", 2*userLength + 2*userWidth);\n System.out.printf(\"The volume of the room is %.2f cubic feet.%n\", userLength*userWidth*userHeight);\n\n\n\n\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString inp = in.readLine();\n\t\t\n\t\twhile(!inp.isEmpty()) \n\t\t{\n\t\t\tint testCases = Integer.parseInt(inp);\n\t\t\twhile(testCases>0)\n\t\t\t{\n\t\t\t\tint inp1 = Integer.parseInt(in.readLine());\n\t\t\t\tfloat exprsn = (((((inp1*567)/9)+7492)*235)/47) - 498;\n\t\t\t\tint exprsnInt = (int) (exprsn/10);\n\t\t\t\tSystem.out.println(Math.abs((exprsnInt%10)));\n\t\t\t\ttestCases--;\n\t\t\t}\n\t\t}\n\t}\n\tcatch(Exception e){\n\t\t\n\t}\n\n}", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner myobj4 = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Input the value of Principal amount in $\");\r\n\t\tfloat P = myobj4.nextFloat();\r\n\t\t\r\n\t\tSystem.out.println(\"Input the value of time of interest in years\");\r\n\t\tfloat T = myobj4.nextFloat();\r\n\t\t\r\n\t\tSystem.out.println(\"Rate of interest %\");\r\n\t\tfloat R = myobj4.nextFloat();\r\n\t\t\r\n\t\tmyobj4.close();\r\n\t\t\r\n\t\tfloat Simple_Interest = P*T*R/100;\r\n\t\tSystem.out.println(\"Simple interest for \"+P+\"$ for \"+T+\" years and Rate of interest \"+R+\" % is \"+ Simple_Interest + \" $\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scn=new Scanner(System.in);\n\t\tSystem.out.println(\"Please input k=\");\n\t\tint k=scn.nextInt();\n\t double p=k*0.45359;\n\t\tSystem.out.println(\"p=\"+p);\n\t}", "public static void main(String[] args) {\n Scanner scn =new Scanner(System.in);\n boolean b=true;\n while(b)\n {\n \n char ch=scn.next().charAt(0);\n \n if(ch=='+'||ch=='-'||ch=='*'||ch=='/'||ch=='%')\n {\n\t int N1 =scn.nextInt();\n\t int N2 =scn.nextInt();\n\t calculator(ch,N1,N2);\n }\n else if(ch!='X'&&ch=='x')\n\t {System.out.println(\"try again\");}\n else\n\tbreak;\n }\n }", "public static void main(String[] args) {\n\t\tScanner ler = new Scanner(System.in);\n\n\t\tString sentence = ler.nextLine();// ate o \\n (enter)\n\t\tString x, y, z;\n\t\tx = ler.next();\n\t\ty = ler.next();\n\t\tz = ler.next();\n\n\t\tSystem.out.println(sentence);\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(y);\n\t\tSystem.out.println(z);\n\n\t\tx = ler.next();\n\t\ty = ler.next();\n\t\tz = ler.next();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(y);\n\t\tSystem.out.println(z);\n\t\tler.close();\n\t}", "public void inputFraction() {\n\t\tSystem.out.println(\"Input Numerator\");\n\t\tint num = scan.nextInt();\n\t\tSystem.out.println(\"Input Denominator\");\t\n\t\tint deno = scan.nextInt();\n\t\tsetNumerator(num);\n\t\tsetDenominator(deno);\n\t}", "public static void main(String[] args) {\n\n\t\tInputStreamReader rd= new InputStreamReader(System.in);\n\t\ttry {\n\t\t\tSystem.out.println(\"enter a number\");\n\t\t\tint value=rd.read();\n\t\t\tSystem.out.println(\"you entered:-\"+(char)value);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner sc= new Scanner(System.in);\n\t\tSystem.out.println(\"Enter two fractional numbers (a/b) and (c/d)\");\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint c = sc.nextInt();\n\t\tint d = sc.nextInt();\n\t\tfraction(a,b,c,d);\n\t\tsc.close();\n\t}", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" nhap ten:\");\n\t\tString ten = reader.nextLine();\n\t\tSystem.out.println(\" nhap tuoi:\");\n\t\ttuoi = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap can nang:\");\n\t\tcanNang = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\"nhap chieu chieuCao\");\n\t\tchieuCao = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap chieu chieuDai:\");\n\t\tchieuDai = Double.parseDouble(reader.nextLine());\n\t}", "String getInput();", "public Ch12Ex1to9()\n {\n scan = new Scanner( System.in );\n }", "public static void main(String args[])\r\n {\r\n System.out.println(\"Enter two fractions, a numerator, and a denominator\"\r\n + \", separated by new lines.\");\r\n Scanner stdin = new Scanner(System.in);\r\n Fraction f1 = new Fraction(stdin.nextLine());\r\n Fraction f2 = new Fraction(stdin.nextLine());\r\n int numerator = Integer.parseInt(stdin.nextLine());\r\n int denominator = Integer.parseInt(stdin.nextLine());\r\n \r\n Fraction f4 = new Fraction(f1.toString());\r\n Fraction f5 = new Fraction(f1.toString());\r\n f1.add(f2);\r\n System.out.println(\"First two fractions added gives: \" + f1.toString());\r\n f4.subtract(f2);\r\n System.out.println(\"First two fractions subtracted gives: \" + \r\n f4.toString());\r\n f5.multiply(f2);\r\n System.out.println(\"First two fractions multiplied gives: \" + \r\n f5.toString());\r\n f2.setNumerator(numerator);\r\n f2.setDenominator(denominator);\r\n System.out.println(\"Inputted numerator and denominator gives: (\" + \r\n f2.getNumerator() + \"/\" + f2.getDenominator() + \")\\n\");\r\n \r\n System.out.println(\"end of testbed\");\r\n }" ]
[ "0.74691373", "0.717235", "0.68144673", "0.67744374", "0.67672765", "0.67632675", "0.67512643", "0.6698534", "0.6643168", "0.6606635", "0.65666854", "0.65243655", "0.65198046", "0.6493552", "0.64803046", "0.6426351", "0.6393274", "0.63909966", "0.638099", "0.63743675", "0.6371129", "0.63595295", "0.63205683", "0.6268949", "0.6268899", "0.62525225", "0.6243335", "0.62382305", "0.62371534", "0.6224799", "0.62143224", "0.6204797", "0.6203083", "0.6201297", "0.61789614", "0.61745626", "0.6161139", "0.61540014", "0.61537564", "0.61537564", "0.61392194", "0.61387753", "0.61312646", "0.61308026", "0.6121481", "0.6112819", "0.6101937", "0.60983413", "0.60890955", "0.6088164", "0.608776", "0.6084675", "0.60664696", "0.6064974", "0.60649467", "0.6061892", "0.6060063", "0.60527074", "0.6045897", "0.6032413", "0.6028083", "0.60224485", "0.60207444", "0.60188174", "0.60151875", "0.5993515", "0.59882665", "0.59713644", "0.596852", "0.5962845", "0.5960731", "0.5960437", "0.59581053", "0.59536177", "0.59512985", "0.5948646", "0.5947451", "0.5945979", "0.5943958", "0.59421396", "0.59258246", "0.59251153", "0.592212", "0.5919486", "0.59136736", "0.59117746", "0.5901689", "0.58952135", "0.5885527", "0.5883871", "0.588038", "0.5872724", "0.58723533", "0.5869515", "0.58691883", "0.5867282", "0.5864223", "0.58630615", "0.58620477", "0.5856301", "0.5854409" ]
0.0
-1
insert into TEXTTOGAME values('Chapter 1', id, NULL, 'venus is big')
public void insert(Connection c, String name, String chap, int bookid, int id, int parid) { String query = "insert into Text-to-game values('" + name + "', " + id + ", '" + chap + "', NULL)"; Statement stmt = null; try { stmt = c.createStatement(); stmt.executeUpdate(query); } catch (SQLException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insertTupel(Connection c) {\n try {\n String query = \"INSERT INTO \" + getEntityName() + \" VALUES (null,?,?,?,?,?);\";\n PreparedStatement ps = c.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, getAnlagedatum());\n ps.setString(2, getText());\n ps.setString(3, getBild());\n ps.setString(4, getPolizist());\n ps.setString(5, getFall());\n ps.executeUpdate();\n ResultSet rs = ps.getGeneratedKeys();\n rs.next();\n setID(rs.getString(1));\n getPk().setValue(getID());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static int insertDb(GameDto game) throws PictionnaryDbException {\n try {\n int num = SequenceDB.getNextNum(SequenceDB.GAME);\n java.sql.Connection connexion = DBManager.getConnection();\n java.sql.PreparedStatement insert;\n insert = \n connexion.prepareStatement(\"Insert into Game(gid, gdrawer, \"\n + \"gpartner, gstarttime, gword, gtable) \"\n + \"values(?, ?, ?, ?, ?, ?)\");\n insert.setInt(1, num);\n insert.setInt(2, game.getDrawer());\n insert.setInt(3, game.getPartner());\n insert.setTimestamp(4, game.getStartTime());\n insert.setInt(5, game.getWord());\n insert.setString(6, game.getName());\n insert.execute();\n return num;\n } catch (Exception ex) {\n throw new PictionnaryDbException(\"Game: ajout impossible\\r\" + ex.getMessage());\n }\n }", "public void insertBig2TextNode(Big2TextSchemaBean value){\r\n\t\tdbDataAccess.initTransaction();\r\n\r\n\t\tdbDataAccess.insertBig2Text(value, TextAnalytics.Text);\r\n\r\n\t\tdbDataAccess.commit();\r\n\t\tdbDataAccess.closeTransaction();\r\n\t}", "public void insert(int id, String name, String year){\n SQLiteDatabase db = getWritableDatabase();\n\n // create a new content value to store values\n ContentValues values = new ContentValues();\n values.put(\"id\", id);\n values.put(\"name\", name);\n values.put(\"year\", year);\n\n // Insert the row into the games table\n db.insert(\"games\", null, values);\n }", "public static void main(String[] args){\n\r\n StringDB Database = new StringDB();\r\n Database.execute(\"INSERT INTO teachers VALUES ( 'Martin_Aumüller' , 'maau' ) ;\");\r\n\r\n\r\n\r\n }", "private void insert(SQLiteDatabase db, String geomText) {\n String sql = \"INSERT INTO \"+TABLE_NAME+\" (id, polygon) VALUES (null, '\"+geomText+\"')\";\n Log.i(\"SQL line\", sql);\n db.execSQL(sql);//insert(TABLE_NAME, null, values);\n }", "int insert(Storydetail record);", "@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}", "private void SetTextInDb(SubtitleFile subtitleFile){\n String req = \"INSERT INTO `sous_titres`(`id_film`, `numero_sous_titre`, `texte`, `texte_traduit`, `start_time`, `end_time`) VALUES (?,?,?,?,?,?)\";\n PreparedStatement preparedStatement = null;\n\n try {\n //boucle de parcours de tous les sous-titres du fichier de sous-titres\n for (Subtitle subtitle : subtitleFile.getSubtitles()) {\n\n int idFilm = subtitleFile.getIdFilm();\n int number = subtitle.getNumber();\n String text = subtitle.getText();\n String translatedText = subtitle.getTranslatedText();\n String startTime = subtitle.getStartTime();\n String endTime = subtitle.getEndTime();\n preparedStatement = connection.prepareStatement(req);\n\n preparedStatement.setInt(1, idFilm);\n preparedStatement.setInt(2, number);\n preparedStatement.setString(3, text);\n preparedStatement.setString(4, translatedText);\n preparedStatement.setString(5, startTime);\n preparedStatement.setString(6, endTime);\n\n preparedStatement.executeUpdate();\n }\n\n\n } catch (SQLException e) {\n e.printStackTrace();\n System.out.println(\"SaveSubFilesInDB : fail\");\n }\n }", "public void insert() throws SQLException;", "public void insert(Course course) {\n\t\tString sql = \"INSERT course(Cour_Name,CourCate_ID,Cour_BriefIntro) \"\n\t\t\t\t+ \"VALUES(?,?,?)\";\n\t\ttry {\n\t\t\t\n\t\t\tconn = dataSource.getConnection();\n\t\t\tsmt = conn.prepareStatement(sql);\n\t\t\tsmt.setString(1, course.getCourName());\n\t\t\tsmt.setInt(2, course.getCourseCate().getCourCateId());\t\t\t\n\t\t\tsmt.setString(3, course.getCourBriefIntro());\n\t\t\tsmt.executeUpdate();\t\t\t\n\t\t\tsmt.close();\n \n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n \n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void insertArticle(BoardVO vo) {\n\t\tString sql = \"INSERT INTO board VALUES(board_id_seq.NEXTVAL,?,?,?)\";\n\t\ttemplate.update(sql,vo.getWriter(),vo.getTitle(),vo.getContent());\n\t}", "@Insert({\n \"insert into generalcourseinformation (courseid, code, \",\n \"name, teacher, credit, \",\n \"week, day_detail1, \",\n \"day_detail2, location, \",\n \"remaining, total, \",\n \"extra, index)\",\n \"values (#{courseid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{teacher,jdbcType=VARCHAR}, #{credit,jdbcType=INTEGER}, \",\n \"#{week,jdbcType=VARCHAR}, #{day_detail1,jdbcType=VARCHAR}, \",\n \"#{day_detail2,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, \",\n \"#{remaining,jdbcType=INTEGER}, #{total,jdbcType=INTEGER}, \",\n \"#{extra,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER})\"\n })\n int insert(GeneralCourse record);", "@Insert({\n \"insert into NEWS (NEWS_ID, TITLE, \",\n \"BODY, IMG_URL, URL, \",\n \"CREATE_TIME)\",\n \"values (#{newsId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, \",\n \"#{body,jdbcType=VARCHAR}, #{imgUrl,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, \",\n \"#{createTime,jdbcType=TIMESTAMP})\"\n })\n int insert(News record);", "public static void inserttea() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"insert into teacher values ('\"+teaid+\"','\"+teaname+\"','\"+teabirth+\"','\"+protitle+\"','\"+cno+\"')\");\n\t\t\tSystem.out.println(\"cno:\"+cno);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录添加成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}catch (Exception e){\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据添加异常!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "int insert(Assist_table record);", "public String insertGame(String nome, int exp){\n\t\tif( exp > 100 )\n\t\t\treturn \"Un gioco puo' fornire al massimo 100 punti esperienza!\";\n\t\t\n\t\tgioco = new Gioco(nome, exp);\n\t\t\n\t\ttry{\n\t\t\tnew GiocoDao().insertGame(gioco);\n\t\t\treturn \"Gioco inserito con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\treturn \"Gioco gia' esistente.\";\n\t\t}\n\t}", "public void insertar2(String nombre, String apellido, String mail, String celular, String comuna,String profesor,String alumno,String clave) {\n db.execSQL(\"insert into \" + TABLE_NAME + \" values (null,'\" + nombre + \"','\" + apellido + \"','\" + mail + \"','\" + celular + \"','\" + comuna + \"',\" + profesor + \",0,0,0,0,\" + alumno + \",'\" + clave + \"')\");\n }", "@Override\r\npublic void onCreate(SQLiteDatabase db) {\n\tdb.execSQL(\"create table if not exists publishment (\"+\r\n\t \"id integer primary key autoincrement ,\"\r\n\t +\"name text ,\"\r\n\t\t\t +\"content text ,\"\r\n\t +\"comment text )\"\r\n\t\t\t );\r\n\t\r\n}", "void saveMessage(int id,String msg) throws SQLException {\n\t\tpst=con.prepareStatement(\"INSERT INTO message VALUES(?,?)\");\n\t\tpst.setInt(1, id);\n\t\tpst.setString(2, msg);\n\t\t\n\t\tpst.executeUpdate();\n\t}", "public long insert(String title, String content) {\r\n\t\tthis.insertStmt.bindString(1, title);\r\n\t\tthis.insertStmt.bindString(2, content);\r\n\t\treturn this.insertStmt.executeInsert();\r\n\t}", "public void nuevoPaciente(String idPaciente, String DNI, String nombres, String apellidos, String direccion, String ubigeo, String telefono1, String telefono2, String edad)\n {\n try\n {\n PreparedStatement pstm=(PreparedStatement)\n con.getConnection().prepareStatement(\"insert into \" + \" paciente(idPaciente, dui, nombres, apellidos, direccion, ubigeo, telefono1, telefono2, edad)\" + \"values (?,?,?,?,?,?,?,?,?)\");\n \n pstm.setString(1, idPaciente);\n pstm.setString(2, DNI);\n pstm.setString(3, nombres);\n pstm.setString(4, apellidos);\n pstm.setString(5, direccion);\n pstm.setString(6, ubigeo);\n pstm.setString(7, telefono1);\n pstm.setString(8, telefono2);\n pstm.setString(9, edad); \n \n pstm.execute();\n pstm.close();\n }\n catch(SQLException e)\n {\n System.out.print(e);\n }\n }", "int insert(TrainingCourse record);", "public static void aggiungiRecensione(String recensioneText, int idGioco) throws SQLException {\n\t\t\tConnection con = connectToDB();\n\t\t\tString query = \"INSERT INTO recensione\"\n\t\t\t\t\t+ \" (id, testo, approvata, id_gioco) \"\n\t\t\t\t\t+ \" VALUES (null, ?, false, ?) ;\";\n\t\t\t\n\t\t\tPreparedStatement cmd = con.prepareStatement(query);\n\t\t\tcmd.setString(1, recensioneText);\n\t\t\tcmd.setInt(2, idGioco);\n\t\t\t//System.out.println(query);\t\t\n\t\t\tcmd.executeUpdate();\n\t\t}", "public void insert(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "int insert(QuestionWithBLOBs record);", "public boolean insertIntoDB(String name, String id,String quantity,String price){\n\n Statement statement= null;\n\n // build the string, add ' ;\n StringBuilder nameBuild= new StringBuilder(name);\n nameBuild.insert(0,\"'\");\n nameBuild.insert(nameBuild.length(),\"'\");\n\n StringBuilder idBuild= new StringBuilder(id);\n idBuild.insert(0,\"'\");\n idBuild.insert(idBuild.length(),\"'\");\n\n StringBuilder quantityBuild= new StringBuilder(quantity);\n quantityBuild.insert(0,\"'\");\n quantityBuild.insert(quantityBuild.length(),\"'\");\n\n StringBuilder priceBuild= new StringBuilder(price);\n priceBuild.insert(0,\"'\");\n priceBuild.insert(priceBuild.length(),\"'\");\n\n\n try{\n statement= connection.createStatement();\n\n statement.execute(\"INSERT into \"+TABLE_GOODS+\"(name,id,quantity,price) values(\"+nameBuild+\",\"+\n idBuild+\",\"+quantityBuild+\",\"+priceBuild+\")\");\n\n return true;\n\n }catch(SQLException e){\n System.out.println(\"Query Failed \"+e.getMessage());\n\n return false;\n }finally{\n\n if(statement!=null)\n try {\n statement.close();\n } catch (SQLException e) {\n System.out.println(\"Couldn't close Statement!\");\n e.printStackTrace();\n }\n }\n }", "public void insert() throws SQLException {\r\n\t\t//SQL-Statement\r\n\r\n\t\tString sql = \"INSERT INTO \" + table +\" VALUES (\" + seq_genreID +\".nextval, ?)\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setString(1, this.getGenre());\r\n\r\n\t\tint roswInserted = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \" +roswInserted+ \"Zeilen hinzugefügt\");\r\n\r\n\t\tsql = \"SELECT \"+seq_genreID+\".currval FROM DUAL\";\r\n\t\tstmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tResultSet rs = stmt.executeQuery();\r\n\t\tif(rs.next())this.setGenreID(rs.getInt(1));\r\n\t\trs.close();\r\n\t\tstmt.close();\r\n\t}", "public void insertData(SQLiteDatabase db) {\n String sql;\n try {\n\n InputStream in = this.context.getResources().openRawResource(R.raw.data);\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document doc = builder.parse(in, null);\n NodeList statements = doc.getElementsByTagName(\"statement\");\n for (int i = 0; i < statements.getLength(); i++) {\n sql = \"INSERT INTO \" + this.tableName + \" \" + statements.item(i).getChildNodes().item(0).getNodeValue();\n db.execSQL(sql);\n sql = \"\";\n }\n } catch (Throwable t) {\n Toast.makeText(context, t.toString(), Toast.LENGTH_LONG).show();\n }\n }", "void insert(BnesBrowsingHis record) throws SQLException;", "void insert(GfanCodeBanner record) throws SQLException;", "public void insert(Curso curso) throws SQLException {\n String query = \"\";\n Conexion db = new Conexion();\n\n query = \"INSERT INTO curso VALUES (NULL,?,?,?);\";\n \n PreparedStatement ps = db.conectar().prepareStatement(query);\n //Aquí se asignaran a los interrogantes(?) anteriores el valor oportuno en el orden adecuado\n ps.setString(1, curso.getNombre()); \n ps.setInt(2, curso.getFamilia());\n ps.setString(3, curso.getProfesor());\n \n\n if (ps.executeUpdate() > 0) {\n System.out.println(\"El registro se insertó exitosamente.\");\n } else {\n System.out.println(\"No se pudo insertar el registro.\");\n }\n\n ps.close();\n db.conexion.close();\n }", "public void playDB(){\n\t\tboolean emptyPot = false;\n\t\tint points = myPC.count(myPC.createWords(myField.getTiles(), myField.getNewWords()), myField.getTiles(), myField.getNewWords().size());\n\t\tint turn = DBCommunicator.requestInt(\"SELECT id FROM beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"' ORDER BY id DESC\");\n\t\tturn += 2;\n\t\t\n\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES (\" + turn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + points + \", 'Word')\");\n\t\t\n\t\tHashMap<String, GameStone> newWords = myField.getNewWords();\n\t\tSystem.out.println(newWords);\n\t\tArrayList<Integer> addedInts = new ArrayList<Integer>();\n\t\t\n\t\tfor(Entry<String, GameStone> word : newWords.entrySet()){\n\t\t\tSystem.out.println(word.getKey());\n\t\t\tString key = word.getKey();\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\t\t\t\n\t\t\tString[] cords = key.split(\",\");\n\t\t\tx = Integer.parseInt(cords[0]);\n\t\t\ty = Integer.parseInt(cords[1]);\n\t\t\t\n\t\t\t\n\t\t\tint stoneID = word.getValue().getID();\n\t\t\tSystem.out.println(stoneID);\n\t\t\tString character = DBCommunicator.requestData(\"SELECT letterType_karakter FROM letter WHERE id = \" + stoneID + \" AND spel_id = \" + id);\n\t\t\tSystem.out.println(character);\n\t\t\tif(!character.equals(\"?\")){\n\t\t\t\tDBCommunicator.writeData(\"INSERT INTO gelegdeletter (letter_id, spel_id, beurt_id, tegel_x, tegel_y, tegel_bord_naam, blancoletterkarakter)\"\n\t\t\t\t\t\t+ \" VALUES(\" + stoneID + \", \" + id + \", \" + turn + \", \" + x + \", \" + y + \", 'Standard', NULL)\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tDBCommunicator.writeData(\"INSERT INTO gelegdeletter (letter_id, spel_id, beurt_id, tegel_x, tegel_y, tegel_bord_naam, blancoletterkarakter)\"\n\t\t\t\t\t\t+ \" VALUES(\" + stoneID + \", \" + id + \", \" + turn + \", \" + x + \", \" + y + \", 'Standard', '\" + word.getValue().getLetter() + \"')\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(int e = 0; e < gameStones.size(); e++){\n\t\t\t\tif(gameStones.get(e) == stoneID){\n\t\t\t\t\t\n\t\t\t\t\tint potSize = DBCommunicator.requestInt(\"SELECT COUNT(letter_id) FROM pot WHERE spel_id = \" + id);\n\t\t\t\t\tif(potSize != 0){\n\t\t\t\t\t\tboolean added = false;\n\t\t\t\t\t\twhile(!added){\n\t\t\t\t\t\t\tint letterID = (int) (Math.random() * 105);\n\t\t\t\t\t\t\tSystem.out.println(letterID);\n\t\t\t\t\t\t\tString randCharacter = DBCommunicator.requestData(\"SELECT karakter FROM pot WHERE spel_id = \" + id + \" AND letter_id = \" + letterID);\n\t\t\t\t\t\t\tif(randCharacter != null){\n\t\t\t\t\t\t\t\tboolean inStones = false;\n\t\t\t\t\t\t\t\tfor(int a = 0; a < gameStones.size(); a++){\n\t\t\t\t\t\t\t\t\tSystem.out.println(gameStones.get(a));\n\t\t\t\t\t\t\t\t\tif(gameStones.get(a) == letterID){\n\t\t\t\t\t\t\t\t\t\tinStones = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!inStones){\n\t\t\t\t\t\t\t\t\tgameStones.set(e,letterID);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"PLACE \"+ id +\" \"+ letterID +\" \"+ turn);\n\t\t\t\t\t\t\t\t\tDBCommunicator.writeData(\"INSERT INTO letterbakjeletter (spel_id, letter_id, beurt_id) VALUES (\" + id + \", \" + letterID + \", \" + turn + \")\");\n\t\t\t\t\t\t\t\t\taddedInts.add(letterID);\n\t\t\t\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\temptyPot = true;\n\t\t\t\t\t\tgameStones.remove(e);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<Integer> nonAddedInts = new ArrayList<Integer>();\n\t\tfor(int e : gameStones){\n\t\t\tnonAddedInts.add(e);\n\t\t}\n\t\t\n\t\tfor(int a : addedInts){\n\t\t\tfor(int e = 0; e < nonAddedInts.size(); e++){\n\t\t\t\tif(a == nonAddedInts.get(e)){\n\t\t\t\t\tnonAddedInts.remove(e);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int e : nonAddedInts){\n\t\t\tSystem.out.println(\"PLACE \"+ id +\" \"+ e +\" \"+ turn);\n\t\t\tDBCommunicator.writeData(\"INSERT INTO letterbakjeletter (spel_id, letter_id, beurt_id) VALUES (\" + id + \", \" + e + \", \" + turn + \")\");\n\t\t}\n\t\t\t\t\n\t\tif(emptyPot && (gameStones.size() == 0)){\n\t\t\tDBCommunicator.writeData(\"UPDATE spel SET toestand_type = 'Finished' WHERE id = \" + id );\n\t\t\tendGame(true);\n\t\t}\n\t\telse{\n\t\t\tthis.setStoneLetters();\n\t\t\tthis.fillStoneChars();\n\t\t}\n\t}", "private static void testInsert() {\n\t\tSkemp skemp = new Skemp();\n\t\tskemp.setId(99);\n\t\tskemp.setName(\"王2\");\n\t\tskemp.setSex(\"男\");\n\t\tSkempDao skempDao = new SkempDaoImpl();\n\t\tskempDao.insertSkemp(skemp);\n\t}", "public void insert() {\n String sqlquery = \"insert into SCORE (NICKNAME, LEVELS,HIGHSCORE, NUMBERKILL) values(?, ?, ?,?)\";\n try {\n ps = connect.prepareStatement(sqlquery);\n ps.setString(1, this.nickname);\n ps.setInt(2, this.level);\n ps.setInt(3, this.highscore);\n ps.setInt(4, this.numofKill);\n ps.executeUpdate();\n //JOptionPane.showMessageDialog(null, \"Saved\", \"Insert Successfully\", JOptionPane.INFORMATION_MESSAGE);\n System.out.println(\"Insert Successfully!\");\n ps.close();\n connect.close();\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n }", "int insert(Course record);", "int insert(Course record);", "public void insertCourse(){\n \n }", "int insertSelective(QuestionWithBLOBs record);", "int insertSelective(TrainingCourse record);", "public void insert() throws SQLException {\n String sql = \"INSERT INTO course (courseDept, courseNum, courseName, credit, info) \"\n + \" values ('\"\n + this.courseDept + \"', '\"\n + this.courseNum + \"', '\"\n + this.courseName + \"', \"\n + this.credit + \", '\"\n + this.info + \"')\";\n\n DatabaseConnector.updateQuery(sql);\n }", "@Override\n\tpublic void insert(Connection c, Genre v) throws SQLException {\n\n\t}", "int insert(ExamRoom record);", "public boolean insertData(String id) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(col0, id);\n long result = db.insert(TABLE_NAME, null, contentValues);\n db.close();\n if (result == -1) {\n return false;\n } else {\n return true;\n }\n }", "@Override\n\tpublic void insert(String descrizione) throws SQLException {\n\t\tPreparedStatement ps=conn.prepareStatement(\"INSERT INTO categoria(descrizione) VALUES (?)\");\n\t\tps.setString(1, descrizione);\n\t\tps.executeUpdate();\n\t\t\n\t}", "public void insertIntoSQLtable(Connection conn, String dataid, String tablename) throws SQLException\n\t\t{\n\t\tSet<String> col=getColumns();\n\n\t\tStringBuffer insert=new StringBuffer();\n\t\tinsert.append(\"insert into \"+tablename+\" (\");\n\t\tinsert.append(\"dataid, frame, particle\");\n\t\tfor(String column:col)\n\t\t\tinsert.append(\",\"+column); //TODO types\n\t\tinsert.append(\") VALUES (\");\n\t\tinsert.append(\"?, ?, ?\");\n\t\tfor(int i=0;i<col.size();i++)\n\t\t\tinsert.append(\",?\");\n\t\tinsert.append(\");\");\n\t\t\n\t\tSystem.out.println(insert);\n\t\tPreparedStatement stmInsertTable=conn.prepareStatement(insert.toString());\n\t\t\n\t\tstmInsertTable.setString(1, dataid);\n\t\tfor(EvDecimal frame:getFrames())\n\t\t\t{\n\t\t\tstmInsertTable.setBigDecimal(2, frame.toBigDecimal());\t\t\t\n\t\t\tfor(Map.Entry<Integer, ParticleInfo> e:getFrame(frame).entrySet())\n\t\t\t\t{\n\t\t\t\tstmInsertTable.setInt(3, e.getKey());\n\t\t\t\t\n\t\t\t\tMap<String,Object> props=e.getValue().map;\n\t\t\t\tint colid=4;\n\t\t\t\tfor(String columnName:col)\n\t\t\t\t\t{\n\t\t\t\t\tObject p=props.get(columnName);\n\t\t\t\t\tif(p instanceof Double)\n\t\t\t\t\t\tstmInsertTable.setDouble(colid, (Double)p);\n\t\t\t\t\telse if(p instanceof Integer)\n\t\t\t\t\t\tstmInsertTable.setInt(colid, (Integer)p);\n\t\t\t\t\telse\n\t\t\t\t\t\tstmInsertTable.setInt(colid, (Integer)(-1));\n\t\t\t\t\tcolid++;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tstmInsertTable.execute();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public void onCreate(@NonNull SupportSQLiteDatabase db) {\n super.onCreate(db);\n\n //default player\n db.execSQL(\"INSERT INTO player (name, picture, wins, draws, defeats) VALUES(\\\"IA\\\", \" +\n \"\\\"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAAAXNSR0IArs4c6QAAAARzQklUCAgI\\n\" +\n \"CHwIZIgAACAASURBVHic7d13vB1Vvffxz0kFEnpPQHq1IFJVECIWigRURNQH9aKP+ohevfaGVxHF\\n\" +\n \"a3m8XFEfr4r1SrFQBFQ6oiBSBQVBUAQSQpWaQEKS5491IsfAOWeXmf2bNevzfr3W60T/2PvL7Dl7\\n\" +\n \"vmfNzJohJLXRELAxMGN4rD/i3yP/vynAHcDc5cbI/+8vwKKBppckSR2bAuwNfA2YAyytaDwAnAC8\\n\" +\n \"Blh1YP81kiRpVKsDrwNOAh6kuoP+aGMhcBZwOLDBAP77JEnSsAnAG4BzSVPzdR/0xxqXA+8HVqr1\\n\" +\n \"v1iSpMLtB1xL7EH/qcZc4H8DE+v7T5ckqTw7AxcQf6Afb1wHHFDPJpAkqRybk87vRx/Yux0XAc+t\\n\" +\n \"YXtIktRq04Avky66iz6Y9zN+ihcLSpLUkY2A3xN/8K5q3AHsWukWkiSpZV4A3EX8Qbvq8ShwaIXb\\n\" +\n \"SZKk1ngL+U/5jzc+R7qNUZKk4k0CjiX+4DyocTqwSiVbTpKkTK1BWtAn+qA86PFHYLMKtp8kSdmZ\\n\" +\n \"BlxN/ME4atyBdwhIkgozBJxM/EE4elyBywhLkgryaeIPvk0ZJ/a5LSVJysJriT/oNm0c0dcWlSSp\\n\" +\n \"4XYGFhB/wG3aWAK8oo/tKklSY80kPTUv+mDb1PEwsF3PW1eSpAaaDFxO/EG26eMWYPXeNrGkbvjs\\n\" +\n \"bmkw3gEcFh0iA6uRytJZ0UGkthuKDiAVYBXgZmCt6CCZeAzYCvhbdBCpzVyTW6rfh/Dg342pwFHR\\n\" +\n \"ISRJ6scGwHziz63nNpYAz+5he0uS1AjHEX8wzXX8softLUlSuGcCi4k/kOY8XtT1VpckKdiZxB9A\\n\" +\n \"cx9X4sXKkqSMbE/8wbMtY58ut72kDngXgFQPl7WtjttSqoFTa1I9riFdA6D+3QnMIN0ZIKkizgBI\\n\" +\n \"1dsED/5VWhfYJTqE1DYWAKl6B0QHaCG3qVQxC4BUvQOjA7SQ21SqmNcASNVak3TO2gdtVW9r4Ibo\\n\" +\n \"EFJbOAMgVWs/PPjXxdMAUoUsAFK1XhYdoMXctlKFLABStTaPDtBiblupQhYAqVozogO02Lp4ekWq\\n\" +\n \"jAVAqs4kYO3oEC02gVQCJFXAAiBVZz38naqbMyxSRfyykqrjwal+bmOpIhYAqTrrRwcogNtYqogF\\n\" +\n \"QKqOf53Wz20sVcQCIFXHg1P93MZSRSwAUnW8Qr1+bmOpIhYAqTrzowMUwG0sVcQCIFXn79EBCuA2\\n\" +\n \"lipiAZCq48Gpfm5jqSIWAKk6Hpzq5zaWKmIBkKrjwal+bmOpIhYAqTr3RgcogNtYqogFQKrOdcDS\\n\" +\n \"6BAt94foAFJbWACk6jwA/Dk6RIs9ANwUHUJqCwuAVK3LowO02BU4wyJVxgIgVcsCUB+3rVQhC4BU\\n\" +\n \"LQ9S9XHbShUaig4gtcw04D5gSnSQFtoIuDU6hNQWzgBI1XoE+GV0iBb6HR78pUpZAKTqnRAdoIV+\\n\" +\n \"GB1AahtPAUjVmw7cCawUHaQllgAzgXnRQaQ2cQZAqt7DwOnRIVrkfDz4S5WzAEj18DRAdZz+l2rg\\n\" +\n \"KQCpHlNIqwI+LTpI5u4BNiHNqkiqkDMAUj0WAkdHh2iBL+LBX6qFMwBSfZwF6I9//Us1cgZAqo+z\\n\" +\n \"AP3xr3+pRs4ASPVyFqA3/vUv1cwZAKleC4GPRIfI0L/jwV+S1AInkx5l6xh/nI2zk5KkllgHuJv4\\n\" +\n \"g2vTx/3Ahj1uY0mSGukg4g+wTR+v73nrSpLUYD8k/iDb1HFyH9tVkqRGWwW4mviDbdPGH4HV+9iu\\n\" +\n \"kiQ13gzSs+2jD7pNGXPxNklJUiGeDvyd+INv9HgQeHaf21KSpKzsATxK/EE4aiwEXtz3VpQkKUOz\\n\" +\n \"gfnEH4wHPR4l3RUhSVKxdqWsNQLuBXarZMtJkpS5zUnPDIg+ONc9bgK2rGibSZLUCmsBlxB/kK5r\\n\" +\n \"XAKsXdnWkiSpRVYAPgcsJv6AXdVYPPzftEKF20mSpFbaFbie+IN3v+P64f8WSZLUoZxnA/yrX5Kk\\n\" +\n \"Pn2M+AN6t+NjtWwJSZWZEB1A0rgejg7QgxwzS0WxAEiSVCALgCRJBbIASJJUIAuAJEkFsgBIklQg\\n\" +\n \"C4AkSQWyAEiSVCALgCRJBbIASJJUIAuAJEkFsgBIklQgC4AkSQWyAEiSVCALgCRJBbIASJJUIAuA\\n\" +\n \"JEkFsgBIklQgC4AkSQWyAEiSVCALgCRJBbIASJJUIAuAJEkFsgBIklQgC4AkSQWyAEiSVCALgCRJ\\n\" +\n \"BbIASJJUIAuAJEkFsgBIklQgC4AkSQWyAEiSVCALgCRJBbIASJJUIAuAJEkFsgBIklQgC4AkSQWy\\n\" +\n \"AEiSVCALgCRJBbIASJJUIAuAJEkFsgBIklQgC4AkSQWyAEiSVCALgCRJBbIASJJUIAuAJEkFsgBI\\n\" +\n \"klQgC4AkSQWaFB1AjTMVGIoOoX+S4+/pJGCF6BD6J0uBhcM/Jb/oCzEV2ALYasTYAFgZmD78c9m/\\n\" +\n \"JwZllFS/JcAjwEPAw8M/HwLuAm4A/jT888bh/18tZgFop22AWcNjB2AjPN0jqTtzgWuAC4DzgSuA\\n\" +\n \"xZGBVC0LQDusD+xPOuDvCawXmkZSGz0EXEQqA2cC18XGUb8sAPlaCXg58HpgL5y6lzRYVwHfB44H\\n\" +\n \"5gVnUQ8sAPmZBbwReAXpnL0kRVoMnE0qAz8mXWioDFgA8jAEHAh8lHROX5KaaA7wReC/SRcbqsEs\\n\" +\n \"AM02EXgN8GFg2+AsktSpe4FjgC8D9wdn0SgsAM11MHA0sGl0EEnq0UPAl4DPAguCs2g5FoDm2QI4\\n\" +\n \"FnhJdBBJqshfgXcCZ0QH0RO8N7w5VgA+CVyLB39J7bIJcDpwCmldEjWAt441w+7AWaTb+nJc9lWS\\n\" +\n \"OrE18BbgMeC3wVmK5ymAWEOkC/yOxDImqSy/IK1jcnd0kFJZAOKsDfwAp/sllesO4HWk1QU1YP7V\\n\" +\n \"GWMP0sIZz44OIkmBVgYOJR2LLsInFQ6UMwCD9y+kRTI81y9JTziDdPvz/OggpfAugMH6EHAcHvwl\\n\" +\n \"aXn7AecBa0UHKYUzAIMxBPxf4N3RQSSp4W4E9iatHaAaWQDqNxn4DvDa4BySlIt5wL6kJw6qJhaA\\n\" +\n \"ek0gPSrz4OggkpSZ+4EXkBZHUw28BqBex+DBX5J6sRpprYCNg3O0lgWgPh8F3hEdQpIyNoO0Suo6\\n\" +\n \"0UHayFMA9Xgz8I3oEJLUElcAs0hPF1RFLADVewlwJi6yJElVOgvYB1gSHaQtPEhVa33SCn/To4NI\\n\" +\n \"UstsRlop8MLoIG3hDEB1JgDnAnsG55CktloCvBQ4JzpIG3gRYHU+jgd/SarTBOB/SLOt6pMzANWY\\n\" +\n \"RWqkFipJqt+vgBcCi6OD5MxrAPo3jXTwXy06iCQVYiPSQ4N+Ex0kZ/7F2r8jgA2jQ0hSYT5OKgLq\\n\" +\n \"kacA+rM1cA1pvX9J0mCdBhwQHSJXngLoz/HAFtEhJKlQW5EeGHRDdJAcOQPQu4OBE6NDSFLhbgW2\\n\" +\n \"IV0ToC44A9CbycDP8MI/SYq2KrAQFwjqmhcB9uZQvPhEkpriXbgCa9ecAejeROAEYM3oIJIkAFYE\\n\" +\n \"7gcujg6SE68B6N5rgB9Gh5Ak/ZM7gY2BR4NzZMMZgO4MkQ7+PptakpplOqkE/C46SC6cAejO/qT7\\n\" +\n \"TiVJzXMbsAkuEdwRLwLszmHRASRJo9qQ9LRAdcAC0Lk1gH2jQ0iSxvTG6AC5sAB07hBgSnQISdKY\\n\" +\n \"ZgOrR4fIgQWgc4dGB5AkjWsq6W4tjcOLADuzBXBjdAhJUkcuA3aODtF0zgB05qDoAJKkju1EuhtA\\n\" +\n \"Y7AAdGZWdABJUlf2ig7QdBaA8U0Bnh8dQpLUlRdGB2g6C8D4dgZWig4hSeqKM7fjsACMb8/oAJKk\\n\" +\n \"rq0HbBsdosksAOOzRUpSnjwNMAYLwNiGgF2iQ0iSevLc6ABNZgEY20xgWnQISVJPtooO0GQWgLG5\\n\" +\n \"80hSvvwOH4MFYGxbRweQJPVsOmkmV0/BAjA226Mk5c3v8VFYAMbmjiNJefN7fBQWgLFtHB1AktSX\\n\" +\n \"jaMDNJUFYGyrRAeQJPXF7/FRWADGtnJ0AElSX/weH4UFYHQT8BkAkpS76dEBmsoCMLpppJUAJUn5\\n\" +\n \"cgZgFBaA0bnTSFL+/C4fhQVgdC4BLEn587t8FBaA0U2MDiBJ6pvf5aOwAEiSVCALgCRJBZoUHUBF\\n\" +\n \"uR+YC9wxPJb9+z5gLWD95cYMYNWQpFI1HuaJ/X3kfn8X6eK0Zfv5yH1+TbwDSQNgAVBdFgDnAKcC\\n\" +\n \"FwBzgEd7eJ0VSU/zeiFwALAXMLWaiFKlFgO/Ie3zvwRuBR7q4XUmA+sBzwUOBPYBVqsoo/QPtszR\\n\" +\n \"bQ1cHx0iM/cAp5O+AM8C5tfwHtOBvUllYD9g9RreQ+rUfOBs4BTSvn9PDe8xGdiDtM/PBp5Ww3u0\\n\" +\n \"2Q34aHd1aWtgqWPc8RjwVWB3Bn+17STSzMC3gMd7yO5w9DpOIR2MV2Twtgc+DTzQRd6Sx59628wq\\n\" +\n \"mQVg7LEEOB7YtNcNXLGtSV/K0dvF0e7xG+D5NMNawDHAQuK3S5OHBUBdswCMPs4Ddux909ZqN+Bi\\n\" +\n \"4reRo13jT8DLaabNgBNJpTx6OzVxWADUNQvAk8e1wL79bNQBeiXp3F/0NnPkPeYBbyOPC6Z3As4n\\n\" +\n \"fps1bVgA1DULwBNjEfAu8ls3YhLwUdLV2dHb0JHf+Dp5PknulXh9wMhhAVDXLABp3Ee69S5ns0m3\\n\" +\n \"Y0VvS0ceYxFwOHnbFriJ+G3ZhGEBUNcsAOk2yM373ZAN8Uzgr8RvU0ezx73kX3iXWYN0vU70No0e\\n\" +\n \"FoBR5Dalq8H5JbAr6a+INrgW2Bm4KDqIGut6YBfg3OggFbkPeAnpNl1JXSh5BuBLtPcJWlOAbxK/\\n\" +\n \"jR3NGmcAq9Be/4d0aiN6O0cMZwDUtVILwPuq2HgZOIr4be1oxvgeZcyG7kOZC2ZZANS1EgvANyrZ\\n\" +\n \"cnkYAk4ifps7YsfFlPVsiXcSv80HPSwA6lppBeBC0prjJVkJuIL4be+IGbcC61Ke/yZ+2w9yWABG\\n\" +\n \"UcK0l8b3V9K9w4uigwzYfNIDVuZFB9HALfvs74wOEuBwvBhWWACU7o+fTT1PMcvB7aRHrvbyqGLl\\n\" +\n \"aSnwRuCq4BxRFpEK/y3BORQsh+UtuzWRNK03A1iT3h95vEFliZprCfA64A/RQYJdCrwZ+EF0EA3E\\n\" +\n \"p4AfRYcIdjdpBuQ35LnaYTemkR4h3oulpFUV5wJ30LJZ0l4Pjk2w7EOdRTpYzyQd9NelvbewVe1o\\n\" +\n \"4CPRIRrkq6TbpdRe5wIvJn2xC14PfDc6RCaWkorTXGDO8M+LgZ+RFpDKTm4FYC3SdPWBpF/iFWLj\\n\" +\n \"ZO0u0ip/D0UHaZC1gZuBlaODqBZLgecAV0cHaZAh4HLSdlFvFgO/Ak4mPZL8ttg47TIROIx0lXqJ\\n\" +\n \"97DWNXJf67wuRxD/2TjqGd9HT2Uv4j+bNo3LgH/DP1D7tjdpCdfoD7Rt40bKu+WvU9NI5/qiPyNH\\n\" +\n \"teNRYCM0mp8T/xm1bdwCvJb8ZtrDPQs4i/gPsK3joM4/iiK9jfjPyFHt+AIay7Pwsdl1jcuAF3T+\\n\" +\n \"UZRrXeA43BHrHJd0/GmUaxJwA/GflaOacR+wOhrPd4j/rNo8TgE26/TDKM0OpIsnoj+kto/dO/1A\\n\" +\n \"CncQ8Z+Vo5rxftSJDYEFxH9ebR5/Jz2hUSMcTFqZK/rDafu4sNMPREB6PGz0Z+bob9yPF2N14+vE\\n\" +\n \"f2ZtH4+TnskQLnolwCHgSOBEYMXgLCX4aXSAzJwcHUB9+zmu8tgNvyPqNxH4L1LZKvZi7GnAT4hv\\n\" +\n \"YyWNjTv5YPQPOxP/mTn6G4c86VPVWKYADxL/uZUyzietWFuUScB5xG/8ksbvO/pkNNIQ6VkB0Z+d\\n\" +\n \"o7exEFj1SZ+qxnMi8Z9dSeMq0pNJBy7qFMAxpCV8NTinRgfI0FLcbjm7gLSOu7rjPj9Yzybd/TZw\\n\" +\n \"EQXgrcDbA963dP5S9+aU6ADqmft8b86kZQ+9ycCrgQ8N+k0HvULRHsDZFHzhQ5DbSbf4qHuTSQ8A\\n\" +\n \"cSo5PxuS9n117xzSEsEanCXAy0gXrg7EIGcANgZ+jAf/CKdFB8jYIuCM6BDq2pV48O+HsyeDNwE4\\n\" +\n \"HthykG84CEPASaSn+WnwrogOkDm3X378zPrj9ouxKulYOZBj86AKwKuBnQb0XnqyO6IDZM7tlx8/\\n\" +\n \"s/7MiQ5QsO2A1w/ijQZRACYDRw3gfTS6udEBMuf2y4+fWX+WPRFTMY5kACtYDqIAvBUfgBDNv4b6\\n\" +\n \"4/bLj59ZfxYC90aHKNiGwDvqfpO6C8B04Iia30Nje5x0Fbt658EkP35m/fM0QKwPA6vV+QZ1F4D3\\n\" +\n \"AevU/B4a2504ldevh4BHokOoKxaA/nkaJdYa1Lw2QJ0FYCrwnhpfX53xl7gabsd8LAXmRYdoAff5\\n\" +\n \"eP9Kem5OLeosAC8CVq7x9dUZ/xKqhtsxH3eTTn2pPxaAeCsCL6nrxessAAfU+Nrq3ILoAC3hdsyH\\n\" +\n \"n1U13I7NMLuuF66rAAwB+9f02urO+tEBWsLtmI/1ogO0hPt8M+xHTcfqugrALvhL2BT+ElfD7ZiP\\n\" +\n \"qaQLqNSfGdEBBMDawHPreOG6CsCBNb2uuueBq3+TcRnr3Ljf988C0By1nAaoqwDUds5CXZs+PNS7\\n\" +\n \"dRn8kzPVHwtA/ywAzVHLKfU6CsAkYKsaXle988uwP26//PiZ9WcIt2GTbEU6tlaqjgKwXk2vq97Z\\n\" +\n \"5Pvj9suPn1l/1gKmRIfQP0yghuvq6jhQ+4vXPDb5/rj98uNn1h+/x5un8s/EAlCGTaMDZM7tlx8/\\n\" +\n \"s/74ALfmyaIAzKzhNdWffaMDZG6/6ADq2gsZwONUW8zvjObJogA4A9A8z8WHMvVqC2Db6BDq2jRg\\n\" +\n \"r+gQmZqAC7k1kQVAPfEXuncvjw6gnrkeSW/8g6GZsigAK9bwmuqfz2bojQeRfO2PdyT1wu+KZlqp\\n\" +\n \"6hf0l6McL6aGHajl1gd2jQ6hnq2Ln18vLL2FsACUYwXgpdEhMjMbVwDMnX/Ndmcb0nUvKoAFoCx+\\n\" +\n \"GXbH8//5c5/vjturIBaAsrwCL+7p1BZ4FXkbbAXsGR0iE5OBN0WH0OBYAMqyMvDx6BCZ+DQ1rL2t\\n\" +\n \"EJ/HUzmdeCuweXQIDY4FoDxvwV/y8ewEvCo6hCqzI3BwdIiG84+DAlkAyjMZODo6RMN9LjqAKvcZ\\n\" +\n \"fLjNWD4ArB0dQoNlASjTQcAu0SEaah88Z9xGmwJviw7RUOsD74kOocGzAJTr89EBGmgC8NnoEKrN\\n\" +\n \"EcAq0SEa6JO4RkiRLADl2h2XB17e/wKeFR1CtVkL+GB0iIbZBjgsOoRiWADK9lXSammCjYEvRIdQ\\n\" +\n \"7d5LWuteaXGw7wITo4MohgWgbBsAJwNTo4MEmw6cihdBlWAq8FPSvl+6b5DueFGhLAB6LvD16BCB\\n\" +\n \"hoDv49R/SdYDTqHsB5e9n3TKSwWzAAjgDcD7okME+RQ+/KREOwDHRYcIsi9e7CosAHrCf5C+GEpy\\n\" +\n \"CPDR6BAKcwjw4egQA7Y1cDx+9wt3Aj1hAumLYZvoIAOyI+X+BagnHEU5d8OsBpyGt0JqmAVAI60C\\n\" +\n \"nAU8JzpIzXYDzqTsc8BKlhXfV0QHqdlM4Gx81K9GsABoeRsAv6a9a6e/CTgXr/jXE6YBPwb+nXY+\\n\" +\n \"NGhX4HLSrJf0DxYAPZUVgRNJF8i15QtxIvCfwDdxTXg92RDwCeBHpELQFm8ALiDd+SD9EwuAxvIx\\n\" +\n \"4Cfk/4W4GmnK/13RQdR4rwR+A2wUHaRPE4EvAt/BdT40CguAxvNy4GLy/ULcCrgUeEl0EGVjO+Ay\\n\" +\n \"0nLZOVoNOAMf8KNxWADUiWcBV5MWD1khOEunppGeb345sGVwFuVnbeA84FhgneAsnZoAvBG4Fnhp\\n\" +\n \"bBTlwAKgTq0GfA64EXg9zd13JgFvBW4iPeVsemwcZWwScDhpXzqCZp8K24dU0r+NyxyrQ039Eldz\\n\" +\n \"bUh6gMhVNO+vjANJf/38P7zoSdVZGTgS+DPwFpr18JwdSHe1nAk8MziLMmMBUK+eBfwCOAfYOTjL\\n\" +\n \"7qRbF08mrXQm1WF90nMzriWVzcgisAXwQ9K1Ci8MzKGMTYoOoOztRbrI7i+kJ+qdSjoYL67xPScB\\n\" +\n \"e5C+hGcDT6vxvaTlbUMqm/cAp5P2+bOA+TW/7w7AAcPDh1epb3Xc430C8OoaXlf5uJd0FfKpwC+B\\n\" +\n \"Ryp4zZWBvUlffvuRrkmQmmIBaaW9U0il4O4KXnMyMIu0z8/Gc/ulO5H0/IrKWABUt0dJV+LPAe4A\\n\" +\n \"5g7/HPnv+4E1SFOsI8eM4Z8zSauYeT+zcrAEuBK4lSfv88v+9z2kiwpH7ufL/3tHXLdfT6i8AHgK\\n\" +\n \"QHVbgbT2/liW4PUoao8JpIP3WEvvus8rnDugmsD9UKVxn1c4d0JJkgpkAZAkqUAWAEmSCmQBkCSp\\n\" +\n \"QBYASZIKZAGQJKlAFgBJkgpkAZAkqUAWAEmSCmQBkCSpQBYASZIKZAGQJKlAFgBJkgpkAZAkqUAW\\n\" +\n \"AEmSCmQBkCSpQBYASZIKZAGQJKlAFgBJkgpkAZAkqUAWAEmSCmQBkCSpQBYASZIKZAGQJKlAFgBJ\\n\" +\n \"kgpkAZAkqUAWAEmSCmQBkCSpQBYASZIKZAGQJKlAFgBJkgpkAZAkqUAWAEmSCmQBkCSpQBYASZIK\\n\" +\n \"ZAGQJKlAFgBJkgpkAZAkqUAWAEmSCjQpOoDUQA8CdwyPu4ElsXHUhzWA9YfHmsFZpEaxAKhk84Gz\\n\" +\n \"gZ8BN/DEQX9+ZCjVZgqwHqkMbALsA7yMVBKk4lgAVJq7gNOBU0kH/wWxcTRAC4Fbh8elwAnARGB3\\n\" +\n \"4IDhsUlYOmnAvAZApfgVMIv019+bgNPw4C9YDFwA/BuwKbA98OPIQNKg1FEAltbwmlKvriVN8+5B\\n\" +\n \"+qL3fL7GcjXwKmAX0v4iNUXlx9Y6CsCDNbym1K1bgTcAzwbOCM6i/PyONGO0L/D74CwSwENVv2Ad\\n\" +\n \"BWBuDa8pdeNoYEvge/gXv/rzc+A5wNtJ1xBIUeZU/YJ1FIDKQ0odWgC8BvgI8FhwFrXHEuBrwF6k\\n\" +\n \"i0ilCJX/ce0MgNridtLV3CdEB1Fr/RrYGU8JKIYFQHoKvwV2Aq6IDqLW+xvwfOAn0UFUnCxOAVgA\\n\" +\n \"NEhnAnsC84JzqByPkO4UODY6iIpS+bF1qOoXHH7Nx4DJNby2NNJ1wK7UcHWs1IEJpEWl9okOotZb\\n\" +\n \"BEyl4lsB61oH4LIaXlca6T5gNh78FWcJcAhwfXQQtd7lZLIOAKRlVqW6PE6agr05OoiK9yCwP6mQ\\n\" +\n \"SnU5rY4XrasAnFLT60oA7wbOiw4hDbsZOIhUTKU6ZFUAbsRpMdXjJOAr0SGk5ZwPfDw6hFrpZtL1\\n\" +\n \"TpWr82FAngZQ1R4DPhgdQhrFl4DbokOodWr56x/qLQCeBlDVvgLcEh1CGsWjOAug6tVWAOq4DXDk\\n\" +\n \"a/8F2LjG91A57gc2w4ut1GwTSCsFPiM6iFphHrAhNV1fUucMwFJsw6rOZ/Dgr+ZbAnwoOoRa40hq\\n\" +\n \"vLi0zhkASAXjSmC7mt9H7XYrsBVpilXKwQXAHtEhlLU/A9tSYwGocwYAUhv2oi3165t48FdevFNF\\n\" +\n \"/fowNd9aWvcMwDLnkB6lKfViO+Ca6BBSF1YG7gGmRAdRli4lLXNeq7pnAJb5IDUsY6gi/BUP/srP\\n\" +\n \"Q7hYlXr3gUG8yaAKwBXAtwb0XmoX15NQrrwVWr04CfjVIN5oUKcAID3J6AIGMK2hVplF2m+k3KxP\\n\" +\n \"eob7IL9nlbdrgecBDw/izQa9Y65HelLgBgN+X+XpPmAdYHF0EKlHlwI7R4dQFu4BdmKAi50N6hTA\\n\" +\n \"MvOAA4AFA35f5enXePBX3i6IDqAsLAJeyYBXOh10AYC0LsAbA95X+ZkTHUDqk/uwOnE4AzrvP1JE\\n\" +\n \"AYB0kcPHgt5b+ZgbHUDqk/uwxvMF4BsRbxxVAAA+TZoJeCwwg5rNL0/lzn1Yo1kMvBt4f1SAyAIA\\n\" +\n \"8F3SVd53BudQMzl9qty5D+upPAi8DDgmMkR0AQC4hHTl41XRQdQ4/vWk3N2Bi6Dpn/2FdDv8L6KD\\n\" +\n \"NKEAANwG7Ab8KDqIGsUCoNwtBO6NDqHGuJB0W+j10UGgOQUAYD5wMLA/8MfgLGqGidEBpAq4H+s2\\n\" +\n \"4A3AC2lQIWxSAVjmdNLDX96M589KNyM6gNSnFYHVo0MozIOkp/ptCXyP9ITcxmhiAYB0deS3gC2A\\n\" +\n \"j5I2ospjAVDu3IfLtAj4MrAZ8Fka+jjzphaAZRYAnwE2Bg4DTqOhG1K18MtTuXMfLsdi4CLgvcDm\\n\" +\n \"wL+SlvdtrEnRATr0d+Dbw2Ma8FLg5cB+OL3WZn55Knfuw+22ADib9OTHn9HwA/7ycikAIz0C/HR4\\n\" +\n \"TAKeTXq40EzSL9uyMRNYk94feDQRWKvfsOrLzOgAUp8sAPEW0/uBeSnwAOmOpDnDP0f++2rSBexZ\\n\" +\n \"yrEAjPQ4cPnwqNrWNORWjYL51Ejl7mnRAcRNpO9zLafp1wCobLsBU6JDSH3YKzqANBoLgJpsFdJS\\n\" +\n \"0VKONgGeGR1CGo0FQE13YHQAqUcHRAeQxmIBUNPNpvcLOaVIFgA1mgVATTcD2DE6hNSlNYDdo0NI\\n\" +\n \"Y7EAKAeeBlBu9sNnAKjhLADKwZuBlaNDSB0aAt4dHUIajwVAOVgHeH90CKlDrwGeEx1CGo8FQLl4\\n\" +\n \"L7B+dAhpHFOBT0eHkDphAVAuVgI+GR1CGsfhpIeXSY1nAVBODgO2jQ4hjWI10uPLpSxYAJSTicAX\\n\" +\n \"cV0ANdMnSLf/SVmwACg3ewNHRIeQlvNq4F3RIaRuWACUo08Ar4gOIQ3bAfh2dAipWxYA5WgI+B6w\\n\" +\n \"XXQQFW894BRgxeggUrcsAMrVNOBUYO3oICrWVOBkYIPoIFIvLADK2Uakv75WjQ6i4kwGvgPsGpxD\\n\" +\n \"6pkFQLl7HvBbYIvoICrGWsDZwCHRQaR+WADUBlsDlwIvjg6i1nsmcBmwR3QQqV8WALXF6sDP8VYs\\n\" +\n \"1edA4GJc6U8tYQEY3ePRAdS1icB/AseRCoFUhRVIy1D/FJgenEXd87t8FBaA0T0UHUA9+xfgL8AH\\n\" +\n \"8PYs9W4CaV+6Efg4rkCZK7/LR2EBGN3D0QHUl9WA/yB9eb+JNDsgdWp/4BrSbNKGwVnUH7/L30OB\\n\" +\n \"ZwAACKdJREFUR2EBGN0jwJLoEOrbBsA3SV/mh+AUrkY3hbTU9EXAacDTY+OoIs4AjGJSdICGexhY\\n\" +\n \"JTqEKrEtcDzwGHAuaRGh04B5kaEUblVgH+AAYF/8fW8jC8AoPKc1tjnAjOgQqs1S4HfAz4A/AXOH\\n\" +\n \"xx3AwsBcqt5EYF3S7/MMYFPSgX8WaVEftddXgcOjQzSRMwBjux8LQJsNAbsMj5GWAveQysBdeCoo\\n\" +\n \"V0PAmqTf4XXwOpBS3R8doKksAGO7iTR1rLIMkZ4x4HMGpPzdFB2gqbwIcGw3RAeQJPXF7/FRWADG\\n\" +\n \"5o4jSXnze3wUFoCx/Sk6gCSpZ/cA90aHaCoLwNhsjpKUL7/Dx2ABGNs9w0OSlJ/rowM0mQVgfL+O\\n\" +\n \"DiBJ6smvogM0mQVgfOdHB5Ak9eS86ABNZgEYnwVAkvJzI2k1V43CAjC+PwB3R4eQJHXl3OgATWcB\\n\" +\n \"GN9S4MLoEJKkrjj9Pw4LQGfOjg4gSerY43j6dlwWgM78BFgUHUKS1JFf4gJA47IAdOZe4MzoEJKk\\n\" +\n \"jnw3OkAOLACd+150AEnSuO4HTosOkQMLQOfOAP4eHUKSNKYTgMeiQ+TAAtC5x4CTokNIksbkbG2H\\n\" +\n \"hqIDZGZ74MroEJKkp3Q16XtaHXAGoDtX4cWAktRUR0UHyIkzAN17HvCb6BCSpH9yHfAM0uJt6oAz\\n\" +\n \"AN27GBeYkKSmOQoP/l1xBqA3ewHnRIeQJAHpwT/bAEuig+TEGYDenIunASSpKT6FB/+uOQPQu+2B\\n\" +\n \"y4CJ0UEkqWC/Bl6A0/9d8+DVu3nA2sDO0UEkqVCPA/sDd0UHyZGnAPpzBO54khTlS8AfokPkyhmA\\n\" +\n \"/jxKKgAvjw4iSYW5DXgVPqm1Z84A9O97wAXRISSpMO8AHokOkTMLQDUOxWdPS9KgHItP/OubdwFU\\n\" +\n \"52WkHdJtKkn1uQzYDVgYHSR3XgNQnRuBlUlLBUuSqncf8KLhn+qTf61WazLpnlRvDZSkai0l3fJ3\\n\" +\n \"RnSQtvAagGotAg4mrREgSarOJ/HgXylnAOqxHXAhsGp0EElqga8Bb48O0TYWgPrsAfwCWCE6iCRl\\n\" +\n \"7ETgtbjWf+UsAPU6EPgxXmwpSb04i3SHlYv91MADU73+BNwOzMayJUnduIR08H80OkhbWQDqdxXp\\n\" +\n \"FsHZuL0lqRNnkr4zXemvRt4FMBjHA/sBD0cHkaSGOw44AA/+tbMADM7ZwCzg7uggktRQRwFvIj3m\\n\" +\n \"VzXzvPTgbQH8HNgsOogkNcQi4J3A16ODlMQZgMH7M/Ac0t0BklS6W4Dd8eA/cF6UFuMx4EfAPcBe\\n\" +\n \"wKTYOJIU4sfAvsDN0UFK5CmAeNsDJwGbRweRpAF5FHgPaYU/BXEGIN484LukJwnugKdlJLXbRaSr\\n\" +\n \"/M+MDlI6ZwCaZXvgq8Cu0UEkqWJ3Au8Hvh8dRIkzAM0yj3QP7O3A84GVYuNIUt8WA8cCrwR+F5xF\\n\" +\n \"I1gAmulK4Fuk518/C5gaG0eSurYE+AnpQT7fJV38rAbxFEDzrQYcDrwLWDs4iySNZxHwP8BngRuC\\n\" +\n \"s2gMFoB8rAi8mXTl7MaxUSTpSeaTTmF+Hrg1OIs6YAHIzxCwJ3AocBDp7gFJirAYOBf4AXAyPu8k\\n\" +\n \"KxaAvK0IHEgqAy8CJsfGkVSApcDlwA+BE0gXLytDFoD2mAbsRnrg0CzSmgJe5CmpCjcB5w2P84G7\\n\" +\n \"YuOoChaA9lqFtL72DsBWw2NLPGUgaXSLgL8ANw6Pa0gH/NsiQ6keFoDyzCCVgQ1IZWD68M9l/57G\\n\" +\n \"4PeL3YCZA35PKdIc4NcDfs+lwALSefqHRvx8iPQX/Y2kB/MsHnAuBfEhNOWZOzya5BQsACrL5cAh\\n\" +\n \"0SFUNtedlySpQBYASZIKZAGQJKlAFgBJkgpkAZAkqUAWAEmSCmQBkCSpQBYASZIKZAGQJKlAFgBJ\\n\" +\n \"kgpkAZAkqUAWAEmSCmQBkCSpQBYASZIKZAGQJKlAFgBJkgpkAZAkqUAWAEmSCmQBkCSpQBYASZIK\\n\" +\n \"ZAGQJKlAFgBJkgpkAZAkqUAWAEmSCmQBkCSpQBYASZIKZAGQJKlAFgBJkgpkAZAkqUAWAEmSCmQB\\n\" +\n \"kCSpQBYANcGC6ADSgLnPK5wFQE1wR3QAacDc5xXOAqAmmBsdQBow93mFswCoCeZEB5AGzH1e4SwA\\n\" +\n \"agL/GlJp3OcVzgKgJvDLUKVxn1e4oegAErAS8Eh0CGmApgHzo0OobM4AqAnmA3+LDiENyN/w4K8G\\n\" +\n \"sACoKU6NDiANiPu6GsECoKbwS1GlcF9XI3gNgJpiEnAXsHp0EKlGfwfWAR6PDiI5A6CmeBw4IzqE\\n\" +\n \"VLMz8OCvhrAAqElOiQ4g1cx9XI3hKQA1yXTgTtJtgVLbLCBN/z8cHUQCZwDULA8Dx0SHkGryX3jw\\n\" +\n \"V4M4A6CmWQW4CVg7OohUofuAzYD7o4NIyzgDoKZ5EDgyOoRUsaPx4K+GcQZATTQZ+COwRXQQqQK3\\n\" +\n \"AlsCj0UHkUZyBkBNtAj4UHQIqSIfx4O/GsgZADXZhcALokNIfbgK2BFYEh1EWp4FQE22HnAZsEF0\\n\" +\n \"EKkH9wI7AX+NDiI9FU8BqMnmAQfgk9OUn0XAQXjwV4NZANR0VwJvAJZGB5G68E7ggugQ0lgmRgeQ\\n\" +\n \"OnAdqQDMig4ideArwKeiQ0jjsQAoF78CtgKeER1EGsM5wKF40Z8yYAFQTk4hrRS4a3QQ6Sl8H3gN\\n\" +\n \"6fy/JKkGh5Huq17qcDRgLAY+gCRpIJ5PenJg9Je/o+zxALAfUoZcB0A5expwGrBddBAV6WZgNuki\\n\" +\n \"VSk7XgOgnD0AfAd4hLTgygqhaVSKBcDngdcDtwdnkaTirQF8EXiU+GlhRzvH48A3gZlIkhpnI9LV\\n\" +\n \"2EuIP2A42jN+BjwdqUW8BkBt9QzgdaRztNsGZ1GebiFdY3ICcElsFKl6FgCVYDNSEZgN7AZMio2j\\n\" +\n \"hloKXAGcSjrwXxMbR6qXBUClWZ10C+EGpHO5M0aMmcCacdE0AA8Ac4E5wz9H/vu3wz+lIvx/KvBH\\n\" +\n \"m18rWFEAAAAASUVORK5CYII=\\\", 0, 0, 0)\");\n }", "int insert(countrylanguage record);", "@Override\n\tpublic boolean insert(String sql) {\n\t\treturn false;\n\t}", "int insert(ActivityHongbaoPrize record);", "public void insert(){\r\n\t\tString query = \"INSERT INTO liveStock(name, eyeColor, sex, type, breed, \"\r\n\t\t\t\t+ \"height, weight, age, furColor, vetNumber) \"\r\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) \";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement prepareStatement = conn.prepareStatement(query);\r\n\t\t\t\r\n\t\t\tprepareStatement.setString(1, liveStock.getName());\r\n\t\t\tprepareStatement.setString(2, liveStock.getEyeColor());\r\n\t\t\tprepareStatement.setString(3, liveStock.getSex());\r\n\t\t\tprepareStatement.setString(4, liveStock.getAnimalType());\r\n\t\t\tprepareStatement.setString(5, liveStock.getAnimalBreed());\r\n\t\t\tprepareStatement.setString(6, liveStock.getHeight());\r\n\t\t\tprepareStatement.setString(7, liveStock.getWeight());\r\n\t\t\tprepareStatement.setInt(8, liveStock.getAge());\r\n\t\t\tprepareStatement.setString(9, liveStock.getFurColor());\r\n\t\t\tprepareStatement.setInt(10, liveStock.getVetNumber());\r\n\t\t\t\r\n\t\t\tprepareStatement.execute();\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "int insertSelective(Course record);", "int insert(Tourst record);", "public void insertMovesToDB(String gameType, Vector<Moves> allMovesForAGame) {\n int lastIndex = 0;\n try {\n\n DriverManager.registerDriver(new com.mysql.cj.jdbc.Driver());\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/xogames\", \"root\", \"Jrqr541&\");\n\n PreparedStatement pstmt = con.prepareStatement(\"INSERT INTO games(gameType) VALUE (?)\");\n pstmt.setString(1, gameType);\n int rowsAffected = pstmt.executeUpdate();\n pstmt.close();\n\n Statement stmt = con.createStatement();\n String queryString = new String(\"SELECT MAX(ID) FROM games\");\n ResultSet rs = stmt.executeQuery(queryString);\n\n while (rs.next()) {\n lastIndex = rs.getInt(1);\n }\n\n stmt.close();\n\n for (Moves move : allMovesForAGame) {\n\n PreparedStatement pstmt1 = con.prepareStatement(\"INSERT INTO steps(player,x,y,ID,step,finalState) VALUE (?,?,?,?,?,?)\");\n if (move.isPlayer()) {\n pstmt1.setInt(1, 1);\n } else {\n pstmt1.setInt(1, 0);\n }\n pstmt1.setInt(2, move.getX());\n pstmt1.setInt(3, move.getY());\n pstmt1.setInt(4, lastIndex);\n pstmt1.setInt(5, move.getStep());\n pstmt1.setInt(6, move.getFinalState());\n\n int rowsAffected1 = pstmt1.executeUpdate();\n pstmt1.close();\n\n }\n con.close();\n // System.out.println(\"elmafrood kda closed\");\n } catch (SQLException ex) {\n System.out.println(\"error in executing insert in toDB fn in SinglePlayerController 2 \" + ex);\n // ex.printStackTrace();\n }\n\n }", "public String getInsertContentSql(String table)\r\n \t{\r\n \t\treturn \"insert into \" + table + \" (RESOURCE_ID, BODY)\" + \" values (? , ? )\";\r\n \t}", "int insert(Videoinfo record);", "int insert(WordSchool record);", "int insertSelective(HuoDong record);", "int insertSelective(Assist_table record);", "void insert(OrderPreferential record) throws SQLException;", "@Test\n\tpublic void addBook_EmptyTitle(){\n\t\tBook b = new Book(\"abc\", \"\");\n\t\tassertTrue(db.putBook(b));\n\t}", "int insertSelective(Tourst record);", "public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}", "public void CreateProgram(int id, String name, String title, String description) throws SQLException {\n\t\ttry {\n\t\t\tString query = \"INSERT INTO program VALUES ('\" + id + \"', '\" + description + \"', '\" + name + \"', '\" + title + \"')\";\n\t\t\tstatement.execute(query); \n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (conex != null) {\n\t\t\t\tconex.close();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n String sql = \"CREATE TABLE \"+TABLE+\"( \"+ID+\n \" INTEGER PRIMARY KEY AUTOINCREMENT, \"+\n TITLE +\" VARCHAR(30) ,\"+\n CONTENT + \" TEXT )\";\n db.execSQL(sql);\n }", "void insert(Mi004 record);", "private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }", "String insert(BookDO record);", "public void insert(JournalEntry entry) {\n SQLiteDatabase db = instance.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(\"title\", entry.getTitle());\n values.put(\"mood\", entry.getMood());\n values.put(\"content\", entry.getContent());\n db.insert(\"entries\", null, values);\n }", "String insertSelective(BookDO record);", "@Override\n public void save(String[] params) throws SQLException {\n String query = \"INSERT INTO coach(user_name,team,pageID,training,job,name)\" + \"values(?,?,?,?,?,?);\";\n Connection conn = dBconnector.getConnection();\n if (conn != null) {\n PreparedStatement stmt = null;\n try {\n conn.setCatalog(\"manageteams\");\n stmt = conn.prepareStatement(query);\n stmt.setString(1, params[0]);\n stmt.setString(2, params[1]);\n stmt.setInt(3, Integer.valueOf(params[2]));\n stmt.setString(4, params[3]);\n stmt.setString(5, params[4]);\n stmt.setString(6, params[5]);\n stmt.execute();\n stmt.close();\n conn.close();\n logger.info(\"coach \" + params[0] + \"successfuly saved\");\n }\n catch (SQLException e)\n {\n logger.error(e.getMessage());\n throw new SQLException(DaoSql.getException(e.getMessage()));\n }\n }\n }", "int insertSelective(WordSchool record);", "int insert(CaseLinkman record);", "private static boolean transactionAddGame(Transaction tx, GameBean newGame) {\n HashMap<String, Object> parameters = new HashMap<>();\n parameters.put(\"name\", newGame.getName());\n if(!newGame.getCategory1().equals(\"\")) {\n parameters.put(\"category1\", newGame.getCategory1() );\n\n String checkGame = \"MATCH (g:Game{name:$name})\" +\n \" RETURN g\";\n\n Result result = tx.run(checkGame, parameters);\n\n if (result.hasNext()) {\n return false;\n }\n\n result = tx.run(\"CREATE (g:Game{name:$name, category1:$category1})\"\n , parameters);\n\n return true;\n }\n\n return false;\n }", "int insert(HuoDong record);", "@Insert({\n \"insert into t_apikey (id, key, \",\n \"name, api_id, des_key, \",\n \"parkIds)\",\n \"values (#{id,jdbcType=INTEGER}, #{key,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{apiId,jdbcType=VARCHAR}, #{desKey,jdbcType=VARCHAR}, \",\n \"#{parkids,jdbcType=VARCHAR})\"\n })\n int insert(TApikey record);", "public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "protected String createInsert(T t) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"INSERT INTO \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" VALUES \");\n\t\treturn sb.toString();\n\t}", "public static void insertAnswers(String username, int id, String answer) {\n\t\tString user = username;\n \ttry {\n \t\tint rs = Messages.connect().executeUpdate(\"INSERT INTO Answers (Q_id, B_Username, Answer)\" +\n \t \t\"VALUES ('\" + id + \"', '\" + user +\"', '\" + answer +\"')\");\n \t\tMessages.connect().close();\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t}", "@Override\n\tpublic Tutorial insert(Tutorial t) {\n\t\treturn cotizadorRepository.save(t);\n\n\t\t\n\t}", "int insertSelective(countrylanguage record);", "public void insertPokemon(Pokemon p) {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(p);\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}", "int insert(Prueba record);", "public void insertGame(String platform, float version, int mediaID)\n\t{\n\t\t\n\t\tPreparedStatement \tpstatement;\n\t\tint\t\t \t\t\tresult;\n\t\t\n\t\tpstatement = null;\n\t\t//resultSet = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection connection = ConnectionManager.getConnection();\n\t\t\t\t\n\t\t\tpstatement = connection.prepareStatement(\"INSERT INTO Games (platform, version, gameID) VALUES (?, ?, ?)\");\n\n\t\t\t// instantiate parameters\n\t\t\tpstatement.clearParameters();\n\t\t\tpstatement.setString(1, platform);\n\t\t\tpstatement.setFloat(2, version);\n\t\t\tpstatement.setInt(3, mediaID);\n\t\t\t\n\t\t\tresult = pstatement.executeUpdate();\n\t\t\t\t\n\t\t\t//System.out.println(\"3\");\n\t\t\t\n\t\t\tpstatement.close(); \n\t\t\tconnection.close(); \n\t\t\n\t\t}\n\t\t\n\t\tcatch(SQLException sqle)\n\t\t{\n\t\t\t\n\t\t\tSystem.out.println(\"SQLState = \" + sqle.getSQLState() + \"\\n\" + sqle.getMessage());\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void insertCourse(Course course) {\n\t\tthis.getHibernateTemplate().save(course);\n\n\t}", "int insert(TrainCourse record);", "int insert(Question27 record);", "public void agregaAntNoPato(String id_antNP, String religion_antNP, String lugarNaci_antNP, String estaCivil_antNP, \n String escolaridad_antNP, String higiene_antNP, String actividadFisica_antNP, int frecuencia_antNP, \n String sexualidad_antNP, int numParejas_antNP, String sangre_antNP, String alimentacion_antNP, String id_paciente,\n boolean escoCompInco_antNP, String frecVeces_antNP, Connection conex){\n String sqlst = \"INSERT INTO antnopato\\n \"+\n \"(`id_antNP`,\\n\" +\n \"`religion_antNP`,\\n\" +\n \"`lugarNaci_antNP`,\\n\" +\n \"`estaCivil_antNP`,\\n\" +\n \"`escolaridad_antNP`,\\n\" +\n \"`higiene_antNP`,\\n\" +\n \"`actividadFisica_antNP`,\\n\" +\n \"`frecuencia_antNP`,\\n\" +\n \"`sexualidad_antNP`,\\n\" +\n \"`numParejas_antNP`,\\n\" +\n \"`sangre_antNP`,\\n\" +\n \"`alimentacion_antNP`,\\n\" +\n \"`id_paciente`,\\n\"+\n \"`escoCompInco_antNP`,\\n\"+\n \"`frecVeces_antNP`)\\n\"+\n \"VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n try(PreparedStatement sttm = conex.prepareStatement(sqlst)) {\n conex.setAutoCommit(false);\n sttm.setString (1, id_antNP);\n sttm.setString (2, religion_antNP);\n sttm.setString (3, lugarNaci_antNP);\n sttm.setString (4, estaCivil_antNP);\n sttm.setString (5, escolaridad_antNP);\n sttm.setString (6, higiene_antNP);\n sttm.setString (7, actividadFisica_antNP);\n sttm.setInt (8, frecuencia_antNP);\n sttm.setString (9, sexualidad_antNP);\n sttm.setInt (10, numParejas_antNP);\n sttm.setString (11, sangre_antNP);\n sttm.setString (12, alimentacion_antNP);\n sttm.setString (13, id_paciente);\n sttm.setBoolean (14, escoCompInco_antNP);\n sttm.setString (15, frecVeces_antNP);\n sttm.addBatch();\n sttm.executeBatch();\n conex.commit();\n aux.informacionUs(\"Antecedentes personales no patológicos guardados\", \n \"Antecedentes personales no patológicos guardados\", \n \"Antecedentes personales no patológicos han sido guardados exitosamente en la base de datos\");\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public boolean addToTable(String id, String name , String cell)\n\n {\n SQLiteDatabase database = getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(COLUMN1,id);\n values.put(COLUMN2,name);\n values.put(COLUMN3,cell);\n\n long check = database.insert(TABLE_NAME,null,values);\n if (check ==-1)\n {\n return false;\n }\n else{\n\n return true;\n }\n }", "@Test\n void insertSuccess() {\n GenericDao gameDao = new GenericDao(Game.class);\n\n Game game = (Game)gameDao.getById(1);\n\n RunCategory newCategory = new RunCategory(\"Ending E\", \"endinge\", \"<p>Reach the final ending</p>\");\n game.addCategory(newCategory);\n\n int id = dao.insert(newCategory);\n assertNotEquals(0,id);\n RunCategory insertedCategory = (RunCategory) dao.getById(id);\n\n\n assertEquals(newCategory, insertedCategory);\n }", "@Insert({\n \"insert into `category` (`cate_id`, `cate_name`)\",\n \"values (#{cateId,jdbcType=INTEGER}, #{cateName,jdbcType=VARCHAR})\"\n })\n int insert(Category record);", "public void insertBig2AudioNode(Big2AudioSchemaBean value){\r\n\t\tdbDataAccess.initTransaction();\r\n\r\n\t\tdbDataAccess.insertBig2Audio(value, TextAnalytics.Text);\r\n\r\n\t\tdbDataAccess.commit();\r\n\t\tdbDataAccess.closeTransaction();\r\n\t}", "@Override\n\tpublic void create(String text1,String text2,String text3) {\n\t\tString query=\"INSERT INTO BOOK VALUES ( '\"+text1+\"','\"+text2+\"','\"+text3+\"', 'ready')\";\n\t\texecuteQuery(query);\n\t\tnotifyAllObservers();\n\t\t\n\t}", "public void insert(Groupe g) throws SQLException {\n\t\t\t//chercher combien y'a de lignes dans la table Groupe pour construire l'id \n\t\t\tString req =\"Select count(*) from Groupe\";\n\t\t\tPreparedStatement ps=DBConfig.getInstance().getConn().prepareStatement(req);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\trs.next();\n\t\t\t// incrementer l'id du groupe \n\t\t\tint id =rs.getInt(1) + 1;\t\n\t\t\t\n\t\t\t\n\t\t\tString req1 = \"INSERT INTO Groupe VALUES(?,?,?)\";\n\t\t\tPreparedStatement ps1 = DBConfig.getInstance().getConn().prepareStatement(req1);\n\t\t\tps1.setInt(1,id);\n\t\t\tps1.setString(2,g.getNomGroupe());\n\t\t\tps1.setString(3,g.getModerateurGroupe().getNomComptePers());\n\t\t\tps1.executeUpdate();\n\t\t}", "private void insertarBd(Chats chat) {\n\t\tString sql = \"INSERT INTO chats (chat,fecha,idUsuario) VALUES(?,?,?)\";\n\n\t\ttry (PreparedStatement ps = con.prepareStatement(sql)) {\n\t\t\tps.setString(1, chat.getTexto());\n\t\t\tps.setDate(2,chat.getFecha() );\n\t\t\tps.setLong(3, chat.getIdUsuario());\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public void insertData() throws SQLException {\n pst=con.prepareStatement(\"insert into employee values(?,?,?)\");\n System.out.println(\"Enter id: \");\n int id=sc.nextInt();\n pst.setInt(1,id);\n System.out.println(\"Enter Name: \");\n String name=sc.next();\n pst.setString(2,name);\n System.out.println(\"Enter city: \");\n String city=sc.next();\n pst.setString(3,city);\n pst.execute();\n System.out.println(\"Data inserted successfully\");\n }", "int insertSelective(Question27 record);", "int insertSelective(ActivityHongbaoPrize record);", "int insert(GirlInfo record);" ]
[ "0.59369165", "0.5934074", "0.582938", "0.5811831", "0.57831603", "0.57819617", "0.5725441", "0.56048054", "0.5595268", "0.55667025", "0.5550217", "0.5506935", "0.55054337", "0.54705286", "0.54674596", "0.54656607", "0.54628265", "0.54601985", "0.5421809", "0.5406569", "0.5406106", "0.54038435", "0.539775", "0.5393276", "0.5372809", "0.5372466", "0.5365899", "0.53593624", "0.5356385", "0.5339907", "0.53317773", "0.5325604", "0.5319826", "0.5317313", "0.5315205", "0.5309416", "0.529772", "0.529772", "0.52913725", "0.52788675", "0.52708846", "0.52659404", "0.5240682", "0.5223365", "0.5212175", "0.5202214", "0.52003944", "0.52001864", "0.52001697", "0.51989233", "0.51973706", "0.519571", "0.51854676", "0.5166605", "0.5163141", "0.5160061", "0.51568204", "0.51499957", "0.5149666", "0.5148016", "0.5147862", "0.51471585", "0.5136052", "0.5128195", "0.5121469", "0.5116599", "0.5113245", "0.51078516", "0.5106807", "0.50978065", "0.5097649", "0.5090305", "0.5089491", "0.5085465", "0.5071214", "0.50681585", "0.5067626", "0.50662714", "0.5060814", "0.5059682", "0.5058142", "0.5056887", "0.5053256", "0.50473505", "0.50454956", "0.5041088", "0.50409746", "0.5040542", "0.5038737", "0.5035624", "0.5033671", "0.5033329", "0.5032735", "0.5028889", "0.50203335", "0.5015646", "0.5015631", "0.5011411", "0.5008513", "0.50044525" ]
0.7048879
0
/ select , COUNT() from Chapter_registry inner join ParID on Chapter_registry.CHAP_ID = ParID.CHAP_ID where Chapter_registry.BOOK_ID = 1 AND ParID.PAR_ID = 2
public void getNextChap(Connection c, int chapid) { String query1 = "select *" + "from Chapter_registry " + "inner join ParID " + "on Chapter_registry.CHAP_ID = ParID.CHAP_ID " + "where Chapter_registry.BOOK_ID = 1 " + "AND ParID.PAR_ID = " + chapid; String query2 = "select COUNT(*) " + "from Chapter_registry " + "inner join ParID " + "on Chapter_registry.CHAP_ID = ParID.CHAP_ID " + "where Chapter_registry.BOOK_ID = 1 " + "AND ParID.PAR_ID = " + chapid; try (Statement stmt = c.createStatement()) { ResultSet rs1 = stmt.executeQuery(query1); while (rs1.next()) { String bod = rs1.getString("CHAP_NAME"); System.out.println(bod); } ResultSet rs2 = stmt.executeQuery(query2); while (rs2.next()) { String bod = rs2.getString("COUNT(*)"); System.out.println(bod); } } catch (SQLException e) { System.out.println(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int findtotalbooks() {\n\t\t\r\n\t\tString sql=\"select count(*) from books where tag=1\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tObject query = runner.query(sql, new ScalarHandler<Object>(1));\r\n\t\t\tLong long1=(Long)query;\r\n\t\t\treturn long1.intValue();\r\n\t\t} catch (SQLException 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 0;\r\n\t}", "public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}", "int getCountOfAllBooks();", "@Override\n\tpublic Long count(Map<String, Object> params) {\n\t\tString hql=\"select count(*) from \"+tablename+\" t\";\n\t\treturn SApplicationcategorydao.count(hql, params);\n\t}", "int countByExample(BnesBrowsingHisExample example) throws SQLException;", "public int DetailComentListCount(HashMap<String, Object> param) {\n\t\treturn sqlSession.selectOne(\"main.DetailComentListCount\",param);\r\n\t}", "@Override\n public Long countByIndicator(String species,String indicator,String colunm){\n String query = \"Select count(distinct \"+colunm+\") from ait.taxon_info_index where \"+\n \"scientific_name_id = \"+species+\" and indicator_id = \"+indicator;\n //Execute query\n return taxonInfoIndexDAO.countTaxonsByQuery(query.toString());\n }", "public int countWhere(String where) throws SQLException\n {\n String sql = \"select count(*) as MCOUNT from preference \" + where;\n Connection c = null;\n Statement pStatement = null;\n ResultSet rs = null;\n try \n {\n int iReturn = -1; \n c = getConnection();\n pStatement = c.createStatement();\n rs = pStatement.executeQuery(sql);\n if (rs.next())\n {\n iReturn = rs.getInt(\"MCOUNT\");\n }\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(pStatement, rs);\n freeConnection(c);\n }\n throw new SQLException(\"Error in countWhere\");\n }", "int getCountOfBookWithTitle(String title);", "long countByExample(NjProductTaticsRelationExample example);", "public int findTotalPapersWithVariants() throws DAOException;", "public int getBookCount() {\n \treturn set.size();\n }", "int countByExample(SrHotelRoomInfoExample example);", "int countByExample(Lbm83ChohyokanriPkeyExample example);", "@Override\n\tpublic int countPro() {\n\t\treturn productSubMapper.selectCountPro();\n\t}", "Long queryCount(ProductSearchParm productSearchParm);", "public int countWhere(String where) throws SQLException\n {\n String sql = \"select count(*) as MCOUNT from institution \" + where;\n Connection c = null;\n Statement pStatement = null;\n ResultSet rs = null;\n try \n {\n int iReturn = -1; \n c = getConnection();\n pStatement = c.createStatement();\n rs = pStatement.executeQuery(sql);\n if (rs.next())\n {\n iReturn = rs.getInt(\"MCOUNT\");\n }\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(pStatement, rs);\n freeConnection(c);\n }\n throw new SQLException(\"Error in countWhere\");\n }", "public int findTotalVariantsByPaperId( Integer paperId ) throws DAOException;", "int countByExample(ItoProductCriteria example);", "int countByExample(BasicinfoCriteria example);", "@Override\r\n\tpublic int story_detail_count(String member_cd) {\n\t\treturn sst.selectOne(namespace+\".story_detail_count\",member_cd);\r\n\t}", "public int getRecCnt (String where) {\n Vector result = db.select (\"count(*)\",TABLE, where);\n Vector row = (Vector) result.elementAt(0);\n return (new Integer((String) row.elementAt(0)).intValue());\n }", "public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }", "@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(18)\r\n int count();", "public int countBycourse_id(long course_id);", "long countByExample(WfCfgModuleCatalogExample example);", "public int count(String hql) throws Exception {\n\t\treturn 0;\r\n\t}", "public int count(String hql, Object[] param) {\n Query q = this.getCurrentSession().createQuery(hql);\n if (param != null && param.length > 0) {\n for (int i = 0; i < param.length; i++) {\n q.setParameter(i, param[i]);\n }\n }\n\n // return\n return StringUtil.toInteger(q.uniqueResult()) == null ? 0 : StringUtil.toInteger(q.uniqueResult());\n }", "int findAllCount() ;", "@Override\n public ResultSet getResultCountForAll(String onyen, String assignment, String type, String course, String section, String year, String season) throws SQLException {\n StringBuilder statement = new StringBuilder();\n int count = 0;\n statement.append(\"SELECT COUNT(*) \\\"Total\\\" FROM (\\n\");\n if (onyen != null && !onyen.isEmpty()) {\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE user_uid IN (SELECT uid FROM user WHERE onyen = ?))\");\n }\n if (assignment != null && !assignment.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE name = ?))\");\n }\n if (type != null && !type.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE assignment_type_id IN (SELECT id FROM assignment_type WHERE name = ?)))\");\n }\n if (course != null && !course.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE name = ?)))\");\n }\n if (section != null && !section.isEmpty()) {\n count++;\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE section = ?)))\");\n }\n if (year != null && !year.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE year = ?))))\");\n }\n if (season != null && !season.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE season = ?))))\");\n }\n if (count > 0) {\n statement.append(\"\\n GROUP BY id HAVING count(*) = \").append(count).append(\") AS results;\");\n } else {\n statement.setLength(0);\n statement.append(\"SELECT COUNT(*) \\\"Total\\\" FROM result;\");\n }\n //System.out.println(statement.toString());\n PreparedStatement pstmt = connection.prepareStatement(statement.toString());\n int i = 1;\n if (onyen != null && !onyen.isEmpty()) {\n pstmt.setString(i++, onyen);\n }\n if (assignment != null && !assignment.isEmpty()) {\n pstmt.setString(i++, assignment);\n }\n if (type != null && !type.isEmpty()) {\n pstmt.setString(i++, type);\n }\n if (course != null && !course.isEmpty()) {\n pstmt.setString(i++, course);\n }\n if (section != null && !section.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(section));\n }\n if (year != null && !year.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(year));\n }\n if (season != null && !season.isEmpty()) {\n pstmt.setString(i, season);\n }\n //System.out.println(pstmt.toString());\n return pstmt.executeQuery();\n }", "@Override\n public Long countByCriteria(String[] layerList, String[] taxonList, String[] indicList,String colum) {\n //Build the query string base on parameters\n StringBuilder query = new StringBuilder();\n query.append(\"Select count(distinct \"+colum+\") from ait.taxon_info_index where \");\n \n //If there is geografical criteria\n if(layerList.length>0 && !layerList[0].equals(\"\")){\n query.append(\"(\");\n for(int i = 0;i<layerList.length;i++){\n String[] aux = layerList[i].split(\"~\");\n String layer = aux[0];\n String polygon = aux[1];\n if(i==layerList.length-1){ //last element\n query.append(\"(layer_table = '\"+layer+\"' and polygom_id = \"+polygon+\")\");\n }\n else{\n query.append(\"(layer_table = '\"+layer+\"' and polygom_id = \"+polygon+\") or \");\n }\n }\n query.append(\")\");\n }\n \n //If there is taxonomy criteria\n if(taxonList.length>0 && !taxonList[0].equals(\"\")){\n if(layerList.length>0 && !layerList[0].equals(\"\")){\n query.append(\" and (\");\n }\n else{\n query.append(\"(\");\n }\n for(int i = 0;i<taxonList.length;i++){\n //Get the name and taxonomical level of the specified taxon\n TaxonIndex ti = taxonIndexDAO.getTaxonIndexByName(taxonList[i]);\n if(ti.getTaxon_id()!=null){\n //To search in the specified taxonomyField\n String levelColum;\n switch (ti.getTaxon_range().intValue()) {\n case 1:\n levelColum = TaxonomicalRange.KINGDOM.getFieldName();\n break;\n case 2:\n levelColum = TaxonomicalRange.PHYLUM.getFieldName();\n break;\n case 3:\n levelColum = TaxonomicalRange.CLASS.getFieldName();\n break;\n case 4:\n levelColum = TaxonomicalRange.ORDER.getFieldName();\n break;\n case 5:\n levelColum = TaxonomicalRange.FAMILY.getFieldName();\n break;\n case 6:\n levelColum = TaxonomicalRange.GENUS.getFieldName();\n break;\n case 7:\n levelColum = TaxonomicalRange.SPECIFICEPITHET.getFieldName();\n break;\n default:\n levelColum = TaxonomicalRange.SCIENTIFICNAME.getFieldName();\n break;\n }\n if(i==taxonList.length-1){ //last element\n query.append(\"(\"+levelColum+\" = \"+ti.getTaxon_id()+\")\");\n }\n else{\n query.append(\"(\"+levelColum+\" = \"+ti.getTaxon_id()+\") or \");\n }\n }\n else{ //If the taxon doesn't exist on data base\n String levelColum = TaxonomicalRange.KINGDOM.getFieldName();\n if(i==taxonList.length-1){ //last element\n query.append(\"(\"+levelColum+\" = \"+-1+\")\");\n }\n else{\n query.append(\"(\"+levelColum+\" = \"+-1+\") or \");\n }\n }\n }\n query.append(\")\");\n }\n \n //If there is indicators criteria\n if(indicList.length>0 && !indicList[0].equals(\"\")){\n if((taxonList.length>0 && !taxonList[0].equals(\"\"))||(layerList.length>0 && !layerList[0].equals(\"\"))){\n query.append(\" and (\");\n }\n else{\n query.append(\"(\");\n }\n for(int i = 0;i<indicList.length;i++){\n if(i==indicList.length-1){ //last element\n query.append(\"(indicator_id = \"+indicList[i]+\")\");\n }\n else{\n query.append(\"(indicator_id = \"+indicList[i]+\") or \");\n }\n }\n query.append(\")\");\n }\n \n //Execute query\n return taxonInfoIndexDAO.countTaxonsByQuery(query.toString());\n }", "int countAssociations();", "@Override\r\n\tpublic long count(HttpSession session,String name,String unit)\r\n\t{\n\t\tString sql = \"select count(id) \" + createSql(session, name, unit);\r\n\t\treturn Sel.getcount(sql);\r\n\t}", "public static int getCountLoanBook() {\r\n\r\n\t\tint count = 0;\r\n\t\ttry (Connection connection = Connect.getConnection()) {\r\n\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t.prepareCall(\"{CALL get_super_admin_loan_book_count()}\");\r\n\t\t\tResultSet resultSet = prepareCall.executeQuery();\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tcount = resultSet.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "long countByExample(IntegralBookExample example);", "int countByExample(CTipoComprobanteExample example) throws SQLException;", "public int countWhere(String where) throws SQLException\n {\n String sql = \"select count(*) as MCOUNT from sampletype \" + where;\n Connection c = null;\n Statement pStatement = null;\n ResultSet rs = null;\n try \n {\n int iReturn = -1; \n c = getConnection();\n pStatement = c.createStatement();\n rs = pStatement.executeQuery(sql);\n if (rs.next())\n {\n iReturn = rs.getInt(\"MCOUNT\");\n }\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(pStatement, rs);\n freeConnection(c);\n }\n throw new SQLException(\"Error in countWhere\");\n }", "int getAcksCount();", "int getAcksCount();", "int countByExample(CodeBuildProcedureExample example);", "int countByExample(TblMotherSonExample example);", "int countByExample(MenuInfoExample example);", "public void counter(Object filterValue ) throws SQLException, NamingException, IOException {\n\t try {\t\n\t \tContext initContext = new InitialContext(); \n\t \t\tDataSource ds = (DataSource) initContext.lookup(JNDI);\n\t\n\t \t\tcon = ds.getConnection();\n\t \t\t\n\t \t\t//Reconoce la base de datos de conección para ejecutar el query correspondiente a cada uno\n\t \t\tDatabaseMetaData databaseMetaData = con.getMetaData();\n\t \t\tproductName = databaseMetaData.getDatabaseProductName();//Identifica la base de datos de conección\n\t \t\t\n\t \t\tString[] veccodcia = pcodcia.split(\"\\\\ - \", -1);\n\t\n\t \t\tString query = null;\n\t \t\t\n\t \t\tswitch ( productName ) {\n\t case \"Oracle\":\n\t \tquery = \"SELECT count_autos01('\" + ((String) filterValue).toUpperCase() + \"','\" + veccodcia[0] + \"','\" + grupo + \"') from dual\";\n\t break;\n\t case \"PostgreSQL\":\n\t \tquery = \"SELECT count_autos01('\" + ((String) filterValue).toUpperCase() + \"','\" + veccodcia[0] + \"','\" + grupo + \"')\";\n\t break;\n\t \t\t}\n\n\t \t\t \n\t\n\t \n\t pstmt = con.prepareStatement(query);\n\t //System.out.println(query);\n\t\n\t r = pstmt.executeQuery();\n\t \n\t \n\t while (r.next()){\n\t \trows = r.getInt(1);\n\t }\n\t } catch (SQLException e){\n\t e.printStackTrace(); \n\t }\n\t //Cierra las conecciones\n\t pstmt.close();\n\t con.close();\n\t r.close();\n\t\n\t \t}", "int countByExample(HpItemParamItemExample example);", "int countByExample(organize_infoBeanExample example);", "long countNumberOfProductsInDatabase();", "long countByExample(Table2Example example);", "int countByExample(BasicInfoPrecursorProcessTypeExample example);", "public int count(String hql, List<Object> param) {\n Query q = this.getCurrentSession().createQuery(hql);\n if (param != null && param.size() > 0) {\n for (int i = 0; i < param.size(); i++) {\n q.setParameter(i, param.get(i));\n }\n }\n return StringUtil.toInteger(q.uniqueResult()) == null ? 0 : StringUtil.toInteger(q.uniqueResult());\n }", "public Integer getBranchesCount() throws SQLException {\n\t\treturn getCount(\"select count(*) as COUNT from tbl_library_branch;\", null);\n\t}", "@Override\n protected int count(TopCategorySearcher searcher) {\n return 0;\n }", "int countByExample(BookExample example);", "@Override\n\tpublic Long count() {\n\t\treturn SApplicationcategorydao.count(\"select count(*) from \"+tablename+\" t\");\n\t}", "long countByExample(BpmInstanciaHistoricaExample example);", "long countByExample(FactRoomLogExample example);", "int countByExample(PensionRoleMenuExample example);", "public int getSoupKitchenCount() {\n\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT COUNT(*) FROM cs6400_sp17_team073.Soup_kitchen\";\n\n Integer skcount = jdbc.queryForObject(sql,params,Integer.class);\n\n return skcount;\n }", "public int countByTodoDocumentLibrary(String todoDocumentLibrary);", "int countByExample(ReleaseSystemExample example);", "@Override\n\tpublic int getsongCount(String songGenre) {\n\t\t\n\t\t\n\t\tString query =\"select COUNT(songGenre) from genre where songGenre= ? groupby songGenre\";\n\t\tPreparedStatement ps;\n\t\tint i = 0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tps = DBConnection.getDBconnection().prepareStatement(query);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tGenre Genre = new Genre();\n\t\t\t\t\t\t\n\t\t\t\tcount= Genre.setsongCount(rs.getInt(\"genreName\"));\n\t\t\t\t\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn count;\n\t}", "int countByExample(CfgSearchRecommendExample example);", "@Override\n\tpublic int look_size(book p) {\n\t\treturn dao.look_size(p);\n\t}", "@Override\n\tpublic int selectCount(Object ob) {\n\t\t\n\t\tint res = session.selectOne(\"party.party_list_total_count\",ob);\n\t\t\n\t\treturn res;\n\t}", "long countByExample(TbJobProcessNodeRelationEntityExample example);", "int getDetailsCount();", "int getDetailsCount();", "@Override\r\n\tpublic int getBookCount(String kind) {\n\t\treturn 0;\r\n\t}", "public Integer getChapterCount() {\n return chapterCount;\n }", "int getInstrumentCount();", "Object countTAlgmntBussRulesByTBussRuleConfig(SearchFilter<TBussRuleConfig> searchFilter);", "int getListSnIdCount();", "private int totalCount(Piece side) {\n int sum = 0;\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < M; j++) {\n if (boardArr[i][j].abbrev().equals(sideAbbrev)) {\n sum++;\n }\n }\n }\n return sum;\n }", "long countByExample(cskaoyan_mall_order_goodsExample example);", "@Override\n public ResultSet getNoteCountForAll(String onyen, String assignment, String type, String course, String section, String year, String season) throws SQLException {\n StringBuilder statement = new StringBuilder();\n int count = 0;\n statement.append(\"SELECT COUNT(*) \\\"Total\\\" FROM (\\n\");\n statement.append(\"SELECT * FROM test_note WHERE grading_test_id IN (\");\n statement.append(\"SELECT id FROM grading_test WHERE grading_part_id IN (\");\n if (onyen != null && !onyen.isEmpty()) {\n count++;\n statement.append(\"SELECT id FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE user_uid IN (SELECT uid FROM user WHERE onyen = ?))\");\n }\n if (assignment != null && !assignment.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT id FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE name = ?))\");\n }\n if (type != null && !type.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT id FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE assignment_type_id IN (SELECT id FROM assignment_type WHERE name = ?)))\");\n }\n if (course != null && !course.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT id FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE name = ?)))\");\n }\n if (section != null && !section.isEmpty()) {\n count++;\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n statement.append(\"SELECT id FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE section = ?)))\");\n }\n if (year != null && !year.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT id FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE year = ?))))\");\n }\n if (season != null && !season.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT id FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE season = ?))))\");\n }\n if (count > 0) {\n statement.append(\"))\\n GROUP BY id HAVING count(*) = \").append(count).append(\") AS notes;\");\n } else {\n statement.setLength(0);\n statement.append(\"SELECT COUNT(*) \\\"Total\\\" FROM (SELECT * FROM test_note WHERE grading_test_id IN (SELECT id FROM result)) AS notes;\");\n }\n //System.out.println(statement.toString());\n PreparedStatement pstmt = connection.prepareStatement(statement.toString());\n int i = 1;\n if (onyen != null && !onyen.isEmpty()) {\n pstmt.setString(i++, onyen);\n }\n if (assignment != null && !assignment.isEmpty()) {\n pstmt.setString(i++, assignment);\n }\n if (type != null && !type.isEmpty()) {\n pstmt.setString(i++, type);\n }\n if (course != null && !course.isEmpty()) {\n pstmt.setString(i++, course);\n }\n if (section != null && !section.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(section));\n }\n if (year != null && !year.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(year));\n }\n if (season != null && !season.isEmpty()) {\n pstmt.setString(i, season);\n }\n //System.out.println(pstmt.toString());\n return pstmt.executeQuery();\n }", "int countByExample(PcQualificationInfoExample example);", "int countByExample(UTbInvCategoryExample example);", "int countByPreparedStatement(PreparedStatement ps) throws SQLException\n {\n ResultSet rs = null;\n try \n {\n int iReturn = -1;\n rs = ps.executeQuery();\n if (rs.next())\n iReturn = rs.getInt(\"MCOUNT\");\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(rs);\n }\n throw new SQLException(\"Error in countByPreparedStatement\");\n }", "int countByPreparedStatement(PreparedStatement ps) throws SQLException\n {\n ResultSet rs = null;\n try \n {\n int iReturn = -1;\n rs = ps.executeQuery();\n if (rs.next())\n iReturn = rs.getInt(\"MCOUNT\");\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(rs);\n }\n throw new SQLException(\"Error in countByPreparedStatement\");\n }", "int countByPreparedStatement(PreparedStatement ps) throws SQLException\n {\n ResultSet rs = null;\n try \n {\n int iReturn = -1;\n rs = ps.executeQuery();\n if (rs.next())\n iReturn = rs.getInt(\"MCOUNT\");\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(rs);\n }\n throw new SQLException(\"Error in countByPreparedStatement\");\n }", "public int countPosPrinter(PosPrinter posPrinter)throws DataAccessException{\n return posPrinterDao.count(posPrinter);\n }", "int countByExample(PmKeyDbObjExample example);", "int countByExample(ProcRecInvoiceExample example);", "public int countByequip_id(long equip_id);", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PAPER);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int countByExample(PageItemCfgExample example);", "int countByExample(TVmManufacturerExample example);", "long countByExample(SupplyNeedExample example);", "@Override\n\tpublic int countPapersByKeys(int uid, String key) {\n\t\treturn paperRepository.countPapersByKeys(uid,key);\n\t}", "int countByExample(ProcurementSourceExample example);", "long countByExample(Drug_OutWarehouseExample example);", "public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }", "public int queryVipCarAmount(VipCar car) {\n\t Criteria criteria = getSession().createCriteria(VipCar.class);\n\t criteria.add(Restrictions.eq(\"parkId\", car.getParkId()));\n\t return Integer.valueOf(criteria.setProjection(Projections.rowCount()).uniqueResult().toString());\n}", "int countByExample(AdminTabExample example);", "@Override\n\tpublic Integer findCount() {\n\t\tInteger total;\n\t\tString hql=\"from Commodity\";\n\t\tList<Commodity> commoditylist=(List<Commodity>) this.getHibernateTemplate().find(hql, null);\n\t\ttotal=commoditylist.size();\n\t\treturn total;\n\t}", "@Override\n public int getCount(Map<String, Object> params)\n {\n return advertisementMapper.getCount(params);\n }", "@Override\n\tpublic String countByCondition(Familynames con) throws Exception {\n\t\treturn null;\n\t}", "public int getAllCount(){\r\n\t\tString sql=\"select count(*) from board_notice\";\r\n\t\tint result=0;\r\n\t\tConnection conn=null;\r\n\t\tStatement stmt=null;\r\n\t\tResultSet rs=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tstmt=conn.createStatement();\r\n\t\t\trs=stmt.executeQuery(sql);\r\n\t\t\trs.next();\r\n\t\t\tresult=rs.getInt(1);\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, stmt, rs);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Integer getAllShelfCount(String filter, String username);", "int getOtherIdsCount();", "int countByExample(Assist_tableExample example);" ]
[ "0.5915333", "0.58309394", "0.58230126", "0.56426424", "0.56401914", "0.5623546", "0.5620292", "0.55978066", "0.5549267", "0.55252105", "0.551461", "0.5506405", "0.5490107", "0.5488561", "0.5465433", "0.5451058", "0.54497844", "0.54392695", "0.54341", "0.543135", "0.5417245", "0.5397758", "0.5391077", "0.5389384", "0.5374431", "0.5373137", "0.5363592", "0.53582746", "0.5355296", "0.5353095", "0.53479373", "0.53412974", "0.532917", "0.5317009", "0.5312926", "0.5290672", "0.5285002", "0.5272622", "0.5272622", "0.52719384", "0.5269033", "0.5268415", "0.5263725", "0.5262011", "0.5251527", "0.5251526", "0.5247449", "0.52464634", "0.524492", "0.5244253", "0.524359", "0.52427906", "0.5230364", "0.52290076", "0.5227626", "0.5225476", "0.52189755", "0.52142495", "0.52121776", "0.5211221", "0.52106696", "0.5207365", "0.52042216", "0.5194158", "0.5193544", "0.5193544", "0.51901597", "0.51882315", "0.5184178", "0.51796854", "0.5176785", "0.51685697", "0.516624", "0.5164217", "0.5161907", "0.51616055", "0.51606774", "0.51606774", "0.51606774", "0.5158341", "0.51539373", "0.51498145", "0.5148275", "0.51463276", "0.5143249", "0.51399755", "0.51385677", "0.5136701", "0.51340246", "0.5131129", "0.51295656", "0.51289684", "0.51280993", "0.5122805", "0.5122646", "0.5108203", "0.51079136", "0.5100033", "0.5099311", "0.50948495" ]
0.615164
0
If the consume permission for temporary queues is for an unnamed queue then it should be global for any temporary queue but not for any nontemporary queue
public void testTemporaryUnnamedQueueConsume() { ObjectProperties temporary = new ObjectProperties(); temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); ObjectProperties normal = new ObjectProperties(); normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary)); _ruleSet.grant(0, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary); assertEquals(1, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary)); // defer to global if exists, otherwise default answer - this is handled by the security manager assertEquals(Result.DEFER, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testTemporaryQueueFirstConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n\n // should not matter if the temporary permission is processed first or last\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n }", "public void testTemporaryQueueLastConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n\n // should not matter if the temporary permission is processed first or last\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n }", "public void testFirstTemporarySecondNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "public void testFirstNamedSecondTemporaryQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "public void testFirstTemporarySecondDurableThirdNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n ObjectProperties namedDurable = new ObjectProperties(_queueName);\n namedDurable.put(ObjectProperties.Property.DURABLE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedDurable);\n _ruleSet.grant(3, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(3, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n }", "@Test (timeout=5000)\n public void testQueue() throws IOException {\n File f = null;\n try {\n f = writeFile();\n\n QueueManager manager = new QueueManager(f.getCanonicalPath(), true);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n Queue root = manager.getRoot();\n assertThat(root.getChildren().size()).isEqualTo(2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertEquals(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString(),\n \"Users [user1, user2] and members of the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n assertThat(secondSubQueue.getProperties().getProperty(\"key\"))\n .isEqualTo(\"value\");\n assertThat(secondSubQueue.getProperties().getProperty(\"key1\"))\n .isEqualTo(\"value1\");\n // test status\n assertThat(firstSubQueue.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n\n // test user access\n\n UserGroupInformation mockUGI = mock(UserGroupInformation.class);\n when(mockUGI.getShortUserName()).thenReturn(\"user1\");\n String[] groups = { \"group1\" };\n when(mockUGI.getGroupNames()).thenReturn(groups);\n assertTrue(manager.hasAccess(\"first\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"second\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n when(mockUGI.getShortUserName()).thenReturn(\"user3\");\n assertTrue(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n\n QueueAclsInfo[] qai = manager.getQueueAcls(mockUGI);\n assertThat(qai.length).isEqualTo(1);\n // test refresh queue\n manager.refreshQueues(getConfiguration(), null);\n\n iterator = root.getChildren().iterator();\n Queue firstSubQueue1 = iterator.next();\n Queue secondSubQueue1 = iterator.next();\n // tets equal method\n assertThat(firstSubQueue).isEqualTo(firstSubQueue1);\n assertThat(firstSubQueue1.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue1.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n assertThat(firstSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n\n // test JobQueueInfo\n assertThat(firstSubQueue.getJobQueueInfo().getQueueName())\n .isEqualTo(\"first\");\n assertThat(firstSubQueue.getJobQueueInfo().getState().toString())\n .isEqualTo(\"running\");\n assertThat(firstSubQueue.getJobQueueInfo().getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getJobQueueInfo().getChildren().size())\n .isEqualTo(0);\n // test\n assertThat(manager.getSchedulerInfo(\"first\")).isEqualTo(\"queueInfo\");\n Set<String> queueJobQueueInfos = new HashSet<String>();\n for(JobQueueInfo jobInfo : manager.getJobQueueInfos()){\n \t queueJobQueueInfos.add(jobInfo.getQueueName());\n }\n Set<String> rootJobQueueInfos = new HashSet<String>();\n for(Queue queue : root.getChildren()){\n \t rootJobQueueInfos.add(queue.getJobQueueInfo().getQueueName());\n }\n assertEquals(queueJobQueueInfos, rootJobQueueInfos);\n // test getJobQueueInfoMapping\n assertThat(manager.getJobQueueInfoMapping().get(\"first\").getQueueName())\n .isEqualTo(\"first\");\n // test dumpConfiguration\n Writer writer = new StringWriter();\n\n Configuration conf = getConfiguration();\n conf.unset(DeprecatedQueueConfigurationParser.MAPRED_QUEUE_NAMES_KEY);\n QueueManager.dumpConfiguration(writer, f.getAbsolutePath(), conf);\n String result = writer.toString();\n assertTrue(result\n .indexOf(\"\\\"name\\\":\\\"first\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"user1,user2 group1,group2\\\",\\\"acl_administer_jobs\\\":\\\"user3,user4 group3,group4\\\",\\\"properties\\\":[],\\\"children\\\":[]\") > 0);\n\n writer = new StringWriter();\n QueueManager.dumpConfiguration(writer, conf);\n result = writer.toString();\n assertTrue(result.contains(\"{\\\"queues\\\":[{\\\"name\\\":\\\"default\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"*\\\",\\\"acl_administer_jobs\\\":\\\"*\\\",\\\"properties\\\":[],\\\"children\\\":[]},{\\\"name\\\":\\\"q1\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[],\\\"children\\\":[{\\\"name\\\":\\\"q1:q2\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"capacity\\\",\\\"value\\\":\\\"20\\\"}\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"user-limit\\\",\\\"value\\\":\\\"30\\\"}\"));\n assertTrue(result.contains(\"],\\\"children\\\":[]}]}]}\"));\n // test constructor QueueAclsInfo\n QueueAclsInfo qi = new QueueAclsInfo();\n assertNull(qi.getQueueName());\n\n } finally {\n if (f != null) {\n f.delete();\n }\n }\n }", "@Test (timeout=5000)\n public void test2Queue() throws IOException {\n Configuration conf = getConfiguration();\n\n QueueManager manager = new QueueManager(conf);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n\n Queue root = manager.getRoot();\n \n // test children queues\n assertTrue(root.getChildren().size() == 2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertThat(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString()).isEqualTo(\n \"Users [user1, user2] and members of \" +\n \"the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n\n assertThat(firstSubQueue.getState().getStateName()).isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName()).isEqualTo(\"stopped\");\n assertTrue(manager.isRunning(\"first\"));\n assertFalse(manager.isRunning(\"second\"));\n\n assertThat(firstSubQueue.getSchedulingInfo()).isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n // test leaf queue\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n }", "@Test\n public void testSchedulingPolicy() {\n String queueName = \"single\";\n\n FSQueueMetrics metrics = FSQueueMetrics.forQueue(ms, queueName, null, false,\n CONF);\n metrics.setSchedulingPolicy(\"drf\");\n checkSchedulingPolicy(queueName, \"drf\");\n\n // test resetting the scheduling policy\n metrics.setSchedulingPolicy(\"fair\");\n checkSchedulingPolicy(queueName, \"fair\");\n }", "@Override\n\t\t\tpublic IAMQPPublishAction replyTo(IAMQPQueue queue) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic IAMQPPublishAction replyTo(IAMQPQueue queue) {\n\t\t\t\treturn null;\n\t\t\t}", "public static synchronized permanentRequestQueue getPermRequestQueue() throws InvalidObjectException{\n if(myPermanentRequestQueue == null){\n if(appContext != null) {\n myPermanentRequestQueue = newPermRequestQueue(appContext);\n } else {\n throw new InvalidObjectException(new String(\"No context\"));\n }\n }\n return myPermanentRequestQueue; //no error checking included\n }", "@Override\n protected String getQueueName() {return _queueName;}", "@Bean(name = \"myqueue\")\n public Queue myQueue(AmqpAdmin admin) {\n String id = UUID.randomUUID().toString();\n id = env.getProperty(\"rabbitmq.queue.prefix\", \"\") + id;\n Map<String, Object> args = new HashMap<>();\n args.put(\"x-max-length\", 10);\n\n return new Queue(id, false, true, true, args);\n }", "public void declareQueue() {\n try {\n mChannel.queueDeclare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }", "public abstract boolean isConsumed();", "@Bean\n public Queue clientQueue(AmqpAdmin amqpAdmin) {\n Queue queue = new Queue(SERVICE_REGISTRY_CLIENT_QUEUE_NAME, true, false, true);\n amqpAdmin.declareQueue(queue);\n return queue;\n }", "String getBaseQueueName();", "Queue getQueue() throws NamingException;", "public LocalSubscription createQueueToListentoTopic(){\n\t\treturn new AMQPLocalSubscription(amqQueue, \n \t\tamqpSubscription, subscriptionID, targetQueue, false, isExclusive, true, MessagingEngine.getMyNodeQueueName(),amqQueue.getName(),\n amqQueue.getOwner().toString(), AMQPUtils.DIRECT_EXCHANGE_NAME, DirectExchange.TYPE.toString(), Short.parseShort(\"0\"),true);\n\t}", "void topQueue(int job, SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "public static synchronized permanentRequestQueue newPermRequestQueue(Context cont){\n myPermanentRequestQueue = new permanentRequestQueue(cont); //Instantiates new static member\n return myPermanentRequestQueue;\n }", "public String queueName();", "boolean hasQos();", "protected void beforeConsume() {\n // Do nothing\n }", "@Test\n public void shouldNotReadWholeStreamWithDefault() {\n final Queue<String> queue = new LinkedBlockingQueue<>();\n\n Executors.newCachedThreadPool().submit(() -> produceData(queue));\n\n final List<String> collected = queue.stream().collect(Collectors.toList());\n assertThat(collected, not(hasItems(\"0\", \"1\", \"2\", \"3\", \"4\")));\n }", "int queuesWithPendingMessages(List<QueueDto> queues, int maxNumQueues) throws IOException, MlmqException;", "public AliasInQueue() {\n\t\tsuper();\n\t}", "String nameOfListenQueue();", "private QuotaConsumer getQuotaConsumer(AppEngineTaskAttemptContext taskAttemptContext) {\n QuotaManager manager = new QuotaManager(MemcacheServiceFactory.getMemcacheService());\n QuotaConsumer consumer = new QuotaConsumer(\n manager, taskAttemptContext.getTaskAttemptID().toString(), DEFAULT_QUOTA_BATCH_SIZE);\n return consumer;\n }", "void onSqsRequestAttempt(String internalQueueName);", "@Override\n\t\t\tpublic Optional<IAMQPQueue> queue() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Optional<IAMQPQueue> queue() {\n\t\t\t\treturn null;\n\t\t\t}", "@Test\n public void testMaxQueue() throws Throwable {\n internalMaxQueue(\"core\");\n internalMaxQueue(\"openwire\");\n internalMaxQueue(\"amqp\");\n }", "String addReceiveQueue();", "@Ignore(\"Надо переделать!!\")\n @Test\n public void testFull() throws Exception {\n // SYSTEM.DEF.SVRCONN/TCP/vs338(1414)\n // SYSTEM.ADMIN.SVRCONN/TCP/vs338(1414)\n // UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\n\n MQQueueConnectionFactory cf = new MQQueueConnectionFactory();\n\n\n // Config\n cf.setHostName(\"vs338\");\n cf.setPort(1414);\n cf.setTransportType(WMQConstants.WMQ_CM_CLIENT);\n cf.setQueueManager(\"QM_MBROKER10_TEST\");\n cf.setChannel(\"SYSTEM.ADMIN.SVRCONN\");\n\n SingleActionJob job =\n SingleActionJobBuilder.create()\n .withClass(MovementCreateTask.class)\n\n// .withProps(\n// \"mq.type = queue\\n\" +\n// \"mq.host = vs338\\n\" +\n// \"mq.port = 1414\\n\" +\n// \"mq.queueManager = QM_MBROKER10_TEST\\n\" +\n// \"mq.channel = SYSTEM.DEF.SVRCONN\\n\" +\n// \"mq.batchSize = 1\\n\" + //todo\n// \"mq.topics = LIRQ!!!!:UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF:UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\"+\n// \";BALIRQ:UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF:UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\\n\"+\n// \"mq.user=er22228\\n\" +\n// \"mq.password=Vugluskr6\"\n//\n// )//;MIDAS_UPDATE:UCBRU.ADP.BARSGL.V4.ACDENO.MDSUPD.NOTIF\n\n .build();\n jobService.executeJob(job);\n \n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n\n }", "public void clusterQueueAdded(StorageQueue queue) throws AndesException {\n try {\n //It is not possible to check if queue is bound to\n // MQTT Exchange as binding sync is done later. Thus checking the name\n if(!queue.getName().contains(AndesUtils.MQTT_TOPIC_STORAGE_QUEUE_PREFIX)) {\n queue(queue.getName(), queue.getQueueOwner(), queue.isExclusive(), null);\n }\n } catch (Exception e) {\n log.error(\"could not add cluster queue\", e);\n throw new AndesException(\"could not add cluster queue : \" + queue.toString(), e);\n }\n\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(FREQUENT_INDEX);\n\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 11 * MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time essentially free. Bucket time has 2 min phase out plus original 8 minute\n // window time.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 5),\n false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS),\n 3 * HOUR_IN_MILLIS + 48 * MINUTE_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time only has one minute phase out. Bucket time has 2 minute phase out.\n assertEquals(9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "java.lang.String getQueueName();", "void onMessageProcessingAttempt(String internalQueueName);", "String queue(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_MaxExecution() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 8 * MINUTE_IN_MILLIS), 4 * HOUR_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time will phase out, so should use bucket limit.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Close to boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(5 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Far from boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS), 4 * HOUR_IN_MILLIS - 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "private String get_one_queue_name(\r\n\t\t\tString admin_queue_base, \r\n\t\t\tString create_time,\r\n\t\t\tString sub_task_number,\r\n\t\t\tString current_terminal,\r\n\t\t\tHashMap<String, HashMap<String, String>> design_data) {\n\t\tString priority = public_data.TASK_DEF_PRIORITY;\r\n\t\tif (!design_data.containsKey(\"CaseInfo\")) {\r\n\t\t\tpriority = public_data.TASK_PRI_LOCALLY;\r\n\t\t} else if (!design_data.get(\"CaseInfo\").containsKey(\"priority\")) {\r\n\t\t\tpriority = public_data.TASK_PRI_LOCALLY;\r\n\t\t} else {\r\n\t\t\tpriority = design_data.get(\"CaseInfo\").get(\"priority\");\r\n\t\t\tPattern p = Pattern.compile(\"^\\\\d$\");\r\n\t\t\tMatcher m = p.matcher(priority);\r\n\t\t\tif (!m.find()) {\r\n\t\t\t\tpriority = public_data.TASK_PRI_LOCALLY;\r\n\t\t\t\tLOCAL_TUBE_LOGGER.warn(admin_queue_base + \":has wrong CaseInfo->priority, default value\" + public_data.TASK_PRI_LOCALLY + \"used.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// task belong to this client: 0, assign task(0) > match task(1)\r\n\t\tString assignment = new String();\r\n\t\tString request_terminal = new String();\r\n\t\tString available_terminal = current_terminal.toLowerCase();\r\n\t\tif (!design_data.containsKey(\"Machine\")) {\r\n\t\t\tassignment = \"1\";\r\n\t\t} else if (!design_data.get(\"Machine\").containsKey(\"terminal\")) {\r\n\t\t\tassignment = \"1\";\r\n\t\t} else {\r\n\t\t\trequest_terminal = design_data.get(\"Machine\").get(\"terminal\").toLowerCase();\r\n\t\t\tif (request_terminal.contains(available_terminal)) {\r\n\t\t\t\tassignment = \"0\"; // assign task\r\n\t\t\t} else {\r\n\t\t\t\tassignment = \"1\"; // match task\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Max threads requirements\r\n\t\tString threads = new String(public_data.TASK_DEF_MAX_THREADS);\r\n\t\tif (!design_data.containsKey(\"Preference\")) {\r\n\t\t\tthreads = public_data.TASK_DEF_MAX_THREADS;\r\n\t\t} else if (!design_data.get(\"Preference\").containsKey(\"max_threads\")) {\r\n\t\t\tthreads = public_data.TASK_DEF_MAX_THREADS;\r\n\t\t} else {\r\n\t\t\tthreads = design_data.get(\"Preference\").get(\"max_threads\");\r\n\t\t\tPattern p = Pattern.compile(\"^\\\\d$\");\r\n\t\t\tMatcher m = p.matcher(threads);\r\n\t\t\tif (!m.find()) {\r\n\t\t\t\tthreads = public_data.TASK_DEF_MAX_THREADS;\r\n\t\t\t\tLOCAL_TUBE_LOGGER.warn(admin_queue_base + \":has wrong Preference->max_threads, default value \" + public_data.TASK_DEF_MAX_THREADS + \" used.\");\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t// host restart requirements--for local jobs always be 0\t\t\r\n\t\tString restart_boolean = new String(public_data.TASK_DEF_HOST_RESTART);\r\n\t\tif (!design_data.containsKey(\"Preference\")) {\r\n\t\t\trestart_boolean = public_data.TASK_DEF_HOST_RESTART;\r\n\t\t} else if (!design_data.get(\"Preference\").containsKey(\"host_restart\")) {\r\n\t\t\trestart_boolean = public_data.TASK_DEF_HOST_RESTART;\r\n\t\t} else {\r\n\t\t\tString request_value = new String(design_data.get(\"Preference\").get(\"host_restart\").trim());\r\n\t\t\tif (!data_check.str_choice_check(request_value, new String [] {\"false\", \"true\"} )){\r\n\t\t\t\tLOCAL_TUBE_LOGGER.warn(admin_queue_base + \":has wrong Preference->host_restart, default value \" + public_data.TASK_DEF_HOST_RESTART + \" used.\");\r\n\t\t\t} else {\r\n\t\t\t\trestart_boolean = request_value;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString restart = new String(\"0\");\r\n\t\tif (restart_boolean.equalsIgnoreCase(\"true\")) {\r\n\t\t\trestart = \"1\";\r\n\t\t} else {\r\n\t\t\trestart = \"0\";\r\n\t\t}\r\n\t\t// receive time\r\n\t\tString mark_time = time_info.get_time_hhmm();\r\n\t\tStringBuilder queue_name = new StringBuilder(\"\");\r\n\t\tqueue_name.append(priority);\r\n\t\tqueue_name.append(assignment);\r\n\t\tqueue_name.append(\"0\");//1, from remote; 0, from local\r\n\t\tqueue_name.append(\"@\");\r\n\t\tqueue_name.append(\"t\" + threads);\r\n\t\tqueue_name.append(\"r\" + restart);\r\n\t\tqueue_name.append(\"_\");\r\n\t\tqueue_name.append(\"run_\" + mark_time + \"_\" + sub_task_number + \"_\" + admin_queue_base + \"_\" + create_time);\r\n\t\treturn queue_name.toString();\r\n\t}", "private boolean checkForTaskQueue(HttpServletRequest request, HttpServletResponse response) {\n if (request.getHeader(\"X-AppEngine-QueueName\") == null) {\n log.log(Level.SEVERE, \"Received unexpected non-task queue request. Possible CSRF attack.\");\n try {\n response.sendError(\n HttpServletResponse.SC_FORBIDDEN, \"Received unexpected non-task queue request.\");\n } catch (IOException ioe) {\n throw new RuntimeException(\"Encountered error writing error\", ioe);\n }\n return false;\n }\n return true;\n }", "public abstract String getQueueDisplayName();", "int getQos();", "public void clusterQueueRemoved(StorageQueue queue) throws AndesException {\n try {\n log.info(\"Queue removal request received queue= \" + queue.getName());\n if(!queue.getName().contains(AndesUtils.MQTT_TOPIC_STORAGE_QUEUE_PREFIX)) {\n removeQueue(queue.getName());\n }\n } catch (Exception e) {\n log.error(\"could not remove cluster queue\", e);\n throw new AndesException(\"could not remove cluster queue : \" + queue.toString(), e);\n }\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedBufferSize() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "String getBaseQueueManagerName();", "public static void main(String[] args) {\n// System.out.println(testQueue.getQueueElement());\n// System.out.println(testQueue.getQueueElement());\n }", "void queueShrunk();", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_AllowedEqualsWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 20 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_EXEMPTED_MS,\n 10 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_EXEMPTED_MS, 10 * MINUTE_IN_MILLIS);\n // window size = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(EXEMPTED_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 30 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_SmallRollingQuota() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_SRQ\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(WORKING_INDEX);\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.EJ_LIMIT_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 23 * HOUR_IN_MILLIS, remainingTimeMs, 2), true);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime =\n now + HOUR_IN_MILLIS + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "public boolean isConsume() {\n return consume;\n }", "public interface MqConsumer {\n}", "@Test(timeout = 4000)\n public void test72() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n connectionFactories0.addQueueConnectionFactory(queueConnectionFactory0);\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n assertEquals(1, queueConnectionFactoryArray0.length);\n }", "public boolean canBeConsumed() {\n return canBeConsumed;\n }", "public InMemoryQueueService(){\n this.ringBufferQueue = new QueueMessage[10000];\n }", "boolean isPendingToRead();", "public boolean isSetQueues() {\n return this.queues != null;\n }", "@Test\n public void testIsWithinEJQuotaLocked_TempAllowlisting() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TempAllowlisting\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on the temp allowlist should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the temp allowlist grace period).\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "private void createQueue(RoutingContext routingContext) {\n LOGGER.debug(\"Info: createQueue method started;\");\n JsonObject requestJson = routingContext.getBodyAsJson();\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String instanceID = request.getHeader(HEADER_HOST);\n JsonObject authenticationInfo = new JsonObject();\n authenticationInfo.put(API_ENDPOINT, \"/management/queue\");\n requestJson.put(JSON_INSTANCEID, instanceID);\n if (request.headers().contains(HEADER_TOKEN)) {\n authenticationInfo.put(HEADER_TOKEN, request.getHeader(HEADER_TOKEN));\n authenticator.tokenInterospect(requestJson.copy(), authenticationInfo, authHandler -> {\n LOGGER.debug(\"Info: Authenticating response ;\".concat(authHandler.result().toString()));\n if (authHandler.succeeded()) {\n Future<Boolean> validNameResult =\n isValidName(requestJson.copy().getString(JSON_QUEUE_NAME));\n validNameResult.onComplete(validNameHandler -> {\n if (validNameHandler.succeeded()) {\n Future<JsonObject> brokerResult = managementApi.createQueue(requestJson, databroker);\n brokerResult.onComplete(brokerResultHandler -> {\n if (brokerResultHandler.succeeded()) {\n LOGGER.info(\"Success: Creating Queue\");\n handleSuccessResponse(response, ResponseType.Created.getCode(),\n brokerResultHandler.result().toString());\n } else if (brokerResultHandler.failed()) {\n LOGGER.error(\"Fail: Bad request\" + brokerResultHandler.cause().getMessage());\n processBackendResponse(response, brokerResultHandler.cause().getMessage());\n }\n });\n } else {\n LOGGER.error(\"Fail: Bad request\");\n handleResponse(response, ResponseType.BadRequestData, MSG_INVALID_EXCHANGE_NAME);\n }\n\n });\n } else if (authHandler.failed()) {\n LOGGER.error(\"Fail: Unauthorized;\" + authHandler.cause().getMessage());\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n });\n } else {\n LOGGER.error(\"Fail: Unauthorized\");\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n }", "protected abstract List<BlockingQueue<CallRunner>> getQueues();", "@Test\n public void testAutoCreateQueueAfterRemoval() throws Exception {\n startScheduler();\n\n createBasicQueueStructureAndValidate();\n\n // Under e, there's only one queue, so e1/e have same capacity\n CSQueue e1 = cs.getQueue(\"root.e-auto.e1-auto\");\n Assert.assertEquals(1 / 5f, e1.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, e1.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(240 * GB,\n e1.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal e1.\n cs.removeQueue(e1);\n CSQueue e = cs.getQueue(\"root.e-auto\");\n Assert.assertEquals(1 / 5f, e.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, e.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(240 * GB,\n e.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal e.\n cs.removeQueue(e);\n CSQueue d = cs.getQueue(\"root.d-auto\");\n Assert.assertEquals(1 / 4f, d.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, d.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(300 * GB,\n d.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal d.\n cs.removeQueue(d);\n CSQueue c = cs.getQueue(\"root.c-auto\");\n Assert.assertEquals(1 / 3f, c.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, c.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(400 * GB,\n c.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal c.\n cs.removeQueue(c);\n CSQueue b = cs.getQueue(\"root.b\");\n Assert.assertEquals(1 / 2f, b.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, b.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(600 * GB,\n b.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check can't remove static queue b.\n try {\n cs.removeQueue(b);\n Assert.fail(\"Can't remove static queue b!\");\n } catch (Exception ex) {\n Assert.assertTrue(ex\n instanceof SchedulerDynamicEditException);\n }\n // Check a.\n CSQueue a = cs.getQueue(\"root.a\");\n Assert.assertEquals(1 / 2f, a.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, a.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(600 * GB,\n b.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n }", "public boolean wasConsumed() {\n return(_consumed);\n }", "public boolean isSetQueue() {\n return this.queue != null;\n }", "@Deprecated\n Queue createQueue(SimpleString address,\n SimpleString name,\n SimpleString filterString,\n boolean temporary,\n boolean durable) throws Exception;", "QueueDto lookupClientQueue(String queueName) throws IOException, MlmqException;", "@Test\n public void testMaybeScheduleStartAlarmLocked_Frequent() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Frequent\", 1), null);\n }\n\n // Frequent window size is 8 hours.\n final int standbyBucket = FREQUENT_INDEX;\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n final long expectedAlarmTime = start + 8 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_BucketWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Close to RARE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - 30 * SECOND_IN_MILLIS),\n 30 * SECOND_IN_MILLIS, 5), false);\n // Far away from FREQUENT boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n // Overlap WORKING_SET boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 5), false);\n // Close to ACTIVE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(RARE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(30 * SECOND_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(5 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(7 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n // ACTIVE window = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(7 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "private void workOnQueue() {\n }", "public boolean isSetQueueName() {\n return this.queueName != null;\n }", "public boolean isSetQueueName() {\n return this.queueName != null;\n }", "void onMessageProcessingRejection(String internalQueueName);", "@Test\n public void testTracking_OutOfQuota_ForegroundAndBackground() {\n setDischarging();\n\n JobStatus jobBg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 1);\n JobStatus jobTop = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 2);\n trackJobs(jobBg, jobTop);\n setStandbyBucket(WORKING_INDEX, jobTop, jobBg); // 2 hour window\n // Now the package only has 20 seconds to run.\n final long remainingTimeMs = 20 * SECOND_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n JobSchedulerService.sElapsedRealtimeClock.millis() - HOUR_IN_MILLIS,\n 10 * MINUTE_IN_MILLIS - remainingTimeMs, 1), false);\n\n InOrder inOrder = inOrder(mJobSchedulerService);\n\n // UID starts out inactive.\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n // Start the job.\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg);\n }\n advanceElapsedClock(remainingTimeMs / 2);\n // New job starts after UID is in the foreground. Since the app is now in the foreground, it\n // should continue to have remainingTimeMs / 2 time remaining.\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobBg));\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobTop));\n }\n // Go to a background state.\n setProcessState(ActivityManager.PROCESS_STATE_TOP_SLEEPING);\n advanceElapsedClock(remainingTimeMs / 2 + 1);\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs / 2 + 2 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n // Top job should still be allowed to run.\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // New jobs to run.\n JobStatus jobBg2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 3);\n JobStatus jobTop2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 4);\n JobStatus jobFg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 5);\n setStandbyBucket(WORKING_INDEX, jobBg2, jobTop2, jobFg);\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n trackJobs(jobFg, jobTop);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // App still in foreground so everything should be in quota.\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE);\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 2));\n // App is now in background and out of quota. Fg should now change to out of quota since it\n // wasn't started. Top should remain in quota since it started when the app was in TOP.\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n trackJobs(jobBg2);\n assertFalse(jobBg2.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n }", "void onSqsRequestRejection(String internalQueueName);", "@Test\n public void testMaybeScheduleStartAlarmLocked_BucketChange() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n\n // Affects rare bucket\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3), false);\n // Affects frequent and rare buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 4 * HOUR_IN_MILLIS, 4 * MINUTE_IN_MILLIS, 3), false);\n // Affects working, frequent, and rare buckets\n final long outOfQuotaTime = now - HOUR_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(outOfQuotaTime, 7 * MINUTE_IN_MILLIS, 10), false);\n // Affects all buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 5 * MINUTE_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 3), false);\n\n InOrder inOrder = inOrder(mAlarmManager);\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_BucketChange\", 1);\n\n // Start in ACTIVE bucket.\n setStandbyBucket(ACTIVE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n\n // And down from there.\n final long expectedWorkingAlarmTime =\n outOfQuotaTime + (2 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(WORKING_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n final long expectedFrequentAlarmTime =\n outOfQuotaTime + (8 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(FREQUENT_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n final long expectedRareAlarmTime =\n outOfQuotaTime + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(RARE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, RARE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedRareAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // And back up again.\n setStandbyBucket(FREQUENT_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(WORKING_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(ACTIVE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(1))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n }", "@Test\n\tpublic void testModifyingQueues() throws IOException, InvalidHeaderException, InterruptedException, ExecutionException {\n\t\tfinal String[] names = { \"queue 1\", \"queue 2\", \"queue 3\", \"queue 4\", \"queue 5\", \"queue 6\" };\n\t\tfinal Status[] results = { Status.SUCCESS, Status.SUCCESS, Status.SUCCESS, Status.QUEUE_NOT_EMPTY, Status.QUEUE_EXISTS, \n\t\t\t\tStatus.QUEUE_NOT_EXISTS };\n\t\t\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < names.length; i ++) {\n\t\t\t\t\tboolean result = i > 2 ? false : true; \n\t\t\t\t\t\n\t\t\t\t\tif (i % 2 == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.CreateQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\n\t\t\t\t\t\t} \n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.DeleteQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\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}, Boolean.TRUE);\n\t\t\n\t\tQueueModificationRequest request;\n\t\t// Get the request\n\t\tfor (int i = 0; i <names.length; i++) {\n\t\t\trequest = (QueueModificationRequest) this.getMessage(channel);\n\t\t\tassertEquals(names[i], request.getQueueName());\n\t\t\tthis.sendMessage(new RequestResponse(results[i]), channel);\n\t\t}\n\t\t\n\t\t\n\t\tresult.get();\n\t}", "@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }", "Boolean isConsumeDelete();", "private String getInitQueueForQueue(Sysview sysview, String qmgr, String queue)\n throws IOException {\n TabularData details = sysview.execute(\"MQ {0}; MQALTER Queue {1}\", qmgr, queue)\n .getTabularData();\n return details.getFirstRowMatching(\"Field\", \"InitQ\").get(\"Value\");\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Never_EffectiveNotNever() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Never\", 1), null);\n }\n\n // The app is really in the NEVER bucket but is elevated somehow (eg via uidActive).\n setStandbyBucket(NEVER_INDEX);\n final int effectiveStandbyBucket = FREQUENT_INDEX;\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n final long expectedAlarmTime = start + 8 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "public void clearBroadcastQueueForUser(int userId) {\n synchronized (this.mService) {\n try {\n ActivityManagerService.boostPriorityForLockedSection();\n this.mService.clearBroadcastQueueForUserLocked(userId);\n } catch (Throwable th) {\n while (true) {\n ActivityManagerService.resetPriorityAfterLockedSection();\n throw th;\n }\n }\n }\n ActivityManagerService.resetPriorityAfterLockedSection();\n }", "public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object task, int level);\n\tpublic void clear();\n}", "private int getMaxReconsumeTimes() {\n if (this.defaultMQPushConsumer.getMaxReconsumeTimes() == -1) {\n return Integer.MAX_VALUE;\n } else {\n return this.defaultMQPushConsumer.getMaxReconsumeTimes();\n }\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_BucketChange() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_BucketChange\", 1), null);\n }\n\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_ACTIVE_MS, 30 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_WORKING_MS, 20 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 15 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_RARE_MS, 10 * MINUTE_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Affects active bucket\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3), true);\n // Affects active and working buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 4 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 3), true);\n // Affects active, working, and frequent buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 10), true);\n // Affects all buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 5 * MINUTE_IN_MILLIS, 10 * MINUTE_IN_MILLIS, 3), true);\n\n InOrder inOrder = inOrder(mAlarmManager);\n\n // Start in ACTIVE bucket.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n\n // And down from there.\n setStandbyBucket(WORKING_INDEX);\n final long expectedWorkingAlarmTime =\n (now - 4 * HOUR_IN_MILLIS) + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(FREQUENT_INDEX);\n final long expectedFrequentAlarmTime =\n (now - HOUR_IN_MILLIS) + (24 * HOUR_IN_MILLIS) + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(RARE_INDEX);\n final long expectedRareAlarmTime =\n (now - 5 * MINUTE_IN_MILLIS) + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, RARE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedRareAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // And back up again.\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(1))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n }", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "@Test()\n public void doTestWithNormalPermission() throws Exception {\n doTestChangeTopic(\"publisher\", \"123\");\n }", "@Override\n public Object getQoS ()\n {\n return getEncapsulatedQueue ().getQoS ();\n }", "@Test(expected = IllegalArgumentException.class)\n public void testQueueParsingFailWhenSumOfChildrenNonLabeledCapacityNot100Percent() throws IOException {\n nodeLabelManager.addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of(\"red\", \"blue\"));\n YarnConfiguration conf = new YarnConfiguration();\n CapacitySchedulerConfiguration csConf = new CapacitySchedulerConfiguration(conf);\n setupQueueConfiguration(csConf);\n csConf.setCapacity(((ROOT) + \".c.c2\"), 5);\n CapacityScheduler capacityScheduler = new CapacityScheduler();\n RMContextImpl rmContext = new RMContextImpl(null, null, null, null, null, null, new org.apache.hadoop.yarn.server.resourcemanager.security.RMContainerTokenSecretManager(csConf), new org.apache.hadoop.yarn.server.resourcemanager.security.NMTokenSecretManagerInRM(csConf), new ClientToAMTokenSecretManagerInRM(), null);\n rmContext.setNodeLabelManager(nodeLabelManager);\n capacityScheduler.setConf(csConf);\n capacityScheduler.setRMContext(rmContext);\n capacityScheduler.init(csConf);\n capacityScheduler.start();\n ServiceOperations.stopQuietly(capacityScheduler);\n }", "<V extends Object> Queue<V> getQueue(String queueName);", "public void testOffer() {\n SynchronousQueue q = new SynchronousQueue();\n assertFalse(q.offer(one));\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Active() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n // Active window size is 10 minutes.\n final int standbyBucket = ACTIVE_INDEX;\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_Active\", 1);\n setStandbyBucket(standbyBucket, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Test with timing sessions out of window but still under max execution limit.\n final long expectedAlarmTime =\n (now - 18 * HOUR_IN_MILLIS) + 24 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 18 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 7 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 2 * HOUR_IN_MILLIS, 55 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(5 * MINUTE_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n // Timer has only been going for 5 minutes in the past 10 minutes, which is under the\n // window size limit, but the total execution time for the past 24 hours is 6 hours, so\n // the job no longer has quota.\n assertEquals(0, mQuotaController.getRemainingExecutionTimeLocked(jobStatus));\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "default boolean isSharded() {\n return false;\n }", "protected static NotificationTypes notQueueCheck() {\n return !notQueue.isEmpty() ? notQueue.remove(0) : NotificationTypes.NIL;\n }", "public boolean isQueue() {\n return this == QUEUE;\n }", "@DISPID(112)\r\n\t// = 0x70. The runtime will prefer the VTID if present\r\n\t@VTID(107)\r\n\tjava.lang.String queue();", "public boolean isDurableConsumers() {\n return durableConsumers;\n }", "public boolean isAvailable(){\r\n return blockingQueue.size() < maxWorkQueueSize;\r\n }", "public void setDefaultRequeueRejected(boolean defaultRequeueRejected) {\n\t\tthis.defaultRequeueRejected = defaultRequeueRejected;\n\t}", "public interface QueueManager {\n List<Message> messages = null;\n\n int insertQueue(String queueId, Message message);\n\n List<Message> getQueue(String queueId, int num);\n}" ]
[ "0.74451226", "0.7345836", "0.6906532", "0.68925744", "0.6782635", "0.58747166", "0.5604084", "0.55077654", "0.544272", "0.544272", "0.5437247", "0.5397937", "0.5364389", "0.52671236", "0.5257808", "0.5256416", "0.52538735", "0.5240975", "0.5217825", "0.5187152", "0.51683366", "0.51676", "0.5152567", "0.5149394", "0.51493764", "0.5149195", "0.5131598", "0.51240796", "0.5109603", "0.510474", "0.5086821", "0.5086821", "0.5085406", "0.50685436", "0.5062812", "0.50460285", "0.5029322", "0.5026989", "0.50219256", "0.5003429", "0.50027066", "0.4994085", "0.49888703", "0.49868357", "0.49737555", "0.49637073", "0.49593493", "0.4957011", "0.49526206", "0.49439153", "0.4942818", "0.49419284", "0.49394763", "0.49332508", "0.49238122", "0.4907236", "0.4886316", "0.4878852", "0.48777997", "0.48534432", "0.4845357", "0.48423696", "0.48326093", "0.48285237", "0.48244408", "0.48203057", "0.48200658", "0.4817932", "0.47967705", "0.47939667", "0.47897977", "0.47897977", "0.47748122", "0.47744998", "0.4759915", "0.47545612", "0.47512877", "0.47381395", "0.47360492", "0.472957", "0.47268653", "0.47256908", "0.4721847", "0.47194234", "0.47157136", "0.47150558", "0.46994618", "0.4693651", "0.4688454", "0.46880051", "0.4685792", "0.468367", "0.46823856", "0.46818548", "0.46789896", "0.46734068", "0.46728384", "0.46724495", "0.46685302", "0.4666797" ]
0.79186046
0
Test that temporary queue permissions before queue perms in the ACL config work correctly
public void testTemporaryQueueFirstConsume() { ObjectProperties temporary = new ObjectProperties(_queueName); temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); ObjectProperties normal = new ObjectProperties(_queueName); normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary)); // should not matter if the temporary permission is processed first or last _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal); _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary); assertEquals(2, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal)); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testFirstNamedSecondTemporaryQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "public void testFirstTemporarySecondNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "public void testFirstTemporarySecondDurableThirdNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n ObjectProperties namedDurable = new ObjectProperties(_queueName);\n namedDurable.put(ObjectProperties.Property.DURABLE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedDurable);\n _ruleSet.grant(3, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(3, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n }", "@Test (timeout=5000)\n public void testQueue() throws IOException {\n File f = null;\n try {\n f = writeFile();\n\n QueueManager manager = new QueueManager(f.getCanonicalPath(), true);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n Queue root = manager.getRoot();\n assertThat(root.getChildren().size()).isEqualTo(2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertEquals(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString(),\n \"Users [user1, user2] and members of the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n assertThat(secondSubQueue.getProperties().getProperty(\"key\"))\n .isEqualTo(\"value\");\n assertThat(secondSubQueue.getProperties().getProperty(\"key1\"))\n .isEqualTo(\"value1\");\n // test status\n assertThat(firstSubQueue.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n\n // test user access\n\n UserGroupInformation mockUGI = mock(UserGroupInformation.class);\n when(mockUGI.getShortUserName()).thenReturn(\"user1\");\n String[] groups = { \"group1\" };\n when(mockUGI.getGroupNames()).thenReturn(groups);\n assertTrue(manager.hasAccess(\"first\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"second\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n when(mockUGI.getShortUserName()).thenReturn(\"user3\");\n assertTrue(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n\n QueueAclsInfo[] qai = manager.getQueueAcls(mockUGI);\n assertThat(qai.length).isEqualTo(1);\n // test refresh queue\n manager.refreshQueues(getConfiguration(), null);\n\n iterator = root.getChildren().iterator();\n Queue firstSubQueue1 = iterator.next();\n Queue secondSubQueue1 = iterator.next();\n // tets equal method\n assertThat(firstSubQueue).isEqualTo(firstSubQueue1);\n assertThat(firstSubQueue1.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue1.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n assertThat(firstSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n\n // test JobQueueInfo\n assertThat(firstSubQueue.getJobQueueInfo().getQueueName())\n .isEqualTo(\"first\");\n assertThat(firstSubQueue.getJobQueueInfo().getState().toString())\n .isEqualTo(\"running\");\n assertThat(firstSubQueue.getJobQueueInfo().getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getJobQueueInfo().getChildren().size())\n .isEqualTo(0);\n // test\n assertThat(manager.getSchedulerInfo(\"first\")).isEqualTo(\"queueInfo\");\n Set<String> queueJobQueueInfos = new HashSet<String>();\n for(JobQueueInfo jobInfo : manager.getJobQueueInfos()){\n \t queueJobQueueInfos.add(jobInfo.getQueueName());\n }\n Set<String> rootJobQueueInfos = new HashSet<String>();\n for(Queue queue : root.getChildren()){\n \t rootJobQueueInfos.add(queue.getJobQueueInfo().getQueueName());\n }\n assertEquals(queueJobQueueInfos, rootJobQueueInfos);\n // test getJobQueueInfoMapping\n assertThat(manager.getJobQueueInfoMapping().get(\"first\").getQueueName())\n .isEqualTo(\"first\");\n // test dumpConfiguration\n Writer writer = new StringWriter();\n\n Configuration conf = getConfiguration();\n conf.unset(DeprecatedQueueConfigurationParser.MAPRED_QUEUE_NAMES_KEY);\n QueueManager.dumpConfiguration(writer, f.getAbsolutePath(), conf);\n String result = writer.toString();\n assertTrue(result\n .indexOf(\"\\\"name\\\":\\\"first\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"user1,user2 group1,group2\\\",\\\"acl_administer_jobs\\\":\\\"user3,user4 group3,group4\\\",\\\"properties\\\":[],\\\"children\\\":[]\") > 0);\n\n writer = new StringWriter();\n QueueManager.dumpConfiguration(writer, conf);\n result = writer.toString();\n assertTrue(result.contains(\"{\\\"queues\\\":[{\\\"name\\\":\\\"default\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"*\\\",\\\"acl_administer_jobs\\\":\\\"*\\\",\\\"properties\\\":[],\\\"children\\\":[]},{\\\"name\\\":\\\"q1\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[],\\\"children\\\":[{\\\"name\\\":\\\"q1:q2\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"capacity\\\",\\\"value\\\":\\\"20\\\"}\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"user-limit\\\",\\\"value\\\":\\\"30\\\"}\"));\n assertTrue(result.contains(\"],\\\"children\\\":[]}]}]}\"));\n // test constructor QueueAclsInfo\n QueueAclsInfo qi = new QueueAclsInfo();\n assertNull(qi.getQueueName());\n\n } finally {\n if (f != null) {\n f.delete();\n }\n }\n }", "public void testTemporaryQueueLastConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n\n // should not matter if the temporary permission is processed first or last\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n }", "public void testTemporaryUnnamedQueueConsume()\n {\n ObjectProperties temporary = new ObjectProperties();\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties();\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n _ruleSet.grant(0, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n assertEquals(1, _ruleSet.getRuleCount());\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n \n // defer to global if exists, otherwise default answer - this is handled by the security manager\n assertEquals(Result.DEFER, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n }", "private void testAclConstraints009() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints009\");\n session = tbc.getDmtAdmin().getSession(TestExecPluginActivator.ROOT,\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n\n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n session.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n DefaultTestBundleControl.pass(\"ACLs is only verified by the Dmt Admin service when the session has an associated principal.\");\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }", "@Test\n public void testIsWithinEJQuotaLocked_TempAllowlisting() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TempAllowlisting\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on the temp allowlist should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the temp allowlist grace period).\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "@Test\n public void testSchedulingPolicy() {\n String queueName = \"single\";\n\n FSQueueMetrics metrics = FSQueueMetrics.forQueue(ms, queueName, null, false,\n CONF);\n metrics.setSchedulingPolicy(\"drf\");\n checkSchedulingPolicy(queueName, \"drf\");\n\n // test resetting the scheduling policy\n metrics.setSchedulingPolicy(\"fair\");\n checkSchedulingPolicy(queueName, \"fair\");\n }", "private void testAclConstraints002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Get=*&Replace=*\";\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"This test asserts that if the root node ACL is not explicitly set, it should be set to Add=*&Get=*&Replace=*.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "@Test (timeout=5000)\n public void test2Queue() throws IOException {\n Configuration conf = getConfiguration();\n\n QueueManager manager = new QueueManager(conf);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n\n Queue root = manager.getRoot();\n \n // test children queues\n assertTrue(root.getChildren().size() == 2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertThat(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString()).isEqualTo(\n \"Users [user1, user2] and members of \" +\n \"the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n\n assertThat(firstSubQueue.getState().getStateName()).isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName()).isEqualTo(\"stopped\");\n assertTrue(manager.isRunning(\"first\"));\n assertFalse(manager.isRunning(\"second\"));\n\n assertThat(firstSubQueue.getSchedulingInfo()).isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n // test leaf queue\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n }", "private void testAclConstraints003() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints003\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(\".\",null);\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that the root node of DMT must always have an ACL associated with it\",\n\t\t\t DmtException.COMMAND_NOT_ALLOWED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(DmtException.class, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "private void testAclConstraints011() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints011\");\n \n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.GET | Acl.ADD );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.ROOT, DmtConstants.PRINCIPAL, Acl.ADD );\n\n Acl aclExpected = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.ADD | Acl.DELETE | Acl.REPLACE });\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class\n\t\t\t\t\t.getName(), DmtConstants.PRINCIPAL, \"*\"));\n\t\t\t\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL, \".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n\n session.close();\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n TestCase.assertTrue(\"Asserts that if the calling principal does not have Replace rights for the parent, \" +\n \t\t\"the destiny node must be set with an Acl having Add, Delete and Replace permissions.\",\n \t\taclExpected.equals(session.getNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "private void testAclConstraints007() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints007\");\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL_2, Acl.GET );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\t\t\ttbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n\t\t\tsession = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.ROOT,DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\t\n\t\t\tDefaultTestBundleControl.pass(\"If a principal has Replace access to a node, the principal is permitted to change the ACL of all its child nodes\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n\t\t\ttbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "@Test\n public void testTopicAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureTopicPermissions(testUser, category, data);\n\n // test access control\n assertTrue(accessControlService.canViewTopics(category), \"Test user should be able to view topic in category!\");\n assertTrue(accessControlService.canAddTopic(category), \"Test user should be able to create topics in category!\");\n assertFalse(accessControlService.canEditTopic(topic), \"Test user should not be able to edit topics in category!\");\n assertFalse(accessControlService.canRemoveTopic(topic), \"Test user should not be able to remove topics in category!\");\n }", "@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }", "@Test\n public void testPostOverrideAccess2() {\n // create discussion which will be limited for user\n Discussion limitedDiscussion = new Discussion(-11L, \"Limited discussion\");\n limitedDiscussion.setTopic(topic);\n Post p = new Post(\"Post in limited discussion\");\n p.setDiscussion(limitedDiscussion);\n\n // set permissions\n // has full access to every post in category except the ones in the limited discussion\n // note that limitedDiscussion permission is added as the second one so that sorting in PermissionService.checkPermissions is tested also\n PermissionData categoryPostPerms = new PermissionData(true, true, true, true);\n PermissionData discussionPostPerms = new PermissionData(true, false, false, true);\n pms.configurePostPermissions(testUser, limitedDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertTrue(accessControlService.canEditPost(post), \"Test user should be able to edit posts in discussion!\");\n assertTrue(accessControlService.canRemovePost(post), \"Test user should be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(limitedDiscussion), \"Test user should be able to view posts in limited discussion!\");\n assertTrue(accessControlService.canAddPost(limitedDiscussion), \"Test user should be able to add posts in limited discussion!\");\n assertFalse(accessControlService.canEditPost(p), \"Test user should not be able to edit post in limited discussion!\");\n assertFalse(accessControlService.canRemovePost(p), \"Test user should not be able to remove post from limited discussion!\");\n }", "private void testAclConstraints004() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints004\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Exec=*&Replace=*\";\n\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(expectedRootAcl));\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"Asserts that the root's ACL can be changed.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testCheckPermissions_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "private void testAclConstraints005() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints005\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n\t\t\tsession.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n\t\t\tTestCase.assertNull(\"This test asserts that the Dmt Admin service synchronizes the ACLs with any change \"\n\t\t\t\t\t\t\t+ \"in the DMT that is made through its service interface\",\n\t\t\t\t\t\t\tsession.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "@Test()\n public void doTestWithNormalPermission() throws Exception {\n doTestChangeTopic(\"publisher\", \"123\");\n }", "private void testAclConstraints008() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints008\");\n //We need to set that a parent of the node does not have Replace else the acl of the root \".\" is gotten\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.DELETE );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.LEAF_NODE,DmtSession.LOCK_TYPE_EXCLUSIVE);\n session.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that Replace access on a leaf node does not allow changing the ACL property itself.\",\n\t\t\t DmtException.PERMISSION_DENIED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n tbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "private void testAclConstraints010() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints010\");\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n \n session = tbc.getDmtAdmin().getSession(\".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n Acl aclParent = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.REPLACE });\n session.setNodeAcl(TestExecPluginActivator.ROOT,\n aclParent);\n \n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new Acl(new String[] { DmtConstants.PRINCIPAL },\n new int[] { Acl.EXEC }));\n TestExecPlugin.setAllUriIsExistent(false);\n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n TestCase.assertTrue(\"Asserts that the copied nodes inherit the access rights from the parent of the destination node.\",\n aclParent.equals(session.getEffectiveNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "@Test\n public void testUserAndFlowGroupQuotaMultipleUsersAdd() throws Exception {\n Dag<JobExecutionPlan> dag1 = DagManagerTest.buildDag(\"1\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag2 = DagManagerTest.buildDag(\"2\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag3 = DagManagerTest.buildDag(\"3\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group3\")));\n Dag<JobExecutionPlan> dag4 = DagManagerTest.buildDag(\"4\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n // Ensure that the current attempt is 1, normally done by DagManager\n dag1.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag2.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag3.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag4.getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dag1.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag2.getNodes().get(0)));\n\n // Should fail due to user quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n });\n // Should fail due to flowgroup quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n });\n // should pass due to quota being released\n this._quotaManager.releaseQuota(dag2.getNodes().get(0));\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n }", "@Test()\n public void doTestWithSuperPermission() throws Exception {\n doTestChangeTopic(\"admin\", \"123\");\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_SmallRollingQuota() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_SRQ\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(WORKING_INDEX);\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.EJ_LIMIT_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 23 * HOUR_IN_MILLIS, remainingTimeMs, 2), true);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime =\n now + HOUR_IN_MILLIS + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs =\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, remainingTimeMs, 2), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 2 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - HOUR_IN_MILLIS + 2 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Before\n public void setUp() throws Exception {\n csConf = new CapacitySchedulerConfiguration();\n csConf.setClass(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class,\n ResourceScheduler.class);\n\n // By default, set 3 queues, a/b, and a.a1\n csConf.setQueues(\"root\", new String[]{\"a\", \"b\"});\n csConf.setNonLabeledQueueWeight(\"root\", 1f);\n csConf.setNonLabeledQueueWeight(\"root.a\", 1f);\n csConf.setNonLabeledQueueWeight(\"root.b\", 1f);\n csConf.setQueues(\"root.a\", new String[]{\"a1\"});\n csConf.setNonLabeledQueueWeight(\"root.a.a1\", 1f);\n csConf.setAutoQueueCreationV2Enabled(\"root\", true);\n csConf.setAutoQueueCreationV2Enabled(\"root.a\", true);\n csConf.setAutoQueueCreationV2Enabled(\"root.e\", true);\n csConf.setAutoQueueCreationV2Enabled(PARENT_QUEUE, true);\n // Test for auto deletion when expired\n csConf.setAutoExpiredDeletionTime(1);\n }", "@Test(timeout = 4000)\n public void test72() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n connectionFactories0.addQueueConnectionFactory(queueConnectionFactory0);\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n assertEquals(1, queueConnectionFactoryArray0.length);\n }", "private void testAclConstraints006() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints006\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tString expectedRootAcl = \"Add=*\";\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(expectedRootAcl));\n\n\t\t\tsession.renameNode(TestExecPluginActivator.INTERIOR_NODE,TestExecPluginActivator.RENAMED_NODE_NAME);\n\t\t\tTestExecPlugin.setAllUriIsExistent(true);\n\t\t\tTestCase.assertNull(\"Asserts that the method rename deletes the ACL of the source.\",session.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t\t\n\t\t\tTestCase.assertEquals(\"Asserts that the method rename moves the ACL from the source to the destiny.\",\n\t\t\t\t\texpectedRootAcl,session.getNodeAcl(TestExecPluginActivator.RENAMED_NODE).toString());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.RENAMED_NODE);\n\t\t\tTestExecPlugin.setAllUriIsExistent(false);\n\t\t}\n\t}", "@Test\r\n public void testGraphPerms1()\r\n throws Exception {\r\n\r\n GraphManager gmgr = databaseClient.newGraphManager();\r\n createUserRolesWithPrevilages(\"test-role\");\r\n GraphPermissions gr = testAdminCon.getDefaultGraphPerms();\r\n \r\n // ISSUE # 175 uncomment after issue is fixed\r\n Assert.assertEquals(0L, gr.size());\r\n \r\n testAdminCon.setDefaultGraphPerms(gmgr.permission(\"test-role\", Capability.READ, Capability.UPDATE));\r\n String defGraphQuery = \"CREATE GRAPH <http://marklogic.com/test/graph/permstest> \";\r\n MarkLogicUpdateQuery updateQuery = testAdminCon.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery);\r\n updateQuery.execute();\r\n \r\n String defGraphQuery1 = \"INSERT DATA { GRAPH <http://marklogic.com/test/graph/permstest> { <http://marklogic.com/test1> <pp2> \\\"test\\\" } }\";\r\n String checkQuery = \"ASK WHERE { GRAPH <http://marklogic.com/test/graph/permstest> {<http://marklogic.com/test> <pp2> \\\"test\\\" }}\";\r\n MarkLogicUpdateQuery updateQuery1 = testAdminCon.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery1);\r\n updateQuery1.execute();\r\n \r\n BooleanQuery booleanQuery = testAdminCon.prepareBooleanQuery(QueryLanguage.SPARQL, checkQuery);\r\n boolean results = booleanQuery.evaluate();\r\n Assert.assertEquals(false, results);\r\n \r\n gr = testAdminCon.getDefaultGraphPerms();\r\n Assert.assertEquals(1L, gr.size());\r\n Iterator<Entry<String, Set<Capability>>> resultPerm = gr.entrySet().iterator();\r\n while(resultPerm.hasNext()){\r\n \t Entry<String, Set<Capability>> perms = resultPerm.next();\r\n \t Assert.assertTrue(\"test-role\" == perms.getKey());\r\n \t Iterator<Capability> capability = perms.getValue().iterator();\r\n \t while (capability.hasNext())\r\n \t\t assertThat(capability.next().toString(), anyOf(equalTo(\"UPDATE\"), is(equalTo(\"READ\"))));\r\n }\r\n \r\n String defGraphQuery2 = \"CREATE GRAPH <http://marklogic.com/test/graph/permstest1> \";\r\n testAdminCon.setDefaultGraphPerms(null);\r\n updateQuery = testAdminCon.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery2);\r\n updateQuery.execute();\r\n gr = testAdminCon.getDefaultGraphPerms();\r\n Assert.assertEquals(0L, gr.size());\r\n \r\n \r\n createUserRolesWithPrevilages(\"multitest-role\");\r\n testAdminCon.setDefaultGraphPerms(gmgr.permission(\"multitest-role\", Capability.READ).permission(\"test-role\", Capability.UPDATE));\r\n defGraphQuery = \"CREATE GRAPH <http://marklogic.com/test/graph/permstest2> \";\r\n updateQuery = testAdminCon.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery);\r\n updateQuery.execute();\r\n gr = testAdminCon.getDefaultGraphPerms();\r\n Assert.assertEquals(2L, gr.size());\r\n testAdminCon.setDefaultGraphPerms(null);\r\n testAdminCon.setDefaultGraphPerms(null);\r\n // ISSUE 180\r\n //testAdminCon.setDefaultGraphPerms((GraphPermissions)null);\r\n gr = testAdminCon.getDefaultGraphPerms();\r\n Assert.assertEquals(0L, gr.size());\r\n \r\n \r\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_BucketChange() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_BucketChange\", 1), null);\n }\n\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_ACTIVE_MS, 30 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_WORKING_MS, 20 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 15 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_RARE_MS, 10 * MINUTE_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Affects active bucket\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3), true);\n // Affects active and working buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 4 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 3), true);\n // Affects active, working, and frequent buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 10), true);\n // Affects all buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 5 * MINUTE_IN_MILLIS, 10 * MINUTE_IN_MILLIS, 3), true);\n\n InOrder inOrder = inOrder(mAlarmManager);\n\n // Start in ACTIVE bucket.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n\n // And down from there.\n setStandbyBucket(WORKING_INDEX);\n final long expectedWorkingAlarmTime =\n (now - 4 * HOUR_IN_MILLIS) + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(FREQUENT_INDEX);\n final long expectedFrequentAlarmTime =\n (now - HOUR_IN_MILLIS) + (24 * HOUR_IN_MILLIS) + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(RARE_INDEX);\n final long expectedRareAlarmTime =\n (now - 5 * MINUTE_IN_MILLIS) + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, RARE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedRareAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // And back up again.\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(1))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_BucketChange() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n\n // Affects rare bucket\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3), false);\n // Affects frequent and rare buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 4 * HOUR_IN_MILLIS, 4 * MINUTE_IN_MILLIS, 3), false);\n // Affects working, frequent, and rare buckets\n final long outOfQuotaTime = now - HOUR_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(outOfQuotaTime, 7 * MINUTE_IN_MILLIS, 10), false);\n // Affects all buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 5 * MINUTE_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 3), false);\n\n InOrder inOrder = inOrder(mAlarmManager);\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_BucketChange\", 1);\n\n // Start in ACTIVE bucket.\n setStandbyBucket(ACTIVE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n\n // And down from there.\n final long expectedWorkingAlarmTime =\n outOfQuotaTime + (2 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(WORKING_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n final long expectedFrequentAlarmTime =\n outOfQuotaTime + (8 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(FREQUENT_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n final long expectedRareAlarmTime =\n outOfQuotaTime + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(RARE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, RARE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedRareAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // And back up again.\n setStandbyBucket(FREQUENT_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(WORKING_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(ACTIVE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(1))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n }", "@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "@Test\n public void testExceedsQuotaOnStartup() throws Exception {\n List<Dag<JobExecutionPlan>> dags = DagManagerTest.buildDagList(2, \"user\", ConfigFactory.empty());\n // Ensure that the current attempt is 1, normally done by DagManager\n dags.get(0).getNodes().get(0).getValue().setCurrentAttempts(1);\n dags.get(1).getNodes().get(0).getValue().setCurrentAttempts(1);\n\n // Should not be throwing the exception\n this._quotaManager.init(dags);\n }", "@Test\n\tpublic void queueListTest() throws IllegalArgumentException, IllegalAccessException {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime &&\n\t\t\t\tConfiguration.progressbar &&\n\t\t\t\tConfiguration.saveandloadplaylist &&\n\t\t\t\tConfiguration.playlist && \n\t\t\t\tConfiguration.removetrack &&\n\t\t\t\tConfiguration.clearplaylist &&\n\t\t\t\tConfiguration.queuetrack\n\t\t\t\t) {\n\n\t\t\tstart();\n\n\t\t\tFile file = new File(\"p1.m3u\");\n\t\t\tdemo.menuItemWithPath(\"Datei\", \"Playlist laden\").click();\n\t\t\tdemo.fileChooser().setCurrentDirectory(new File(\"media/\"));\n\t\t\tdemo.fileChooser().selectFile(file);\n\t\t\tdemo.fileChooser().approveButton().click();\n\t\t\tdemo.list(\"p_list\").clickItem(1);\n\t\t\tdemo.button(\"right\").click();\n\t\t\t\n\t\t\tgui.skiptrack();\n\t\t\tdemo.list(\"p_list\").clickItem(0);\n\t\t\tdemo.list(\"p_list\").clickItem(0);\n\t\t\tdemo.button(\"right\").click();\n\t\t\tgui.skiptrack();\n\n\t\t\tdemo.list(\"queueLis\").clickItem(1);\n\t\t\tdemo.button(\"left\").click();\n\t\t\tgui.skiptrack();\n\n\t\t\tdemo.list(\"queueLis\").clickItem(0);\n\t\t\tdemo.button(\"left\").click();\n\t\t\tgui.skiptrack();\n\n\t\t}\n\t}", "private void testAclConstraints001() {\n\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints001\");\n\t\t\t\n new org.osgi.service.dmt.Acl(\"Add=test&Exec=test &Get=*\");\n\t\t\t\n DefaultTestBundleControl.failException(\"\",IllegalArgumentException.class);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tDefaultTestBundleControl.pass(\"White space between tokens of a Acl is not allowed.\");\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(IllegalArgumentException.class, e);\n\t\t}\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedAllowedTime() {\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\n\tpublic void testCheckPermissions_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testTimerTracking_TempAllowlisting() {\n // None of these should be affected purely by the temp allowlist changing.\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n JobStatus job1 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 1);\n JobStatus job2 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 2);\n JobStatus job3 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 3);\n JobStatus job4 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 4);\n JobStatus job5 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 5);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job1, null);\n }\n assertNull(mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(job1);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job1, job1, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n // Job starts after app is added to temp allowlist and stops before removal.\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job2, null);\n mQuotaController.prepareForExecutionLocked(job2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job2, null, false);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts after app is added to temp allowlist and stops after removal,\n // before grace period ends.\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job3, null);\n mQuotaController.prepareForExecutionLocked(job3);\n }\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n long elapsedGracePeriodMs = 2 * SECOND_IN_MILLIS;\n advanceElapsedClock(elapsedGracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job3, null, false);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS + elapsedGracePeriodMs, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n elapsedGracePeriodMs += SECOND_IN_MILLIS;\n\n // Job starts during grace period and ends after grace period ends\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job4, null);\n mQuotaController.prepareForExecutionLocked(job4);\n }\n final long remainingGracePeriod = gracePeriodMs - elapsedGracePeriodMs;\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n advanceElapsedClock(remainingGracePeriod);\n // Wait for handler to update Timer\n // Can't directly evaluate the message because for some reason, the captured message returns\n // the wrong 'what' even though the correct message goes to the handler and the correct\n // path executes.\n verify(handler, timeout(gracePeriodMs + 5 * SECOND_IN_MILLIS)).handleMessage(any());\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n expected.add(createTimingSession(start, remainingGracePeriod + 10 * SECOND_IN_MILLIS, 1));\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job4, job4, true);\n }\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts and runs completely after temp allowlist grace period.\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job5, null);\n mQuotaController.prepareForExecutionLocked(job5);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job5, job5, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "@Test\n\tpublic void testCheckPermissions_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testIsWithinEJQuotaLocked_TopApp() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TopApp\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TOP_APP_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on top should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the top grace period).\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "@Test\n public void testPostOverrideAccess() {\n // create user's discussion\n Discussion usersDiscussion = new Discussion(-11L, \"Users own discussion\");\n usersDiscussion.setTopic(topic);\n Post p = new Post(\"Post in user's discussion\");\n p.setDiscussion(usersDiscussion);\n\n // set permissions\n // can create and view posts in category\n PermissionData categoryPostPerms = new PermissionData(true, false, false, true);\n // has complete control over posts in his discussion\n PermissionData discussionPostPerms = new PermissionData(true, true, true, true);\n pms.configurePostPermissions(testUser, usersDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertFalse(accessControlService.canEditPost(post), \"Test user should not be able to edit posts in discussion!\");\n assertFalse(accessControlService.canRemovePost(post), \"Test user should not be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(usersDiscussion), \"Test user should be able to view posts in his discussion!\");\n assertTrue(accessControlService.canAddPost(usersDiscussion), \"Test user should be able to add posts in his discussion!\");\n assertTrue(accessControlService.canEditPost(p), \"Test user should be able to edit post in his discussion!\");\n assertTrue(accessControlService.canRemovePost(p), \"Test user should be able to remove post from his discussion!\");\n }", "@Test\n public void testWithExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n AuthorizationResponse response = authzClient.authorization(\"marta\", \"password\", \"foo\")\n .authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource A with client scope bar.\n request = new PermissionRequest(\"Resource A\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource B with client scope bar.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n }", "@Test\n\tpublic void testCheckPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Before\n public void setUp() {\n permissionsS.add(EntityUtil.getSamplePermission());\n }", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.MAX_EXECUTION_TIME_MS - contributionMs;\n\n // Session straddles edge of 24 hour window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 20 * HOUR_IN_MILLIS, remainingTimeMs, 300), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - 20 * HOUR_IN_MILLIS\n + 24 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testCheckExistsPermission() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE\");\n assertFalse(permissionManager.checkExists(permission2));\n }", "@Test\n\t// Delivery 2 Use Case 1. Grant/Deny Access to commands based on profile's role\n\tpublic void test() {\n\n\t\tUsers user1 = new Users(\"Test1\", \"PARENT\");\n\t\tUsers user2 = new Users(\"Test2\", \"STRANGER\");\n\t\tUsers user3 = new Users(\"Test3\", \"CHILDREN\");\n\t\tUsers user4 = new Users(\"Test4\", \"GUEST\");\n\n\t\t// Checking if users have permissions\n\t\tassertEquals(\"PARENT\", user1.getPermission());\n\t\tassertEquals(\"STRANGER\", user2.getPermission());\n\t\tassertEquals(\"CHILDREN\", user3.getPermission());\n\t\tassertEquals(\"GUEST\", user4.getPermission());\n\n\t}", "@Test\n\tpublic void testCheckPermission_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tfixture.checkPermission(permission);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_MaxExecution() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 8 * MINUTE_IN_MILLIS), 4 * HOUR_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time will phase out, so should use bucket limit.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Close to boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(5 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Far from boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS), 4 * HOUR_IN_MILLIS - 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testQueueLimiting() throws Exception {\n // Block the underlying fake proxy from actually completing any calls.\n DelayAnswer delayer = new DelayAnswer(LOG);\n Mockito.doAnswer(delayer).when(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n \n // Queue up the maximum number of calls.\n int numToQueue = LIMIT_QUEUE_SIZE_BYTES / FAKE_DATA.length;\n for (int i = 1; i <= numToQueue; i++) {\n ch.sendEdits(1L, (long)i, 1, FAKE_DATA);\n }\n \n // The accounting should show the correct total number queued.\n assertEquals(LIMIT_QUEUE_SIZE_BYTES, ch.getQueuedEditsSize());\n \n // Trying to queue any more should fail.\n try {\n ch.sendEdits(1L, numToQueue + 1, 1, FAKE_DATA).get(1, TimeUnit.SECONDS);\n fail(\"Did not fail to queue more calls after queue was full\");\n } catch (ExecutionException ee) {\n if (!(ee.getCause() instanceof LoggerTooFarBehindException)) {\n throw ee;\n }\n }\n \n delayer.proceed();\n\n // After we allow it to proceeed, it should chug through the original queue\n GenericTestUtils.waitFor(new Supplier<Boolean>() {\n @Override\n public Boolean get() {\n return ch.getQueuedEditsSize() == 0;\n }\n }, 10, 1000);\n }", "@Test\n public void testManageRollbacksPermission() throws Exception {\n // We shouldn't be allowed to call any of the RollbackManager APIs\n // without the MANAGE_ROLLBACKS permission.\n RollbackManager rm = RollbackTestUtils.getRollbackManager();\n\n try {\n rm.getAvailableRollbacks();\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n\n try {\n rm.getRecentlyCommittedRollbacks();\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n\n try {\n // TODO: What if the implementation checks arguments for non-null\n // first? Then this test isn't valid.\n rm.commitRollback(0, Collections.emptyList(), null);\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n\n try {\n rm.reloadPersistedData();\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n\n try {\n rm.expireRollbackForPackage(TEST_APP_A);\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n }", "@Test\n public void testNoResidualPermissionsOnUninstall_part2() throws Exception {\n assertAllPermissionsRevoked();\n }", "@Test\n public void testMultipleRemoveQuotasIdempotent() throws Exception {\n List<Dag<JobExecutionPlan>> dags = DagManagerTest.buildDagList(2, \"user3\", ConfigFactory.empty());\n\n // Ensure that the current attempt is 1, normally done by DagManager\n dags.get(0).getNodes().get(0).getValue().setCurrentAttempts(1);\n dags.get(1).getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dags.get(0).getNodes().get(0)));\n Assert.assertTrue(this._quotaManager.releaseQuota(dags.get(0).getNodes().get(0)));\n Assert.assertFalse(this._quotaManager.releaseQuota(dags.get(0).getNodes().get(0)));\n }", "@Test\n\tpublic void testModifyingQueues() throws IOException, InvalidHeaderException, InterruptedException, ExecutionException {\n\t\tfinal String[] names = { \"queue 1\", \"queue 2\", \"queue 3\", \"queue 4\", \"queue 5\", \"queue 6\" };\n\t\tfinal Status[] results = { Status.SUCCESS, Status.SUCCESS, Status.SUCCESS, Status.QUEUE_NOT_EMPTY, Status.QUEUE_EXISTS, \n\t\t\t\tStatus.QUEUE_NOT_EXISTS };\n\t\t\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < names.length; i ++) {\n\t\t\t\t\tboolean result = i > 2 ? false : true; \n\t\t\t\t\t\n\t\t\t\t\tif (i % 2 == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.CreateQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\n\t\t\t\t\t\t} \n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.DeleteQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\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}, Boolean.TRUE);\n\t\t\n\t\tQueueModificationRequest request;\n\t\t// Get the request\n\t\tfor (int i = 0; i <names.length; i++) {\n\t\t\trequest = (QueueModificationRequest) this.getMessage(channel);\n\t\t\tassertEquals(names[i], request.getQueueName());\n\t\t\tthis.sendMessage(new RequestResponse(results[i]), channel);\n\t\t}\n\t\t\n\t\t\n\t\tresult.get();\n\t}", "@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1115,\"org.apache.commons.collections4.queue.AbstractQueueDecoratorEvoSuiteTest.test0\");\n PriorityQueue<Integer> priorityQueue0 = new PriorityQueue<Integer>();\n Queue<Integer> queue0 = UnmodifiableQueue.unmodifiableQueue((Queue<Integer>) priorityQueue0);\n boolean boolean0 = priorityQueue0.addAll((Collection<? extends Integer>) queue0);\n assertEquals(false, boolean0);\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedEverything() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "@Test\n public void testSetPolicy2() throws Exception {\n setupPermission(PathUtils.ROOT_PATH, getTestUser().getPrincipal(), true, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n setupPermission(null, getTestUser().getPrincipal(), true, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n\n setupPermission(getTestRoot(), null, EveryonePrincipal.getInstance(), false, JCR_NAMESPACE_MANAGEMENT);\n }", "@Test\n public void testPostAccessControl() {\n // item posted by user himself\n Post usersPost = new Post(\"Post created by test user.\");\n usersPost.setDiscussion(discussion);\n usersPost.setUserId(testUser.getDiscussionUserId());\n\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configurePostPermissions(testUser, discussion, data);\n\n // test access control\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertFalse(accessControlService.canEditPost(post), \"Test user should not be able to edit posts in discussion!\");\n assertFalse(accessControlService.canRemovePost(post), \"Test user should not be able to delete posts from discussion!\");\n\n // check permissions for user's own post\n assertTrue(accessControlService.canEditPost(usersPost), \"Test user should be able to edit his post!\");\n assertTrue(accessControlService.canRemovePost(usersPost), \"Test user should be able to remove his post!\");\n }", "@Test\n void checkManagerWithPermissionGetAlert(){\n LinkedList<PermissionEnum.Permission> list=new LinkedList<>();\n list.add(PermissionEnum.Permission.RequestBidding);\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,NofetID);\n tradingSystem.EditManagerPermissions(EuserId,EconnID,storeID,NofetID,list);\n Response Alert=new Response(\"Alert\");\n store.sendAlertOfBiddingToManager(Alert);\n //??\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedBufferSize() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\n public void testEJTimerTracking_TempAllowlisting() {\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n JobStatus job1 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 1);\n JobStatus job2 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 2);\n JobStatus job3 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 3);\n JobStatus job4 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 4);\n JobStatus job5 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 5);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job1, null);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(job1);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job1, job1, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n // Job starts after app is added to temp allowlist and stops before removal.\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job2, null);\n mQuotaController.prepareForExecutionLocked(job2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job2, null, false);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts after app is added to temp allowlist and stops after removal,\n // before grace period ends.\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job3, null);\n mQuotaController.prepareForExecutionLocked(job3);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n long elapsedGracePeriodMs = 2 * SECOND_IN_MILLIS;\n advanceElapsedClock(elapsedGracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job3, null, false);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n elapsedGracePeriodMs += SECOND_IN_MILLIS;\n\n // Job starts during grace period and ends after grace period ends\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job4, null);\n mQuotaController.prepareForExecutionLocked(job4);\n }\n final long remainingGracePeriod = gracePeriodMs - elapsedGracePeriodMs;\n start = JobSchedulerService.sElapsedRealtimeClock.millis() + remainingGracePeriod;\n advanceElapsedClock(remainingGracePeriod);\n // Wait for handler to update Timer\n // Can't directly evaluate the message because for some reason, the captured message returns\n // the wrong 'what' even though the correct message goes to the handler and the correct\n // path executes.\n verify(handler, timeout(gracePeriodMs + 5 * SECOND_IN_MILLIS)).handleMessage(any());\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job4, job4, true);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts and runs completely after temp allowlist grace period.\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job5, null);\n mQuotaController.prepareForExecutionLocked(job5);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job5, job5, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "@Test(timeout = 60000)\n public void testAuditLogForAcls() throws Exception {\n final Configuration conf = new HdfsConfiguration();\n conf.setBoolean(DFSConfigKeys.DFS_NAMENODE_ACLS_ENABLED_KEY, true);\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.DummyAuditLogger.class.getName());\n final MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n Assert.assertTrue(TestAuditLogger.DummyAuditLogger.initialized);\n final FileSystem fs = cluster.getFileSystem();\n final Path p = new Path(\"/debug.log\");\n DFSTestUtil.createFile(fs, p, 1024, ((short) (1)), 0L);\n TestAuditLogger.DummyAuditLogger.resetLogCount();\n fs.getAclStatus(p);\n Assert.assertEquals(1, TestAuditLogger.DummyAuditLogger.logCount);\n // FS shell command '-getfacl' additionally calls getFileInfo() and then\n // followed by getAclStatus() only if the ACL bit is set. Since the\n // initial permission didn't have the ACL bit set, getAclStatus() is\n // skipped.\n DFSTestUtil.FsShellRun((\"-getfacl \" + (p.toUri().getPath())), 0, null, conf);\n Assert.assertEquals(2, TestAuditLogger.DummyAuditLogger.logCount);\n final List<AclEntry> acls = Lists.newArrayList();\n acls.add(AclTestHelpers.aclEntry(AclEntryScope.ACCESS, AclEntryType.USER, FsAction.ALL));\n acls.add(AclTestHelpers.aclEntry(AclEntryScope.ACCESS, AclEntryType.USER, \"user1\", FsAction.ALL));\n acls.add(AclTestHelpers.aclEntry(AclEntryScope.ACCESS, AclEntryType.GROUP, FsAction.READ_EXECUTE));\n acls.add(AclTestHelpers.aclEntry(AclEntryScope.ACCESS, AclEntryType.OTHER, FsAction.EXECUTE));\n fs.setAcl(p, acls);\n Assert.assertEquals(3, TestAuditLogger.DummyAuditLogger.logCount);\n // Since the file has ACL bit set, FS shell command '-getfacl' should now\n // call getAclStatus() additionally after getFileInfo().\n DFSTestUtil.FsShellRun((\"-getfacl \" + (p.toUri().getPath())), 0, null, conf);\n Assert.assertEquals(5, TestAuditLogger.DummyAuditLogger.logCount);\n fs.removeAcl(p);\n Assert.assertEquals(6, TestAuditLogger.DummyAuditLogger.logCount);\n List<AclEntry> aclsToRemove = Lists.newArrayList();\n aclsToRemove.add(AclTestHelpers.aclEntry(AclEntryScope.DEFAULT, AclEntryType.USER, \"user1\", FsAction.ALL));\n fs.removeAclEntries(p, aclsToRemove);\n fs.removeDefaultAcl(p);\n Assert.assertEquals(8, TestAuditLogger.DummyAuditLogger.logCount);\n // User ACL has been removed, FS shell command '-getfacl' should now\n // skip call to getAclStatus() after getFileInfo().\n DFSTestUtil.FsShellRun((\"-getfacl \" + (p.toUri().getPath())), 0, null, conf);\n Assert.assertEquals(9, TestAuditLogger.DummyAuditLogger.logCount);\n Assert.assertEquals(0, TestAuditLogger.DummyAuditLogger.unsuccessfulCount);\n } finally {\n cluster.shutdown();\n }\n }", "private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test\n\tpublic void testIsPermittedAll_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n public void testTracking_OutOfQuota_ForegroundAndBackground() {\n setDischarging();\n\n JobStatus jobBg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 1);\n JobStatus jobTop = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 2);\n trackJobs(jobBg, jobTop);\n setStandbyBucket(WORKING_INDEX, jobTop, jobBg); // 2 hour window\n // Now the package only has 20 seconds to run.\n final long remainingTimeMs = 20 * SECOND_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n JobSchedulerService.sElapsedRealtimeClock.millis() - HOUR_IN_MILLIS,\n 10 * MINUTE_IN_MILLIS - remainingTimeMs, 1), false);\n\n InOrder inOrder = inOrder(mJobSchedulerService);\n\n // UID starts out inactive.\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n // Start the job.\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg);\n }\n advanceElapsedClock(remainingTimeMs / 2);\n // New job starts after UID is in the foreground. Since the app is now in the foreground, it\n // should continue to have remainingTimeMs / 2 time remaining.\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobBg));\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobTop));\n }\n // Go to a background state.\n setProcessState(ActivityManager.PROCESS_STATE_TOP_SLEEPING);\n advanceElapsedClock(remainingTimeMs / 2 + 1);\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs / 2 + 2 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n // Top job should still be allowed to run.\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // New jobs to run.\n JobStatus jobBg2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 3);\n JobStatus jobTop2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 4);\n JobStatus jobFg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 5);\n setStandbyBucket(WORKING_INDEX, jobBg2, jobTop2, jobFg);\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n trackJobs(jobFg, jobTop);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // App still in foreground so everything should be in quota.\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE);\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 2));\n // App is now in background and out of quota. Fg should now change to out of quota since it\n // wasn't started. Top should remain in quota since it started when the app was in TOP.\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n trackJobs(jobBg2);\n assertFalse(jobBg2.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n }", "@Test\n public void testRequestGrantedPermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and allow it\n BasePermissionActivity.Result firstResult = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, null);\n\n // Expect the permission is granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {true});\n }", "@Test\n\tpublic void testIsPermitted_7()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_Active() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n // Active window size is 10 minutes.\n final int standbyBucket = ACTIVE_INDEX;\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_Active\", 1);\n setStandbyBucket(standbyBucket, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Test with timing sessions out of window but still under max execution limit.\n final long expectedAlarmTime =\n (now - 18 * HOUR_IN_MILLIS) + 24 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 18 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 7 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 2 * HOUR_IN_MILLIS, 55 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(5 * MINUTE_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n // Timer has only been going for 5 minutes in the past 10 minutes, which is under the\n // window size limit, but the total execution time for the past 24 hours is 6 hours, so\n // the job no longer has quota.\n assertEquals(0, mQuotaController.getRemainingExecutionTimeLocked(jobStatus));\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_EJ() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_EJ\", 1), null);\n }\n\n final int standbyBucket = WORKING_INDEX;\n setStandbyBucket(standbyBucket);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_WORKING_MS, 20 * MINUTE_IN_MILLIS);\n\n InOrder inOrder = inOrder(mAlarmManager);\n\n synchronized (mQuotaController.mLock) {\n // No sessions saved yet.\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 25 * HOUR_IN_MILLIS, 30 * MINUTE_IN_MILLIS, 1), true);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long end = now - (22 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS);\n final long expectedAlarmTime = now + 2 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n new TimingSession(now - 22 * HOUR_IN_MILLIS, end, 1), true);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (50 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 1), true);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 30 * MINUTE_IN_MILLIS, 6 * MINUTE_IN_MILLIS, 1), true);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Rare() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n // Rare window size is 24 hours.\n final int standbyBucket = RARE_INDEX;\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_Rare\", 1);\n setStandbyBucket(standbyBucket, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n\n // Prevent timing session throttling from affecting the test.\n setDeviceConfigInt(QcConstants.KEY_MAX_SESSION_COUNT_RARE, 50);\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 25 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(0, \"com.android.test\", standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n // Counting backwards, the first minute in the session is over the allowed time, so it\n // needs to be excluded.\n final long expectedAlarmTime =\n start + MINUTE_IN_MILLIS + 24 * HOUR_IN_MILLIS\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 2 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n\tpublic void testIsPermitted_9()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_Frequent() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Frequent\", 1), null);\n }\n\n // Frequent window size is 8 hours.\n final int standbyBucket = FREQUENT_INDEX;\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n final long expectedAlarmTime = start + 8 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "private void configureRequiredActions() {\n List<String> requiredActions = new ArrayList<>();\n requiredActions.add(CONFIGURE_TOTP.name());\n testUser.setRequiredActions(requiredActions);\n testRealmResource().users().get(testUser.getId()).update(testUser);\n }", "@Test\n\tpublic void testIsPermitted_8()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(null);\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "@Test\n public void testCategoryAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureCategoryPermissions(testUser, data);\n\n // test access control\n assertTrue(accessControlService.canViewCategories(), \"Test user should be able to view categories!\");\n assertTrue(accessControlService.canAddCategory(), \"Test user should be able to create categories!\");\n assertFalse(accessControlService.canEditCategory(category), \"Test user should not be able to edit category!\");\n assertFalse(accessControlService.canRemoveCategory(category), \"Test user should not be able to remove category!\");\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedMaxTime() {\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(FREQUENT_INDEX);\n\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 11 * MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time essentially free. Bucket time has 2 min phase out plus original 8 minute\n // window time.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 5),\n false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS),\n 3 * HOUR_IN_MILLIS + 48 * MINUTE_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time only has one minute phase out. Bucket time has 2 minute phase out.\n assertEquals(9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Never_EffectiveNotNever() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Never\", 1), null);\n }\n\n // The app is really in the NEVER bucket but is elevated somehow (eg via uidActive).\n setStandbyBucket(NEVER_INDEX);\n final int effectiveStandbyBucket = FREQUENT_INDEX;\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n final long expectedAlarmTime = start + 8 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "boolean hasSetAcl();", "@Test(expected = org.jsecurity.authz.AuthorizationException.class)\n\tpublic void testCheckPermissions_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Override\n public boolean testPermission(CommandSource source) {\n return source.hasPermission(\"core.tps\");\n }", "@Test(groups = \"role\", priority = 1)\n public void testRoleAdd() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient.roleAdd(rootRole).get();\n this.authDisabledAuthClient.roleAdd(userRole).get();\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 }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_AllowedEqualsWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 20 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_EXEMPTED_MS,\n 10 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_EXEMPTED_MS, 10 * MINUTE_IN_MILLIS);\n // window size = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(EXEMPTED_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 30 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testTracking_RollingQuota() {\n JobStatus jobStatus = createJobStatus(\"testTracking_OutOfQuota\", 1);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n setStandbyBucket(WORKING_INDEX, jobStatus); // 2 hour window\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n final long remainingTimeMs = SECOND_IN_MILLIS;\n // The package only has one second to run, but this session is at the edge of the rolling\n // window, so as the package \"reaches its quota\" it will have more to keep running.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 2 * HOUR_IN_MILLIS,\n 10 * SECOND_IN_MILLIS - remainingTimeMs, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS,\n 9 * MINUTE_IN_MILLIS + 50 * SECOND_IN_MILLIS, 1), false);\n\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingExecutionTimeLocked(jobStatus));\n\n // Start the job.\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n assertTrue(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n // The job used up the remaining quota, but in that time, the same amount of time in the\n // old TimingSession also fell out of the quota window, so it should still have the same\n // amount of remaining time left its quota.\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n // Handler is told to check when the quota will be consumed, not when the initial\n // remaining time is over.\n verify(handler, atLeast(1)).sendMessageDelayed(\n argThat(msg -> msg.what == QuotaController.MSG_REACHED_QUOTA),\n eq(10 * SECOND_IN_MILLIS));\n verify(handler, never()).sendMessageDelayed(any(), eq(remainingTimeMs));\n\n // After 10 seconds, the job should finally be out of quota.\n advanceElapsedClock(10 * SECOND_IN_MILLIS - remainingTimeMs);\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(12 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n assertFalse(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n verify(handler, never()).sendMessageDelayed(any(), anyInt());\n }", "@Test\n public void testMaxQueue() throws Throwable {\n internalMaxQueue(\"core\");\n internalMaxQueue(\"openwire\");\n internalMaxQueue(\"amqp\");\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 }", "boolean needsStoragePermission();", "private void testAclConstraints012() {\n try {\n int aclModifiers = Acl.class.getModifiers();\n TestCase.assertTrue(\"Asserts that Acl is a public final class\", aclModifiers == (Modifier.FINAL | Modifier.PUBLIC));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n }\n }", "void requestNeededPermissions(int requestCode);", "@Override\n public void checkPermission(Permission perm) {\n }" ]
[ "0.7079894", "0.70474184", "0.69257915", "0.6798731", "0.6685697", "0.6433196", "0.6096605", "0.60649353", "0.603696", "0.59193206", "0.5905725", "0.5873821", "0.5813474", "0.5796299", "0.5789118", "0.5749392", "0.5662653", "0.56617653", "0.56557775", "0.56248677", "0.5608598", "0.5573094", "0.55674976", "0.5556628", "0.55502844", "0.5547495", "0.55139357", "0.55114454", "0.54835886", "0.5467413", "0.54621434", "0.5446787", "0.54340035", "0.5432603", "0.5431924", "0.5427599", "0.54263115", "0.5403144", "0.5390389", "0.5384073", "0.5381166", "0.5368938", "0.5353292", "0.53515035", "0.53392947", "0.53392184", "0.5298736", "0.5289234", "0.52881324", "0.5275277", "0.5271332", "0.52662367", "0.5257867", "0.52548444", "0.5243373", "0.523074", "0.5227727", "0.5227509", "0.5223141", "0.52216095", "0.5207535", "0.52065325", "0.5203363", "0.52003986", "0.5200294", "0.517509", "0.5162837", "0.5149828", "0.51469815", "0.5140149", "0.51400536", "0.5133395", "0.51248163", "0.51180667", "0.5117426", "0.51161826", "0.5110974", "0.51105464", "0.51092464", "0.51086587", "0.5108561", "0.51025456", "0.5102044", "0.50986737", "0.5097527", "0.5094424", "0.5093365", "0.5092375", "0.5089057", "0.50774884", "0.5076074", "0.5074708", "0.5070125", "0.50700927", "0.5069128", "0.50655544", "0.50624144", "0.50563186", "0.5053536", "0.5048599" ]
0.6859302
3
Test that temporary queue permissions after queue perms in the ACL config work correctly
public void testTemporaryQueueLastConsume() { ObjectProperties temporary = new ObjectProperties(_queueName); temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); ObjectProperties normal = new ObjectProperties(_queueName); normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary)); // should not matter if the temporary permission is processed first or last _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary); _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal); assertEquals(2, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal)); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testFirstNamedSecondTemporaryQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "public void testFirstTemporarySecondNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "@Test (timeout=5000)\n public void testQueue() throws IOException {\n File f = null;\n try {\n f = writeFile();\n\n QueueManager manager = new QueueManager(f.getCanonicalPath(), true);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n Queue root = manager.getRoot();\n assertThat(root.getChildren().size()).isEqualTo(2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertEquals(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString(),\n \"Users [user1, user2] and members of the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n assertThat(secondSubQueue.getProperties().getProperty(\"key\"))\n .isEqualTo(\"value\");\n assertThat(secondSubQueue.getProperties().getProperty(\"key1\"))\n .isEqualTo(\"value1\");\n // test status\n assertThat(firstSubQueue.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n\n // test user access\n\n UserGroupInformation mockUGI = mock(UserGroupInformation.class);\n when(mockUGI.getShortUserName()).thenReturn(\"user1\");\n String[] groups = { \"group1\" };\n when(mockUGI.getGroupNames()).thenReturn(groups);\n assertTrue(manager.hasAccess(\"first\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"second\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n when(mockUGI.getShortUserName()).thenReturn(\"user3\");\n assertTrue(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n\n QueueAclsInfo[] qai = manager.getQueueAcls(mockUGI);\n assertThat(qai.length).isEqualTo(1);\n // test refresh queue\n manager.refreshQueues(getConfiguration(), null);\n\n iterator = root.getChildren().iterator();\n Queue firstSubQueue1 = iterator.next();\n Queue secondSubQueue1 = iterator.next();\n // tets equal method\n assertThat(firstSubQueue).isEqualTo(firstSubQueue1);\n assertThat(firstSubQueue1.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue1.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n assertThat(firstSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n\n // test JobQueueInfo\n assertThat(firstSubQueue.getJobQueueInfo().getQueueName())\n .isEqualTo(\"first\");\n assertThat(firstSubQueue.getJobQueueInfo().getState().toString())\n .isEqualTo(\"running\");\n assertThat(firstSubQueue.getJobQueueInfo().getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getJobQueueInfo().getChildren().size())\n .isEqualTo(0);\n // test\n assertThat(manager.getSchedulerInfo(\"first\")).isEqualTo(\"queueInfo\");\n Set<String> queueJobQueueInfos = new HashSet<String>();\n for(JobQueueInfo jobInfo : manager.getJobQueueInfos()){\n \t queueJobQueueInfos.add(jobInfo.getQueueName());\n }\n Set<String> rootJobQueueInfos = new HashSet<String>();\n for(Queue queue : root.getChildren()){\n \t rootJobQueueInfos.add(queue.getJobQueueInfo().getQueueName());\n }\n assertEquals(queueJobQueueInfos, rootJobQueueInfos);\n // test getJobQueueInfoMapping\n assertThat(manager.getJobQueueInfoMapping().get(\"first\").getQueueName())\n .isEqualTo(\"first\");\n // test dumpConfiguration\n Writer writer = new StringWriter();\n\n Configuration conf = getConfiguration();\n conf.unset(DeprecatedQueueConfigurationParser.MAPRED_QUEUE_NAMES_KEY);\n QueueManager.dumpConfiguration(writer, f.getAbsolutePath(), conf);\n String result = writer.toString();\n assertTrue(result\n .indexOf(\"\\\"name\\\":\\\"first\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"user1,user2 group1,group2\\\",\\\"acl_administer_jobs\\\":\\\"user3,user4 group3,group4\\\",\\\"properties\\\":[],\\\"children\\\":[]\") > 0);\n\n writer = new StringWriter();\n QueueManager.dumpConfiguration(writer, conf);\n result = writer.toString();\n assertTrue(result.contains(\"{\\\"queues\\\":[{\\\"name\\\":\\\"default\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"*\\\",\\\"acl_administer_jobs\\\":\\\"*\\\",\\\"properties\\\":[],\\\"children\\\":[]},{\\\"name\\\":\\\"q1\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[],\\\"children\\\":[{\\\"name\\\":\\\"q1:q2\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"capacity\\\",\\\"value\\\":\\\"20\\\"}\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"user-limit\\\",\\\"value\\\":\\\"30\\\"}\"));\n assertTrue(result.contains(\"],\\\"children\\\":[]}]}]}\"));\n // test constructor QueueAclsInfo\n QueueAclsInfo qi = new QueueAclsInfo();\n assertNull(qi.getQueueName());\n\n } finally {\n if (f != null) {\n f.delete();\n }\n }\n }", "public void testFirstTemporarySecondDurableThirdNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n ObjectProperties namedDurable = new ObjectProperties(_queueName);\n namedDurable.put(ObjectProperties.Property.DURABLE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedDurable);\n _ruleSet.grant(3, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(3, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n }", "public void testTemporaryQueueFirstConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n\n // should not matter if the temporary permission is processed first or last\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n }", "public void testTemporaryUnnamedQueueConsume()\n {\n ObjectProperties temporary = new ObjectProperties();\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties();\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n _ruleSet.grant(0, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n assertEquals(1, _ruleSet.getRuleCount());\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n \n // defer to global if exists, otherwise default answer - this is handled by the security manager\n assertEquals(Result.DEFER, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n }", "@Test\n public void testIsWithinEJQuotaLocked_TempAllowlisting() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TempAllowlisting\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on the temp allowlist should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the temp allowlist grace period).\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "@Test (timeout=5000)\n public void test2Queue() throws IOException {\n Configuration conf = getConfiguration();\n\n QueueManager manager = new QueueManager(conf);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n\n Queue root = manager.getRoot();\n \n // test children queues\n assertTrue(root.getChildren().size() == 2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertThat(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString()).isEqualTo(\n \"Users [user1, user2] and members of \" +\n \"the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n\n assertThat(firstSubQueue.getState().getStateName()).isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName()).isEqualTo(\"stopped\");\n assertTrue(manager.isRunning(\"first\"));\n assertFalse(manager.isRunning(\"second\"));\n\n assertThat(firstSubQueue.getSchedulingInfo()).isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n // test leaf queue\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n }", "private void testAclConstraints009() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints009\");\n session = tbc.getDmtAdmin().getSession(TestExecPluginActivator.ROOT,\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n\n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n session.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n DefaultTestBundleControl.pass(\"ACLs is only verified by the Dmt Admin service when the session has an associated principal.\");\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }", "@Test\n public void testSchedulingPolicy() {\n String queueName = \"single\";\n\n FSQueueMetrics metrics = FSQueueMetrics.forQueue(ms, queueName, null, false,\n CONF);\n metrics.setSchedulingPolicy(\"drf\");\n checkSchedulingPolicy(queueName, \"drf\");\n\n // test resetting the scheduling policy\n metrics.setSchedulingPolicy(\"fair\");\n checkSchedulingPolicy(queueName, \"fair\");\n }", "private void testAclConstraints002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Get=*&Replace=*\";\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"This test asserts that if the root node ACL is not explicitly set, it should be set to Add=*&Get=*&Replace=*.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }", "private void testAclConstraints003() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints003\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(\".\",null);\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that the root node of DMT must always have an ACL associated with it\",\n\t\t\t DmtException.COMMAND_NOT_ALLOWED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(DmtException.class, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "private void testAclConstraints007() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints007\");\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL_2, Acl.GET );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\t\t\ttbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n\t\t\tsession = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.ROOT,DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\t\n\t\t\tDefaultTestBundleControl.pass(\"If a principal has Replace access to a node, the principal is permitted to change the ACL of all its child nodes\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n\t\t\ttbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "private void testAclConstraints011() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints011\");\n \n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.GET | Acl.ADD );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.ROOT, DmtConstants.PRINCIPAL, Acl.ADD );\n\n Acl aclExpected = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.ADD | Acl.DELETE | Acl.REPLACE });\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class\n\t\t\t\t\t.getName(), DmtConstants.PRINCIPAL, \"*\"));\n\t\t\t\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL, \".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n\n session.close();\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n TestCase.assertTrue(\"Asserts that if the calling principal does not have Replace rights for the parent, \" +\n \t\t\"the destiny node must be set with an Acl having Add, Delete and Replace permissions.\",\n \t\taclExpected.equals(session.getNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "@Test\n public void testTopicAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureTopicPermissions(testUser, category, data);\n\n // test access control\n assertTrue(accessControlService.canViewTopics(category), \"Test user should be able to view topic in category!\");\n assertTrue(accessControlService.canAddTopic(category), \"Test user should be able to create topics in category!\");\n assertFalse(accessControlService.canEditTopic(topic), \"Test user should not be able to edit topics in category!\");\n assertFalse(accessControlService.canRemoveTopic(topic), \"Test user should not be able to remove topics in category!\");\n }", "@Test\n public void testUserAndFlowGroupQuotaMultipleUsersAdd() throws Exception {\n Dag<JobExecutionPlan> dag1 = DagManagerTest.buildDag(\"1\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag2 = DagManagerTest.buildDag(\"2\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag3 = DagManagerTest.buildDag(\"3\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group3\")));\n Dag<JobExecutionPlan> dag4 = DagManagerTest.buildDag(\"4\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n // Ensure that the current attempt is 1, normally done by DagManager\n dag1.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag2.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag3.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag4.getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dag1.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag2.getNodes().get(0)));\n\n // Should fail due to user quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n });\n // Should fail due to flowgroup quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n });\n // should pass due to quota being released\n this._quotaManager.releaseQuota(dag2.getNodes().get(0));\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n }", "@Test\n public void testPostOverrideAccess2() {\n // create discussion which will be limited for user\n Discussion limitedDiscussion = new Discussion(-11L, \"Limited discussion\");\n limitedDiscussion.setTopic(topic);\n Post p = new Post(\"Post in limited discussion\");\n p.setDiscussion(limitedDiscussion);\n\n // set permissions\n // has full access to every post in category except the ones in the limited discussion\n // note that limitedDiscussion permission is added as the second one so that sorting in PermissionService.checkPermissions is tested also\n PermissionData categoryPostPerms = new PermissionData(true, true, true, true);\n PermissionData discussionPostPerms = new PermissionData(true, false, false, true);\n pms.configurePostPermissions(testUser, limitedDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertTrue(accessControlService.canEditPost(post), \"Test user should be able to edit posts in discussion!\");\n assertTrue(accessControlService.canRemovePost(post), \"Test user should be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(limitedDiscussion), \"Test user should be able to view posts in limited discussion!\");\n assertTrue(accessControlService.canAddPost(limitedDiscussion), \"Test user should be able to add posts in limited discussion!\");\n assertFalse(accessControlService.canEditPost(p), \"Test user should not be able to edit post in limited discussion!\");\n assertFalse(accessControlService.canRemovePost(p), \"Test user should not be able to remove post from limited discussion!\");\n }", "private void testAclConstraints004() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints004\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Exec=*&Replace=*\";\n\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(expectedRootAcl));\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"Asserts that the root's ACL can be changed.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test72() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n connectionFactories0.addQueueConnectionFactory(queueConnectionFactory0);\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n assertEquals(1, queueConnectionFactoryArray0.length);\n }", "private void testAclConstraints005() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints005\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n\t\t\tsession.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n\t\t\tTestCase.assertNull(\"This test asserts that the Dmt Admin service synchronizes the ACLs with any change \"\n\t\t\t\t\t\t\t+ \"in the DMT that is made through its service interface\",\n\t\t\t\t\t\t\tsession.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "@Test\r\n public void testGraphPerms1()\r\n throws Exception {\r\n\r\n GraphManager gmgr = databaseClient.newGraphManager();\r\n createUserRolesWithPrevilages(\"test-role\");\r\n GraphPermissions gr = testAdminCon.getDefaultGraphPerms();\r\n \r\n // ISSUE # 175 uncomment after issue is fixed\r\n Assert.assertEquals(0L, gr.size());\r\n \r\n testAdminCon.setDefaultGraphPerms(gmgr.permission(\"test-role\", Capability.READ, Capability.UPDATE));\r\n String defGraphQuery = \"CREATE GRAPH <http://marklogic.com/test/graph/permstest> \";\r\n MarkLogicUpdateQuery updateQuery = testAdminCon.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery);\r\n updateQuery.execute();\r\n \r\n String defGraphQuery1 = \"INSERT DATA { GRAPH <http://marklogic.com/test/graph/permstest> { <http://marklogic.com/test1> <pp2> \\\"test\\\" } }\";\r\n String checkQuery = \"ASK WHERE { GRAPH <http://marklogic.com/test/graph/permstest> {<http://marklogic.com/test> <pp2> \\\"test\\\" }}\";\r\n MarkLogicUpdateQuery updateQuery1 = testAdminCon.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery1);\r\n updateQuery1.execute();\r\n \r\n BooleanQuery booleanQuery = testAdminCon.prepareBooleanQuery(QueryLanguage.SPARQL, checkQuery);\r\n boolean results = booleanQuery.evaluate();\r\n Assert.assertEquals(false, results);\r\n \r\n gr = testAdminCon.getDefaultGraphPerms();\r\n Assert.assertEquals(1L, gr.size());\r\n Iterator<Entry<String, Set<Capability>>> resultPerm = gr.entrySet().iterator();\r\n while(resultPerm.hasNext()){\r\n \t Entry<String, Set<Capability>> perms = resultPerm.next();\r\n \t Assert.assertTrue(\"test-role\" == perms.getKey());\r\n \t Iterator<Capability> capability = perms.getValue().iterator();\r\n \t while (capability.hasNext())\r\n \t\t assertThat(capability.next().toString(), anyOf(equalTo(\"UPDATE\"), is(equalTo(\"READ\"))));\r\n }\r\n \r\n String defGraphQuery2 = \"CREATE GRAPH <http://marklogic.com/test/graph/permstest1> \";\r\n testAdminCon.setDefaultGraphPerms(null);\r\n updateQuery = testAdminCon.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery2);\r\n updateQuery.execute();\r\n gr = testAdminCon.getDefaultGraphPerms();\r\n Assert.assertEquals(0L, gr.size());\r\n \r\n \r\n createUserRolesWithPrevilages(\"multitest-role\");\r\n testAdminCon.setDefaultGraphPerms(gmgr.permission(\"multitest-role\", Capability.READ).permission(\"test-role\", Capability.UPDATE));\r\n defGraphQuery = \"CREATE GRAPH <http://marklogic.com/test/graph/permstest2> \";\r\n updateQuery = testAdminCon.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery);\r\n updateQuery.execute();\r\n gr = testAdminCon.getDefaultGraphPerms();\r\n Assert.assertEquals(2L, gr.size());\r\n testAdminCon.setDefaultGraphPerms(null);\r\n testAdminCon.setDefaultGraphPerms(null);\r\n // ISSUE 180\r\n //testAdminCon.setDefaultGraphPerms((GraphPermissions)null);\r\n gr = testAdminCon.getDefaultGraphPerms();\r\n Assert.assertEquals(0L, gr.size());\r\n \r\n \r\n }", "@Test\n\tpublic void testCheckPermissions_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_SmallRollingQuota() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_SRQ\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(WORKING_INDEX);\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.EJ_LIMIT_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 23 * HOUR_IN_MILLIS, remainingTimeMs, 2), true);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime =\n now + HOUR_IN_MILLIS + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test()\n public void doTestWithNormalPermission() throws Exception {\n doTestChangeTopic(\"publisher\", \"123\");\n }", "private void testAclConstraints010() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints010\");\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n \n session = tbc.getDmtAdmin().getSession(\".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n Acl aclParent = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.REPLACE });\n session.setNodeAcl(TestExecPluginActivator.ROOT,\n aclParent);\n \n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new Acl(new String[] { DmtConstants.PRINCIPAL },\n new int[] { Acl.EXEC }));\n TestExecPlugin.setAllUriIsExistent(false);\n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n TestCase.assertTrue(\"Asserts that the copied nodes inherit the access rights from the parent of the destination node.\",\n aclParent.equals(session.getEffectiveNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "@Test\n public void testMultipleRemoveQuotasIdempotent() throws Exception {\n List<Dag<JobExecutionPlan>> dags = DagManagerTest.buildDagList(2, \"user3\", ConfigFactory.empty());\n\n // Ensure that the current attempt is 1, normally done by DagManager\n dags.get(0).getNodes().get(0).getValue().setCurrentAttempts(1);\n dags.get(1).getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dags.get(0).getNodes().get(0)));\n Assert.assertTrue(this._quotaManager.releaseQuota(dags.get(0).getNodes().get(0)));\n Assert.assertFalse(this._quotaManager.releaseQuota(dags.get(0).getNodes().get(0)));\n }", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs =\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, remainingTimeMs, 2), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 2 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - HOUR_IN_MILLIS + 2 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private void testAclConstraints008() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints008\");\n //We need to set that a parent of the node does not have Replace else the acl of the root \".\" is gotten\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.DELETE );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.LEAF_NODE,DmtSession.LOCK_TYPE_EXCLUSIVE);\n session.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that Replace access on a leaf node does not allow changing the ACL property itself.\",\n\t\t\t DmtException.PERMISSION_DENIED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n tbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "@Test()\n public void doTestWithSuperPermission() throws Exception {\n doTestChangeTopic(\"admin\", \"123\");\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_BucketChange() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_BucketChange\", 1), null);\n }\n\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_ACTIVE_MS, 30 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_WORKING_MS, 20 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 15 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_RARE_MS, 10 * MINUTE_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Affects active bucket\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3), true);\n // Affects active and working buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 4 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 3), true);\n // Affects active, working, and frequent buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 10), true);\n // Affects all buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 5 * MINUTE_IN_MILLIS, 10 * MINUTE_IN_MILLIS, 3), true);\n\n InOrder inOrder = inOrder(mAlarmManager);\n\n // Start in ACTIVE bucket.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n\n // And down from there.\n setStandbyBucket(WORKING_INDEX);\n final long expectedWorkingAlarmTime =\n (now - 4 * HOUR_IN_MILLIS) + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(FREQUENT_INDEX);\n final long expectedFrequentAlarmTime =\n (now - HOUR_IN_MILLIS) + (24 * HOUR_IN_MILLIS) + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(RARE_INDEX);\n final long expectedRareAlarmTime =\n (now - 5 * MINUTE_IN_MILLIS) + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, RARE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedRareAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // And back up again.\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(1))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n }", "@Test\n public void testQueueLimiting() throws Exception {\n // Block the underlying fake proxy from actually completing any calls.\n DelayAnswer delayer = new DelayAnswer(LOG);\n Mockito.doAnswer(delayer).when(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n \n // Queue up the maximum number of calls.\n int numToQueue = LIMIT_QUEUE_SIZE_BYTES / FAKE_DATA.length;\n for (int i = 1; i <= numToQueue; i++) {\n ch.sendEdits(1L, (long)i, 1, FAKE_DATA);\n }\n \n // The accounting should show the correct total number queued.\n assertEquals(LIMIT_QUEUE_SIZE_BYTES, ch.getQueuedEditsSize());\n \n // Trying to queue any more should fail.\n try {\n ch.sendEdits(1L, numToQueue + 1, 1, FAKE_DATA).get(1, TimeUnit.SECONDS);\n fail(\"Did not fail to queue more calls after queue was full\");\n } catch (ExecutionException ee) {\n if (!(ee.getCause() instanceof LoggerTooFarBehindException)) {\n throw ee;\n }\n }\n \n delayer.proceed();\n\n // After we allow it to proceeed, it should chug through the original queue\n GenericTestUtils.waitFor(new Supplier<Boolean>() {\n @Override\n public Boolean get() {\n return ch.getQueuedEditsSize() == 0;\n }\n }, 10, 1000);\n }", "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "@Test\n\tpublic void testModifyingQueues() throws IOException, InvalidHeaderException, InterruptedException, ExecutionException {\n\t\tfinal String[] names = { \"queue 1\", \"queue 2\", \"queue 3\", \"queue 4\", \"queue 5\", \"queue 6\" };\n\t\tfinal Status[] results = { Status.SUCCESS, Status.SUCCESS, Status.SUCCESS, Status.QUEUE_NOT_EMPTY, Status.QUEUE_EXISTS, \n\t\t\t\tStatus.QUEUE_NOT_EXISTS };\n\t\t\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < names.length; i ++) {\n\t\t\t\t\tboolean result = i > 2 ? false : true; \n\t\t\t\t\t\n\t\t\t\t\tif (i % 2 == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.CreateQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\n\t\t\t\t\t\t} \n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.DeleteQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\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}, Boolean.TRUE);\n\t\t\n\t\tQueueModificationRequest request;\n\t\t// Get the request\n\t\tfor (int i = 0; i <names.length; i++) {\n\t\t\trequest = (QueueModificationRequest) this.getMessage(channel);\n\t\t\tassertEquals(names[i], request.getQueueName());\n\t\t\tthis.sendMessage(new RequestResponse(results[i]), channel);\n\t\t}\n\t\t\n\t\t\n\t\tresult.get();\n\t}", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_MaxExecution() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 8 * MINUTE_IN_MILLIS), 4 * HOUR_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time will phase out, so should use bucket limit.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Close to boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(5 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Far from boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS), 4 * HOUR_IN_MILLIS - 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testTimerTracking_TempAllowlisting() {\n // None of these should be affected purely by the temp allowlist changing.\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n JobStatus job1 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 1);\n JobStatus job2 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 2);\n JobStatus job3 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 3);\n JobStatus job4 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 4);\n JobStatus job5 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 5);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job1, null);\n }\n assertNull(mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(job1);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job1, job1, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n // Job starts after app is added to temp allowlist and stops before removal.\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job2, null);\n mQuotaController.prepareForExecutionLocked(job2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job2, null, false);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts after app is added to temp allowlist and stops after removal,\n // before grace period ends.\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job3, null);\n mQuotaController.prepareForExecutionLocked(job3);\n }\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n long elapsedGracePeriodMs = 2 * SECOND_IN_MILLIS;\n advanceElapsedClock(elapsedGracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job3, null, false);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS + elapsedGracePeriodMs, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n elapsedGracePeriodMs += SECOND_IN_MILLIS;\n\n // Job starts during grace period and ends after grace period ends\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job4, null);\n mQuotaController.prepareForExecutionLocked(job4);\n }\n final long remainingGracePeriod = gracePeriodMs - elapsedGracePeriodMs;\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n advanceElapsedClock(remainingGracePeriod);\n // Wait for handler to update Timer\n // Can't directly evaluate the message because for some reason, the captured message returns\n // the wrong 'what' even though the correct message goes to the handler and the correct\n // path executes.\n verify(handler, timeout(gracePeriodMs + 5 * SECOND_IN_MILLIS)).handleMessage(any());\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n expected.add(createTimingSession(start, remainingGracePeriod + 10 * SECOND_IN_MILLIS, 1));\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job4, job4, true);\n }\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts and runs completely after temp allowlist grace period.\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job5, null);\n mQuotaController.prepareForExecutionLocked(job5);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job5, job5, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "@Test\n\tpublic void queueListTest() throws IllegalArgumentException, IllegalAccessException {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime &&\n\t\t\t\tConfiguration.progressbar &&\n\t\t\t\tConfiguration.saveandloadplaylist &&\n\t\t\t\tConfiguration.playlist && \n\t\t\t\tConfiguration.removetrack &&\n\t\t\t\tConfiguration.clearplaylist &&\n\t\t\t\tConfiguration.queuetrack\n\t\t\t\t) {\n\n\t\t\tstart();\n\n\t\t\tFile file = new File(\"p1.m3u\");\n\t\t\tdemo.menuItemWithPath(\"Datei\", \"Playlist laden\").click();\n\t\t\tdemo.fileChooser().setCurrentDirectory(new File(\"media/\"));\n\t\t\tdemo.fileChooser().selectFile(file);\n\t\t\tdemo.fileChooser().approveButton().click();\n\t\t\tdemo.list(\"p_list\").clickItem(1);\n\t\t\tdemo.button(\"right\").click();\n\t\t\t\n\t\t\tgui.skiptrack();\n\t\t\tdemo.list(\"p_list\").clickItem(0);\n\t\t\tdemo.list(\"p_list\").clickItem(0);\n\t\t\tdemo.button(\"right\").click();\n\t\t\tgui.skiptrack();\n\n\t\t\tdemo.list(\"queueLis\").clickItem(1);\n\t\t\tdemo.button(\"left\").click();\n\t\t\tgui.skiptrack();\n\n\t\t\tdemo.list(\"queueLis\").clickItem(0);\n\t\t\tdemo.button(\"left\").click();\n\t\t\tgui.skiptrack();\n\n\t\t}\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_BucketChange() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n\n // Affects rare bucket\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3), false);\n // Affects frequent and rare buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 4 * HOUR_IN_MILLIS, 4 * MINUTE_IN_MILLIS, 3), false);\n // Affects working, frequent, and rare buckets\n final long outOfQuotaTime = now - HOUR_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(outOfQuotaTime, 7 * MINUTE_IN_MILLIS, 10), false);\n // Affects all buckets\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 5 * MINUTE_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 3), false);\n\n InOrder inOrder = inOrder(mAlarmManager);\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_BucketChange\", 1);\n\n // Start in ACTIVE bucket.\n setStandbyBucket(ACTIVE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n\n // And down from there.\n final long expectedWorkingAlarmTime =\n outOfQuotaTime + (2 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(WORKING_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n final long expectedFrequentAlarmTime =\n outOfQuotaTime + (8 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(FREQUENT_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n final long expectedRareAlarmTime =\n outOfQuotaTime + (24 * HOUR_IN_MILLIS)\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n setStandbyBucket(RARE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, RARE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedRareAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // And back up again.\n setStandbyBucket(FREQUENT_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, FREQUENT_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedFrequentAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(WORKING_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n\n setStandbyBucket(ACTIVE_INDEX, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, ACTIVE_INDEX);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n inOrder.verify(mAlarmManager, timeout(1000).times(1))\n .cancel(any(AlarmManager.OnAlarmListener.class));\n }", "private void testAclConstraints006() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints006\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tString expectedRootAcl = \"Add=*\";\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(expectedRootAcl));\n\n\t\t\tsession.renameNode(TestExecPluginActivator.INTERIOR_NODE,TestExecPluginActivator.RENAMED_NODE_NAME);\n\t\t\tTestExecPlugin.setAllUriIsExistent(true);\n\t\t\tTestCase.assertNull(\"Asserts that the method rename deletes the ACL of the source.\",session.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t\t\n\t\t\tTestCase.assertEquals(\"Asserts that the method rename moves the ACL from the source to the destiny.\",\n\t\t\t\t\texpectedRootAcl,session.getNodeAcl(TestExecPluginActivator.RENAMED_NODE).toString());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.RENAMED_NODE);\n\t\t\tTestExecPlugin.setAllUriIsExistent(false);\n\t\t}\n\t}", "@Test\n void checkManagerWithPermissionGetAlert(){\n LinkedList<PermissionEnum.Permission> list=new LinkedList<>();\n list.add(PermissionEnum.Permission.RequestBidding);\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,NofetID);\n tradingSystem.EditManagerPermissions(EuserId,EconnID,storeID,NofetID,list);\n Response Alert=new Response(\"Alert\");\n store.sendAlertOfBiddingToManager(Alert);\n //??\n }", "@Test\n public void testIsWithinEJQuotaLocked_TopApp() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TopApp\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TOP_APP_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on top should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the top grace period).\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedAllowedTime() {\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\n\tpublic void testCheckPermissions_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testCheckExistsPermission() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE\");\n assertFalse(permissionManager.checkExists(permission2));\n }", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.MAX_EXECUTION_TIME_MS - contributionMs;\n\n // Session straddles edge of 24 hour window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 20 * HOUR_IN_MILLIS, remainingTimeMs, 300), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - 20 * HOUR_IN_MILLIS\n + 24 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testExceedsQuotaOnStartup() throws Exception {\n List<Dag<JobExecutionPlan>> dags = DagManagerTest.buildDagList(2, \"user\", ConfigFactory.empty());\n // Ensure that the current attempt is 1, normally done by DagManager\n dags.get(0).getNodes().get(0).getValue().setCurrentAttempts(1);\n dags.get(1).getNodes().get(0).getValue().setCurrentAttempts(1);\n\n // Should not be throwing the exception\n this._quotaManager.init(dags);\n }", "@Before\n public void setUp() throws Exception {\n csConf = new CapacitySchedulerConfiguration();\n csConf.setClass(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class,\n ResourceScheduler.class);\n\n // By default, set 3 queues, a/b, and a.a1\n csConf.setQueues(\"root\", new String[]{\"a\", \"b\"});\n csConf.setNonLabeledQueueWeight(\"root\", 1f);\n csConf.setNonLabeledQueueWeight(\"root.a\", 1f);\n csConf.setNonLabeledQueueWeight(\"root.b\", 1f);\n csConf.setQueues(\"root.a\", new String[]{\"a1\"});\n csConf.setNonLabeledQueueWeight(\"root.a.a1\", 1f);\n csConf.setAutoQueueCreationV2Enabled(\"root\", true);\n csConf.setAutoQueueCreationV2Enabled(\"root.a\", true);\n csConf.setAutoQueueCreationV2Enabled(\"root.e\", true);\n csConf.setAutoQueueCreationV2Enabled(PARENT_QUEUE, true);\n // Test for auto deletion when expired\n csConf.setAutoExpiredDeletionTime(1);\n }", "@Test\n public void testPostOverrideAccess() {\n // create user's discussion\n Discussion usersDiscussion = new Discussion(-11L, \"Users own discussion\");\n usersDiscussion.setTopic(topic);\n Post p = new Post(\"Post in user's discussion\");\n p.setDiscussion(usersDiscussion);\n\n // set permissions\n // can create and view posts in category\n PermissionData categoryPostPerms = new PermissionData(true, false, false, true);\n // has complete control over posts in his discussion\n PermissionData discussionPostPerms = new PermissionData(true, true, true, true);\n pms.configurePostPermissions(testUser, usersDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertFalse(accessControlService.canEditPost(post), \"Test user should not be able to edit posts in discussion!\");\n assertFalse(accessControlService.canRemovePost(post), \"Test user should not be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(usersDiscussion), \"Test user should be able to view posts in his discussion!\");\n assertTrue(accessControlService.canAddPost(usersDiscussion), \"Test user should be able to add posts in his discussion!\");\n assertTrue(accessControlService.canEditPost(p), \"Test user should be able to edit post in his discussion!\");\n assertTrue(accessControlService.canRemovePost(p), \"Test user should be able to remove post from his discussion!\");\n }", "@Test\n\tpublic void testCheckPermissions_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testMaxQueue() throws Throwable {\n internalMaxQueue(\"core\");\n internalMaxQueue(\"openwire\");\n internalMaxQueue(\"amqp\");\n }", "@Test\n\t// Delivery 2 Use Case 1. Grant/Deny Access to commands based on profile's role\n\tpublic void test() {\n\n\t\tUsers user1 = new Users(\"Test1\", \"PARENT\");\n\t\tUsers user2 = new Users(\"Test2\", \"STRANGER\");\n\t\tUsers user3 = new Users(\"Test3\", \"CHILDREN\");\n\t\tUsers user4 = new Users(\"Test4\", \"GUEST\");\n\n\t\t// Checking if users have permissions\n\t\tassertEquals(\"PARENT\", user1.getPermission());\n\t\tassertEquals(\"STRANGER\", user2.getPermission());\n\t\tassertEquals(\"CHILDREN\", user3.getPermission());\n\t\tassertEquals(\"GUEST\", user4.getPermission());\n\n\t}", "@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(FREQUENT_INDEX);\n\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 11 * MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time essentially free. Bucket time has 2 min phase out plus original 8 minute\n // window time.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 5),\n false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS),\n 3 * HOUR_IN_MILLIS + 48 * MINUTE_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time only has one minute phase out. Bucket time has 2 minute phase out.\n assertEquals(9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testEJTimerTracking_TempAllowlisting() {\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n JobStatus job1 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 1);\n JobStatus job2 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 2);\n JobStatus job3 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 3);\n JobStatus job4 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 4);\n JobStatus job5 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 5);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job1, null);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(job1);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job1, job1, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n // Job starts after app is added to temp allowlist and stops before removal.\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job2, null);\n mQuotaController.prepareForExecutionLocked(job2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job2, null, false);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts after app is added to temp allowlist and stops after removal,\n // before grace period ends.\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job3, null);\n mQuotaController.prepareForExecutionLocked(job3);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n long elapsedGracePeriodMs = 2 * SECOND_IN_MILLIS;\n advanceElapsedClock(elapsedGracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job3, null, false);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n elapsedGracePeriodMs += SECOND_IN_MILLIS;\n\n // Job starts during grace period and ends after grace period ends\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job4, null);\n mQuotaController.prepareForExecutionLocked(job4);\n }\n final long remainingGracePeriod = gracePeriodMs - elapsedGracePeriodMs;\n start = JobSchedulerService.sElapsedRealtimeClock.millis() + remainingGracePeriod;\n advanceElapsedClock(remainingGracePeriod);\n // Wait for handler to update Timer\n // Can't directly evaluate the message because for some reason, the captured message returns\n // the wrong 'what' even though the correct message goes to the handler and the correct\n // path executes.\n verify(handler, timeout(gracePeriodMs + 5 * SECOND_IN_MILLIS)).handleMessage(any());\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job4, job4, true);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts and runs completely after temp allowlist grace period.\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job5, null);\n mQuotaController.prepareForExecutionLocked(job5);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job5, job5, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "@Test\n public void testNoResidualPermissionsOnUninstall_part2() throws Exception {\n assertAllPermissionsRevoked();\n }", "@Test\n public void testTracking_OutOfQuota_ForegroundAndBackground() {\n setDischarging();\n\n JobStatus jobBg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 1);\n JobStatus jobTop = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 2);\n trackJobs(jobBg, jobTop);\n setStandbyBucket(WORKING_INDEX, jobTop, jobBg); // 2 hour window\n // Now the package only has 20 seconds to run.\n final long remainingTimeMs = 20 * SECOND_IN_MILLIS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n JobSchedulerService.sElapsedRealtimeClock.millis() - HOUR_IN_MILLIS,\n 10 * MINUTE_IN_MILLIS - remainingTimeMs, 1), false);\n\n InOrder inOrder = inOrder(mJobSchedulerService);\n\n // UID starts out inactive.\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n // Start the job.\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg);\n }\n advanceElapsedClock(remainingTimeMs / 2);\n // New job starts after UID is in the foreground. Since the app is now in the foreground, it\n // should continue to have remainingTimeMs / 2 time remaining.\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobBg));\n assertEquals(remainingTimeMs / 2,\n mQuotaController.getRemainingExecutionTimeLocked(jobTop));\n }\n // Go to a background state.\n setProcessState(ActivityManager.PROCESS_STATE_TOP_SLEEPING);\n advanceElapsedClock(remainingTimeMs / 2 + 1);\n inOrder.verify(mJobSchedulerService,\n timeout(remainingTimeMs / 2 + 2 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n // Top job should still be allowed to run.\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // New jobs to run.\n JobStatus jobBg2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 3);\n JobStatus jobTop2 = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 4);\n JobStatus jobFg = createJobStatus(\"testTracking_OutOfQuota_ForegroundAndBackground\", 5);\n setStandbyBucket(WORKING_INDEX, jobBg2, jobTop2, jobFg);\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n trackJobs(jobFg, jobTop);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n // App still in foreground so everything should be in quota.\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE);\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n inOrder.verify(mJobSchedulerService, timeout(SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 2));\n // App is now in background and out of quota. Fg should now change to out of quota since it\n // wasn't started. Top should remain in quota since it started when the app was in TOP.\n assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n trackJobs(jobBg2);\n assertFalse(jobBg2.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n }", "@Test\n public void testWithExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n AuthorizationResponse response = authzClient.authorization(\"marta\", \"password\", \"foo\")\n .authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource A with client scope bar.\n request = new PermissionRequest(\"Resource A\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource B with client scope bar.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n }", "@Test\n\tpublic void testCheckPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedEverything() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\n public void testPostAccessControl() {\n // item posted by user himself\n Post usersPost = new Post(\"Post created by test user.\");\n usersPost.setDiscussion(discussion);\n usersPost.setUserId(testUser.getDiscussionUserId());\n\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configurePostPermissions(testUser, discussion, data);\n\n // test access control\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertFalse(accessControlService.canEditPost(post), \"Test user should not be able to edit posts in discussion!\");\n assertFalse(accessControlService.canRemovePost(post), \"Test user should not be able to delete posts from discussion!\");\n\n // check permissions for user's own post\n assertTrue(accessControlService.canEditPost(usersPost), \"Test user should be able to edit his post!\");\n assertTrue(accessControlService.canRemovePost(usersPost), \"Test user should be able to remove his post!\");\n }", "private void testAclConstraints001() {\n\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints001\");\n\t\t\t\n new org.osgi.service.dmt.Acl(\"Add=test&Exec=test &Get=*\");\n\t\t\t\n DefaultTestBundleControl.failException(\"\",IllegalArgumentException.class);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tDefaultTestBundleControl.pass(\"White space between tokens of a Acl is not allowed.\");\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(IllegalArgumentException.class, e);\n\t\t}\n\t}", "@Test\n public void testManageRollbacksPermission() throws Exception {\n // We shouldn't be allowed to call any of the RollbackManager APIs\n // without the MANAGE_ROLLBACKS permission.\n RollbackManager rm = RollbackTestUtils.getRollbackManager();\n\n try {\n rm.getAvailableRollbacks();\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n\n try {\n rm.getRecentlyCommittedRollbacks();\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n\n try {\n // TODO: What if the implementation checks arguments for non-null\n // first? Then this test isn't valid.\n rm.commitRollback(0, Collections.emptyList(), null);\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n\n try {\n rm.reloadPersistedData();\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n\n try {\n rm.expireRollbackForPackage(TEST_APP_A);\n fail(\"expected SecurityException\");\n } catch (SecurityException e) {\n // Expected.\n }\n }", "@SuppressWarnings(\"serial\")\r\n\t@Test\r\n\tpublic void permutationsTestSize3NotAllEquals() throws BoundedQueueException {\r\n\t\tbq.enqueue(1);\r\n\t\tbq.enqueue(2);\r\n\t\tbq.enqueue(3);\r\n\t\tBoundedQueueCorrected<BoundedQueueCorrected<Integer>> output= bq.permutations();\r\n\t\t\r\n\t\t//size of the perm's output\r\n\t\tint expectedPermSize = 6; //fact\r\n\t\tint actualPermSize = output.size();\t\t\r\n\t\tassertEquals(\"Tamanho do resultado final\",expectedPermSize, actualPermSize);\r\n\t\t\r\n\t\t\r\n\t\t//number of elems for each elem of perms\r\n\t\tint expectedPermNumElems = 3; \r\n\t\tint actualPermNumElems = bq.size();\r\n\t\tassertEquals(\"Numero de elementos no elems\",expectedPermNumElems, actualPermNumElems);\r\n\t\t\r\n\t\t//check if there are any duplicated\r\n\t\tArrayList<BoundedQueueCorrected<Integer>> permOutput = output.elems;\r\n\t\tList<Integer> countEquals = new ArrayList<Integer>(6){{\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t}};\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < actualPermSize; i++ ){ \r\n\t\t\tfor(int j = 0; j < actualPermSize; j++ ){\r\n\t\t\t\tif(i != j){\r\n\t\t\t\t\tif(permOutput.get(i).toString().equals(permOutput.get(j).toString())){\t\t\r\n\t\t\t\t\t\tcountEquals.set(i, countEquals.get(i)+1); // counts the number of occurrences of an elem from output\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\tint expectedEqualPerms = 0;\r\n\t\tint actualEqualPerms = 0;\r\n\t\t\r\n\t\tfor(Integer i : countEquals){\r\n\t\t\tif(i > 0)\r\n\t\t\t\tactualEqualPerms++;\r\n\t\t\t//if(i == expectedPermSize -1)\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tassertEquals(\"Numero de permutacoes iguais\",expectedEqualPerms, actualEqualPerms);\r\n\t}", "@Test\n public void testTracking_RollingQuota() {\n JobStatus jobStatus = createJobStatus(\"testTracking_OutOfQuota\", 1);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n setStandbyBucket(WORKING_INDEX, jobStatus); // 2 hour window\n setProcessState(ActivityManager.PROCESS_STATE_SERVICE);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n final long remainingTimeMs = SECOND_IN_MILLIS;\n // The package only has one second to run, but this session is at the edge of the rolling\n // window, so as the package \"reaches its quota\" it will have more to keep running.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 2 * HOUR_IN_MILLIS,\n 10 * SECOND_IN_MILLIS - remainingTimeMs, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS,\n 9 * MINUTE_IN_MILLIS + 50 * SECOND_IN_MILLIS, 1), false);\n\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingExecutionTimeLocked(jobStatus));\n\n // Start the job.\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(remainingTimeMs);\n\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0))\n .onControllerStateChanged(argThat(jobs -> jobs.size() > 0));\n assertTrue(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n // The job used up the remaining quota, but in that time, the same amount of time in the\n // old TimingSession also fell out of the quota window, so it should still have the same\n // amount of remaining time left its quota.\n synchronized (mQuotaController.mLock) {\n assertEquals(remainingTimeMs,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n // Handler is told to check when the quota will be consumed, not when the initial\n // remaining time is over.\n verify(handler, atLeast(1)).sendMessageDelayed(\n argThat(msg -> msg.what == QuotaController.MSG_REACHED_QUOTA),\n eq(10 * SECOND_IN_MILLIS));\n verify(handler, never()).sendMessageDelayed(any(), eq(remainingTimeMs));\n\n // After 10 seconds, the job should finally be out of quota.\n advanceElapsedClock(10 * SECOND_IN_MILLIS - remainingTimeMs);\n // Wait for some extra time to allow for job processing.\n verify(mJobSchedulerService,\n timeout(12 * SECOND_IN_MILLIS).times(1))\n .onControllerStateChanged(argThat(jobs -> jobs.size() == 1));\n assertFalse(jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n verify(handler, never()).sendMessageDelayed(any(), anyInt());\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedBufferSize() {\n setDeviceConfigLong(QcConstants.KEY_IN_QUOTA_BUFFER_MS,\n mQcConstants.IN_QUOTA_BUFFER_MS * 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\r\n\tpublic void permutationsTestSize2() throws BoundedQueueException {\r\n\t\tbq.enqueue(1);\r\n\t\tbq.enqueue(2);\r\n\t\tassertEquals(\"Permutations output\",\"[[1, 2], [2, 1]]\",\tbq.permutations().toString());\r\n\t}", "@SuppressWarnings(\"serial\")\r\n\t@Test\r\n\tpublic void permutationsTestSize3AllEquals() throws BoundedQueueException {\r\n\t\tbq.enqueue(3);\r\n\t\tbq.enqueue(3);\r\n\t\tbq.enqueue(3);\r\n\t\tBoundedQueueCorrected<BoundedQueueCorrected<Integer>> output= bq.permutations();\r\n\t\t\r\n\t\t//size of the perm's output\r\n\t\tint expectedPermSize = 6; //fact\r\n\t\tint actualPermSize = output.size();\t\t\r\n\t\tassertEquals(\"Tamanho do resultado final\",expectedPermSize, actualPermSize);\r\n\t\t\r\n\t\t\r\n\t\t//number of elems for each elem of perms\r\n\t\tint expectedPermNumElems = 3; \r\n\t\tint actualPermNumElems = bq.size();\r\n\t\tassertEquals(\"Numero de elementos no elems\",expectedPermNumElems, actualPermNumElems);\r\n\t\t\r\n\t\t//check if there are any duplicated\r\n\t\tArrayList<BoundedQueueCorrected<Integer>> permOutput = output.elems;\r\n\t\tList<Integer> countEquals = new ArrayList<Integer>(6){{\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t}};\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < actualPermSize; i++ ){ \r\n\t\t\tfor(int j = 0; j < actualPermSize; j++ ){\r\n\t\t\t\tif(i != j){\r\n\t\t\t\t\tif(permOutput.get(i).toString().equals(permOutput.get(j).toString())){\t\t\r\n\t\t\t\t\t\tcountEquals.set(i, countEquals.get(i)+1); // counts the number of occurrences of an elem from output\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\tint expectedEqualPerms = 0;\r\n\t\tint actualEqualPerms = 0;\r\n\t\t\r\n\t\tfor(Integer i : countEquals){\r\n\t\t\tif(i > 0)\r\n\t\t\t\tactualEqualPerms++;\r\n\t\t\t//if(i == expectedPermSize -1)\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tassertEquals(\"Numero de permutacoes iguais\",expectedEqualPerms, actualEqualPerms);\r\n\t}", "@Test\n\tpublic void testCheckPermission_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tfixture.checkPermission(permission);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedMaxTime() {\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Active() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n // Active window size is 10 minutes.\n final int standbyBucket = ACTIVE_INDEX;\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_Active\", 1);\n setStandbyBucket(standbyBucket, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Test with timing sessions out of window but still under max execution limit.\n final long expectedAlarmTime =\n (now - 18 * HOUR_IN_MILLIS) + 24 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 18 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 12 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 7 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 2 * HOUR_IN_MILLIS, 55 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(5 * MINUTE_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n // Timer has only been going for 5 minutes in the past 10 minutes, which is under the\n // window size limit, but the total execution time for the past 24 hours is 6 hours, so\n // the job no longer has quota.\n assertEquals(0, mQuotaController.getRemainingExecutionTimeLocked(jobStatus));\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testRequestGrantedPermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and allow it\n BasePermissionActivity.Result firstResult = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, null);\n\n // Expect the permission is granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {true});\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_EJ() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_EJ\", 1), null);\n }\n\n final int standbyBucket = WORKING_INDEX;\n setStandbyBucket(standbyBucket);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_WORKING_MS, 20 * MINUTE_IN_MILLIS);\n\n InOrder inOrder = inOrder(mAlarmManager);\n\n synchronized (mQuotaController.mLock) {\n // No sessions saved yet.\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 25 * HOUR_IN_MILLIS, 30 * MINUTE_IN_MILLIS, 1), true);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long end = now - (22 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS);\n final long expectedAlarmTime = now + 2 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n new TimingSession(now - 22 * HOUR_IN_MILLIS, end, 1), true);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (50 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 1), true);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 30 * MINUTE_IN_MILLIS, 6 * MINUTE_IN_MILLIS, 1), true);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n inOrder.verify(mAlarmManager, timeout(1000).times(0))\n .setWindow(anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_AllowedEqualsWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 20 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_EXEMPTED_MS,\n 10 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_EXEMPTED_MS, 10 * MINUTE_IN_MILLIS);\n // window size = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(EXEMPTED_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 30 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\r\n public void testAdminSaveSubscriptionAuthorized() throws Exception {\r\n saveJoePublisher();\r\n saveSamSyndicator();\r\n DatatypeFactory fac = DatatypeFactory.newInstance();\r\n List<Subscription> subs = new ArrayList<Subscription>();\r\n Subscription s = new Subscription();\r\n\r\n s.setMaxEntities(10);\r\n s.setBrief(false);\r\n GregorianCalendar gcal = new GregorianCalendar();\r\n gcal.setTimeInMillis(System.currentTimeMillis());\r\n gcal.add(Calendar.HOUR, 1);\r\n s.setExpiresAfter(fac.newXMLGregorianCalendar(gcal));\r\n s.setSubscriptionFilter(new SubscriptionFilter());\r\n s.getSubscriptionFilter().setFindBusiness(new FindBusiness());\r\n s.getSubscriptionFilter().getFindBusiness().setFindQualifiers(new FindQualifiers());\r\n s.getSubscriptionFilter().getFindBusiness().getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);\r\n s.getSubscriptionFilter().getFindBusiness().getName().add(new Name(UDDIConstants.WILDCARD, null));\r\n subs.add(s);\r\n Holder<List<Subscription>> items = new Holder<List<Subscription>>();\r\n items.value = subs;\r\n publisher.adminSaveSubscription(authInfoJoe(), TckPublisher.getSamPublisherId(), items);\r\n for (int i = 0; i < items.value.size(); i++) {\r\n tckSubscription.deleteSubscription(authInfoSam(), items.value.get(i).getSubscriptionKey());\r\n }\r\n\r\n deleteJoePublisher();\r\n deleteSamSyndicator();\r\n\r\n }", "@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n public void testShufflePermissions() throws Exception {\n JobConf conf = new JobConf();\n conf.set(CommonConfigurationKeys.FS_PERMISSIONS_UMASK_KEY, \"077\");\n conf.set(MRConfig.LOCAL_DIR, TEST_ROOT_DIR.getAbsolutePath());\n MapOutputFile mof = new MROutputFiles();\n mof.setConf(conf);\n TaskAttemptID attemptId = new TaskAttemptID(\"12345\", 1, TaskType.MAP, 1, 1);\n MapTask mockTask = mock(MapTask.class);\n doReturn(mof).when(mockTask).getMapOutputFile();\n doReturn(attemptId).when(mockTask).getTaskID();\n doReturn(new Progress()).when(mockTask).getSortPhase();\n TaskReporter mockReporter = mock(TaskReporter.class);\n doReturn(new Counter()).when(mockReporter).getCounter(\n any(TaskCounter.class));\n MapOutputCollector.Context ctx = new MapOutputCollector.Context(mockTask,\n conf, mockReporter);\n MapOutputBuffer<Object, Object> mob = new MapOutputBuffer<>();\n mob.init(ctx);\n mob.flush();\n mob.close();\n Path outputFile = mof.getOutputFile();\n FileSystem lfs = FileSystem.getLocal(conf);\n FsPermission perms = lfs.getFileStatus(outputFile).getPermission();\n Assert.assertEquals(\"Incorrect output file perms\",\n (short)0640, perms.toShort());\n Path indexFile = mof.getOutputIndexFile();\n perms = lfs.getFileStatus(indexFile).getPermission();\n Assert.assertEquals(\"Incorrect index file perms\",\n (short)0640, perms.toShort());\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1115,\"org.apache.commons.collections4.queue.AbstractQueueDecoratorEvoSuiteTest.test0\");\n PriorityQueue<Integer> priorityQueue0 = new PriorityQueue<Integer>();\n Queue<Integer> queue0 = UnmodifiableQueue.unmodifiableQueue((Queue<Integer>) priorityQueue0);\n boolean boolean0 = priorityQueue0.addAll((Collection<? extends Integer>) queue0);\n assertEquals(false, boolean0);\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Frequent() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Frequent\", 1), null);\n }\n\n // Frequent window size is 8 hours.\n final int standbyBucket = FREQUENT_INDEX;\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n final long expectedAlarmTime = start + 8 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Rare() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n // Rare window size is 24 hours.\n final int standbyBucket = RARE_INDEX;\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_Rare\", 1);\n setStandbyBucket(standbyBucket, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n\n // Prevent timing session throttling from affecting the test.\n setDeviceConfigInt(QcConstants.KEY_MAX_SESSION_COUNT_RARE, 50);\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 25 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(0, \"com.android.test\", standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n // Counting backwards, the first minute in the session is over the allowed time, so it\n // needs to be excluded.\n final long expectedAlarmTime =\n start + MINUTE_IN_MILLIS + 24 * HOUR_IN_MILLIS\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 2 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "@Test\n public void testAutoCreateQueueAfterRemoval() throws Exception {\n startScheduler();\n\n createBasicQueueStructureAndValidate();\n\n // Under e, there's only one queue, so e1/e have same capacity\n CSQueue e1 = cs.getQueue(\"root.e-auto.e1-auto\");\n Assert.assertEquals(1 / 5f, e1.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, e1.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(240 * GB,\n e1.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal e1.\n cs.removeQueue(e1);\n CSQueue e = cs.getQueue(\"root.e-auto\");\n Assert.assertEquals(1 / 5f, e.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, e.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(240 * GB,\n e.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal e.\n cs.removeQueue(e);\n CSQueue d = cs.getQueue(\"root.d-auto\");\n Assert.assertEquals(1 / 4f, d.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, d.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(300 * GB,\n d.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal d.\n cs.removeQueue(d);\n CSQueue c = cs.getQueue(\"root.c-auto\");\n Assert.assertEquals(1 / 3f, c.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, c.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(400 * GB,\n c.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal c.\n cs.removeQueue(c);\n CSQueue b = cs.getQueue(\"root.b\");\n Assert.assertEquals(1 / 2f, b.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, b.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(600 * GB,\n b.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check can't remove static queue b.\n try {\n cs.removeQueue(b);\n Assert.fail(\"Can't remove static queue b!\");\n } catch (Exception ex) {\n Assert.assertTrue(ex\n instanceof SchedulerDynamicEditException);\n }\n // Check a.\n CSQueue a = cs.getQueue(\"root.a\");\n Assert.assertEquals(1 / 2f, a.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, a.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(600 * GB,\n b.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_QuotaBump() {\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_ADDITIONAL_DURATION_MS, MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_WINDOW_SIZE_MS, 8 * HOUR_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Close to RARE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - 30 * SECOND_IN_MILLIS),\n 30 * SECOND_IN_MILLIS, 5), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 16 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 12 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 8 * HOUR_IN_MILLIS));\n // Far away from FREQUENT boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n // Overlap WORKING_SET boundary.\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 2 * HOUR_IN_MILLIS));\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 15 * MINUTE_IN_MILLIS));\n // Close to ACTIVE boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(RARE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS + 30 * SECOND_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(4 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n // ACTIVE window = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(ACTIVE_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n public void testRuntimeGroupGrantExpansion() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.RECEIVE_SMS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n\n String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS};\n\n // request only one permission from the 'SMS' permission group at runtime,\n // but two from this group are <uses-permission> in the manifest\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // We should now have been granted both of the permissions from this group.\n assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n }", "@Test\n\tpublic void testIsPermittedAll_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "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 }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "@Test(timeout = 60000)\n public void testAuditLogForAcls() throws Exception {\n final Configuration conf = new HdfsConfiguration();\n conf.setBoolean(DFSConfigKeys.DFS_NAMENODE_ACLS_ENABLED_KEY, true);\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.DummyAuditLogger.class.getName());\n final MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n Assert.assertTrue(TestAuditLogger.DummyAuditLogger.initialized);\n final FileSystem fs = cluster.getFileSystem();\n final Path p = new Path(\"/debug.log\");\n DFSTestUtil.createFile(fs, p, 1024, ((short) (1)), 0L);\n TestAuditLogger.DummyAuditLogger.resetLogCount();\n fs.getAclStatus(p);\n Assert.assertEquals(1, TestAuditLogger.DummyAuditLogger.logCount);\n // FS shell command '-getfacl' additionally calls getFileInfo() and then\n // followed by getAclStatus() only if the ACL bit is set. Since the\n // initial permission didn't have the ACL bit set, getAclStatus() is\n // skipped.\n DFSTestUtil.FsShellRun((\"-getfacl \" + (p.toUri().getPath())), 0, null, conf);\n Assert.assertEquals(2, TestAuditLogger.DummyAuditLogger.logCount);\n final List<AclEntry> acls = Lists.newArrayList();\n acls.add(AclTestHelpers.aclEntry(AclEntryScope.ACCESS, AclEntryType.USER, FsAction.ALL));\n acls.add(AclTestHelpers.aclEntry(AclEntryScope.ACCESS, AclEntryType.USER, \"user1\", FsAction.ALL));\n acls.add(AclTestHelpers.aclEntry(AclEntryScope.ACCESS, AclEntryType.GROUP, FsAction.READ_EXECUTE));\n acls.add(AclTestHelpers.aclEntry(AclEntryScope.ACCESS, AclEntryType.OTHER, FsAction.EXECUTE));\n fs.setAcl(p, acls);\n Assert.assertEquals(3, TestAuditLogger.DummyAuditLogger.logCount);\n // Since the file has ACL bit set, FS shell command '-getfacl' should now\n // call getAclStatus() additionally after getFileInfo().\n DFSTestUtil.FsShellRun((\"-getfacl \" + (p.toUri().getPath())), 0, null, conf);\n Assert.assertEquals(5, TestAuditLogger.DummyAuditLogger.logCount);\n fs.removeAcl(p);\n Assert.assertEquals(6, TestAuditLogger.DummyAuditLogger.logCount);\n List<AclEntry> aclsToRemove = Lists.newArrayList();\n aclsToRemove.add(AclTestHelpers.aclEntry(AclEntryScope.DEFAULT, AclEntryType.USER, \"user1\", FsAction.ALL));\n fs.removeAclEntries(p, aclsToRemove);\n fs.removeDefaultAcl(p);\n Assert.assertEquals(8, TestAuditLogger.DummyAuditLogger.logCount);\n // User ACL has been removed, FS shell command '-getfacl' should now\n // skip call to getAclStatus() after getFileInfo().\n DFSTestUtil.FsShellRun((\"-getfacl \" + (p.toUri().getPath())), 0, null, conf);\n Assert.assertEquals(9, TestAuditLogger.DummyAuditLogger.logCount);\n Assert.assertEquals(0, TestAuditLogger.DummyAuditLogger.unsuccessfulCount);\n } finally {\n cluster.shutdown();\n }\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_WorkingSet() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n\n JobStatus jobStatus = createJobStatus(\"testMaybeScheduleStartAlarmLocked_WorkingSet\", 1);\n setStandbyBucket(standbyBucket, jobStatus);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n // No sessions saved yet.\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long end = now - (2 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS);\n // Counting backwards, the quota will come back one minute before the end.\n final long expectedAlarmTime =\n end - MINUTE_IN_MILLIS + 2 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n new TimingSession(now - 2 * HOUR_IN_MILLIS, end, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (50 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 30 * MINUTE_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n\tpublic void testIsPermitted_7()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n public void testMaybeScheduleStartAlarmLocked_Never_EffectiveNotNever() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Never\", 1), null);\n }\n\n // The app is really in the NEVER bucket but is elevated somehow (eg via uidActive).\n setStandbyBucket(NEVER_INDEX);\n final int effectiveStandbyBucket = FREQUENT_INDEX;\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions out of window.\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 10 * HOUR_IN_MILLIS, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test with timing sessions in window but still in quota.\n final long start = now - (6 * HOUR_IN_MILLIS);\n final long expectedAlarmTime = start + 8 * HOUR_IN_MILLIS + mQcConstants.IN_QUOTA_BUFFER_MS;\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(start, 5 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Add some more sessions, but still in quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 3 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, 3 * MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Test when out of quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, MINUTE_IN_MILLIS, 1), false);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Alarm already scheduled, so make sure it's not scheduled again.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, effectiveStandbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testStartAlarmScheduled_JobCount_RateLimitingWindow() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n // Essentially disable session throttling.\n setDeviceConfigInt(QcConstants.KEY_MAX_SESSION_COUNT_WORKING, Integer.MAX_VALUE);\n setDeviceConfigInt(QcConstants.KEY_MAX_SESSION_COUNT_PER_RATE_LIMITING_WINDOW,\n Integer.MAX_VALUE);\n\n final int standbyBucket = WORKING_INDEX;\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n\n // No sessions saved yet.\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // Ran jobs up to the job limit. All of them should be allowed to run.\n for (int i = 0; i < mQcConstants.MAX_JOB_COUNT_PER_RATE_LIMITING_WINDOW; ++i) {\n JobStatus job = createJobStatus(\"testStartAlarmScheduled_JobCount_AllowedTime\", i);\n setStandbyBucket(WORKING_INDEX, job);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job, null);\n assertTrue(job.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n mQuotaController.prepareForExecutionLocked(job);\n }\n advanceElapsedClock(SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job, null, false);\n }\n advanceElapsedClock(SECOND_IN_MILLIS);\n }\n // Start alarm shouldn't have been scheduled since the app was in quota up until this point.\n verify(mAlarmManager, timeout(1000).times(0)).setWindow(\n anyInt(), anyLong(), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n\n // The app is now out of job count quota\n JobStatus throttledJob = createJobStatus(\n \"testStartAlarmScheduled_JobCount_AllowedTime\", 42);\n setStandbyBucket(WORKING_INDEX, throttledJob);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(throttledJob, null);\n }\n assertFalse(throttledJob.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA));\n\n ExecutionStats stats;\n synchronized (mQuotaController.mLock) {\n stats = mQuotaController.getExecutionStatsLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n final long expectedWorkingAlarmTime = stats.jobRateLimitExpirationTimeElapsed;\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedWorkingAlarmTime), anyLong(),\n eq(TAG_QUOTA_CHECK), any(), any());\n }", "boolean needsStoragePermission();", "@Test\n\tpublic void testIsPermitted_9()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "private List<IPSAcl> testSave(List<IPSAcl> aclList) throws Exception\n {\n // modify and add something\n List<IPSGuid> aclGuids = new ArrayList<IPSGuid>();\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n aclGuids.add(aclImpl.getGUID());\n aclImpl.setDescription(\"modified\");\n for (IPSAclEntry entry : aclImpl.getEntries())\n entry.addPermission(PSPermissions.DELETE);\n\n PSAclEntryImpl newEntry = new PSAclEntryImpl();\n newEntry.setPrincipal(new PSTypedPrincipal(\"test1\",\n PrincipalTypes.ROLE));\n newEntry.addPermission(PSPermissions.DELETE);\n aclImpl.addEntry(newEntry);\n }\n\n IPSAclService aclService = PSAclServiceLocator.getAclService();\n aclService.saveAcls(aclList);\n List<IPSAcl> loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n // check basic roundtrip\n aclService.saveAcls(aclList);\n loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n // remove a permission\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n for (IPSAclEntry entry : aclImpl.getEntries())\n {\n entry.removePermission(PSPermissions.DELETE);\n assertFalse(entry.checkPermission(PSPermissions.DELETE));\n }\n }\n\n aclService.saveAcls(aclList);\n loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n List<IPSAclEntry> entries = new ArrayList<IPSAclEntry>(\n aclImpl.getEntries());\n for (IPSAclEntry entry : entries)\n {\n if (!aclImpl.isOwner(entry.getPrincipal()))\n {\n aclImpl.removeEntry((PSAclEntryImpl)entry);\n assertTrue(aclImpl.findEntry(entry.getPrincipal()) == null);\n }\n }\n }\n\n aclService.saveAcls(aclList);\n loadList = aclService.loadAcls(aclGuids);\n assertEquals(aclList, loadList);\n\n return loadList;\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_QuotaBump_CrucialBumps() {\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_ADDITIONAL_DURATION_MS, MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_QUOTA_BUMP_WINDOW_SIZE_MS, 8 * HOUR_IN_MILLIS);\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (25 * HOUR_IN_MILLIS),\n 30 * MINUTE_IN_MILLIS, 25), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 16 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 12 * HOUR_IN_MILLIS));\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 8 * HOUR_IN_MILLIS));\n // Without the valid quota bumps, the app would only 3 minutes until the quota was consumed.\n // The quota bumps provide enough quota to bridge the gap between the two earliest sessions.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 1), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS),\n 2 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS, 1), false);\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE)\n .add(new QuotaBump(now - 15 * MINUTE_IN_MILLIS));\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (9 * MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 1), false);\n\n setStandbyBucket(FREQUENT_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(2 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(7 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test(expected = org.jsecurity.authz.AuthorizationException.class)\n\tpublic void testCheckPermissions_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Before\n public void setUp() {\n permissionsS.add(EntityUtil.getSamplePermission());\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 }" ]
[ "0.7114228", "0.70721686", "0.69828767", "0.69523686", "0.68219477", "0.65247077", "0.60833496", "0.60626733", "0.6036476", "0.59708095", "0.5789963", "0.5772784", "0.57648766", "0.5754325", "0.57378113", "0.5687965", "0.5631458", "0.5605046", "0.55887026", "0.55856484", "0.5575964", "0.556969", "0.55304265", "0.55250645", "0.5488291", "0.54863334", "0.5479298", "0.5475865", "0.5464867", "0.54605186", "0.5445208", "0.5441447", "0.54241467", "0.5417271", "0.5413462", "0.5400182", "0.5400155", "0.5389261", "0.53826225", "0.53792244", "0.5363535", "0.5358455", "0.5322891", "0.5309022", "0.5304521", "0.53044957", "0.5302702", "0.52916443", "0.52856314", "0.5260806", "0.5232236", "0.522787", "0.52213156", "0.52159804", "0.5212097", "0.5209947", "0.5195717", "0.5195108", "0.51929533", "0.51846504", "0.5182208", "0.5162493", "0.51601934", "0.5159087", "0.51527286", "0.5150602", "0.51502436", "0.5146704", "0.5146493", "0.5145832", "0.5144435", "0.5115833", "0.5115425", "0.51139015", "0.5111446", "0.5107087", "0.51064336", "0.51012665", "0.5099445", "0.5097809", "0.50963426", "0.5094681", "0.5083259", "0.5076789", "0.5073652", "0.5071823", "0.5065281", "0.5063321", "0.50629205", "0.50576013", "0.5052417", "0.5046555", "0.50299865", "0.50239474", "0.5021143", "0.5020037", "0.5019766", "0.50185317", "0.5017636", "0.50138515" ]
0.6820242
5
/ Test different rules for temporary queues. The more generic rule first is used, so both requests are allowed.
public void testFirstNamedSecondTemporaryQueueDenied() { ObjectProperties named = new ObjectProperties(_queueName); ObjectProperties namedTemporary = new ObjectProperties(_queueName); namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named)); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary)); _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named); _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary); assertEquals(2, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named)); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testFirstTemporarySecondNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "public void testTemporaryQueueFirstConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n\n // should not matter if the temporary permission is processed first or last\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n }", "public void testTemporaryUnnamedQueueConsume()\n {\n ObjectProperties temporary = new ObjectProperties();\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties();\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n _ruleSet.grant(0, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n assertEquals(1, _ruleSet.getRuleCount());\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n \n // defer to global if exists, otherwise default answer - this is handled by the security manager\n assertEquals(Result.DEFER, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n }", "public void testFirstTemporarySecondDurableThirdNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n ObjectProperties namedDurable = new ObjectProperties(_queueName);\n namedDurable.put(ObjectProperties.Property.DURABLE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedDurable);\n _ruleSet.grant(3, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(3, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n }", "public void testTemporaryQueueLastConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n\n // should not matter if the temporary permission is processed first or last\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n }", "@Test (timeout=5000)\n public void test2Queue() throws IOException {\n Configuration conf = getConfiguration();\n\n QueueManager manager = new QueueManager(conf);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n\n Queue root = manager.getRoot();\n \n // test children queues\n assertTrue(root.getChildren().size() == 2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertThat(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString()).isEqualTo(\n \"Users [user1, user2] and members of \" +\n \"the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n\n assertThat(firstSubQueue.getState().getStateName()).isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName()).isEqualTo(\"stopped\");\n assertTrue(manager.isRunning(\"first\"));\n assertFalse(manager.isRunning(\"second\"));\n\n assertThat(firstSubQueue.getSchedulingInfo()).isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n // test leaf queue\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n }", "@Test\n public void testSchedulingPolicy() {\n String queueName = \"single\";\n\n FSQueueMetrics metrics = FSQueueMetrics.forQueue(ms, queueName, null, false,\n CONF);\n metrics.setSchedulingPolicy(\"drf\");\n checkSchedulingPolicy(queueName, \"drf\");\n\n // test resetting the scheduling policy\n metrics.setSchedulingPolicy(\"fair\");\n checkSchedulingPolicy(queueName, \"fair\");\n }", "@Test (timeout=5000)\n public void testQueue() throws IOException {\n File f = null;\n try {\n f = writeFile();\n\n QueueManager manager = new QueueManager(f.getCanonicalPath(), true);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n Queue root = manager.getRoot();\n assertThat(root.getChildren().size()).isEqualTo(2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertEquals(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString(),\n \"Users [user1, user2] and members of the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n assertThat(secondSubQueue.getProperties().getProperty(\"key\"))\n .isEqualTo(\"value\");\n assertThat(secondSubQueue.getProperties().getProperty(\"key1\"))\n .isEqualTo(\"value1\");\n // test status\n assertThat(firstSubQueue.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n\n // test user access\n\n UserGroupInformation mockUGI = mock(UserGroupInformation.class);\n when(mockUGI.getShortUserName()).thenReturn(\"user1\");\n String[] groups = { \"group1\" };\n when(mockUGI.getGroupNames()).thenReturn(groups);\n assertTrue(manager.hasAccess(\"first\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"second\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n when(mockUGI.getShortUserName()).thenReturn(\"user3\");\n assertTrue(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n\n QueueAclsInfo[] qai = manager.getQueueAcls(mockUGI);\n assertThat(qai.length).isEqualTo(1);\n // test refresh queue\n manager.refreshQueues(getConfiguration(), null);\n\n iterator = root.getChildren().iterator();\n Queue firstSubQueue1 = iterator.next();\n Queue secondSubQueue1 = iterator.next();\n // tets equal method\n assertThat(firstSubQueue).isEqualTo(firstSubQueue1);\n assertThat(firstSubQueue1.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue1.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n assertThat(firstSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n\n // test JobQueueInfo\n assertThat(firstSubQueue.getJobQueueInfo().getQueueName())\n .isEqualTo(\"first\");\n assertThat(firstSubQueue.getJobQueueInfo().getState().toString())\n .isEqualTo(\"running\");\n assertThat(firstSubQueue.getJobQueueInfo().getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getJobQueueInfo().getChildren().size())\n .isEqualTo(0);\n // test\n assertThat(manager.getSchedulerInfo(\"first\")).isEqualTo(\"queueInfo\");\n Set<String> queueJobQueueInfos = new HashSet<String>();\n for(JobQueueInfo jobInfo : manager.getJobQueueInfos()){\n \t queueJobQueueInfos.add(jobInfo.getQueueName());\n }\n Set<String> rootJobQueueInfos = new HashSet<String>();\n for(Queue queue : root.getChildren()){\n \t rootJobQueueInfos.add(queue.getJobQueueInfo().getQueueName());\n }\n assertEquals(queueJobQueueInfos, rootJobQueueInfos);\n // test getJobQueueInfoMapping\n assertThat(manager.getJobQueueInfoMapping().get(\"first\").getQueueName())\n .isEqualTo(\"first\");\n // test dumpConfiguration\n Writer writer = new StringWriter();\n\n Configuration conf = getConfiguration();\n conf.unset(DeprecatedQueueConfigurationParser.MAPRED_QUEUE_NAMES_KEY);\n QueueManager.dumpConfiguration(writer, f.getAbsolutePath(), conf);\n String result = writer.toString();\n assertTrue(result\n .indexOf(\"\\\"name\\\":\\\"first\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"user1,user2 group1,group2\\\",\\\"acl_administer_jobs\\\":\\\"user3,user4 group3,group4\\\",\\\"properties\\\":[],\\\"children\\\":[]\") > 0);\n\n writer = new StringWriter();\n QueueManager.dumpConfiguration(writer, conf);\n result = writer.toString();\n assertTrue(result.contains(\"{\\\"queues\\\":[{\\\"name\\\":\\\"default\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"*\\\",\\\"acl_administer_jobs\\\":\\\"*\\\",\\\"properties\\\":[],\\\"children\\\":[]},{\\\"name\\\":\\\"q1\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[],\\\"children\\\":[{\\\"name\\\":\\\"q1:q2\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"capacity\\\",\\\"value\\\":\\\"20\\\"}\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"user-limit\\\",\\\"value\\\":\\\"30\\\"}\"));\n assertTrue(result.contains(\"],\\\"children\\\":[]}]}]}\"));\n // test constructor QueueAclsInfo\n QueueAclsInfo qi = new QueueAclsInfo();\n assertNull(qi.getQueueName());\n\n } finally {\n if (f != null) {\n f.delete();\n }\n }\n }", "@Test\n public void testMaxQueue() throws Throwable {\n internalMaxQueue(\"core\");\n internalMaxQueue(\"openwire\");\n internalMaxQueue(\"amqp\");\n }", "private void createQoSRules() {\n JsonObject settings = new JsonObject();\n JsonObject config = new JsonObject();\n JsonObject sentinels = new JsonObject();\n JsonObject rules = new JsonObject();\n\n // config\n config.put(\"percentile\", 75);\n config.put(\"quorum\", 40);\n config.put(\"period\", 3);\n config.put(\"minSampleCount\", 1000);\n config.put(\"minSentinelCount\", 5);\n settings.put(\"config\", config);\n\n // sentinels\n JsonObject sentinel1 = new JsonObject();\n sentinel1.put(\"percentile\", 50);\n JsonObject sentinel2 = new JsonObject();\n JsonObject sentinel3 = new JsonObject();\n JsonObject sentinel4 = new JsonObject();\n JsonObject sentinel5 = new JsonObject();\n sentinels.put(\"sentinelA\", sentinel1);\n sentinels.put(\"sentinelB\", sentinel2);\n sentinels.put(\"sentinelC\", sentinel3);\n sentinels.put(\"sentinelD\", sentinel4);\n sentinels.put(\"sentinelE\", sentinel5);\n settings.put(\"sentinels\", sentinels);\n\n // rules\n JsonObject rule1 = new JsonObject();\n rule1.put(\"reject\", 1.3);\n rule1.put(\"warn\", 1.1);\n rules.put(\"/playground/myapi1/v1/.*\", rule1);\n\n JsonObject rule2 = new JsonObject();\n rule2.put(\"reject\", 1.7);\n rules.put(\"/playground/myapi2/v1/.*\", rule2);\n\n settings.put(\"rules\", rules);\n\n // PUT the QoS rules\n given().body(settings.toString()).put(\"server/admin/v1/qos\").then().assertThat().statusCode(200);\n }", "@Test\n public void testQueueLimiting() throws Exception {\n // Block the underlying fake proxy from actually completing any calls.\n DelayAnswer delayer = new DelayAnswer(LOG);\n Mockito.doAnswer(delayer).when(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n \n // Queue up the maximum number of calls.\n int numToQueue = LIMIT_QUEUE_SIZE_BYTES / FAKE_DATA.length;\n for (int i = 1; i <= numToQueue; i++) {\n ch.sendEdits(1L, (long)i, 1, FAKE_DATA);\n }\n \n // The accounting should show the correct total number queued.\n assertEquals(LIMIT_QUEUE_SIZE_BYTES, ch.getQueuedEditsSize());\n \n // Trying to queue any more should fail.\n try {\n ch.sendEdits(1L, numToQueue + 1, 1, FAKE_DATA).get(1, TimeUnit.SECONDS);\n fail(\"Did not fail to queue more calls after queue was full\");\n } catch (ExecutionException ee) {\n if (!(ee.getCause() instanceof LoggerTooFarBehindException)) {\n throw ee;\n }\n }\n \n delayer.proceed();\n\n // After we allow it to proceeed, it should chug through the original queue\n GenericTestUtils.waitFor(new Supplier<Boolean>() {\n @Override\n public Boolean get() {\n return ch.getQueuedEditsSize() == 0;\n }\n }, 10, 1000);\n }", "@Test\n public void testAutoCreateQueueAfterRemoval() throws Exception {\n startScheduler();\n\n createBasicQueueStructureAndValidate();\n\n // Under e, there's only one queue, so e1/e have same capacity\n CSQueue e1 = cs.getQueue(\"root.e-auto.e1-auto\");\n Assert.assertEquals(1 / 5f, e1.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, e1.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(240 * GB,\n e1.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal e1.\n cs.removeQueue(e1);\n CSQueue e = cs.getQueue(\"root.e-auto\");\n Assert.assertEquals(1 / 5f, e.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, e.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(240 * GB,\n e.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal e.\n cs.removeQueue(e);\n CSQueue d = cs.getQueue(\"root.d-auto\");\n Assert.assertEquals(1 / 4f, d.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, d.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(300 * GB,\n d.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal d.\n cs.removeQueue(d);\n CSQueue c = cs.getQueue(\"root.c-auto\");\n Assert.assertEquals(1 / 3f, c.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, c.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(400 * GB,\n c.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal c.\n cs.removeQueue(c);\n CSQueue b = cs.getQueue(\"root.b\");\n Assert.assertEquals(1 / 2f, b.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, b.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(600 * GB,\n b.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check can't remove static queue b.\n try {\n cs.removeQueue(b);\n Assert.fail(\"Can't remove static queue b!\");\n } catch (Exception ex) {\n Assert.assertTrue(ex\n instanceof SchedulerDynamicEditException);\n }\n // Check a.\n CSQueue a = cs.getQueue(\"root.a\");\n Assert.assertEquals(1 / 2f, a.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, a.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(600 * GB,\n b.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n }", "@Test(timeout = 4000)\n public void test72() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n connectionFactories0.addQueueConnectionFactory(queueConnectionFactory0);\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n assertEquals(1, queueConnectionFactoryArray0.length);\n }", "@Test\n void should_call_rule_executor_when_empty_rules_to_run() {\n when(recStatusParams.getMultipleAlgorithmResult()).thenReturn(multipleAlgorithmResult);\n\n products.add(product1);\n when(multipleAlgorithmResult.getRecProducts()).thenReturn(products);\n\n //Empty rule set\n when(activeBundle.getPlacementFilteringRuleIds()).thenReturn(ruleIds);\n\n filteringRulesHandler.handleTask(recInputParams, recStatusParams, activeBundle);\n\n verify(merchandisingRuleExecutor, atMostOnce()).getFilteredRecommendations(products, ruleIds, Collections.emptyMap(), recCycleStatus);\n verify(recStatusParams, never()).setFilteringRulesResult(filteringRulesResult);\n }", "public void run() {\n\n RuleThread currntThrd;\n\t\tRuleQueue ruleQueue;\n \tRuleThread tempThrd;\n\t //\tRuleThread t;\n\t\tRuleQueue currRuleQueue;\n\n\t\tint ruleOperatingMode =0;\n\t\tint\ttempThrdPriority =0;\n\t\twhile(true){\n //if(ruleSchedulerDebug)\n\t\t\t // System.out.println(\"Looping in rulescheduler\");\n\n // When there is no rule at imm rule queue and process deferred rule\n\t\t\t// flag is false, then go sleep.\n\n if( deferredFlag == false && temporalRuleQueue.getHead() == null && immRuleQueue.getHead() == null){\n if(ruleSchedulerDebug) {\n\t\t\t\t\tSystem.out.println(\"There is no rule in any of these rule queues.\");\n System.out.println(\"Scheduler sleep\");\n }\n synchronized (this){\n\t\t\t\t\ttry{\n\t\t\t\t\t\twait();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InterruptedException ie) {\n\t\t\t\t\t\tif(ruleSchedulerDebug)\n\t\t\t\t\t\t\tSystem.out.println(\"InterruptedException caught\");\n\t\t\t\t\t\tie.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(ruleSchedulerDebug)\n\t\t\t\t\tSystem.out.println(\"Scheduler awake\");\n }\n\n // Execute the rules in temporal rule queue\n if(temporalRuleQueue.getHead() != null){\n processTemporalRule() ;\n\n }\n\n // Finish executing all the deferred rules\n\n\t\t\tif( deferredFlag == true && immRuleQueue.getHead() == null){\n\n \t\t\t// transaction complete\n\t \t\t// reset the deferredFlag to be false when all the deferred rules are already executed\n\n\t\t\t\tdeferredFlag = false \t;\n\t\t\t\tif(deffRuleQueueOne.getHead() == null){\n\t\t\t\t\tif(ruleSchedulerDebug)\n\t\t\t\t\t\tSystem.out.println(\"All rules in rule queues are already executed.\");\n\t\t\t\t}\n\t\t\t}\n\n\n\n // Start executing a deferred rule.\n else if ( deferredFlag == true && immRuleQueue.getHead() != null){\n processRuleQueue(deffRuleQueueOne);\n\n\t\t\t}\n\n //****************************************************************\n\t\t\t// When there is a rule at imm rule queue and process deferred rule\n\t\t\t// \tflag is false, then trigger a rule.\n\n else if( immRuleQueue.getHead() != null && deferredFlag == false){\n processRuleQueue(immRuleQueue);\n }\n\t\t}\n\t}", "protected void processTemporalRule(){\n RuleThread currntThrd;\n Thread currntThrdParent; // the parent of the current thread;\n int currntOperatingMode;\n int currntThrdPriority ;\n\n if( temporalRuleQueue.getHead()!= null){\n\n //If the rule thread is the top level, trigger the rule.\n currntThrd=temporalRuleQueue.getHead();\n while(currntThrd!= null){\n currntThrdPriority = currntThrd.getPriority ();\n currntThrdParent = currntThrd.getParent();\n\n if (currntThrd.getOperatingMode() == RuleOperatingMode.READY\n && !(currntThrd.getParent() == applThrd ||\n currntThrd.getParent().getClass().getName().equals(\"EventDispatchThread\")||\n currntThrd.getParent().getName ().equals (Constant.LEDReceiverThreadName)\n )){\n if(ruleSchedulerDebug)\n\t\t \t\t System.out.println(\"Changing mode of \"+currntThrd.getName()+\"from READY to EXE\");\n\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\t\t\t\t currntThrd.setScheduler(this);\n currntThrd.start();\n int rulePriority = 0;\n currntThrdParent = currntThrd;\n if(currntThrdParent instanceof RuleThread){\n rulePriority = currntThrd.getRulePriority();\n }\n currntThrd = currntThrd.next;\n while(currntThrd != null && currntThrd instanceof RuleThread &&\n currntThrd.getRulePriority() == rulePriority\n \t\t\t\t\t\t\t && currntThrd.getParent() == currntThrdParent ){\n if(ruleSchedulerDebug)\n \t\t\t System.out.print(\" start child thread =>\");\n\n currntThrd.print();\n currntThrd.setScheduler(this);\n if(\tcurrntThrd.getOperatingMode()== RuleOperatingMode.READY ){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n currntThrd.start();\n }\n \t\t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n // case 1.2:\n else if (currntThrd != null &&\tcurrntThrd.getOperatingMode() == RuleOperatingMode.EXE){\n \t\t\t\tcurrntThrd = currntThrd.next;\n\n }\n // case 1.3:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.WAIT){\n\t\t\t\t if(currntThrd.next == null){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\n// ;\n // All its childs has been completed.\n // This currntThread's operating mode will be changed to FINISHED.\n }\n\t\t\t\t\telse{\n // check whether its neighbor is its child\n\t\t\t\t\t\tif(currntThrd.next.getParent() == currntThrdParent){\n if(ruleSchedulerDebug){\n\t \t\t\t\t\t System.out.println(\"\\n\"+currntThrd.getName()+\" call childRecurse \"+currntThrd.next.getName());\n\t\t \t\t\t\t\tcurrntThrd.print();\n }\n\n childRecurse(currntThrd, temporalRuleQueue);\n }\n }\n currntThrd = currntThrd.next;\n }\n // case 1.4:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.FINISHED){\n if(ruleSchedulerDebug){\n\t\t\t\t\t System.out.println(\"delete \"+currntThrd.getName() +\" rule thread from rule queue.\");\n\t\t\t\t\t\tcurrntThrd.print();\n }\n processRuleList.deleteRuleThread(currntThrd,temporalRuleQueue);\n \tcurrntThrd = currntThrd.next;\n }\n else{\n \t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n }\n }", "protected abstract List<BlockingQueue<CallRunner>> getQueues();", "@Test\n public void createRule() {\n // BEGIN: com.azure.messaging.servicebus.servicebusrulemanagerclient.createRule\n RuleFilter trueRuleFilter = new TrueRuleFilter();\n CreateRuleOptions options = new CreateRuleOptions(trueRuleFilter);\n ruleManager.createRule(\"new-rule\", options);\n // END: com.azure.messaging.servicebus.servicebusrulemanagerclient.createRule\n\n ruleManager.close();\n }", "public Set<StorageQueue> getMatchingStorageQueues(String routingKey) {\n Set<StorageQueue> matchingQueues = new HashSet<>();\n\n if (StringUtils.isNotEmpty(routingKey)) {\n\n // constituentDelimiter is quoted to avoid making the delimiter a regex symbol\n String[] constituents = routingKey.split(Pattern.quote(constituentsDelimiter),-1);\n\n int noOfCurrentMaxConstituents = constituentTables.size();\n\n // If given routingKey has more constituents than any subscriber has, then create constituent tables\n // for those before collecting matching subscribers\n if (constituents.length > noOfCurrentMaxConstituents) {\n for (int i = noOfCurrentMaxConstituents; i < constituents.length; i++) {\n addEmptyConstituentTable();\n }\n }\n\n // Keeps the results of 'AND' operations between each bit sets\n BitSet andBitSet = new BitSet(storageQueueList.size());\n\n // Since BitSet is initialized with false for each element we need to flip\n andBitSet.flip(0, storageQueueList.size());\n\n // Get corresponding bit set for each constituent in the routingKey and operate bitwise AND operation\n for (int constituentIndex = 0; constituentIndex < constituents.length; constituentIndex++) {\n String constituent = constituents[constituentIndex];\n Map<String, BitSet> constituentTable = constituentTables.get(constituentIndex);\n\n BitSet bitSetForAnd = constituentTable.get(constituent);\n\n if (null == bitSetForAnd) {\n // The constituent is not found in the table, hence matching with 'other' constituent\n bitSetForAnd = constituentTable.get(OTHER_CONSTITUENT);\n }\n\n andBitSet.and(bitSetForAnd);\n }\n\n // If there are more constituent tables, get the null constituent in each of them and operate bitwise AND\n for (int constituentIndex = constituents.length; constituentIndex < constituentTables.size();\n constituentIndex++) {\n Map<String, BitSet> constituentTable = constituentTables.get(constituentIndex);\n andBitSet.and(constituentTable.get(NULL_CONSTITUENT));\n }\n\n\n // Valid queues are filtered, need to pick from queue pool\n int nextSetBitIndex = andBitSet.nextSetBit(0);\n while (nextSetBitIndex > -1) {\n matchingQueues.add(storageQueueList.get(nextSetBitIndex));\n nextSetBitIndex = andBitSet.nextSetBit(nextSetBitIndex + 1);\n }\n\n } else {\n log.warn(\"Cannot retrieve storage queues via bitmap handler since routingKey to match is empty\");\n }\n\n return matchingQueues;\n }", "@Ignore(\"Надо переделать!!\")\n @Test\n public void testFull() throws Exception {\n // SYSTEM.DEF.SVRCONN/TCP/vs338(1414)\n // SYSTEM.ADMIN.SVRCONN/TCP/vs338(1414)\n // UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\n\n MQQueueConnectionFactory cf = new MQQueueConnectionFactory();\n\n\n // Config\n cf.setHostName(\"vs338\");\n cf.setPort(1414);\n cf.setTransportType(WMQConstants.WMQ_CM_CLIENT);\n cf.setQueueManager(\"QM_MBROKER10_TEST\");\n cf.setChannel(\"SYSTEM.ADMIN.SVRCONN\");\n\n SingleActionJob job =\n SingleActionJobBuilder.create()\n .withClass(MovementCreateTask.class)\n\n// .withProps(\n// \"mq.type = queue\\n\" +\n// \"mq.host = vs338\\n\" +\n// \"mq.port = 1414\\n\" +\n// \"mq.queueManager = QM_MBROKER10_TEST\\n\" +\n// \"mq.channel = SYSTEM.DEF.SVRCONN\\n\" +\n// \"mq.batchSize = 1\\n\" + //todo\n// \"mq.topics = LIRQ!!!!:UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF:UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\"+\n// \";BALIRQ:UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF:UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\\n\"+\n// \"mq.user=er22228\\n\" +\n// \"mq.password=Vugluskr6\"\n//\n// )//;MIDAS_UPDATE:UCBRU.ADP.BARSGL.V4.ACDENO.MDSUPD.NOTIF\n\n .build();\n jobService.executeJob(job);\n \n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n\n }", "@Test\n public void testSubsequentRunsWithUnsatisfiableConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable constraint\");\n // set constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }", "@Test\n public void when_wmOnSingleQueueOnly_then_emittedAfterDelay_multipleWm() {\n for (int time = 0; time < 40; time++) {\n add(q1, wm(100 + time));\n Object[] expectedItems = time < 16 ? new Object[0] : new Object[]{wm(time + 100 - 16)};\n drainAndAssert(time, MADE_PROGRESS, expectedItems);\n }\n }", "@Test\n public void testSetValidQueueItem() throws Exception {\n List<MediaSessionCompat.QueueItem> queue = QueueHelper.getPlayingQueueFromSearch(\n \" \", null, provider);\n\n int expectedItemIndex = queue.size() - 1;\n MediaSessionCompat.QueueItem expectedItem = queue.get(expectedItemIndex);\n // Latch for 3 tests\n CountDownLatch latch = new CountDownLatch(3);\n QueueManager queueManager = createQueueManagerWithValidation(latch, expectedItemIndex,\n queue);\n\n // test 1: set the current queue\n queueManager.setCurrentQueue(\"Queue 1\", queue);\n\n // test 2: set queue index to the expectedItem using its queueId\n assertTrue(queueManager.setCurrentQueueItem(expectedItem.getQueueId()));\n\n // test 3: set queue index to the expectedItem using its mediaId\n assertTrue(queueManager.setCurrentQueueItem(expectedItem.getDescription().getMediaId()));\n\n latch.await(5, TimeUnit.SECONDS);\n }", "public static void checkQueue(){\n if(Duel.getLobby().getQueue().size() >= 2){\n Duel.getGameManager().startingAGame();\n// for(Player player : Bukkit.getOnlinePlayers()){\n// if(Lobby.getQueue().get(0).equals(player.getUniqueId()) || Lobby.getQueue().get(1).equals(player.getUniqueId())){\n// Duel.getGameManager().startingAGame();\n// }\n// for(UUID uuid : Lobby.getQueue()){\n// Duel.getGameManager().startingAGame();\n// }\n }\n }", "@Test\n public void testEnqueue() {\n Queue queue = new Queue();\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n queue.enqueue(testParams[3]);\n queue.enqueue(testParams[4]);\n queue.enqueue(testParams[5]);\n\n Object[] expResult = {testParams[1], testParams[2], testParams[3], testParams[4], testParams[5]};\n\n // call tested method\n Object[] actualResult = new Object[queue.getSize()];\n int len = queue.getSize();\n for(int i = 0; i < len; i++){\n actualResult[i] = queue.dequeue();\n }\n\n // compare expected result with actual result\n assertArrayEquals(expResult, actualResult);\n }", "@Test\n @DisplayName(\"Testing offer StringQueue\")\n public void testOfferStringQueue() {\n assertEquals(queue.offer(\"Test\"), true);\n assertEquals(queue.offer(\"Test2\"), true);\n assertEquals(queue.offer(\"Test3\"), true);\n assertEquals(queue.offer(\"Test4\"), true);\n assertEquals(queue.offer(\"Test5\"), true);\n assertEquals(queue.offer(\"Test6\"), true);\n assertEquals(queue.offer(\"Test6\"), false);\n }", "@Test\n public void testTimerTracking_TempAllowlisting() {\n // None of these should be affected purely by the temp allowlist changing.\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n JobStatus job1 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 1);\n JobStatus job2 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 2);\n JobStatus job3 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 3);\n JobStatus job4 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 4);\n JobStatus job5 = createJobStatus(\"testTimerTracking_TempAllowlisting\", 5);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job1, null);\n }\n assertNull(mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(job1);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job1, job1, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n // Job starts after app is added to temp allowlist and stops before removal.\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job2, null);\n mQuotaController.prepareForExecutionLocked(job2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job2, null, false);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts after app is added to temp allowlist and stops after removal,\n // before grace period ends.\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job3, null);\n mQuotaController.prepareForExecutionLocked(job3);\n }\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n long elapsedGracePeriodMs = 2 * SECOND_IN_MILLIS;\n advanceElapsedClock(elapsedGracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job3, null, false);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS + elapsedGracePeriodMs, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n elapsedGracePeriodMs += SECOND_IN_MILLIS;\n\n // Job starts during grace period and ends after grace period ends\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job4, null);\n mQuotaController.prepareForExecutionLocked(job4);\n }\n final long remainingGracePeriod = gracePeriodMs - elapsedGracePeriodMs;\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n advanceElapsedClock(remainingGracePeriod);\n // Wait for handler to update Timer\n // Can't directly evaluate the message because for some reason, the captured message returns\n // the wrong 'what' even though the correct message goes to the handler and the correct\n // path executes.\n verify(handler, timeout(gracePeriodMs + 5 * SECOND_IN_MILLIS)).handleMessage(any());\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n expected.add(createTimingSession(start, remainingGracePeriod + 10 * SECOND_IN_MILLIS, 1));\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job4, job4, true);\n }\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts and runs completely after temp allowlist grace period.\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job5, null);\n mQuotaController.prepareForExecutionLocked(job5);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job5, job5, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "void addToQueuing(int tu){\n\t\tfor(Request req : queue.list){\n\t\t\tif(req.getReqTime() * 2 > tu){\t//大于当前时间的就不管了\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(req.getValid() == true){\t//如果没被删除,拷贝一份,删之,并将拷贝添加到Queuing里面\n\t\t\t\tRequest tmp = req.cloneAnObj();\t\t//克隆一个新的对象\n\t\t\t\treq.setValid(false);\n\t\t\t\tqueuing.list.add(tmp);\t//可以用引用对Queuing进行操作\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testModifyingQueues() throws IOException, InvalidHeaderException, InterruptedException, ExecutionException {\n\t\tfinal String[] names = { \"queue 1\", \"queue 2\", \"queue 3\", \"queue 4\", \"queue 5\", \"queue 6\" };\n\t\tfinal Status[] results = { Status.SUCCESS, Status.SUCCESS, Status.SUCCESS, Status.QUEUE_NOT_EMPTY, Status.QUEUE_EXISTS, \n\t\t\t\tStatus.QUEUE_NOT_EXISTS };\n\t\t\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < names.length; i ++) {\n\t\t\t\t\tboolean result = i > 2 ? false : true; \n\t\t\t\t\t\n\t\t\t\t\tif (i % 2 == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.CreateQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\n\t\t\t\t\t\t} \n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.DeleteQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\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}, Boolean.TRUE);\n\t\t\n\t\tQueueModificationRequest request;\n\t\t// Get the request\n\t\tfor (int i = 0; i <names.length; i++) {\n\t\t\trequest = (QueueModificationRequest) this.getMessage(channel);\n\t\t\tassertEquals(names[i], request.getQueueName());\n\t\t\tthis.sendMessage(new RequestResponse(results[i]), channel);\n\t\t}\n\t\t\n\t\t\n\t\tresult.get();\n\t}", "@Test(timeout = 4000)\n public void test75() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.enumerateQueueConnectionFactory();\n connectionFactories0.validate();\n XAConnectionFactory xAConnectionFactory0 = new XAConnectionFactory();\n connectionFactories0.addXAConnectionFactory(xAConnectionFactory0);\n TopicConnectionFactory topicConnectionFactory0 = new TopicConnectionFactory();\n connectionFactories0.addTopicConnectionFactory(topicConnectionFactory0);\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n connectionFactories0.setQueueConnectionFactory(queueConnectionFactoryArray0);\n XAConnectionFactory[] xAConnectionFactoryArray0 = connectionFactories0.getXAConnectionFactory();\n XAConnectionFactory[] xAConnectionFactoryArray1 = connectionFactories0.getXAConnectionFactory();\n assertNotSame(xAConnectionFactoryArray1, xAConnectionFactoryArray0);\n }", "public void testGetQueue() throws NoSuchMethodException {\n DebianTestService debianTestService = new DebianTestService();\n Method asyncMethod = debianTestService.getClass().getMethod(\"calculateDebianMetadataInternalAsync\");\n Method syncMethod = debianTestService.getClass().getMethod(\"calculateDebianMetadataInternalSync\");\n Method mvnMethod = debianTestService.getClass().getMethod(\"calculateMavenMetadataAsync\");\n\n AsyncWorkQueueServiceImpl workQueueService = new AsyncWorkQueueServiceImpl();\n // request workqueue for both methods, expecting both to return the same queue object\n WorkQueue<WorkItem> asyncQueue = workQueueService.getWorkQueue(asyncMethod, debianTestService);\n WorkQueue<WorkItem> syncQueue = workQueueService.getWorkQueue(syncMethod, debianTestService);\n WorkQueue<WorkItem> mvnQueue = workQueueService.getWorkQueue(mvnMethod, debianTestService);\n // the comparision should not be by the content, but by the reference!\n assertTrue(asyncQueue == syncQueue);\n // make sure the maven queue is not the same as the debian\n assertTrue(asyncQueue != mvnQueue);\n\n // validate the queues map content\n Map<String, WorkQueue<WorkItem>> queues = workQueueService.getExistingWorkQueues();\n assertEquals(queues.size(), 3);\n assertNotEquals(queues.get(\"calculateDebianMetadataInternalAsync\"), null);\n // the comparision should not be by the content, but by the reference! we expect the queue to have two keys, each key points on the same object\n assertTrue(queues.get(\"calculateDebianMetadataInternalAsync\") == queues.get(\"calculateDebianMetadataInternalSync\"));\n // make sure the maven queue is not the same as the debian\n assertTrue(queues.get(\"mvnQueue\") != queues.get(\"calculateDebianMetadataInternalAsync\"));\n }", "public void testRunnableWithOtherRule() {\n \t\tISchedulingRule rule = new ISchedulingRule() {\n \t\t\tpublic boolean contains(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t\tpublic boolean isConflicting(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t};\n \t\ttry {\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) {\n \t\t\t\t\t//noop\n \t\t\t\t}\n \t\t\t}, rule, IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t}", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.getXAQueueConnectionFactory();\n connectionFactories0.clearXAQueueConnectionFactory();\n ConnectionFactory connectionFactory0 = new ConnectionFactory();\n FileSystemHandling.shouldAllThrowIOExceptions();\n XAQueueConnectionFactory xAQueueConnectionFactory0 = new XAQueueConnectionFactory();\n connectionFactories0.addXAQueueConnectionFactory(xAQueueConnectionFactory0);\n assertNull(xAQueueConnectionFactory0.getName());\n }", "@Test\n\tpublic void queueListTest() throws IllegalArgumentException, IllegalAccessException {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime &&\n\t\t\t\tConfiguration.progressbar &&\n\t\t\t\tConfiguration.saveandloadplaylist &&\n\t\t\t\tConfiguration.playlist && \n\t\t\t\tConfiguration.removetrack &&\n\t\t\t\tConfiguration.clearplaylist &&\n\t\t\t\tConfiguration.queuetrack\n\t\t\t\t) {\n\n\t\t\tstart();\n\n\t\t\tFile file = new File(\"p1.m3u\");\n\t\t\tdemo.menuItemWithPath(\"Datei\", \"Playlist laden\").click();\n\t\t\tdemo.fileChooser().setCurrentDirectory(new File(\"media/\"));\n\t\t\tdemo.fileChooser().selectFile(file);\n\t\t\tdemo.fileChooser().approveButton().click();\n\t\t\tdemo.list(\"p_list\").clickItem(1);\n\t\t\tdemo.button(\"right\").click();\n\t\t\t\n\t\t\tgui.skiptrack();\n\t\t\tdemo.list(\"p_list\").clickItem(0);\n\t\t\tdemo.list(\"p_list\").clickItem(0);\n\t\t\tdemo.button(\"right\").click();\n\t\t\tgui.skiptrack();\n\n\t\t\tdemo.list(\"queueLis\").clickItem(1);\n\t\t\tdemo.button(\"left\").click();\n\t\t\tgui.skiptrack();\n\n\t\t\tdemo.list(\"queueLis\").clickItem(0);\n\t\t\tdemo.button(\"left\").click();\n\t\t\tgui.skiptrack();\n\n\t\t}\n\t}", "private void workOnQueue() {\n }", "public Decision bestFor(final QueueContext context);", "@Test\n public void shouldNotReadWholeStreamWithDefault() {\n final Queue<String> queue = new LinkedBlockingQueue<>();\n\n Executors.newCachedThreadPool().submit(() -> produceData(queue));\n\n final List<String> collected = queue.stream().collect(Collectors.toList());\n assertThat(collected, not(hasItems(\"0\", \"1\", \"2\", \"3\", \"4\")));\n }", "@Test\n public void popTest() {\n assertThat(\"work1\", is(this.queue.pop()));\n assertThat(\"work2\", is(this.queue.peek()));\n }", "public static boolean testServingQueue() {\n // Reset the guest index\n Guest.resetNextGuestIndex();\n // Create a new serving queue with size of 4\n ServingQueue table = new ServingQueue(4);\n // Create 4 new guests\n Guest shihan = new Guest();\n Guest cheng = new Guest();\n Guest ruoxi = new Guest();\n Guest shen = new Guest();\n\n // Add them into the queue\n table.add(shihan);\n table.add(cheng);\n table.add(ruoxi);\n table.add(shen);\n\n // Check if the serving queue is empty\n if (table.isEmpty() != false) {\n System.out.println(\"Table is \" + table.isEmpty());\n return false;\n }\n // Check if shihan is the peek(front) of queue\n if (table.peek() != shihan) {\n System.out.println(\"Peek is \" + table.peek());\n return false;\n }\n // Try to remove peek\n table.remove();\n // Check the current peek\n if (table.peek() != cheng) {\n System.out.println(\"Peek is \" + table.peek());\n return false;\n }\n // Check table's list\n if (!table.toString().equals(\"[#2, #3, #4]\")) {\n System.out.println(table.toString());\n return false;\n }\n // Add shihan to the queue again\n table.add(shihan);\n // Check table's list again\n if (!table.toString().equals(\"[#2, #3, #4, #1]\")) {\n System.out.println(table.toString());\n return false;\n }\n // Remove all guests then check if the empty queue works well\n table.remove();\n table.remove();\n table.remove();\n table.remove();\n if (table.isEmpty() != true) {\n System.out.println(\"Table is \" + table.isEmpty());\n return false;\n }\n if (!table.toString().equals(\"[]\")) {\n System.out.println(table.toString());\n return false;\n }\n // Reset the guest index for next time or other classes' call\n Guest.resetNextGuestIndex();\n // No bug, return true;\n return true;\n }", "@Test\n public void searchTrueTest() {\n assertThat(4, is(this.queue.search(\"work4\")));\n assertThat(1, is(this.queue.search(\"work1\")));\n }", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "@Test(timeout = 4000)\n public void test30() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n ConnectionFactories connectionFactories1 = new ConnectionFactories();\n connectionFactories1.getQueueConnectionFactoryCount();\n connectionFactories1.enumerateXATopicConnectionFactory();\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n ConnectionFactories connectionFactories2 = new ConnectionFactories();\n try { \n connectionFactories2.setQueueConnectionFactory(0, queueConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "public static boolean testRemoveBestWaitingProcessQueue() {\r\n\t\tWaitingProcessQueue queue = new WaitingProcessQueue();\r\n\t\tCustomProcess process1 = new CustomProcess(10);\r\n\t\tCustomProcess process2 = new CustomProcess(2);\r\n\t\tCustomProcess process3 = new CustomProcess(5);\r\n\t\tqueue.insert(process3);\r\n\t\tqueue.insert(process2);\r\n\t\tqueue.insert(process1);\r\n\t\tqueue.removeBest();\r\n\r\n\t\treturn queue.size() == 2;\r\n\t}", "@Test\n public void randomLockstep() {\n PriorityBlockingQueue pbq = new PriorityBlockingQueue();\n PriorityQueue pq = new PriorityQueue();\n List<Consumer<Queue>> frobbers = List.of(\n q -> q.add(42),\n q -> assertTrue(q.offer(86)),\n q -> q.poll(),\n q -> q.peek(),\n q -> {\n Iterator it = q.iterator();\n if (it.hasNext()) {\n it.next();\n it.remove();\n }});\n for (int i = 0; i < 100; i++) {\n Consumer<Queue> frobber = frobbers.get(rnd.nextInt(frobbers.size()));\n frobber.accept(pq);\n frobber.accept(pbq);\n assertInvariants(pbq);\n assertInvariants(pq);\n assertTrue(Arrays.equals(pq.toArray(), pbq.toArray()));\n }\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Test\n\tpublic void test2() throws Exception {\n\t\tprepareTest(Arrays.asList(\"/tests/basic/data01endpoint1.ttl\", \"/tests/basic/data01endpoint2.ttl\"));\n\t\texecute(\"/tests/basic/query02.rq\", \"/tests/basic/query02.ttl\", false);\n\t}", "@Test\n void should_call_the_rules_executor_when_multiple_algo_result_contains_products_and_there_are_rules_to_test() {\n when(recStatusParams.getMultipleAlgorithmResult()).thenReturn(multipleAlgorithmResult);\n\n products.add(product1);\n when(multipleAlgorithmResult.getRecProducts()).thenReturn(products);\n\n ruleIds.add(\"1\");\n when(activeBundle.getPlacementFilteringRuleIds()).thenReturn(ruleIds);\n\n when(merchandisingRuleExecutor.getFilteredRecommendations(products, ruleIds, Collections.emptyMap(), recCycleStatus)).\n thenReturn(filteringRulesResult);\n\n filteringRulesHandler.handleTask(recInputParams, recStatusParams, activeBundle);\n\n verify(merchandisingRuleExecutor).getFilteredRecommendations(products, ruleIds, Collections.emptyMap(), recCycleStatus);\n verify(recStatusParams).setFilteringRulesResult(filteringRulesResult);\n }", "@Override\n protected final OrderQueue<Boolean,Order> createAnyOrderQueue(\n final BiPredicate<Boolean, Order> filter) {\n /*********************************************************************\n * This needs to be an instance of your OrderQueue. *\n *********************************************************************/\n return new SimpleOrderQueue<Boolean, Order>(true, (Boolean t, Order o)->t);\n }", "public static List<ExtendRule> removeRedundantExtendedRules_transactionBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - transaction based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n if (defRule.getAntecedent().getItems().size()>0)\n {\n LOGGER.warning(\"Default rule is not last rule. Returning null. Last rule:\" + defRule.toString() );\n \n return null;\n }\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n\n }\n // skip default rule\n else if (PRCandidate.equals(defRule))\n {\n \n } \n else{\n Set<Transaction> suppTran = PRCandidate.getAntecedent().getSupportingTransactions();\n // get transactions only CORRECTLY classified by the candidate rule\n Set<Transaction> consTran = PRCandidate.getConsequent().getSupportingTransactions();\n suppTran.retainAll(consTran);\n\n // Check if transactions correctly classified by pruning candidate intersect with transactions covered by those rules below prunCand in the rule list that assign to different than default class. If there are no such transactions PRCandidate can be removed\n boolean nonEmptyIntersection=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand = true;\n continue;\n }\n if (!positionBelowPRCand) continue;\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n\n // check if transactions covered by PRCandidate intersect with transactions covered by candidateClash \n\n for (Transaction t : candidateClash.getAntecedent().getSupportingTransactions())\n {\n\n if (suppTran.contains(t))\n {\n nonEmptyIntersection=true;\n }\n break;\n } \n if (nonEmptyIntersection)\n {\n //go to next PRCandidate \n break;\n } \n }\n if (nonEmptyIntersection == false)\n {\n //no other rule with different consequent covering at least one shared transaction was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - transaction based\");\n return rules;\n }", "static CSQueue parseQueue(\n CapacitySchedulerQueueContext queueContext, CapacitySchedulerConfiguration conf,\n CSQueue parent, String queueName, CSQueueStore newQueues, CSQueueStore oldQueues,\n QueueHook hook) throws IOException {\n CSQueue queue;\n String fullQueueName = (parent == null) ? queueName :\n (QueuePath.createFromQueues(parent.getQueuePath(), queueName).getFullPath());\n String[] staticChildQueueNames = conf.getQueues(fullQueueName);\n List<String> childQueueNames = staticChildQueueNames != null ?\n Arrays.asList(staticChildQueueNames) : Collections.emptyList();\n CSQueue oldQueue = oldQueues.get(fullQueueName);\n\n boolean isReservableQueue = conf.isReservable(fullQueueName);\n boolean isAutoCreateEnabled = conf.isAutoCreateChildQueueEnabled(fullQueueName);\n // if a queue is eligible for auto queue creation v2 it must be a ParentQueue\n // (even if it is empty)\n final boolean isDynamicParent = oldQueue instanceof AbstractParentQueue &&\n oldQueue.isDynamicQueue();\n boolean isAutoQueueCreationEnabledParent = isDynamicParent || conf.isAutoQueueCreationV2Enabled(\n fullQueueName) || isAutoCreateEnabled;\n\n if (childQueueNames.size() == 0 && !isAutoQueueCreationEnabledParent) {\n validateParent(parent, queueName);\n // Check if the queue will be dynamically managed by the Reservation system\n if (isReservableQueue) {\n queue = new PlanQueue(queueContext, queueName, parent, oldQueues.get(fullQueueName));\n ReservationQueue defaultResQueue = ((PlanQueue) queue).initializeDefaultInternalQueue();\n newQueues.add(defaultResQueue);\n } else {\n queue = new LeafQueue(queueContext, queueName, parent, oldQueues.get(fullQueueName));\n }\n\n queue = hook.hook(queue);\n } else {\n if (isReservableQueue) {\n throw new IllegalStateException(\"Only Leaf Queues can be reservable for \" + fullQueueName);\n }\n\n AbstractParentQueue parentQueue;\n if (isAutoCreateEnabled) {\n parentQueue = new ManagedParentQueue(queueContext, queueName, parent, oldQueues.get(\n fullQueueName));\n } else {\n parentQueue = new ParentQueue(queueContext, queueName, parent, oldQueues.get(\n fullQueueName));\n }\n\n queue = hook.hook(parentQueue);\n List<CSQueue> childQueues = new ArrayList<>();\n for (String childQueueName : childQueueNames) {\n CSQueue childQueue = parseQueue(queueContext, conf, queue, childQueueName, newQueues,\n oldQueues, hook);\n childQueues.add(childQueue);\n }\n\n if (!childQueues.isEmpty()) {\n parentQueue.setChildQueues(childQueues);\n }\n\n }\n\n newQueues.add(queue);\n\n LOG.info(\"Initialized queue: \" + fullQueueName);\n return queue;\n }", "public void testOffer() {\n SynchronousQueue q = new SynchronousQueue();\n assertFalse(q.offer(one));\n }", "@Test\r\n\tvoid testRulesList() {\r\n\t\tassertSame(email1.getRulesPerMail().size(), 5);\r\n\t\tassertSame(email3.getRulesPerMail().size(), 2);\r\n\t\tassertNotEquals(email1.getRulesPerMail(), email3.getRulesPerMail());\r\n\t\tassertEquals(email1.getRulesPerMail(), email4.getRulesPerMail());\r\n\t}", "public static void selfTest() {\n System.out.println(\"+++Beginning tests for priority scheduler+++\");\n int numTests = 5;\n int count = 0;\n\n boolean machine_start_status = Machine.interrupt().disabled();\n Machine.interrupt().disable();\n\n PriorityScheduler p = new PriorityScheduler();\n\n ThreadQueue t = p.newThreadQueue(true);\n ThreadQueue t1 = p.newThreadQueue(true);\n ThreadQueue t2 = p.newThreadQueue(true);\n ThreadQueue masterQueue = p.newThreadQueue(true);\n\n KThread tOwn = new KThread();\n KThread t1Own = new KThread();\n KThread t2Own = new KThread();\n\n t.acquire(tOwn);\n t1.acquire(t1Own);\n t2.acquire(t2Own);\n\n\n for (int i = 0; i < 3; i++) {\n for (int j = 1; j <= 3; j++) {\n KThread curr = new KThread();\n\n if (i == 0)\n t.waitForAccess(curr);\n else if (i == 1)\n t1.waitForAccess(curr);\n else\n t2.waitForAccess(curr);\n\n p.setPriority(curr, j);\n }\n }\n\n KThread temp = new KThread();\n t.waitForAccess(temp);\n p.getThreadState(temp).setPriority(4);\n\n temp = new KThread();\n t1.waitForAccess(temp);\n p.getThreadState(temp).setPriority(5);\n\n temp = new KThread();\n t2.waitForAccess(temp);\n p.getThreadState(temp).setPriority(7);\n\n temp = new KThread();\n\n masterQueue.waitForAccess(tOwn);\n masterQueue.waitForAccess(t1Own);\n masterQueue.waitForAccess(t2Own);\n\n masterQueue.acquire(temp);\n\n System.out.println(\"master queue: \"); masterQueue.print();\n// System.out.println(\"t queue: \"); t.print();\n// System.out.println(\"t1 queue: \"); t1.print();\n// System.out.println(\"t2 queue: \"); t2.print();\n//\n// System.out.println(\"tOwn effective priority = \" + p.getThreadState(tOwn).getEffectivePriority() + \" and priority = \" + p.getThreadState(tOwn).getPriority());\n System.out.println(\"temp's effective priority = \" + p.getThreadState(temp).getEffectivePriority());\n\n System.out.println(\"After taking away max from master queue\");\n KThread temp1 = masterQueue.nextThread();\n masterQueue.print();\n System.out.println(\"temp's effective priority = \" + p.getThreadState(temp).getEffectivePriority() + \" and it's priority = \" + p.getThreadState(temp).getPriority());\n System.out.println(\"nextThread's effective priority = \" + p.getThreadState(temp1).getEffectivePriority());\n Machine.interrupt().restore(machine_start_status);\n// while(count < numTests) {\n// KThread toRun = new KThread(new PriSchedTest(count++));\n// System.out.println(toRun);\n// t.waitForAccess(toRun);\n// p.getThreadState(toRun).setPriority(numTests-count);\n// toRun.fork();\n// }\n// count = 0;\n// while(count++ < numTests) {\n// KThread next = t.nextThread();\n// Lib.assertTrue(p.getThreadState(next).getPriority() == numTests-count);\n// System.out.println(\"Priority is \" + p.getThreadState(next).getPriority());\n// }\n }", "void queueShrunk();", "public void pruneRules_greedy() {\n LOGGER.info(\"STARTED Postpruning\");\n AttributeValue defClass = getDefaultRuleClass();\n int defError = getDefaultRuleError(defClass);\n boolean removeTail=false;\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"#Rule {0}\", rule.toString());\n }\n \n if (removeTail)\n {\n it.remove();\n }\n else if (rule.getAntecedentLength() == 0) {\n it.remove();\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n it.remove();\n }\n else\n {\n int supportingTransactions = rule.removeTransactionsCoveredByAntecedent(true);\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n if (defError<=newDefError)\n {\n //adding the current rule did not decrease the errors compared to a default rule\n it.remove();\n removeTail=true;\n }\n else{\n LOGGER.log(Level.FINE, \"{0} transactions, RULE {1} KEPT\", new Object[]{supportingTransactions, rule.getRID()});\n defClass = newDefClass;\n defError = newDefError;\n } \n }\n \n \n\n\n }\n LOGGER.fine(\"Creating new Extend rule within narrow rule procedure\");\n extendedRules.add(createNewDefaultRule(defClass));\n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Test\n public void testDslServerAllPRUnfilteredAndAllowedBranchesActionsFreeStyle() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslServerAllPRUnfilteredAndAllowedBranchesActionsFreeStyle.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n FreeStyleProject createdJob = (FreeStyleProject) j.getInstance().getItem(\"test-job\");\n /* Go through all triggers to validate DSL */\n Map<TriggerDescriptor, Trigger<?>> triggers = createdJob.getTriggers();\n /* Only one 'triggers{}' closure */\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n /* Twelve different triggers expected */\n assertEquals(12, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(1).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(2).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(3).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(4).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(5).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(6).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(7).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(8).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(9).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(10).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(11).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n }\n assertEquals(12, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRPullRequestServerCreatedActionFilter\");\n assertEquals(dispNames.get(1), \"BitBucketPPRPullRequestServerUpdatedActionFilter\");\n assertEquals(dispNames.get(2), \"BitBucketPPRPullRequestServerSourceUpdatedActionFilter\");\n assertEquals(dispNames.get(3), \"BitBucketPPRPullRequestServerApprovedActionFilter\");\n assertEquals(dispNames.get(4), \"BitBucketPPRPullRequestServerMergedActionFilter\");\n assertEquals(dispNames.get(5), \"BitBucketPPRPullRequestServerDeclinedActionFilter\");\n\n assertEquals(dispNames.get(6), \"BitBucketPPRPullRequestServerCreatedActionFilter\");\n assertEquals(dispNames.get(7), \"BitBucketPPRPullRequestServerUpdatedActionFilter\");\n assertEquals(dispNames.get(8), \"BitBucketPPRPullRequestServerSourceUpdatedActionFilter\");\n assertEquals(dispNames.get(9), \"BitBucketPPRPullRequestServerApprovedActionFilter\");\n assertEquals(dispNames.get(10), \"BitBucketPPRPullRequestServerMergedActionFilter\");\n assertEquals(dispNames.get(11), \"BitBucketPPRPullRequestServerDeclinedActionFilter\");\n }", "@SuppressWarnings(\"unused\")\n\tprivate Queue<KeyValuePair> checkArmStatusAndExecuteRules(Queue<KeyValuePair> queue, String generatedDeviceId, Device device, AlertType alertType) {\n\t\t\n\t\tAlertsFromImvgManager alertsmanager=new AlertsFromImvgManager();\n\t\tDeviceManager devicemanager=new DeviceManager();\n\t\tGatewayManager gatewaymanager=new GatewayManager();\n\t\tCustomerManager customermang=new CustomerManager();\n\t\tAlertMonitor alertmonitor=new AlertMonitor();\n\t\tDate date=new Date();\n\t\t\n\t\tRuleManager rulemanger=new RuleManager();\n\t\tString ruleId = IMonitorUtil.commandId(queue, Constants.RULE_ID);\n\t\tQueue<KeyValuePair> resultQueue = new LinkedList<KeyValuePair>();\n\t\tresultQueue.add(new KeyValuePair(Constants.CMD_ID,\n\t\t\t\tConstants.DEVICE_ALERT_ACK));\n\t\tresultQueue.add(new KeyValuePair(Constants.TRANSACTION_ID, IMonitorUtil\n\t\t\t\t.commandId(queue, Constants.TRANSACTION_ID)));\n\t\tresultQueue.add(new KeyValuePair(Constants.IMVG_ID, IMonitorUtil\n\t\t\t\t.commandId(queue, Constants.IMVG_ID)));\n\t\tresultQueue\n\t\t\t\t.add(new KeyValuePair(Constants.DEVICE_ID, generatedDeviceId));\n\t\t\n\t\tSimpleDateFormat sdfDate = new SimpleDateFormat(\"HH:mm\");\n\t Date now = new Date();\n\t String strDate = sdfDate.format(now);\n\t \n\t String[] Temp=strDate.split(\":\");\n\t \n\t long NwStart=Integer.parseInt(Temp[0]);\n\t\tlong NwEnd=Integer.parseInt(Temp[1]);\n\t\t\n\t long TotalCurrentTime=(NwStart*60)+NwEnd;\n\t \n\t \n\t Set<DeviceAlert> deviceAlerts=new HashSet<DeviceAlert>();\n\t \n\t if(ruleId==null)\n\t {\n\t \t\n\t \tdeviceAlerts=rulemanger.GetRuleStartAndEndTimeByDeviceId(device,alertType);\n\t }\n\t else\n\t {\n\t \tdeviceAlerts=rulemanger.GetRuleStartAndEndTimeByDeviceId(device,alertType,Integer.parseInt(ruleId));\n\t \n\t }\n\t \n\t //vibhu Note that we have only one deviceAlert per rule.\n\t for(DeviceAlert Devicealert : deviceAlerts)\n\t {\n\t \tXStream stream = new XStream();\n\t \tlong StartTime=Devicealert.getStartTime();\n\t \tlong EndTime=Devicealert.getEndTime();\n\t \tRule rule=Devicealert.getRule();\n\t \t\n\t \t//LogUtil.info(\"rule list:\"+stream.toXML(rule));\n\t \t\n\t \tint alert=rule.getAlert();\n\t \tint security = rule.getSecurity();\n\t\t\t\n\t \tif(alert==1){\n\t \t\tDevice device1=devicemanager.getDevice(generatedDeviceId);\n\t \t\t\n\t \t\tGateWay gateway=gatewaymanager.getGateWayByDevice(device1);\n\t \t\tCustomer customer=customermang.getCustomerByGateWay(gateway);\n\t \t\t\n\t \t\tAreaCode arc=alertsmanager.getareacode();\n\t \t\tAlertStatus altstatus=alertsmanager.getalertstatus();\n\t \t\t\n\t \t\t//LogUtil.info(\" Date :\"+date);\n\t \t\t/*alertmonitor.setCustomer(customer);*/\n\t \t\talertmonitor.setRule(rule);\n\t \t\talertmonitor.setCustomer(customer);\n\t \t\talertmonitor.setAlertTime(date);\n\t \t//\talertmonitor.setAreaCode(arc);\n\t \t\talertmonitor.setAlertStatus(altstatus);\n\t \t\talertsmanager.savealertsformonitor(alertmonitor);\n\t \t}\n\t \t\n\t \t//vibhu start\n\t \tbyte mode=rule.getMode();\n\t \tif(mode != 8 && mode != 7)\n\t \t{\n\t \t\tRule ruleWithGW = rulemanger.retrieveRuleDetails(rule.getId());\n\t \t\tString curMode = ruleWithGW.getGateWay().getCurrentMode();\n\t \t\t\n\t \t\tif(\n\t\t \t\t\t(curMode.equals(\"2\") && mode!=2 && mode !=4 && mode != 6 && mode != 7 && mode != 8 )\n\t\t\t \t\t ||\t(curMode.equals(\"1\") && mode != 1 && mode != 4 && mode != 5 && mode != 7 && mode != 8)\n\t\t\t \t\t ||\t(curMode.equals(\"0\") && mode != 8 && mode != 7 && mode != 3 && mode != 1 &&mode != 2)\n\t\t \t\t ){\n\t \t\t\t\n\t\t \t\t\t \n\t\t \t\t \tif(StartTime>=EndTime)\n\t\t \t\t\t\t{\n\t\t \t\t\t \tif(TotalCurrentTime>=StartTime || TotalCurrentTime<=EndTime)\n\t\t \t\t\t \t{\n\t\t \t\t\t \t\t\n\t\t \t\t\t \t\t sendNotifications(queue, generatedDeviceId, device, alertType,rule);\n\t\t \t\t\t \t\t if (security == 1) {\n\t\t \t\t\t \t\t\t\t\tDevice device1 = devicemanager.getDevice(generatedDeviceId);\n\t\t \t\t\t \t\t\t\t\tGateWay gateway = gatewaymanager.getGateWayByDevice(device1);\n\t\t \t\t\t \t\t\t\t\tCustomer customer = customermang.getCustomerByGateWay(gateway);\n\t\t \t\t\t \t\t\t\t\tSecurityActionControl securityActionControl = new SecurityActionControl(customer);\n\t\t \t\t\t \t\t\t\t\tThread t = new Thread(securityActionControl);\n\t\t \t\t\t \t\t\t\t\tt.start();\n\n\t\t \t\t\t \t\t\t\t}\n\t\t \t\t\t \t}\n\t\t \t\t\t }\n\t\t \t\t\t \n\t\t \t\t\t\t\n\t\t \t\t \telse if(StartTime<=EndTime)\n\t\t \t\t \t{\n\t\t \t\t \t\t\n\t\t \t\t \t\tif(TotalCurrentTime<=EndTime && TotalCurrentTime >=StartTime)\n\t\t \t\t\t \t{\n\t\t \t\t \t\t\t\n\t\t \t\t \t\t\t\n\t\t \t\t\t\t \t\t\tsendNotifications(queue, generatedDeviceId, device, alertType,rule);\n\t\t \t\t\t\t \t\t\tif (security == 1) {\n\t\t \t\t\t\t \t\t\t\tDevice device1 = devicemanager.getDevice(generatedDeviceId);\n\t\t \t\t\t\t \t\t\t\tGateWay gateway = gatewaymanager.getGateWayByDevice(device1);\n\t\t \t\t\t\t \t\t\t\tCustomer customer = customermang.getCustomerByGateWay(gateway);\n\t\t \t\t\t\t \t\t\t\tSecurityActionControl securityActionControl = new SecurityActionControl(customer);\n\t\t \t\t\t\t \t\t\t\tThread t = new Thread(securityActionControl);\n\t\t \t\t\t\t \t\t\t\tt.start();\n\n\t\t \t\t\t\t \t\t\t}\n\t\t \t\t\t \t}\n\t\t \t\t\t \n\t\t \t\t \t}\n\t\t \t\t\t \n\t\t \t\t }else{\n\t\t \t\t\tcontinue;\n\t\t \t\t }\n\t \t\n\n\t\t \t\t\n\n\t \t}\n\t \t//vibhu end\n\t \tif(mode==7){\n\t \t \tif(StartTime>=EndTime)\n\t\t\t{\n\t \t\t\n\t\t \tif(TotalCurrentTime>=StartTime || TotalCurrentTime<=EndTime)\n\t\t \t{\n\t\t \t\t\n\t\t \t\tsendNotifications(queue, generatedDeviceId, device, alertType,rule);\n\t\t \t\tif (security == 1) {\n\t\t\t\t\t\tDevice device1 = devicemanager.getDevice(generatedDeviceId);\n\t\t\t\t\t\tGateWay gateway = gatewaymanager.getGateWayByDevice(device1);\n\t\t\t\t\t\tCustomer customer = customermang.getCustomerByGateWay(gateway);\n\t\t\t\t\t\tSecurityActionControl securityActionControl = new SecurityActionControl(customer);\n\t\t\t\t\t\tThread t = new Thread(securityActionControl);\n\t\t\t\t\t\tt.start();\n\n\t\t\t\t\t}\n\t\t \t}\n\t\t \n\t\t\t}\n\t \telse if(StartTime<=EndTime)\n\t \t{\n\t \t\t\n\t \t\tif(TotalCurrentTime<=EndTime && TotalCurrentTime >=StartTime)\n\t\t \t{\n\t \t\t\t\n\t \t\t\tsendNotifications(queue, generatedDeviceId, device, alertType,rule);\n\t \t\t\tif (security == 1) {\n\t \t\t\t\tDevice device1 = devicemanager.getDevice(generatedDeviceId);\n\t \t\t\t\tGateWay gateway = gatewaymanager.getGateWayByDevice(device1);\n\t \t\t\t\tCustomer customer = customermang.getCustomerByGateWay(gateway);\n\t \t\t\t\tSecurityActionControl securityActionControl = new SecurityActionControl(customer);\n\t \t\t\t\tThread t = new Thread(securityActionControl);\n\t \t\t\t\tt.start();\n\n\t \t\t\t}\n\t\t \t}\n\t \t}\n\t }\n\t }\n\t return resultQueue;\n\t \n\t}", "@Test\n public void testDslServerAllPRActionsFreeStyle() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslServerAllPRActionsFreeStyle.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n FreeStyleProject createdJob = (FreeStyleProject) j.getInstance().getItem(\"test-job\");\n /* Go through all triggers to validate DSL */\n Map<TriggerDescriptor, Trigger<?>> triggers = createdJob.getTriggers();\n /* Only one 'triggers{}' closure */\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n /* Five different triggers expected */\n assertEquals(5, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(1).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(2).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(3).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(4).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n }\n assertEquals(5, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRPullRequestServerCreatedActionFilter\");\n assertEquals(dispNames.get(1), \"BitBucketPPRPullRequestServerUpdatedActionFilter\");\n assertEquals(dispNames.get(2), \"BitBucketPPRPullRequestServerApprovedActionFilter\");\n assertEquals(dispNames.get(3), \"BitBucketPPRPullRequestServerMergedActionFilter\");\n assertEquals(dispNames.get(4), \"BitBucketPPRPullRequestServerDeclinedActionFilter\");\n }", "@Test(timeout = 4000)\n public void test63() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.clearTopicConnectionFactory();\n XATopicConnectionFactory xATopicConnectionFactory0 = new XATopicConnectionFactory();\n connectionFactories0.addXATopicConnectionFactory(xATopicConnectionFactory0);\n XAQueueConnectionFactory[] xAQueueConnectionFactoryArray0 = connectionFactories0.getXAQueueConnectionFactory();\n assertEquals(0, xAQueueConnectionFactoryArray0.length);\n }", "@Test\n public void basicQueueOfStacksTest() {\n \n QueueOfStacks<String> tempQueue = new QueueOfStacks<String>();\n String tempCurrentElement;\n \n assertTrue(\"Element not in queue\", tempQueue.isEmpty());\n tempQueue.add(\"a\");\n assertTrue(\"Element not in queue\", !tempQueue.isEmpty());\n tempQueue.add(\"b\");\n assertTrue(\"Number of elements not correct\", tempQueue.size() == 2);\n \n tempCurrentElement = tempQueue.peek();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"a\"));\n\n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"a\") &&\n tempQueue.size() == 1);\n \n tempQueue.add(\"c\");\n assertTrue(\"Number of elements not correct\", tempQueue.size() == 2);\n \n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"b\") &&\n tempQueue.size() == 1 &&\n !tempQueue.isEmpty());\n \n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"c\") &&\n tempQueue.size() == 0 &&\n tempQueue.isEmpty());\n \n }", "TransferQueue<ResultType> getResultsQueue();", "public static LinkedQueue makeQueueOfQueues(LinkedQueue q) {\n // Replace the following line with your solution.\n LinkedQueue overall = new LinkedQueue();\n while (!q.isEmpty())\n {\n try \n {\n LinkedQueue single = new LinkedQueue();\n single.enqueue(q.dequeue());\n overall.enqueue(single);\n } \n catch (QueueEmptyException e) \n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } \n }\n \n return overall;\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1115,\"org.apache.commons.collections4.queue.AbstractQueueDecoratorEvoSuiteTest.test0\");\n PriorityQueue<Integer> priorityQueue0 = new PriorityQueue<Integer>();\n Queue<Integer> queue0 = UnmodifiableQueue.unmodifiableQueue((Queue<Integer>) priorityQueue0);\n boolean boolean0 = priorityQueue0.addAll((Collection<? extends Integer>) queue0);\n assertEquals(false, boolean0);\n }", "@Test\n @LargeTest\n public void testEJTimerTracking_TopAndTempAllowlisting() throws Exception {\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 5 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TOP_APP_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n JobStatus job1 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 1);\n JobStatus job2 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 2);\n JobStatus job3 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 3);\n JobStatus job4 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 4);\n JobStatus job5 = createExpeditedJobStatus(\"testEJTimerTracking_TopAndTempAllowlisting\", 5);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job1, null);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n // Case 1: job starts in TA grace period then app becomes TOP\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n mTempAllowlistListener.onAppAdded(mSourceUid);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(gracePeriodMs / 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(job1);\n }\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n advanceElapsedClock(gracePeriodMs);\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(gracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job1, job1, true);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(gracePeriodMs);\n\n // Case 2: job starts in TOP grace period then is TAed\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(gracePeriodMs / 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job2, null);\n mQuotaController.prepareForExecutionLocked(job2);\n }\n mTempAllowlistListener.onAppAdded(mSourceUid);\n advanceElapsedClock(gracePeriodMs);\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(gracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job2, null, false);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(gracePeriodMs);\n\n // Case 3: job starts in TA grace period then app becomes TOP; job ends after TOP grace\n mTempAllowlistListener.onAppAdded(mSourceUid);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(gracePeriodMs / 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job3, null);\n mQuotaController.prepareForExecutionLocked(job3);\n }\n advanceElapsedClock(SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n advanceElapsedClock(gracePeriodMs);\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(gracePeriodMs);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(gracePeriodMs);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(2 * gracePeriodMs);\n advanceElapsedClock(gracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job3, job3, true);\n }\n expected.add(createTimingSession(start, gracePeriodMs, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(gracePeriodMs);\n\n // Case 4: job starts in TOP grace period then app becomes TAed; job ends after TA grace\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(gracePeriodMs / 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job4, null);\n mQuotaController.prepareForExecutionLocked(job4);\n }\n advanceElapsedClock(SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppAdded(mSourceUid);\n advanceElapsedClock(gracePeriodMs);\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(gracePeriodMs);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(gracePeriodMs);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(2 * gracePeriodMs);\n advanceElapsedClock(gracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job4, job4, true);\n }\n expected.add(createTimingSession(start, gracePeriodMs, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(gracePeriodMs);\n\n // Case 5: job starts during overlapping grace period\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n advanceElapsedClock(SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n advanceElapsedClock(SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppAdded(mSourceUid);\n advanceElapsedClock(SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(gracePeriodMs - SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job5, null);\n mQuotaController.prepareForExecutionLocked(job5);\n }\n advanceElapsedClock(SECOND_IN_MILLIS);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Wait for the grace period to expire so the handler can process the message.\n Thread.sleep(2 * gracePeriodMs);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job5, job5, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "@Test(timeout = 4000)\n public void test71() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n XAQueueConnectionFactory[] xAQueueConnectionFactoryArray0 = new XAQueueConnectionFactory[2];\n XAQueueConnectionFactory xAQueueConnectionFactory0 = new XAQueueConnectionFactory();\n xAQueueConnectionFactoryArray0[0] = xAQueueConnectionFactory0;\n XAQueueConnectionFactory xAQueueConnectionFactory1 = new XAQueueConnectionFactory();\n xAQueueConnectionFactoryArray0[1] = xAQueueConnectionFactory1;\n connectionFactories0.setXAQueueConnectionFactory(xAQueueConnectionFactoryArray0);\n connectionFactories0.getXAQueueConnectionFactory();\n assertEquals(2, connectionFactories0.getXAQueueConnectionFactoryCount());\n }", "@Test\n\tpublic void testFetchingQueues() throws IOException, InvalidHeaderException, InterruptedException, ExecutionException {\n\t\tfinal String[][] results = new String[][] {\n\t\t\tnew String[] { \"queue 1\", \"queue 2\" },\n\t\t\tnew String[] { \"queue 3\" },\n\t\t\tnull\n\t\t};\n\t\t\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < results.length; i ++) {\n\t\t\t\t\tArrayList<String> queues = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tqueues = (ArrayList<String>) client.GetWaitingQueues();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tfail(\"Exception was thrown.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (i == 2) assertEquals(results[i], queues);\n\t\t\t\t\telse {\n\t\t\t\t\t\tassertEquals(results[i].length, queues.size());\n\t\t\t\t\t\tfor (int j = 0; j < queues.size(); j++) {\n\t\t\t\t\t\t\tassertEquals(results[i][j], queues.get(j));\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}\n\t\t\t}\n\t\t}, Boolean.TRUE);\n\t\t\n\t\t// Get the request\n\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\tassertTrue(this.getMessage(channel) instanceof GetQueuesRequest);\n\t\t\tthis.sendMessage(i == 2 \n\t\t\t\t\t? new RequestResponse(Status.EXCEPTION) \n\t\t\t\t\t: new GetQueuesResponse(Arrays.asList(results[i])), channel);\n\t\t}\t\t\n\t\t\n\t\tresult.get();\n\t}", "@Test\n public void testEJTimerTracking_TempAllowlisting() {\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n JobStatus job1 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 1);\n JobStatus job2 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 2);\n JobStatus job3 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 3);\n JobStatus job4 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 4);\n JobStatus job5 = createExpeditedJobStatus(\"testEJTimerTracking_TempAllowlisting\", 5);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job1, null);\n }\n assertNull(mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(job1);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job1, job1, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n // Job starts after app is added to temp allowlist and stops before removal.\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job2, null);\n mQuotaController.prepareForExecutionLocked(job2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job2, null, false);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts after app is added to temp allowlist and stops after removal,\n // before grace period ends.\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job3, null);\n mQuotaController.prepareForExecutionLocked(job3);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n long elapsedGracePeriodMs = 2 * SECOND_IN_MILLIS;\n advanceElapsedClock(elapsedGracePeriodMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job3, null, false);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n elapsedGracePeriodMs += SECOND_IN_MILLIS;\n\n // Job starts during grace period and ends after grace period ends\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job4, null);\n mQuotaController.prepareForExecutionLocked(job4);\n }\n final long remainingGracePeriod = gracePeriodMs - elapsedGracePeriodMs;\n start = JobSchedulerService.sElapsedRealtimeClock.millis() + remainingGracePeriod;\n advanceElapsedClock(remainingGracePeriod);\n // Wait for handler to update Timer\n // Can't directly evaluate the message because for some reason, the captured message returns\n // the wrong 'what' even though the correct message goes to the handler and the correct\n // path executes.\n verify(handler, timeout(gracePeriodMs + 5 * SECOND_IN_MILLIS)).handleMessage(any());\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job4, job4, true);\n }\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Job starts and runs completely after temp allowlist grace period.\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(job5, null);\n mQuotaController.prepareForExecutionLocked(job5);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(job5, job5, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected,\n mQuotaController.getEJTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "@Test\n public void ResourceRequirement() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(0);\n p.getStrongbox().addResource(Resource.SHIELD, 4);\n p.getWarehouseDepot().add(Resource.COIN);\n p.getWarehouseDepot().add(Resource.SHIELD);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l1.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(2, c.messages.size());\n }", "void processQueue();", "@Test\n public void emptyFalseTest() {\n SimpleQueue<String> queue = new SimpleQueue<>();\n final String result = queue.push(this.work1);\n assertThat(false, is(queue.empty()));\n assertThat(\"work1\", is(result));\n }", "public void resendRequestingQueue() {\n Logger.m1416d(TAG, \"Action - resendRequestingQueue - size:\" + this.mRequestingQueue.size());\n printRequestingQueue();\n printRequestingCache();\n while (true) {\n Requesting requesting = (Requesting) this.mRequestingQueue.pollFirst();\n if (requesting == null) {\n return;\n }\n if (requesting.request.getCommand() == 2) {\n this.mRequestingQueue.remove(requesting);\n this.mRequestingCache.remove(requesting.request.getHead().getRid());\n } else {\n requesting.retryAgain();\n sendCommandWithLoggedIn(requesting);\n }\n }\n }", "@Test\n public void testSetInvalidQueueItem() throws Exception {\n List<MediaSessionCompat.QueueItem> queue = QueueHelper.getPlayingQueueFromSearch(\n \" \", null, provider);\n\n int expectedItemIndex = queue.size() - 1;\n\n // Latch for 1 test, because queueItem setters will fail and not trigger the validation\n // listener\n CountDownLatch latch = new CountDownLatch(1);\n QueueManager queueManager = createQueueManagerWithValidation(latch, expectedItemIndex,\n queue);\n\n // test 1: set the current queue\n queueManager.setCurrentQueue(\"Queue 1\", queue);\n\n // test 2: set queue index to an invalid queueId (we assume MAX_VALUE is invalid, because\n // queueIds are, in uAmp, defined as the item's index, and no queue is big enough to have\n // a MAX_VALUE index)\n assertFalse(queueManager.setCurrentQueueItem(Integer.MAX_VALUE));\n\n // test 3: set queue index to an invalid negative queueId\n assertFalse(queueManager.setCurrentQueueItem(-1));\n\n // test 3: set queue index to the expectedItem using its mediaId\n assertFalse(queueManager.setCurrentQueueItem(\"INVALID_MEDIA_ID\"));\n\n latch.await(5, TimeUnit.SECONDS);\n }", "public void testPrioritizeContention() throws Exception\n {\n ResourceContentionManager rcm = rezmgr.getContentionManager();\n\n // Handler impl used for testing...\n class Handler implements ResourceContentionHandler\n {\n public boolean called = false;\n\n public int ret = 1;\n\n public ResourceUsage req = null;\n\n public ResourceUsage[] own = null;\n\n public String proxy = null;\n\n public void reset(int ret)\n {\n this.ret = ret;\n called = false;\n req = null;\n own = null;\n proxy = null;\n }\n\n /**\n * Returns based on value of <i>ret</i>.\n * <ol>\n * <li>-1 then null\n * <li>0 then [0]\n * <li>1 then [owners.length] with requester at front\n * </ol>\n */\n public ResourceUsage[] resolveResourceContention(ResourceUsage requester, ResourceUsage owners[])\n {\n called = true;\n req = requester;\n own = owners;\n\n if (ret == -1)\n return null;\n else if (ret == 0)\n return new ResourceUsage[0];\n else\n {\n ResourceUsage[] prior = new ResourceUsage[owners.length];\n prior[0] = requester;\n System.arraycopy(owners, 0, prior, 1, owners.length - 1);\n return prior;\n }\n }\n\n public void resourceContentionWarning(ResourceUsage newRequest, ResourceUsage[] currentReservations)\n {\n // does nothing for now\n }\n\n }\n ResourceManager.Client client = new ResourceManager.Client(new DummyClient(), new Proxy(),\n new ResourceUsageImpl(new AppID(1, 4), 1), new Context(new AppID(1, 4)));\n ResourceManager.Client clients[] = {\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(2, 2), 2),\n new Context(new AppID(2, 2))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(1, 1), 1),\n new Context(new AppID(1, 1))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 4), 4),\n new Context(new AppID(4, 4))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(3, 3), 3),\n new Context(new AppID(3, 3))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(2, 2), 2),\n new Context(new AppID(2, 2))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 5), 4),\n new Context(new AppID(4, 5))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(5, 5), 5),\n new Context(new AppID(5, 5))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 3), 4),\n new Context(new AppID(4, 3))), };\n ResourceUsage usages[] = new ResourceUsage[clients.length];\n for (int i = 0; i < clients.length; ++i)\n usages[i] = clients[i].resusage;\n\n try\n {\n ResourceManager.Client[] prioritized;\n\n // Call with null handler\n int r = 0;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertNotNull(\"Should not return null (given no handler)\", prioritized);\n assertEquals(\"Unexpected array size (given no handler)\", clients.length + 1, prioritized.length);\n int last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n System.out.println(((Context) prioritized[i].context).priority + \" \"\n + position(clients, prioritized[i]));\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (given no handler) [\" + i + \"]\", last >= prior);\n // If same priority as last, verify that ordering is correct\n // Current definition is to go based upon original order in\n // owner list\n if (last == prior)\n {\n assertTrue(\"Expected equal priority to maintin existing order\",\n position(clients, prioritized[i]) > position(clients, prioritized[i - 1]));\n }\n\n last = prior;\n }\n\n // Add Handler\n Handler handler = new Handler();\n rcm.setResourceContentionHandler(handler);\n\n // Expect manager to prioritize\n handler.reset(-1);\n r = 1;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null (given null)\", prioritized);\n assertEquals(\"Unexpected array size (given null)\", clients.length + 1, prioritized.length);\n last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (given null) [\" + i + \"]\", last >= prior);\n last = prior;\n }\n\n // Expect empty array\n handler.reset(0);\n r = 2;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null (given 0)\", prioritized);\n assertEquals(\"Unexpected array size (given 0)\", 0, prioritized.length);\n\n // Expect specified array\n handler.reset(1);\n r = 3;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null\", prioritized);\n assertEquals(\"Unexpected array size\", clients.length, prioritized.length);\n assertEquals(\"Unexpected array entry [0]\", client, prioritized[0]);\n // Actually, just expect to be sorted by AppID\n // When we have same AppID, might be reordered...\n // Let's assign priority numbers to each AppID...\n // And then make sure that clients are sorted accordingly\n // !!! Minor issue here... is if AppID is represented more than once\n // in array returned by handler... which one is used to specify\n // priority?\n // First position or last? Here we assume last.\n // TODO (TomH) Resolve with new resource contention\n /*\n * Hashtable idprior = new Hashtable(); for(int i = 0; i <\n * handler.own.length; ++i) idprior.put(handler.own[i].getAppID(),\n * new Integer(handler.own.length-i)); last = handler.own.length+1;\n * for(int i = 1; i < prioritized.length; ++i) { Integer p =\n * (Integer)idprior.get(((Context)prioritized[i].context).id);\n * assertNotNull(\"AppID wasn't passed to handler to begin with\", p);\n * int prior = p.intValue();\n * assertTrue(\"Expected clients to be in priority order\", last >=\n * prior); last = prior; }\n */\n\n // Replace the handler\n Handler replace = new Handler();\n rcm.setResourceContentionHandler(replace);\n handler.reset(0);\n replace.reset(0);\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Replacement handler should be called\", replace.called);\n assertFalse(\"Original handler should NOT be called\", handler.called);\n handler = replace;\n\n // Check for empty owners\n handler.reset(-1);\n prioritized = rezmgr.prioritizeContention(client, new ResourceManager.Client[0]);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertTrue(\"Expected empty owners\", handler.own.length == 0);\n assertNotNull(\"Should not return null (no owners)\", prioritized);\n assertEquals(\"Unexpected array size (no owners)\", 1, prioritized.length);\n assertEquals(\"Unexpected entry (no owners)\", client, prioritized[0]);\n\n // Remove the handler\n rcm.setResourceContentionHandler(null);\n handler.reset(0);\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertFalse(\"Handler was removed, should not be called\", handler.called);\n assertNotNull(\"Should not return null (removed)\", prioritized);\n assertEquals(\"Unexpected array size (removed)\", clients.length + 1, prioritized.length);\n last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (removed) [\" + i + \"]\", last >= prior);\n last = prior;\n }\n }\n finally\n {\n // Clear handler\n rcm.setResourceContentionHandler(null);\n }\n\n }", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs =\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, remainingTimeMs, 2), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 2 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - HOUR_IN_MILLIS + 2 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "private boolean acceptable(long t0, List<AcceptableState> quorumConfiguration, Set<String> workers) {\n long t = System.nanoTime() / 1000000 - t0;\n for (AcceptableState condition : quorumConfiguration) {\n if (t < condition.milliseconds && workers.size() >= condition.workers) {\n return true;\n }\n }\n return false;\n }", "@Test\n public void testDslServerAllPRAllowedBranchesActionsFreeStyle() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslServerAllPRAllowedBranchesActionsFreeStyle.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n FreeStyleProject createdJob = (FreeStyleProject) j.getInstance().getItem(\"test-job\");\n /* Go through all triggers to validate DSL */\n Map<TriggerDescriptor, Trigger<?>> triggers = createdJob.getTriggers();\n /* Only one 'triggers{}' closure */\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n /* Six different triggers expected */\n assertEquals(6, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(1).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n\n tmpNname = tmp2.getTriggers().get(2).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n\n tmpNname = tmp2.getTriggers().get(3).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(4).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(5).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n }\n assertEquals(6, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRPullRequestServerCreatedActionFilter\");\n assertEquals(dispNames.get(1), \"BitBucketPPRPullRequestServerUpdatedActionFilter\");\n assertEquals(dispNames.get(2), \"BitBucketPPRPullRequestServerSourceUpdatedActionFilter\");\n assertEquals(dispNames.get(3), \"BitBucketPPRPullRequestServerApprovedActionFilter\");\n assertEquals(dispNames.get(4), \"BitBucketPPRPullRequestServerMergedActionFilter\");\n assertEquals(dispNames.get(5), \"BitBucketPPRPullRequestServerDeclinedActionFilter\");\n }", "@Test\n public void testIsWithinEJQuotaLocked_TempAllowlisting() {\n setDischarging();\n JobStatus js = createExpeditedJobStatus(\"testIsWithinEJQuotaLocked_TempAllowlisting\", 1);\n setStandbyBucket(FREQUENT_INDEX, js);\n setDeviceConfigLong(QcConstants.KEY_EJ_LIMIT_FREQUENT_MS, 10 * MINUTE_IN_MILLIS);\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (HOUR_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (30 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (5 * MINUTE_IN_MILLIS), 4 * MINUTE_IN_MILLIS, 5), true);\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n\n setProcessState(ActivityManager.PROCESS_STATE_RECEIVER);\n final long gracePeriodMs = 15 * SECOND_IN_MILLIS;\n setDeviceConfigLong(QcConstants.KEY_EJ_GRACE_PERIOD_TEMP_ALLOWLIST_MS, gracePeriodMs);\n Handler handler = mQuotaController.getHandler();\n spyOn(handler);\n\n // Apps on the temp allowlist should be able to schedule & start EJs, even if they're out\n // of quota (as long as they are in the temp allowlist grace period).\n mTempAllowlistListener.onAppAdded(mSourceUid);\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n mTempAllowlistListener.onAppRemoved(mSourceUid);\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n // Still in grace period\n synchronized (mQuotaController.mLock) {\n assertTrue(mQuotaController.isWithinEJQuotaLocked(js));\n }\n advanceElapsedClock(6 * SECOND_IN_MILLIS);\n // Out of grace period.\n synchronized (mQuotaController.mLock) {\n assertFalse(mQuotaController.isWithinEJQuotaLocked(js));\n }\n }", "public abstract void backoffQueue();", "@Test(expected = IllegalArgumentException.class)\n public void testQueueParsingWithSumOfChildLabelCapacityNot100PercentWithWildCard() throws IOException {\n nodeLabelManager.addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of(\"red\", \"blue\"));\n YarnConfiguration conf = new YarnConfiguration();\n CapacitySchedulerConfiguration csConf = new CapacitySchedulerConfiguration(conf);\n setupQueueConfigurationWithLabels(csConf);\n csConf.setCapacityByLabel(((ROOT) + \".b.b3\"), \"red\", 24);\n csConf.setAccessibleNodeLabels(ROOT, ImmutableSet.of(ANY));\n csConf.setAccessibleNodeLabels(((ROOT) + \".b\"), ImmutableSet.of(ANY));\n CapacityScheduler capacityScheduler = new CapacityScheduler();\n RMContextImpl rmContext = new RMContextImpl(null, null, null, null, null, null, new org.apache.hadoop.yarn.server.resourcemanager.security.RMContainerTokenSecretManager(csConf), new org.apache.hadoop.yarn.server.resourcemanager.security.NMTokenSecretManagerInRM(csConf), new ClientToAMTokenSecretManagerInRM(), null);\n rmContext.setNodeLabelManager(nodeLabelManager);\n capacityScheduler.setConf(csConf);\n capacityScheduler.setRMContext(rmContext);\n capacityScheduler.init(csConf);\n capacityScheduler.start();\n ServiceOperations.stopQuietly(capacityScheduler);\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_MaxExecution() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 8 * MINUTE_IN_MILLIS), 4 * HOUR_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time will phase out, so should use bucket limit.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Close to boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS - MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS - 5 * MINUTE_IN_MILLIS, 5), false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(5 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Far from boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS), 4 * HOUR_IN_MILLIS - 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n setStandbyBucket(WORKING_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(3 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@Test\n\tpublic void testPathPriorityByWildCard() {\n\n\t\tthis.requestDefinitions.get(0).setPathParts(new PathDefinition[2]);\n\t\tthis.requestDefinitions.get(0).getPathParts()[0] = new PathDefinition();\n\t\tthis.requestDefinitions.get(0).getPathParts()[0].setValue(\"a\");\n\t\tthis.requestDefinitions.get(0).getPathParts()[1] = new PathDefinition();\n\t\tthis.requestDefinitions.get(0).getPathParts()[1].setValue(null);\n\n\t\tthis.requestDefinitions.get(1).setPathParts(new PathDefinition[2]);\n\t\tthis.requestDefinitions.get(1).getPathParts()[0] = new PathDefinition();\n\t\tthis.requestDefinitions.get(1).getPathParts()[0].setValue(\"a\");\n\t\tthis.requestDefinitions.get(1).getPathParts()[1] = new PathDefinition();\n\t\tthis.requestDefinitions.get(1).getPathParts()[1].setValue(\"a\");\n\n\t\tthis.requestDefinitions.get(2).setPathParts(new PathDefinition[2]);\n\t\tthis.requestDefinitions.get(2).getPathParts()[0] = new PathDefinition();\n\t\tthis.requestDefinitions.get(2).getPathParts()[0].setValue(null);\n\t\tthis.requestDefinitions.get(2).getPathParts()[1] = new PathDefinition();\n\t\tthis.requestDefinitions.get(2).getPathParts()[1].setValue(\"a\");\n\n\t\tfinal List<RequestDefinition> expected = Arrays.asList(this.requestDefinitions.get(1),\n\t\t\t\tthis.requestDefinitions.get(0), this.requestDefinitions.get(2));\n\n\t\tCollections.sort(this.requestDefinitions, this.comparator);\n\t\tAssert.assertEquals(expected, this.requestDefinitions);\n\t}", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.isValid();\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n assertEquals(0, queueConnectionFactoryArray0.length);\n }", "private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.MAX_EXECUTION_TIME_MS - contributionMs;\n\n // Session straddles edge of 24 hour window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 20 * HOUR_IN_MILLIS, remainingTimeMs, 300), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - 20 * HOUR_IN_MILLIS\n + 24 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "@Test\n public void testSubsequentRunsWithPenalizingConstraint() {\n System.out.println(\" - test subsequent runs with penalizing constraint\");\n // set constraint\n problem.addPenalizingConstraint(constraint);\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform 3 times as many runs as usual for this harder problem (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchLowTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchLowTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchMedTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchMedTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchHighTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchHighTemp.getBestSolution(), data).getPenalty());\n }\n }", "@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_SmallRollingQuota() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_SRQ\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(WORKING_INDEX);\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.EJ_LIMIT_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 23 * HOUR_IN_MILLIS, remainingTimeMs, 2), true);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime =\n now + HOUR_IN_MILLIS + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }", "public static void pushCostlyOperation(){\r\n Queue<Integer> queue=new LinkedList<>();\r\n Queue<Integer> supportQueue=new LinkedList<>();\r\n Queue<Integer> testQueue=new LinkedList<>();\r\n for(int i=0;i<10;++i){\r\n while(!queue.isEmpty())\r\n supportQueue.add(queue.poll());\r\n\r\n queue.add(i*i);\r\n testQueue.add(i*i);\r\n while(!supportQueue.isEmpty())\r\n queue.add(supportQueue.poll());\r\n\r\n System.out.println(queue);\r\n System.out.println(testQueue);\r\n System.out.println();\r\n }\r\n }", "@Test\n public void peekTest() {\n assertThat(\"work1\", is(this.queue.peek()));\n }", "@Test\n public void testTimerTracking_TopAndNonTop() {\n setDischarging();\n\n JobStatus jobBg1 = createJobStatus(\"testTimerTracking_TopAndNonTop\", 1);\n JobStatus jobBg2 = createJobStatus(\"testTimerTracking_TopAndNonTop\", 2);\n JobStatus jobFg1 = createJobStatus(\"testTimerTracking_TopAndNonTop\", 3);\n JobStatus jobTop = createJobStatus(\"testTimerTracking_TopAndNonTop\", 4);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobBg1, null);\n mQuotaController.maybeStartTrackingJobLocked(jobBg2, null);\n mQuotaController.maybeStartTrackingJobLocked(jobFg1, null);\n mQuotaController.maybeStartTrackingJobLocked(jobTop, null);\n }\n assertNull(mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n List<TimingSession> expected = new ArrayList<>();\n\n // UID starts out inactive.\n setProcessState(ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg1);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobBg1, jobBg1, true);\n }\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n assertEquals(expected, mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n // Bg job starts while inactive, spans an entire active session, and ends after the\n // active session.\n // App switching to top state then fg job starts.\n // App remains in top state after coming to top, so there should only be one\n // session.\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobBg2, null);\n mQuotaController.prepareForExecutionLocked(jobBg2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobTop, null, false);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobBg2, null, false);\n }\n assertEquals(expected, mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n // Bg job 1 starts, then top job starts. Bg job 1 job ends. Then app goes to\n // foreground_service and a new job starts. Shortly after, uid goes\n // \"inactive\" and then bg job 2 starts. Then top job ends, followed by bg and fg jobs.\n // This should result in two TimingSessions:\n // * The first should have a count of 1\n // * The second should have a count of 2, which accounts for the bg2 and fg, but not top\n // jobs.\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobBg1, null);\n mQuotaController.maybeStartTrackingJobLocked(jobBg2, null);\n mQuotaController.maybeStartTrackingJobLocked(jobTop, null);\n }\n setProcessState(ActivityManager.PROCESS_STATE_LAST_ACTIVITY);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg1);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n expected.add(createTimingSession(start, 10 * SECOND_IN_MILLIS, 1));\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobTop);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobBg1, jobBg1, true);\n }\n advanceElapsedClock(5 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobFg1);\n }\n advanceElapsedClock(5 * SECOND_IN_MILLIS);\n setProcessState(ActivityManager.PROCESS_STATE_TOP);\n advanceElapsedClock(10 * SECOND_IN_MILLIS); // UID \"inactive\" now\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n setProcessState(ActivityManager.PROCESS_STATE_TOP_SLEEPING);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobBg2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobTop, null, false);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobBg2, null, false);\n mQuotaController.maybeStopTrackingJobLocked(jobFg1, null, false);\n }\n expected.add(createTimingSession(start, 20 * SECOND_IN_MILLIS, 2));\n assertEquals(expected, mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }", "private void setupTimeoutJob() {\n eventLoopGroup.scheduleAtFixedRate(() -> {\n\n /*\n * We cannot wait for the request infinitely, but we also cannot remove the object\n * from the queue - FIXME in case of situation when queue of waiting objects grow to X we have to\n * brake connection.\n */\n\n Iterator<RedisQueryRequest> iterator = queue.iterator();\n int i = 0;\n long timeNow = System.currentTimeMillis();\n /*\n * we are tracking 'i' because we want to do only some work, not all the work.\n * we cannot take too much time in timeout checking.\n */\n\n while (iterator.hasNext() && i < 100) {\n RedisQueryRequest current = iterator.next();\n if (current.isTimeouted()) {\n //already been here.\n continue;\n }\n long whenRequestStarted = current.getRequestTimeStart();\n long requestTimeUntilNow = timeNow - whenRequestStarted;\n if (requestTimeUntilNow >= 1000) {\n LOG.error(\"Timeouted request detected\");\n current.markTimeouted();\n current.getCompletableFuture().completeExceptionally(new TimeoutException(\"Timeout occurred.\"));\n }\n\n i++;\n }\n\n }, 100, 100, TimeUnit.MILLISECONDS);\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.enumerateQueueConnectionFactory();\n TopicConnectionFactory topicConnectionFactory0 = new TopicConnectionFactory();\n XAConnectionFactory[] xAConnectionFactoryArray0 = new XAConnectionFactory[0];\n connectionFactories0.setXAConnectionFactory(xAConnectionFactoryArray0);\n XAConnectionFactory xAConnectionFactory0 = new XAConnectionFactory();\n assertNull(xAConnectionFactory0.getName());\n }", "private void dispatch(List<Request> requests) {\n List<Request> inbox = new ArrayList<>(requests);\n\n // run everything in a single transaction\n dao.tx(tx -> {\n int offset = 0;\n Set<UUID> projectsToSkip = new HashSet<>();\n\n while (true) {\n // fetch the next few ENQUEUED processes from the DB\n List<ProcessQueueEntry> candidates = new ArrayList<>(dao.next(tx, offset, BATCH_SIZE));\n if (candidates.isEmpty() || inbox.isEmpty()) {\n // no potential candidates or no requests left to process\n break;\n }\n\n uniqueProjectsHistogram.update(countUniqueProjects(candidates));\n\n // filter out the candidates that shouldn't be dispatched at the moment\n for (Iterator<ProcessQueueEntry> it = candidates.iterator(); it.hasNext(); ) {\n ProcessQueueEntry e = it.next();\n\n // currently there are no filters applicable to standalone (i.e. without a project) processes\n if (e.projectId() == null) {\n continue;\n }\n\n // see below\n if (projectsToSkip.contains(e.projectId())) {\n it.remove();\n continue;\n }\n\n // TODO sharded locks?\n boolean locked = dao.tryLock(tx);\n if (!locked || !pass(tx, e)) {\n // the candidate didn't pass the filter or can't lock the queue\n // skip to the next candidate (of a different project)\n it.remove();\n }\n\n // only one process per project can be dispatched at the time, currently the filters are not\n // designed to run multiple times per dispatch \"tick\"\n\n // TODO\n // this can be improved if filters accepted a list of candidates and returned a list of\n // those who passed. However, statistically each batch of candidates contains unique project IDs\n // so \"multi-entry\" filters are less effective and just complicate things\n // in the future we might need to consider batching up candidates by project IDs and using sharded\n // locks\n projectsToSkip.add(e.projectId());\n }\n\n List<Match> matches = match(inbox, candidates);\n if (matches.isEmpty()) {\n // no matches, try fetching the next N records\n offset += BATCH_SIZE;\n continue;\n }\n\n for (Match m : matches) {\n ProcessQueueEntry candidate = m.response;\n\n // mark the process as STARTING and send it to the agent\n // TODO ProcessQueueDao#updateStatus should be moved to ProcessManager because it does two things (updates the record and inserts a status history entry)\n queueDao.updateStatus(tx, candidate.key(), ProcessStatus.STARTING);\n\n sendResponse(m);\n\n inbox.remove(m.request);\n }\n }\n });\n }", "public QueueUsingTwoStacks() \n {\n stack1 = new Stack<Item>();\n stack2 = new Stack<Item>();\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n TopicConnectionFactory[] topicConnectionFactoryArray0 = new TopicConnectionFactory[0];\n connectionFactories0.setTopicConnectionFactory(topicConnectionFactoryArray0);\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n connectionFactories0.setQueueConnectionFactory(queueConnectionFactoryArray0);\n assertEquals(0, queueConnectionFactoryArray0.length);\n }", "private void test() throws DroolsParserException, IOException {\n\t\tRuleBase ruleBase = initialiseDrools();\n\t\tWorkingMemory workingMemory = initializeMessageObjects(ruleBase);\n\t\tint expectedNumberOfRulesFired = 1;\n\n\t\tint actualNumberOfRulesFired = workingMemory.fireAllRules();\n\t}", "public void testBrokerListWithTwoBrokersDefaultsToRoundRobinPolicy() throws Exception\n {\n _url = \"amqp://user:pass@clientid/test?brokerlist='tcp://localhost:5672;tcp://localhost:5673'\";\n _connectionUrl = new AMQConnectionURL(_url);\n _connection = createStubConnection();\n\n _failoverPolicy = new FailoverPolicy(_connectionUrl, _connection);\n\n assertTrue(\"Unexpected failover method\", _failoverPolicy.getCurrentMethod() instanceof FailoverRoundRobinServers);\n }", "@Test\r\n public void testGuestSessionMultipleCalls() {\r\n try {\r\n SessionThrottlerBean session1 = new SessionThrottlerBean(\"session1\");\r\n SessionThrottlerBean session2 = new SessionThrottlerBean(\"session2\");\r\n SessionThrottlerBean session3 = new SessionThrottlerBean(\"session3\");\r\n SessionThrottler throttler = new SessionThrottler(mockHelper);\r\n throttler.setMaxAuthSession(2);\r\n throttler.setMaxGuestSession(2);\r\n throttler.setGuestSessionTimeout(1);\r\n String user1Id = \"USER1ID\";\r\n String user2Id = \"USER2ID\";\r\n String user3Id = \"USER3ID\";\r\n\r\n boolean allowGuestSession = throttler.allowGuestSession(session1.getCookie());\r\n assertTrue(\"Test should allow 1st guest session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session2.getCookie());\r\n assertTrue(\"Test should allow 2nd guest session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session3.getCookie());\r\n assertTrue(\"Test should not allow 3rd guest session\", !allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session1.getCookie());\r\n assertTrue(\"Test should allow 1st guest 2nd session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session2.getCookie());\r\n assertTrue(\"Test should allow 2nd guest 2nd session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session3.getCookie());\r\n assertFalse(\"Test should not allow 3rd guest 2nd session\", allowGuestSession);\r\n Thread.sleep(500);\r\n throttler.removeTimedoutSessions();// Timeout user1 and 2\r\n allowGuestSession = throttler.allowGuestSession(session2.getCookie());\r\n assertTrue(\"Test should allow 2nd guest 3rd session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session3.getCookie());\r\n assertTrue(\"Test should allow 3rd guest 3rd session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session1.getCookie());\r\n assertFalse(\"Test should not allow 1st guest 3nd session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session2.getCookie());\r\n assertTrue(\"Test should allow 2nd guest 4th session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session1.getCookie());\r\n assertFalse(\"Test should not allow 1st guest 4th session\", allowGuestSession);\r\n\r\n boolean allowAuthSession = throttler.allowAuthSession(session1.getCookie(), user1Id);\r\n assertTrue(\"Test should allow 1st auth session\", allowAuthSession);\r\n // allow without incrementing count\r\n allowAuthSession = throttler.allowAuthSession(session1.getCookie(), user1Id);\r\n assertTrue(\"Test should allow 1st auth session 2nd login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session2.getCookie(), user2Id);\r\n assertTrue(\"Test should allow 2nd auth session 1st login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session2.getCookie(), user2Id);\r\n assertTrue(\"Test should allow 2nd auth session 2nd login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session3.getCookie(), user3Id);\r\n assertFalse(\"Test should not allow 3nd auth session login\", allowAuthSession);\r\n Thread.sleep(500);\r\n throttler.removeTimedoutSessions();// Timeout user1 and 2\r\n allowAuthSession = throttler.allowAuthSession(session2.getCookie(), user2Id);\r\n assertTrue(\"Test should allow 2nd auth session 3rd login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session3.getCookie(), user3Id);\r\n assertTrue(\"Test should allow 3rd auth session 1st login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session1.getCookie(), user1Id);\r\n assertFalse(\"Test should not allow 1st auth session 3nd login\", allowAuthSession);\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n fail(e.getCause().getMessage());\r\n }\r\n\r\n }", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(FREQUENT_INDEX);\n\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + 11 * MINUTE_IN_MILLIS),\n 4 * HOUR_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time essentially free. Bucket time has 2 min phase out plus original 8 minute\n // window time.\n assertEquals(10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n // Overlap boundary.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (24 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 2 * MINUTE_IN_MILLIS, 5),\n false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (20 * HOUR_IN_MILLIS),\n 3 * HOUR_IN_MILLIS + 48 * MINUTE_IN_MILLIS,\n 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(\n now - (8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5),\n false);\n\n synchronized (mQuotaController.mLock) {\n // Both max and bucket time have 8 minutes left.\n assertEquals(8 * MINUTE_IN_MILLIS,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n // Max time only has one minute phase out. Bucket time has 2 minute phase out.\n assertEquals(9 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "private List<Rule> analizePartRules(Part part, boolean isRootPart) {\n\t\t\n\t\tList<Rule> ret = new ArrayList<Rule>();\n\t\t\n\t\tfor (Rule rule : rules) {\n\t\t\tswitch (rule.ruleType) {\n\t\t\t\n\t\t\tcase MAX_SIZE_PART:\n\t\t\t\t\n\t\t\t\tif (isRootPart) {\n\t\t\t\t\tMaxPartSizeRule maxPartSizeRule = (MaxPartSizeRule) rule;\n\t\t\t\t\tif (!maxPartSizeRule.isFilterOut()) break;\n\t\t\t\t\tint messageSize = 0;\n\t\t\t\t\tif (part instanceof MimeMultiPart) {\n\t\t\t\t\t\tMimeMultiPart multipart = (MimeMultiPart) part;\n\t\t\t\t\t\tfor (Part p : multipart.getParts()) {\n\t\t\t\t\t\t\tmessageSize = p.getContent().length;\n//\t\t\t\t\t\t\tSystem.out.println(\"msize:\" + messageSize);\n\t\t\t\t\t\t\tif (messageSize>maxPartSizeRule.getMaxSizeInKilobytes()*1024 && maxPartSizeRule.isPresent())\n\t\t\t\t\t\t\t\tret.add(maxPartSizeRule);\n\t\t\t\t\t\t\telse if (messageSize<maxPartSizeRule.getMaxSizeInKilobytes()*1024 && !maxPartSizeRule.isPresent())\n\t\t\t\t\t\t\t\tret.add(maxPartSizeRule);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (part instanceof MimePart) {\n\t\t\t\t\t\tMimePart mp = (MimePart) part;\n\t\t\t\t\t\tmessageSize = mp.getContent().length;\n//\t\t\t\t\t\tSystem.out.println(\"msize:\" + messageSize);\n\t\t\t\t\t\tif (messageSize>maxPartSizeRule.getMaxSizeInKilobytes()*1024 && maxPartSizeRule.isPresent())\n\t\t\t\t\t\t\tret.add(maxPartSizeRule);\n\t\t\t\t\t\telse if (messageSize<maxPartSizeRule.getMaxSizeInKilobytes()*1024 && !maxPartSizeRule.isPresent())\n\t\t\t\t\t\t\tret.add(maxPartSizeRule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn ret;\n\t}", "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "@Test\n void should_not_call_rule_executor_when_empty_recs_generated() {\n when(recStatusParams.getMultipleAlgorithmResult()).thenReturn(multipleAlgorithmResult);\n\n //products are empty\n when(multipleAlgorithmResult.getRecProducts()).thenReturn(products);\n\n ruleIds.add(\"1\");\n when(activeBundle.getPlacementFilteringRuleIds()).thenReturn(ruleIds);\n\n filteringRulesHandler.handleTask(recInputParams, recStatusParams, activeBundle);\n\n verify(merchandisingRuleExecutor, never()).getFilteredRecommendations(products, ruleIds, Collections.emptyMap(), recCycleStatus);\n verify(recStatusParams, never()).setFilteringRulesResult(filteringRulesResult);\n }" ]
[ "0.6814109", "0.6724994", "0.66883004", "0.66397136", "0.6584378", "0.6177147", "0.60685354", "0.59531766", "0.5806901", "0.5502489", "0.5213718", "0.52093345", "0.51404554", "0.5136179", "0.5110749", "0.5002001", "0.49788997", "0.4961015", "0.49588978", "0.49321455", "0.49145952", "0.4908169", "0.49056327", "0.4894185", "0.48871732", "0.48679063", "0.48608708", "0.48592523", "0.48587152", "0.48533663", "0.4834895", "0.4829751", "0.47997832", "0.47969246", "0.47680485", "0.47677842", "0.47675967", "0.47389394", "0.473316", "0.47176623", "0.47082067", "0.46992078", "0.46991304", "0.46990392", "0.46966648", "0.4696282", "0.4696099", "0.46959892", "0.46830142", "0.46802315", "0.4679184", "0.46786562", "0.46726164", "0.4669158", "0.46657202", "0.46652627", "0.46593693", "0.46590704", "0.4658396", "0.4645804", "0.46447113", "0.46294725", "0.46265852", "0.46225566", "0.46203393", "0.46197134", "0.46169138", "0.4612425", "0.46110103", "0.4608354", "0.46072918", "0.4605171", "0.4590302", "0.4583799", "0.4573521", "0.45713454", "0.45640254", "0.4555071", "0.45539162", "0.4549424", "0.45490056", "0.45486563", "0.45470682", "0.45453137", "0.45407185", "0.4540334", "0.45340678", "0.45335576", "0.45332703", "0.45330012", "0.4525252", "0.45241386", "0.45221892", "0.45191088", "0.45190665", "0.4516925", "0.45162687", "0.45136192", "0.45123672", "0.4511763" ]
0.6826658
0
The more specific rule is first, so those requests are denied.
public void testFirstTemporarySecondNamedQueueDenied() { ObjectProperties named = new ObjectProperties(_queueName); ObjectProperties namedTemporary = new ObjectProperties(_queueName); namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named)); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary)); _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary); _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named); assertEquals(2, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named)); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDenyDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n \n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "private List<IAuthRule> unauthorizedRule() {\n return new RuleBuilder().allow().metadata().andThen().denyAll().build();\n }", "public void setDefaultRestrictions() {\n addPolicy(DISABLE_EXIT);\n addPolicy(DISABLE_ANY_FILE_MATCHER);\n addPolicy(DISABLE_SECURITYMANAGER_CHANGE);\n //addPolicy(DISABLE_REFLECTION_UNTRUSTED);\n addPolicy(DISABLE_EXECUTION);\n addPolicy(DISABLE_TEST_SNIFFING);\n addPolicy(DISABLE_REFLECTION_SELECTIVE);\n addPolicy(DISABLE_SOCKETS);\n\n InterceptorBuilder.installAgent();\n InterceptorBuilder.initDefaultTransformations();\n }", "@RequestMapping(path = \"/v1/noncompliancepolicy\", method = RequestMethod.POST)\n // @Cacheable(cacheNames=\"compliance\",unless=\"#result.status==200\")\n // commenting to performance after refacoting\n // @Cacheable(cacheNames=\"compliance\",key=\"#request.key\")\n \n public ResponseEntity<Object> getNonCompliancePolicyByRule(@RequestBody(required = false) Request request) {\n String assetGroup = request.getAg();\n\n Map<String, String> filters = request.getFilter();\n\n if (Strings.isNullOrEmpty(assetGroup) || MapUtils.isEmpty(filters)\n || Strings.isNullOrEmpty(filters.get(DOMAIN))) {\n return ResponseUtils.buildFailureResponse(new Exception(ASSET_GROUP_DOMAIN));\n }\n ResponseWithOrder response = null;\n try {\n response = (complianceService.getRulecompliance(request));\n } catch (ServiceException e) {\n return complianceService.formatException(e);\n }\n return ResponseUtils.buildSucessResponse(response);\n\n }", "@Override\n public void onRequestAllow(String permissionName) {\n }", "private void requestIntercepts() {\n TrafficSelector.Builder selector = DefaultTrafficSelector.builder();\n selector.matchEthType(Ethernet.TYPE_IPV4);\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_ARP);\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n\n selector.matchEthType(Ethernet.TYPE_IPV6);\n if (ipv6Forwarding) {\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n } else {\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n }\n }", "private boolean setAllPolicy(String webMethodName, String opName, String toPermit) \r\n\t{\r\n\t NAASIntegration naas = new NAASIntegration(Phrase.AdministrationLoggerName);\r\n\t boolean ret = true;\r\n\t if(toPermit.equalsIgnoreCase(\"Y\")){\r\n\t \tret = naas.setAllPolicy(webMethodName, opName, NAASRequestor.ACTION_DENY);\r\n\t }else{\r\n\t \tString isExit = verifyPolicy(webMethodName, opName);\r\n\t \tif(isExit!= null && isExit.equalsIgnoreCase(\"deny\")){\r\n\t\t \tret = naas.setAllPolicy(webMethodName, opName, \"\");\t \t\t \t\t\r\n\t \t}\r\n\t }\r\n\t return ret;\r\n\t}", "@Test\n public void testNoMatchValidNoShareId1() {\n Matcher mtch = filter.getMatcher(\"/shares\");\n assertFalse(\"match\", filter.isResourceAccess(mtch));\n }", "public boolean denied(String action) {\n if (deny_all) {\n return true;\n }\n\t\tfor(String a : actions) {\n\t\t\tif (a.equals(action)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected abstract String getAllowedRequests();", "@Override\n public List<ResourceFilter> create(AbstractMethod am) {\n if (am.isAnnotationPresent(DenyAll.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter());\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.DENNY_ALL_METHOD)));\n }\n\n // RolesAllowed on the method takes precedence over PermitAll\n RolesAllowed ra = am.getAnnotation(RolesAllowed.class);\n if (ra != null) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.ROLES_ALLOWED_METHOD, ra.value())));\n }\n\n // PermitAll takes precedence over RolesAllowed on the class\n if (am.getResource().isAnnotationPresent(PermitAll.class)) {\n if (am.getResource().isAnnotationPresent(Authenticated.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(true));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.PERMIT_ALL_CLASS)));\n }\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.UNAUTHENTICATED)));\n }\n\n // RolesAllowed on the class takes precedence over PermitAll\n ra = am.getResource().getAnnotation(RolesAllowed.class);\n if (ra != null) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.ROLES_ALLOWED_CLASS, ra.value())));\n }\n\n if (am.getResource().isAnnotationPresent(Authenticated.class)\n && !am.isAnnotationPresent(DenyAll.class)\n && !am.isAnnotationPresent(RolesAllowed.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.PERMIT_ALL_METHOD)));\n }\n\n // No need to check whether PermitAll is present.\n return null;\n }", "@Override\n\tpublic AuthorizationResponse decide(HttpServletRequest request,\n\t\t\tMap<String, String> additionalAttrs) {\n\t\tlog.trace (\"Entering decide()\");\n\t\t\n\t\tboolean decision = false;\n\t\t\n\t\t// Extract interesting parts of the HTTP request\n\t\tString method = request.getMethod();\n\t\tAuthzResource resource = new AuthzResource(request.getRequestURI());\n\t\tString subject = (request.getHeader(SUBJECT_HEADER));\t\t // identity of the requester\n\t\tString subjectgroup = (request.getHeader(SUBJECT_HEADER_GROUP)); // identity of the requester by group Rally : US708115\n\n\t\tlog.trace(\"Method: \" + method + \" -- Type: \" + resource.getType() + \" -- Id: \" + resource.getId() + \n\t\t\t\t\" -- Subject: \" + subject);\n\t\t\n\t\t// Choose authorization method based on the resource type\n\t\tResourceType resourceType = resource.getType();\n\t\tif (resourceType != null) {\n\n\t\t\tswitch (resourceType) {\n\n\t\t\tcase FEEDS_COLLECTION:\n\t\t\t\tdecision = allowFeedsCollectionAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase SUBS_COLLECTION:\n\t\t\t\tdecision = allowSubsCollectionAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase FEED:\n\t\t\t\tdecision = allowFeedAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase SUB:\n\t\t\t\tdecision = allowSubAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tdecision = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tlog.debug(\"Exit decide(): \" + method + \"|\" + resourceType + \"|\" + resource.getId() + \"|\" + subject + \" ==> \" + decision);\n\t\t\n\t\treturn new AuthRespImpl(decision);\n\t}", "@Override\n\tpublic AuthorizationResponse decide(HttpServletRequest request) {\n\t\t\treturn this.decide(request, null);\n\t}", "private void defaultMalwareShouldNotBeFound(String filter) throws Exception {\n restMalwareMockMvc.perform(get(\"/api/malwares?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n }", "public void disableAccessRules() {\n\t\tm_parser.disableAccessRules();\n\t}", "public void checkPermission (Socket socket, LogEvent evt) throws ISOException\n {\n if (specificIPPerms.isEmpty() && wildcardAllow == null && wildcardDeny == null)\n return;\n\n String ip= socket.getInetAddress().getHostAddress (); // The remote IP\n\n // first, check allows or denies for specific/whole IPs (no wildcards)\n Boolean specificAllow= specificIPPerms.get(ip);\n if (specificAllow == Boolean.TRUE) { // specific IP allow\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n\n } else if (specificAllow == Boolean.FALSE) { // specific IP deny\n throw new ISOException(\"access denied, ip=\" + ip);\n\n } else { // no specific match under the specificIPPerms Map\n // We check the wildcard lists, deny first\n if (wildcardDeny != null) {\n for (String wdeny : wildcardDeny) {\n if (ip.startsWith(wdeny)) {\n throw new ISOException (\"access denied, ip=\" + ip);\n }\n }\n }\n if (wildcardAllow != null) {\n for (String wallow : wildcardAllow) {\n if (ip.startsWith(wallow)) {\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n }\n }\n }\n\n // Reaching this point means that nothing matched our specific or wildcard rules, so we fall\n // back on the default permission policies and log type\n switch (ipPermLogPolicy) {\n case DENY_LOG: // only allows were specified, default policy is to deny non-matches and log the issue\n throw new ISOException (\"access denied, ip=\" + ip);\n // break;\n\n case ALLOW_LOG: // only denies were specified, default policy is to allow non-matches and log the issue\n evt.addMessage(\"access granted, ip=\" + ip);\n break;\n\n case DENY_LOGWARNING: // mix of allows and denies were specified, but the IP matched no rules!\n // so we adopt a deny policy but give a special warning\n throw new ISOException (\"access denied, ip=\" + ip + \" (WARNING: the IP did not match any rules!)\");\n // break;\n\n case ALLOW_NOLOG: // this is the default case when no allow/deny are specified\n // the method will abort early on the first \"if\", so this is here just for completion\n break;\n }\n\n }\n // we should never reach this point!! :-)\n }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "private SingleConstraintMatch mergeConstraints(final RuntimeMatch currentMatch) {\n if (currentMatch.uncovered && denyUncoveredHttpMethods) {\n return new SingleConstraintMatch(SecurityInfo.EmptyRoleSemantic.DENY, Collections.<String>emptySet());\n }\n final Set<String> allowedRoles = new HashSet<>();\n for (SingleConstraintMatch match : currentMatch.constraints) {\n if (match.getRequiredRoles().isEmpty()) {\n return new SingleConstraintMatch(match.getEmptyRoleSemantic(), Collections.<String>emptySet());\n } else {\n allowedRoles.addAll(match.getRequiredRoles());\n }\n }\n return new SingleConstraintMatch(SecurityInfo.EmptyRoleSemantic.PERMIT, allowedRoles);\n }", "@Override\n public void onRequestNoAsk(String permissionName) {\n }", "@Test\n public void shouldReturnOnErrorWithRequestNotPermittedUsingFlowable() {\n RateLimiterConfig rateLimiterConfig = RateLimiterConfig.custom()\n .limitRefreshPeriod(Duration.ofMillis(CYCLE_IN_MILLIS))\n .limitForPeriod(PERMISSIONS_RER_CYCLE)\n .timeoutDuration(TIMEOUT_DURATION)\n .build();\n\n // Create a RateLimiterRegistry with a custom global configuration\n RateLimiter rateLimiter = RateLimiter.of(LIMITER_NAME, rateLimiterConfig);\n\n assertThat(rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n Flowable.fromIterable(makeEleven())\n .lift(RateLimiterOperator.of(rateLimiter))\n .test()\n .assertError(RequestNotPermitted.class)\n .assertNotComplete()\n .assertSubscribed();\n\n assertThat(!rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n RateLimiter.Metrics metrics = rateLimiter.getMetrics();\n\n assertThat(metrics.getAvailablePermissions()).isEqualTo(0);\n assertThat(metrics.getNumberOfWaitingThreads()).isEqualTo(0);\n }", "Set<HttpMethod> optionsForAllow(URI url) throws RestClientException;", "@Test(priority = 10)\n\tpublic void testGetAllClients2() {\n\t\tResponse response = given().header(\"Authorization\", \"Bad Token\").when().get(URL).then().extract().response();\n\n\t\tassertTrue(response.statusCode() == 401);\n\t\tassertTrue(response.asString().contains(\"Unauthorized\"));\n\n\t\tgiven().header(\"Authorization\", token).when().get(URL + \"/notAURL\").then().assertThat().statusCode(404);\n\n\t\tgiven().header(\"Authorization\", token).when().post(URL).then().assertThat().statusCode(405);\n\t}", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "@Test\r\n\tpublic void testDenyFriendRequest() {\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\tassertTrue(p1.denyFriendRequest(\"JavaLord\"));\r\n\t\tassertFalse(p1.denyFriendRequest(\"JavaLord\"));\r\n\t}", "@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }", "@Override\n\tpublic void requestLaw() {\n\t\tSystem.out.println(\"xiaoming-requestLaw\");\n\t}", "private void filterAndHandleRequest () {\n\t// Filter the request based on the header.\n\t// A response means that the request is blocked.\n\t// For ad blocking, bad header configuration (http/1.1 correctness) ... \n\tHttpHeaderFilterer filterer = proxy.getHttpHeaderFilterer ();\n\tHttpHeader badresponse = filterer.filterHttpIn (this, channel, request);\n\tif (badresponse != null) {\n\t statusCode = badresponse.getStatusCode ();\n\t sendAndClose (badresponse);\n\t} else {\n\t status = \"Handling request\";\n\t if (getMeta ())\n\t\thandleMeta ();\n\t else\n\t\thandleRequest ();\n\t}\n }", "protected abstract RateLimitRule createRule(HttpMessage msg) throws URIException;", "@Test\n public void testAliceAccess() throws IOException {\n HttpResponse response = makeRequest(\"http://localhost:8080/api/alice\", \"alice\", \"alice\");\n assertAccessGranted(response, \"alice\");\n\n // alice can not access information about jdoe\n response = makeRequest(\"http://localhost:8080/api/jdoe\", \"alice\", \"alice\");\n assertEquals(403, response.getStatusLine().getStatusCode());\n }", "private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test\n public void shouldReturnOnErrorWithRequestNotPermittedUsingObservable() {\n RateLimiterConfig rateLimiterConfig = RateLimiterConfig.custom()\n .limitRefreshPeriod(Duration.ofMillis(CYCLE_IN_MILLIS))\n .limitForPeriod(PERMISSIONS_RER_CYCLE)\n .timeoutDuration(TIMEOUT_DURATION)\n .build();\n\n // Create a RateLimiterRegistry with a custom global configuration\n RateLimiter rateLimiter = RateLimiter.of(LIMITER_NAME, rateLimiterConfig);\n\n assertThat(rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n Observable.fromIterable(makeEleven())\n .lift(RateLimiterOperator.of(rateLimiter))\n .test()\n .assertError(RequestNotPermitted.class)\n .assertNotComplete()\n .assertSubscribed();\n\n assertThat(!rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n RateLimiter.Metrics metrics = rateLimiter.getMetrics();\n\n assertThat(metrics.getAvailablePermissions()).isEqualTo(0);\n assertThat(metrics.getNumberOfWaitingThreads()).isEqualTo(0);\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "public void test5(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().matches(\"trustme.com\")){ // disabled\n\n }\n }", "void requestNeededPermissions(int requestCode);", "public InboundSecurityRules() {\n }", "private void authorize() {\r\n\r\n\t}", "private void configureConnectionPerms() throws ConfigurationException\n {\n boolean hasAllows= false, hasDenies= false;\n\n String[] allows= cfg.getAll (\"allow\");\n if (allows != null && allows.length > 0) {\n hasAllows= true;\n\n for (String allowIP : allows) {\n allowIP= allowIP.trim();\n\n if (allowIP.indexOf('*') == -1) { // specific IP with no wildcards\n specificIPPerms.put(allowIP, true);\n } else { // there's a wildcard\n wildcardAllow= (wildcardAllow == null) ? new ArrayList<>() : wildcardAllow;\n String[] parts= allowIP.split(\"[*]\");\n wildcardAllow.add(parts[0]); // keep only the first part\n }\n }\n }\n\n String[] denies= cfg.getAll (\"deny\");\n if (denies != null && denies.length > 0) {\n hasDenies= true;\n\n for (String denyIP : denies) {\n boolean conflict= false; // used for a little sanity check\n\n denyIP= denyIP.trim();\n if (denyIP.indexOf('*') == -1) { // specific IP with no wildcards\n Boolean oldVal= specificIPPerms.put(denyIP, false);\n conflict= (oldVal == Boolean.TRUE);\n } else { // there's a wildcard\n wildcardDeny= (wildcardDeny == null) ? new ArrayList<>() : wildcardDeny;\n String[] parts= denyIP.split(\"[*]\");\n if (wildcardAllow != null && wildcardAllow.contains(parts[0]))\n conflict= true;\n else\n wildcardDeny.add(parts[0]); // keep only the first part\n }\n\n if (conflict) {\n throw new ConfigurationException(\n \"Conflicting IP permission in '\"+getName()+\"' configuration: 'deny' \"\n +denyIP+\" while having an identical previous 'allow'.\");\n }\n }\n }\n\n // sum up permission policy and logging type\n ipPermLogPolicy= (!hasAllows && !hasDenies) ? PermLogPolicy.ALLOW_NOLOG : // default when no permissions specified\n ( hasAllows && !hasDenies) ? PermLogPolicy.DENY_LOG :\n (!hasAllows && hasDenies) ? PermLogPolicy.ALLOW_LOG :\n PermLogPolicy.DENY_LOGWARNING; // mixed allows & denies, if nothing matches we'll DENY and log a warning\n }", "private void manageDeniedPacket(MeetingPacket packet) {\n Console.comment(\"=> Denied packet from \" + packet.getSourceAddress()) ;\n\n if(this.callbackOnDenied != null) {\n this.callbackOnDenied.denied() ;\n }\n }", "public NetworkRuleBypassOptions bypass() {\n return this.bypass;\n }", "public void testFirstNamedSecondTemporaryQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "void handleManualFilterRequest();", "private void defaultMalwareShouldBeFound(String filter) throws Exception {\n restMalwareMockMvc.perform(get(\"/api/malwares?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(malware.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].description\").value(hasItem(DEFAULT_DESCRIPTION.toString())))\n .andExpect(jsonPath(\"$.[*].nom\").value(hasItem(DEFAULT_NOM.toString())))\n .andExpect(jsonPath(\"$.[*].type\").value(hasItem(DEFAULT_TYPE.toString())))\n .andExpect(jsonPath(\"$.[*].libelle\").value(hasItem(DEFAULT_LIBELLE.toString())));\n }", "@Override\n protected Pattern getServerFailurePattern() {\n return null;\n }", "@Test\n public void requestPassThroughForNoAuth() throws AmplifyException {\n final AuthorizationType mode = AuthorizationType.AMAZON_COGNITO_USER_POOLS;\n\n // NoAuth class does not have use @auth directive\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<NoAuth> originalRequest = createRequest(NoAuth.class, subscriptionType);\n GraphQLRequest<NoAuth> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertEquals(originalRequest, modifiedRequest);\n }\n }", "private void caseForfeit(Request request) {\n }", "public void testFirstTemporarySecondDurableThirdNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n ObjectProperties namedDurable = new ObjectProperties(_queueName);\n namedDurable.put(ObjectProperties.Property.DURABLE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedDurable);\n _ruleSet.grant(3, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(3, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n }", "private void withdrawIntercepts() {\n TrafficSelector.Builder selector = DefaultTrafficSelector.builder();\n selector.matchEthType(Ethernet.TYPE_IPV4);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_ARP);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_IPV6);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n }", "public void createOnlyLBPolicy(){\n\t\t\n\t\tIterator<CacheObject> ican = cacheList.iterator();\n\t\t\n\t\tint objcounter = 0;\n\t\t\n\t\twhile(ican.hasNext() && objcounter < (OBJ_FOR_REQ)){\n\t\t\t\n\t\t\tobjcounter ++;\n\t\t\tCacheObject tempCacheObject = ican.next();\n\t\t\tIterator<ASServer> itm = manager.getASServers().values().iterator();\n\t\t\twhile(itm.hasNext()){\n\t\t\t\t\n\t\t\t\tASServer as = itm.next();\n\t\t\t\tif(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey) == null){\n\t\t\t\t\t//System.out.println(\"Mapping Map is NULL\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tArrayList<String> urllist = new ArrayList<String>(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey));\n\t\t\t\tIterator<String> iurl = urllist.iterator();\n\t\t\t\twhile(iurl.hasNext()){\n\t\t\t\t\tString url = iurl.next();\n\t\t\t\t\tif(!urlList.contains(url)){\n\t\t\t\t\t\turlList.add(url);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint urlcounter = 0;\n\t\tint urllistsize = urlList.size();\n\t\tCollection<String> it1 = serverList.keySet();\n\t\tArrayList<String> server = new ArrayList<String>(it1);\n\t\t\n\t\twhile(urlcounter < urllistsize){\n\t\t\t\n\t\t\tString serId = server.get( (urlcounter) % NO_SERVERS );\n\t\t\tthis.currentLBPolicy.mapUrlToServers(urlList.get(urlcounter++), Analyser.resolveHost(serId));\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"------------LBPolicy start---------------\");\n//\t\tSystem.out.println(currentLBPolicy);\n//\t\t\n\t\tSystem.out.println(\"Number of entries in LBPolicy are: \" + currentLBPolicy.policyMap.size() );\n//\t\n\t\tSystem.out.println(\"------------LBPolicy end-----------------\");\n\t\t/*\n\t\tif(mLogger.isInfoEnabled()){\n\t\t\tmLogger.log(Priority.INFO, \"LBPolicy being printed\");\n\t\tmLogger.log(Priority.INFO, \":\" + this.currentLBPolicy);\n\t\t\n\t}\n\t\t*/\n\t}", "@Override\n public void onRequestRefuse(String permissionName) {\n }", "@Test\n public void addPerCallPolicy() {\n KeyVaultAccessControlAsyncClient keyVaultAccessControlAsyncClient = new KeyVaultAccessControlClientBuilder()\n .vaultUrl(vaultUrl)\n .credential(new TestUtils.TestCredential())\n .addPolicy(new TestUtils.PerCallPolicy())\n .addPolicy(new TestUtils.PerRetryPolicy())\n .buildAsyncClient();\n\n HttpPipeline pipeline = keyVaultAccessControlAsyncClient.getHttpPipeline();\n\n int retryPolicyPosition = -1, perCallPolicyPosition = -1, perRetryPolicyPosition = -1;\n\n for (int i = 0; i < pipeline.getPolicyCount(); i++) {\n if (pipeline.getPolicy(i).getClass() == RetryPolicy.class) {\n retryPolicyPosition = i;\n }\n\n if (pipeline.getPolicy(i).getClass() == TestUtils.PerCallPolicy.class) {\n perCallPolicyPosition = i;\n }\n\n if (pipeline.getPolicy(i).getClass() == TestUtils.PerRetryPolicy.class) {\n perRetryPolicyPosition = i;\n }\n }\n\n assertTrue(perCallPolicyPosition != -1);\n assertTrue(perCallPolicyPosition < retryPolicyPosition);\n assertTrue(retryPolicyPosition < perRetryPolicyPosition);\n }", "@Override\r\n public void configure(WebSecurity web) throws Exception {\r\n web.ignoring().antMatchers(HttpMethod.OPTIONS, \"/**\");\r\n }", "@Test\n\tpublic void testHttpMethodPriorityVsOtherAttributes() {\n\n\t\tthis.requestDefinitions.get(0).setHttpMethod(HttpMethod.UNKNOWN);\n\t\tthis.requestDefinitions.get(0).setAccept(MediaType.HTML);\n\n\t\tthis.requestDefinitions.get(1).setHttpMethod(HttpMethod.GET);\n\t\tthis.requestDefinitions.get(1).setAccept(MediaType.UNKNOWN);\n\n\t\tthis.requestDefinitions.get(2).setHttpMethod(HttpMethod.UNKNOWN);\n\t\tthis.requestDefinitions.get(2).setAccept(MediaType.HTML);\n\n\t\tfinal List<RequestDefinition> expected = Arrays.asList(this.requestDefinitions.get(1),\n\t\t\t\tthis.requestDefinitions.get(0), this.requestDefinitions.get(2));\n\n\t\tCollections.sort(this.requestDefinitions, this.comparator);\n\t\tAssert.assertEquals(expected, this.requestDefinitions);\n\t}", "public void addExceptionRules(Collection<PatternActionRule> rules) {\n\t\tthis.patternActionRules.addAll(rules);\n\t\tCollections.sort(this.patternActionRules);\n\t}", "public void setNegativePermissions();", "@Test\n public void testSetPolicy2() throws Exception {\n setupPermission(PathUtils.ROOT_PATH, getTestUser().getPrincipal(), true, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n setupPermission(null, getTestUser().getPrincipal(), true, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n\n setupPermission(getTestRoot(), null, EveryonePrincipal.getInstance(), false, JCR_NAMESPACE_MANAGEMENT);\n }", "private boolean allowFeedsCollectionAccess(AuthzResource resource,\tString method, String subject, String subjectgroup) {\n\t\treturn method != null && (method.equalsIgnoreCase(\"GET\") || method.equalsIgnoreCase(\"POST\"));\n\t}", "public interface Rule {\n\n /**\n * Process this security event and detects whether this represents a security breach from the perspective of this rule\n * \n * @param event\n * event to process\n * @return security breach - either a breach or not (could be delayed)\n */\n SecurityBreach isSecurityBreach(SecurityEvent event);\n\n /**\n * Detects whether this rule is applicable in the in-passed security mode. Each rule guarantees to return the very same value of this method at\n * runtime. E.g. if this method returns true for an instance, it is guaranteed it will always return true within the lifecycle of this object\n * \n * @param securityMode\n * security mode to test applicability of this rule against\n * @return true if so, false otherwise\n */\n boolean isApplicable(SecurityMode securityMode);\n\n /**\n * Detects whether this rule is enabled or not\n * \n * @return true if so, false otherwise\n */\n boolean isEnabled();\n\n /**\n * Get human readable description of this rule. It should be a unique string compared to all other rules\n * \n * @return unique description of this rule\n */\n String getDescription();\n\n /**\n * Gets Unique ID of this Rule\n * \n * @return integer identification of this rule\n */\n int getId();\n\n /**\n * Update this rule based on the in-passed rule detail (e.g. whether it is enabled, etc)\n * \n * @param ruleDetail\n * rule detail to use to update this rule\n */\n void updateFrom(RuleDetail ruleDetail);\n}", "@Test\n public void testMatchValid() {\n Matcher mtch = filter.getMatcher(FULL_URI);\n assertTrue(\"no match\", filter.isResourceAccess(mtch));\n }", "@Override\n public void denyAdoptionRequest(Animal animal) {\n animalsDatabase.removeAdoptionRequestFromAnimal(animal);\n }", "public synchronized void blacklist( IpNetwork network ) {\n server.addToACL( network, false );\n if ( Log.isLogging( Log.DEBUG_EVENTS ) ) {\n Log.append( HTTPD.EVENT, \"Blacklisted \" + network.toString() );\n Log.append( HTTPD.EVENT, \"ACL: \" + server.getIpAcl().toString() );\n }\n }", "Set<HttpMethod> optionsForAllow(String url, Object... uriVariables) throws RestClientException;", "@Override\n\tpublic boolean isDenied();", "protected RedirectRule loadRule(Element elem) {\r\n\t\t\r\n\t\t// Ignore if required attributes are missing\r\n\t\tif (!elem.hasAttribute(\"match\"))\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tString action = elem.getTagName();\r\n\t\t\r\n\t\tif (action.equals(\"forward\")) {\r\n\t\t\tForwardAction rule = new ForwardAction();\r\n\t\t\tif (!elem.hasAttribute(\"target\")) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\trule.match = Pattern.compile(elem.getAttribute(\"match\"));\r\n\t\t\trule.target = elem.getAttribute(\"target\");\r\n\t\t\t\r\n\t\t\trule.localAddress = elem.hasAttribute(\"local-address\")? \r\n\t\t\t\t\telem.getAttribute(\"local-address\") : null;\r\n\t\t\trule.remoteRange = elem.hasAttribute(\"remote-address\")?\r\n\t\t\t\t\telem.getAttribute(\"remote-address\") : null;\r\n\t\t\t\r\n\t\t\treturn rule;\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif (action.equals(\"redirect\")) {\r\n\t\t\tRedirectAction rule = new RedirectAction();\r\n\t\t\tif (!elem.hasAttribute(\"target\")) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\trule.match = Pattern.compile(elem.getAttribute(\"match\"));\r\n\t\t\trule.target = elem.getAttribute(\"target\");\r\n\t\t\t\r\n\t\t\trule.localAddress = elem.hasAttribute(\"local-address\")? \r\n\t\t\t\t\telem.getAttribute(\"local-address\") : null;\r\n\t\t\trule.remoteRange = elem.hasAttribute(\"remote-address\")?\r\n\t\t\t\t\telem.getAttribute(\"remote-address\") : null;\r\n\t\t\t\r\n\t\t\trule.permanent = elem.hasAttribute(\"permanent\")?\r\n\t\t\t\t\telem.getAttribute(\"permanent\").equals(\"yes\") : false;\r\n\t\t\trule.encodeUrl = elem.hasAttribute(\"encode-url\")? \r\n\t\t\t\t\telem.getAttribute(\"encode-url\").equals(\"yes\") : false;\r\n\t\t\trule.entireUrl = elem.hasAttribute(\"entire-url\")?\r\n\t\t\t\t\telem.getAttribute(\"entire-url\").equals(\"yes\") : false;\r\n\t\t\trule.cache = elem.hasAttribute(\"cache\")?\r\n\t\t\t\t\telem.getAttribute(\"cache\") : null;\r\n\r\n\t\t\treturn rule;\r\n\t\t}\r\n\t\t\r\n\t\tif (action.equals(\"ignore\")) {\r\n\t\t\tIgnoreAction rule = new IgnoreAction();\r\n\t\t\t\r\n\t\t\trule.match = Pattern.compile(elem.getAttribute(\"match\"));\r\n\t\t\t\r\n\t\t\trule.localAddress = elem.hasAttribute(\"local-address\")? \r\n\t\t\t\t\telem.getAttribute(\"local-address\") : null;\r\n\t\t\trule.remoteRange = elem.hasAttribute(\"remote-address\")?\r\n\t\t\t\t\telem.getAttribute(\"remote-address\") : null;\r\n\t\t\treturn rule;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@PreAuthorize(\"hasAuthority('ROLE_USER')\") //got a 401 event though my antMatcher was set to allow all for dist\n @GetMapping(\"distance/{id}\")\n public ResponseEntity<?> getDistanceById(@PathVariable(\"id\") Integer id) throws ResourceNotFoundException{\n log.info(\"getDistanceById\");\n Distance distance = distanceService.getDistanceById(id);\n if (distance == null){\n // return new ResponseEntity<CustomErrorMsg>(new CustomErrorMsg(\"Distance ID \" + id + \" Not Found\"),HttpStatus.NOT_FOUND);\n throw new ResourceNotFoundException(\"Distance ID \" + id + \" Not Found\");\n }\n return new ResponseEntity<Distance>(distance, HttpStatus.OK);\n }", "@Override\n\tpublic boolean checkAuthorization(HttpServletRequest request) {\n\t\treturn true;\n\t}", "boolean ignoresPermission();", "@Override\n\tpublic void requestLawyer() {\n\t\tSystem.out.println(\"xiaoming-requestLawyer\");\n\t}", "@Test\n public void testAffects2() throws Exception\n {\n HttpResponse mockResponse = mock(HttpResponse.class);\n\n RedirectPolicy mockPolicy = mock(RedirectPolicy.class);\n when(mockPolicy.affects(mockResponse)).thenReturn(false);\n\n RedirectPolicy testPolicy = new Temporary(mockPolicy);\n\n when(mockResponse.status()).thenReturn(HttpStatus.TEMPORARY_REDIRECT);\n assertFalse(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.FOUND);\n assertFalse(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.SEE_OTHER);\n assertFalse(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.PERMANENT_REDIRECT);\n assertFalse(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.MOVED_PERMANENTLY);\n assertFalse(testPolicy.affects(mockResponse));\n }", "@Test\n public void testDenyAccessWithNegateUserAttributeCondition() {\n final String flowAlias = \"browser - user attribute condition\";\n final String userWithoutAttribute = \"test-user@localhost\";\n final String errorMessage = \"You don't have necessary attribute.\";\n\n Map<String, String> attributeConfigMap = new HashMap<>();\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_ATTRIBUTE_NAME, \"attribute\");\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_ATTRIBUTE_EXPECTED_VALUE, \"value\");\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_NOT, \"true\");\n\n Map<String, String> denyAccessConfigMap = new HashMap<>();\n denyAccessConfigMap.put(DenyAccessAuthenticatorFactory.ERROR_MESSAGE, errorMessage);\n\n configureBrowserFlowWithDenyAccessInConditionalFlow(flowAlias, ConditionalUserAttributeValueFactory.PROVIDER_ID, attributeConfigMap, denyAccessConfigMap);\n\n try {\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userWithoutAttribute);\n\n errorPage.assertCurrent();\n assertThat(errorPage.getError(), is(errorMessage));\n\n events.expectLogin()\n .user((String) null)\n .session((String) null)\n .error(Errors.ACCESS_DENIED)\n .detail(Details.USERNAME, userWithoutAttribute)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n } finally {\n revertFlows(testRealm(), flowAlias);\n }\n }", "@Override\n public void onGranted() {\n }", "@Override\n public void configure(final WebSecurity web) throws Exception {\n web.ignoring()\n .antMatchers(HttpMethod.OPTIONS, \"/**\")\n .antMatchers(HttpMethod.POST, \"/api/v1/user\")\n .antMatchers(HttpMethod.GET, \"/api/v1/*/public**\")\n .antMatchers(HttpMethod.GET, \"/api/v1/*/public/**\");\n }", "void blocked(HttpServletRequest request, HttpServletResponse response) throws IOException;", "public void test1(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().contains(\"trustme.com\")){ // disabled\n\n }\n }", "@Override\n public Publisher<MutableHttpResponse<?>> reject(HttpRequest<?> request, boolean forbidden) {\n return Flowable.fromPublisher(super.reject(request, forbidden))\n .map(response -> response.header(\"X-Reason\", \"Example Header\"));\n }", "@Override\r\n\tpublic void specialAbility() {\n\t}", "@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "private void receiveDenial(DenyMessage denyMessage) throws CantReceiveDenialException {\n\n try {\n\n ProtocolState protocolState = ProtocolState.PROCESSING_SEND;\n\n cryptoAddressesNetworkServiceDao.denyAddressExchangeRequest(\n denyMessage.getRequestId(),\n protocolState\n );\n\n final CryptoAddressRequest cryptoAddressRequest = cryptoAddressesNetworkServiceDao.getPendingRequest(denyMessage.getRequestId());\n\n// executorService.submit(new Runnable() {\n// @Override\n// public void run() {\n// try {\n// sendNewMessage(\n// getProfileSenderToRequestConnection(cryptoAddressRequest.getIdentityPublicKeyRequesting()),\n// getProfileDestinationToRequestConnection(cryptoAddressRequest.getIdentityPublicKeyResponding()),\n// buildJsonReceivedMessage(cryptoAddressRequest));\n// } catch (CantSendMessageException e) {\n// reportUnexpectedException(e);\n// }\n// }\n// });\n//\n\n\n cryptoAddressesNetworkServiceDao.changeActionState(denyMessage.getRequestId(), RequestAction.RECEIVED);\n\n } catch (CantDenyAddressExchangeRequestException | PendingRequestNotFoundException e){\n // PendingRequestNotFoundException - THIS SHOULD' HAPPEN.\n reportUnexpectedException(e);\n throw new CantReceiveDenialException(e, \"\", \"Error in crypto addresses DAO\");\n } catch (Exception e){\n\n reportUnexpectedException(e);\n throw new CantReceiveDenialException(FermatException.wrapException(e), null, \"Unhandled Exception.\");\n }\n }", "AllowAction(ModeUsage modeUsage) {\n super(modeUsage);\n }", "@Test\n public void testDenialWithPrejudice() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n permissions, new boolean[] {false});\n }", "private void checkRequest(Request req) throws MethodNotAllowed, NotFound {\n if (!req.getHeader(\"Method\").equals(\"GET\") ||\n !req.getHeader(\"Version\").equals(\"HTTP/1.1\")) {\n throw new MethodNotAllowed();\n }\n if (req.getHeader(\"Path\").endsWith(\"/\")) {\n throw new NotFound();\n }\n }", "private static void hackRequestForSwitchingSecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingSecureScheme\");\n Http.Request.current().secure = true;\n hackRequestPort();\n }", "@Test\n public void testPostOverrideAccess2() {\n // create discussion which will be limited for user\n Discussion limitedDiscussion = new Discussion(-11L, \"Limited discussion\");\n limitedDiscussion.setTopic(topic);\n Post p = new Post(\"Post in limited discussion\");\n p.setDiscussion(limitedDiscussion);\n\n // set permissions\n // has full access to every post in category except the ones in the limited discussion\n // note that limitedDiscussion permission is added as the second one so that sorting in PermissionService.checkPermissions is tested also\n PermissionData categoryPostPerms = new PermissionData(true, true, true, true);\n PermissionData discussionPostPerms = new PermissionData(true, false, false, true);\n pms.configurePostPermissions(testUser, limitedDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertTrue(accessControlService.canEditPost(post), \"Test user should be able to edit posts in discussion!\");\n assertTrue(accessControlService.canRemovePost(post), \"Test user should be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(limitedDiscussion), \"Test user should be able to view posts in limited discussion!\");\n assertTrue(accessControlService.canAddPost(limitedDiscussion), \"Test user should be able to add posts in limited discussion!\");\n assertFalse(accessControlService.canEditPost(p), \"Test user should not be able to edit post in limited discussion!\");\n assertFalse(accessControlService.canRemovePost(p), \"Test user should not be able to remove post from limited discussion!\");\n }", "@Override\n\tprotected boolean onAccessDenied(ServletRequest arg0, ServletResponse arg1) throws Exception {\n\t\treturn false;\n\t}", "void permissionGranted(int requestCode);", "public void add_rule(Rule rule) throws Exception;", "void assertSecureChannel(HttpServletRequest request) throws AccessControlException;", "private void sendSecurityProblems(HttpRequest request,\n\t\t\tHttpResponse response, L2pSecurityException e) {\n\t\tresponse.clearContent();\n\t\tresponse.setStatus( HttpResponse.STATUS_FORBIDDEN );\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tresponse.println ( \"You don't have access to the method you requested\" );\n\t\tconnector.logError(\"Security exception in invocation request \" + request.getPath());\n\t\t\n\t\tif ( System.getProperty(\"http-connector.printSecException\") != null\n\t\t\t\t&& System.getProperty( \"http-connector.printSecException\").equals ( \"true\" ) )\n\t\t\te.printStackTrace();\n\t}", "default void acquirePermit() {\n acquirePermits(1);\n }", "@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n }", "@Test\n public void testJdoeAccess() throws IOException {\n HttpResponse response = makeRequest(\"http://localhost:8080/api/jdoe\", \"jdoe\", \"jdoe\");\n assertAccessGranted(response, \"jdoe\");\n\n // jdoe can access information about alice because he is granted with \"people-manager\" role\n response = makeRequest(\"http://localhost:8080/api/alice\", \"jdoe\", \"jdoe\");\n assertAccessGranted(response, \"alice\");\n }", "void rejects_invalid_racer() {\n }", "boolean requestIfNeeded(Activity activity, Permission permission);", "@Test\n public void testRequestPermissionFromTwoGroups() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n\n String[] permissions = new String[] {\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.WRITE_CALENDAR\n };\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true, true});\n }", "public SpecificIPAllowedWebActivityServlet() {\n super();\n }", "public Set<HttpMethod> getAllow()\r\n/* 137: */ {\r\n/* 138:209 */ String value = getFirst(\"Allow\");\r\n/* 139:210 */ if (value != null)\r\n/* 140: */ {\r\n/* 141:211 */ List<HttpMethod> allowedMethod = new ArrayList(5);\r\n/* 142:212 */ String[] tokens = value.split(\",\\\\s*\");\r\n/* 143:213 */ for (String token : tokens) {\r\n/* 144:214 */ allowedMethod.add(HttpMethod.valueOf(token));\r\n/* 145: */ }\r\n/* 146:216 */ return (Set)EnumSet.copyOf(allowedMethod);\r\n/* 147: */ }\r\n/* 148:219 */ return (Set)EnumSet.noneOf(HttpMethod.class);\r\n/* 149: */ }", "protected boolean mustTunnel (RequestHandler rh) {\n\tString auth = request.getHeader (\"Authorization\");\n\tif (auth != null) {\n\t if (auth.startsWith (\"NTLM\") || auth.startsWith (\"Negotiate\"))\n\t\treturn true;\n\t}\n\treturn false;\n }", "void assertSecureRequest(HttpServletRequest request) throws AccessControlException;", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}" ]
[ "0.679274", "0.64495707", "0.63326126", "0.56599826", "0.55153215", "0.55069274", "0.5441902", "0.52557397", "0.5249632", "0.52080643", "0.5190864", "0.5169459", "0.515467", "0.5151389", "0.5136909", "0.5134601", "0.51123214", "0.5103548", "0.5103191", "0.5093981", "0.50807345", "0.5076985", "0.5067653", "0.5063283", "0.50550777", "0.5046909", "0.504476", "0.50259185", "0.50081736", "0.49906603", "0.49612597", "0.49573043", "0.49403837", "0.4938347", "0.4932833", "0.49309108", "0.4928953", "0.49089143", "0.4899443", "0.48745388", "0.48546126", "0.48529792", "0.4849824", "0.48365924", "0.4824012", "0.48171678", "0.48087612", "0.48060092", "0.4805062", "0.48006225", "0.47961167", "0.47899574", "0.47892672", "0.47866255", "0.47704294", "0.476942", "0.47632864", "0.4761339", "0.4759628", "0.47567984", "0.4734166", "0.4733389", "0.47293887", "0.47280088", "0.47174284", "0.47153977", "0.4714043", "0.4707122", "0.47047827", "0.4702705", "0.47023764", "0.46964958", "0.46959132", "0.46949634", "0.46880627", "0.4686181", "0.4662948", "0.46531275", "0.4645087", "0.46447602", "0.46402907", "0.46374154", "0.46359298", "0.46348217", "0.46292165", "0.46261656", "0.4626044", "0.46138558", "0.46098375", "0.460953", "0.46084046", "0.46049833", "0.4599111", "0.4591185", "0.45903388", "0.45779142", "0.4576315", "0.45742488", "0.4573066", "0.45721284" ]
0.4828479
44
The more specific rules are first, so those requests are denied.
public void testFirstTemporarySecondDurableThirdNamedQueueDenied() { ObjectProperties named = new ObjectProperties(_queueName); ObjectProperties namedTemporary = new ObjectProperties(_queueName); namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); ObjectProperties namedDurable = new ObjectProperties(_queueName); namedDurable.put(ObjectProperties.Property.DURABLE, Boolean.TRUE); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named)); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary)); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable)); _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary); _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedDurable); _ruleSet.grant(3, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named); assertEquals(3, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named)); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary)); assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDenyDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n \n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "private List<IAuthRule> unauthorizedRule() {\n return new RuleBuilder().allow().metadata().andThen().denyAll().build();\n }", "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void setDefaultRestrictions() {\n addPolicy(DISABLE_EXIT);\n addPolicy(DISABLE_ANY_FILE_MATCHER);\n addPolicy(DISABLE_SECURITYMANAGER_CHANGE);\n //addPolicy(DISABLE_REFLECTION_UNTRUSTED);\n addPolicy(DISABLE_EXECUTION);\n addPolicy(DISABLE_TEST_SNIFFING);\n addPolicy(DISABLE_REFLECTION_SELECTIVE);\n addPolicy(DISABLE_SOCKETS);\n\n InterceptorBuilder.installAgent();\n InterceptorBuilder.initDefaultTransformations();\n }", "private void requestIntercepts() {\n TrafficSelector.Builder selector = DefaultTrafficSelector.builder();\n selector.matchEthType(Ethernet.TYPE_IPV4);\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_ARP);\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n\n selector.matchEthType(Ethernet.TYPE_IPV6);\n if (ipv6Forwarding) {\n packetService.requestPackets(selector.build(), PacketPriority.REACTIVE, appId);\n } else {\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n }\n }", "@RequestMapping(path = \"/v1/noncompliancepolicy\", method = RequestMethod.POST)\n // @Cacheable(cacheNames=\"compliance\",unless=\"#result.status==200\")\n // commenting to performance after refacoting\n // @Cacheable(cacheNames=\"compliance\",key=\"#request.key\")\n \n public ResponseEntity<Object> getNonCompliancePolicyByRule(@RequestBody(required = false) Request request) {\n String assetGroup = request.getAg();\n\n Map<String, String> filters = request.getFilter();\n\n if (Strings.isNullOrEmpty(assetGroup) || MapUtils.isEmpty(filters)\n || Strings.isNullOrEmpty(filters.get(DOMAIN))) {\n return ResponseUtils.buildFailureResponse(new Exception(ASSET_GROUP_DOMAIN));\n }\n ResponseWithOrder response = null;\n try {\n response = (complianceService.getRulecompliance(request));\n } catch (ServiceException e) {\n return complianceService.formatException(e);\n }\n return ResponseUtils.buildSucessResponse(response);\n\n }", "@Override\n public void onRequestAllow(String permissionName) {\n }", "public void disableAccessRules() {\n\t\tm_parser.disableAccessRules();\n\t}", "private boolean setAllPolicy(String webMethodName, String opName, String toPermit) \r\n\t{\r\n\t NAASIntegration naas = new NAASIntegration(Phrase.AdministrationLoggerName);\r\n\t boolean ret = true;\r\n\t if(toPermit.equalsIgnoreCase(\"Y\")){\r\n\t \tret = naas.setAllPolicy(webMethodName, opName, NAASRequestor.ACTION_DENY);\r\n\t }else{\r\n\t \tString isExit = verifyPolicy(webMethodName, opName);\r\n\t \tif(isExit!= null && isExit.equalsIgnoreCase(\"deny\")){\r\n\t\t \tret = naas.setAllPolicy(webMethodName, opName, \"\");\t \t\t \t\t\r\n\t \t}\r\n\t }\r\n\t return ret;\r\n\t}", "protected abstract String getAllowedRequests();", "public InboundSecurityRules() {\n }", "@Override\n\tpublic AuthorizationResponse decide(HttpServletRequest request,\n\t\t\tMap<String, String> additionalAttrs) {\n\t\tlog.trace (\"Entering decide()\");\n\t\t\n\t\tboolean decision = false;\n\t\t\n\t\t// Extract interesting parts of the HTTP request\n\t\tString method = request.getMethod();\n\t\tAuthzResource resource = new AuthzResource(request.getRequestURI());\n\t\tString subject = (request.getHeader(SUBJECT_HEADER));\t\t // identity of the requester\n\t\tString subjectgroup = (request.getHeader(SUBJECT_HEADER_GROUP)); // identity of the requester by group Rally : US708115\n\n\t\tlog.trace(\"Method: \" + method + \" -- Type: \" + resource.getType() + \" -- Id: \" + resource.getId() + \n\t\t\t\t\" -- Subject: \" + subject);\n\t\t\n\t\t// Choose authorization method based on the resource type\n\t\tResourceType resourceType = resource.getType();\n\t\tif (resourceType != null) {\n\n\t\t\tswitch (resourceType) {\n\n\t\t\tcase FEEDS_COLLECTION:\n\t\t\t\tdecision = allowFeedsCollectionAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase SUBS_COLLECTION:\n\t\t\t\tdecision = allowSubsCollectionAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase FEED:\n\t\t\t\tdecision = allowFeedAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase SUB:\n\t\t\t\tdecision = allowSubAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tdecision = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tlog.debug(\"Exit decide(): \" + method + \"|\" + resourceType + \"|\" + resource.getId() + \"|\" + subject + \" ==> \" + decision);\n\t\t\n\t\treturn new AuthRespImpl(decision);\n\t}", "@Override\n public List<ResourceFilter> create(AbstractMethod am) {\n if (am.isAnnotationPresent(DenyAll.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter());\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.DENNY_ALL_METHOD)));\n }\n\n // RolesAllowed on the method takes precedence over PermitAll\n RolesAllowed ra = am.getAnnotation(RolesAllowed.class);\n if (ra != null) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.ROLES_ALLOWED_METHOD, ra.value())));\n }\n\n // PermitAll takes precedence over RolesAllowed on the class\n if (am.getResource().isAnnotationPresent(PermitAll.class)) {\n if (am.getResource().isAnnotationPresent(Authenticated.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(true));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.PERMIT_ALL_CLASS)));\n }\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.UNAUTHENTICATED)));\n }\n\n // RolesAllowed on the class takes precedence over PermitAll\n ra = am.getResource().getAnnotation(RolesAllowed.class);\n if (ra != null) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.ROLES_ALLOWED_CLASS, ra.value())));\n }\n\n if (am.getResource().isAnnotationPresent(Authenticated.class)\n && !am.isAnnotationPresent(DenyAll.class)\n && !am.isAnnotationPresent(RolesAllowed.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.PERMIT_ALL_METHOD)));\n }\n\n // No need to check whether PermitAll is present.\n return null;\n }", "private void configureConnectionPerms() throws ConfigurationException\n {\n boolean hasAllows= false, hasDenies= false;\n\n String[] allows= cfg.getAll (\"allow\");\n if (allows != null && allows.length > 0) {\n hasAllows= true;\n\n for (String allowIP : allows) {\n allowIP= allowIP.trim();\n\n if (allowIP.indexOf('*') == -1) { // specific IP with no wildcards\n specificIPPerms.put(allowIP, true);\n } else { // there's a wildcard\n wildcardAllow= (wildcardAllow == null) ? new ArrayList<>() : wildcardAllow;\n String[] parts= allowIP.split(\"[*]\");\n wildcardAllow.add(parts[0]); // keep only the first part\n }\n }\n }\n\n String[] denies= cfg.getAll (\"deny\");\n if (denies != null && denies.length > 0) {\n hasDenies= true;\n\n for (String denyIP : denies) {\n boolean conflict= false; // used for a little sanity check\n\n denyIP= denyIP.trim();\n if (denyIP.indexOf('*') == -1) { // specific IP with no wildcards\n Boolean oldVal= specificIPPerms.put(denyIP, false);\n conflict= (oldVal == Boolean.TRUE);\n } else { // there's a wildcard\n wildcardDeny= (wildcardDeny == null) ? new ArrayList<>() : wildcardDeny;\n String[] parts= denyIP.split(\"[*]\");\n if (wildcardAllow != null && wildcardAllow.contains(parts[0]))\n conflict= true;\n else\n wildcardDeny.add(parts[0]); // keep only the first part\n }\n\n if (conflict) {\n throw new ConfigurationException(\n \"Conflicting IP permission in '\"+getName()+\"' configuration: 'deny' \"\n +denyIP+\" while having an identical previous 'allow'.\");\n }\n }\n }\n\n // sum up permission policy and logging type\n ipPermLogPolicy= (!hasAllows && !hasDenies) ? PermLogPolicy.ALLOW_NOLOG : // default when no permissions specified\n ( hasAllows && !hasDenies) ? PermLogPolicy.DENY_LOG :\n (!hasAllows && hasDenies) ? PermLogPolicy.ALLOW_LOG :\n PermLogPolicy.DENY_LOGWARNING; // mixed allows & denies, if nothing matches we'll DENY and log a warning\n }", "Set<HttpMethod> optionsForAllow(URI url) throws RestClientException;", "public void checkPermission (Socket socket, LogEvent evt) throws ISOException\n {\n if (specificIPPerms.isEmpty() && wildcardAllow == null && wildcardDeny == null)\n return;\n\n String ip= socket.getInetAddress().getHostAddress (); // The remote IP\n\n // first, check allows or denies for specific/whole IPs (no wildcards)\n Boolean specificAllow= specificIPPerms.get(ip);\n if (specificAllow == Boolean.TRUE) { // specific IP allow\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n\n } else if (specificAllow == Boolean.FALSE) { // specific IP deny\n throw new ISOException(\"access denied, ip=\" + ip);\n\n } else { // no specific match under the specificIPPerms Map\n // We check the wildcard lists, deny first\n if (wildcardDeny != null) {\n for (String wdeny : wildcardDeny) {\n if (ip.startsWith(wdeny)) {\n throw new ISOException (\"access denied, ip=\" + ip);\n }\n }\n }\n if (wildcardAllow != null) {\n for (String wallow : wildcardAllow) {\n if (ip.startsWith(wallow)) {\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n }\n }\n }\n\n // Reaching this point means that nothing matched our specific or wildcard rules, so we fall\n // back on the default permission policies and log type\n switch (ipPermLogPolicy) {\n case DENY_LOG: // only allows were specified, default policy is to deny non-matches and log the issue\n throw new ISOException (\"access denied, ip=\" + ip);\n // break;\n\n case ALLOW_LOG: // only denies were specified, default policy is to allow non-matches and log the issue\n evt.addMessage(\"access granted, ip=\" + ip);\n break;\n\n case DENY_LOGWARNING: // mix of allows and denies were specified, but the IP matched no rules!\n // so we adopt a deny policy but give a special warning\n throw new ISOException (\"access denied, ip=\" + ip + \" (WARNING: the IP did not match any rules!)\");\n // break;\n\n case ALLOW_NOLOG: // this is the default case when no allow/deny are specified\n // the method will abort early on the first \"if\", so this is here just for completion\n break;\n }\n\n }\n // we should never reach this point!! :-)\n }", "@Override\n\tpublic AuthorizationResponse decide(HttpServletRequest request) {\n\t\t\treturn this.decide(request, null);\n\t}", "private SingleConstraintMatch mergeConstraints(final RuntimeMatch currentMatch) {\n if (currentMatch.uncovered && denyUncoveredHttpMethods) {\n return new SingleConstraintMatch(SecurityInfo.EmptyRoleSemantic.DENY, Collections.<String>emptySet());\n }\n final Set<String> allowedRoles = new HashSet<>();\n for (SingleConstraintMatch match : currentMatch.constraints) {\n if (match.getRequiredRoles().isEmpty()) {\n return new SingleConstraintMatch(match.getEmptyRoleSemantic(), Collections.<String>emptySet());\n } else {\n allowedRoles.addAll(match.getRequiredRoles());\n }\n }\n return new SingleConstraintMatch(SecurityInfo.EmptyRoleSemantic.PERMIT, allowedRoles);\n }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "public boolean denied(String action) {\n if (deny_all) {\n return true;\n }\n\t\tfor(String a : actions) {\n\t\t\tif (a.equals(action)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n public void configure(WebSecurity web) throws Exception {\r\n web.ignoring().antMatchers(HttpMethod.OPTIONS, \"/**\");\r\n }", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "void requestNeededPermissions(int requestCode);", "private void authorize() {\r\n\r\n\t}", "@Override\n\tpublic boolean checkAuthorization(HttpServletRequest request) {\n\t\treturn true;\n\t}", "@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }", "@Test\n public void shouldReturnOnErrorWithRequestNotPermittedUsingFlowable() {\n RateLimiterConfig rateLimiterConfig = RateLimiterConfig.custom()\n .limitRefreshPeriod(Duration.ofMillis(CYCLE_IN_MILLIS))\n .limitForPeriod(PERMISSIONS_RER_CYCLE)\n .timeoutDuration(TIMEOUT_DURATION)\n .build();\n\n // Create a RateLimiterRegistry with a custom global configuration\n RateLimiter rateLimiter = RateLimiter.of(LIMITER_NAME, rateLimiterConfig);\n\n assertThat(rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n Flowable.fromIterable(makeEleven())\n .lift(RateLimiterOperator.of(rateLimiter))\n .test()\n .assertError(RequestNotPermitted.class)\n .assertNotComplete()\n .assertSubscribed();\n\n assertThat(!rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n RateLimiter.Metrics metrics = rateLimiter.getMetrics();\n\n assertThat(metrics.getAvailablePermissions()).isEqualTo(0);\n assertThat(metrics.getNumberOfWaitingThreads()).isEqualTo(0);\n }", "private void filterAndHandleRequest () {\n\t// Filter the request based on the header.\n\t// A response means that the request is blocked.\n\t// For ad blocking, bad header configuration (http/1.1 correctness) ... \n\tHttpHeaderFilterer filterer = proxy.getHttpHeaderFilterer ();\n\tHttpHeader badresponse = filterer.filterHttpIn (this, channel, request);\n\tif (badresponse != null) {\n\t statusCode = badresponse.getStatusCode ();\n\t sendAndClose (badresponse);\n\t} else {\n\t status = \"Handling request\";\n\t if (getMeta ())\n\t\thandleMeta ();\n\t else\n\t\thandleRequest ();\n\t}\n }", "private void defaultMalwareShouldNotBeFound(String filter) throws Exception {\n restMalwareMockMvc.perform(get(\"/api/malwares?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n }", "private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "public void test5(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().matches(\"trustme.com\")){ // disabled\n\n }\n }", "@Override\n public void configure(final WebSecurity web) throws Exception {\n web.ignoring()\n .antMatchers(HttpMethod.OPTIONS, \"/**\")\n .antMatchers(HttpMethod.POST, \"/api/v1/user\")\n .antMatchers(HttpMethod.GET, \"/api/v1/*/public**\")\n .antMatchers(HttpMethod.GET, \"/api/v1/*/public/**\");\n }", "@Override\n\tpublic void requestLaw() {\n\t\tSystem.out.println(\"xiaoming-requestLaw\");\n\t}", "private void withdrawIntercepts() {\n TrafficSelector.Builder selector = DefaultTrafficSelector.builder();\n selector.matchEthType(Ethernet.TYPE_IPV4);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_ARP);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_IPV6);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n }", "@Test(priority = 10)\n\tpublic void testGetAllClients2() {\n\t\tResponse response = given().header(\"Authorization\", \"Bad Token\").when().get(URL).then().extract().response();\n\n\t\tassertTrue(response.statusCode() == 401);\n\t\tassertTrue(response.asString().contains(\"Unauthorized\"));\n\n\t\tgiven().header(\"Authorization\", token).when().get(URL + \"/notAURL\").then().assertThat().statusCode(404);\n\n\t\tgiven().header(\"Authorization\", token).when().post(URL).then().assertThat().statusCode(405);\n\t}", "@Test\n public void addPerCallPolicy() {\n KeyVaultAccessControlAsyncClient keyVaultAccessControlAsyncClient = new KeyVaultAccessControlClientBuilder()\n .vaultUrl(vaultUrl)\n .credential(new TestUtils.TestCredential())\n .addPolicy(new TestUtils.PerCallPolicy())\n .addPolicy(new TestUtils.PerRetryPolicy())\n .buildAsyncClient();\n\n HttpPipeline pipeline = keyVaultAccessControlAsyncClient.getHttpPipeline();\n\n int retryPolicyPosition = -1, perCallPolicyPosition = -1, perRetryPolicyPosition = -1;\n\n for (int i = 0; i < pipeline.getPolicyCount(); i++) {\n if (pipeline.getPolicy(i).getClass() == RetryPolicy.class) {\n retryPolicyPosition = i;\n }\n\n if (pipeline.getPolicy(i).getClass() == TestUtils.PerCallPolicy.class) {\n perCallPolicyPosition = i;\n }\n\n if (pipeline.getPolicy(i).getClass() == TestUtils.PerRetryPolicy.class) {\n perRetryPolicyPosition = i;\n }\n }\n\n assertTrue(perCallPolicyPosition != -1);\n assertTrue(perCallPolicyPosition < retryPolicyPosition);\n assertTrue(retryPolicyPosition < perRetryPolicyPosition);\n }", "public void createOnlyLBPolicy(){\n\t\t\n\t\tIterator<CacheObject> ican = cacheList.iterator();\n\t\t\n\t\tint objcounter = 0;\n\t\t\n\t\twhile(ican.hasNext() && objcounter < (OBJ_FOR_REQ)){\n\t\t\t\n\t\t\tobjcounter ++;\n\t\t\tCacheObject tempCacheObject = ican.next();\n\t\t\tIterator<ASServer> itm = manager.getASServers().values().iterator();\n\t\t\twhile(itm.hasNext()){\n\t\t\t\t\n\t\t\t\tASServer as = itm.next();\n\t\t\t\tif(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey) == null){\n\t\t\t\t\t//System.out.println(\"Mapping Map is NULL\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tArrayList<String> urllist = new ArrayList<String>(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey));\n\t\t\t\tIterator<String> iurl = urllist.iterator();\n\t\t\t\twhile(iurl.hasNext()){\n\t\t\t\t\tString url = iurl.next();\n\t\t\t\t\tif(!urlList.contains(url)){\n\t\t\t\t\t\turlList.add(url);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint urlcounter = 0;\n\t\tint urllistsize = urlList.size();\n\t\tCollection<String> it1 = serverList.keySet();\n\t\tArrayList<String> server = new ArrayList<String>(it1);\n\t\t\n\t\twhile(urlcounter < urllistsize){\n\t\t\t\n\t\t\tString serId = server.get( (urlcounter) % NO_SERVERS );\n\t\t\tthis.currentLBPolicy.mapUrlToServers(urlList.get(urlcounter++), Analyser.resolveHost(serId));\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"------------LBPolicy start---------------\");\n//\t\tSystem.out.println(currentLBPolicy);\n//\t\t\n\t\tSystem.out.println(\"Number of entries in LBPolicy are: \" + currentLBPolicy.policyMap.size() );\n//\t\n\t\tSystem.out.println(\"------------LBPolicy end-----------------\");\n\t\t/*\n\t\tif(mLogger.isInfoEnabled()){\n\t\t\tmLogger.log(Priority.INFO, \"LBPolicy being printed\");\n\t\tmLogger.log(Priority.INFO, \":\" + this.currentLBPolicy);\n\t\t\n\t}\n\t\t*/\n\t}", "@Test\n public void testAliceAccess() throws IOException {\n HttpResponse response = makeRequest(\"http://localhost:8080/api/alice\", \"alice\", \"alice\");\n assertAccessGranted(response, \"alice\");\n\n // alice can not access information about jdoe\n response = makeRequest(\"http://localhost:8080/api/jdoe\", \"alice\", \"alice\");\n assertEquals(403, response.getStatusLine().getStatusCode());\n }", "@Test\r\n\tpublic void testDenyFriendRequest() {\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\tassertTrue(p1.denyFriendRequest(\"JavaLord\"));\r\n\t\tassertFalse(p1.denyFriendRequest(\"JavaLord\"));\r\n\t}", "public void addExceptionRules(Collection<PatternActionRule> rules) {\n\t\tthis.patternActionRules.addAll(rules);\n\t\tCollections.sort(this.patternActionRules);\n\t}", "@Test\n\tpublic void testHttpMethodPriorityVsOtherAttributes() {\n\n\t\tthis.requestDefinitions.get(0).setHttpMethod(HttpMethod.UNKNOWN);\n\t\tthis.requestDefinitions.get(0).setAccept(MediaType.HTML);\n\n\t\tthis.requestDefinitions.get(1).setHttpMethod(HttpMethod.GET);\n\t\tthis.requestDefinitions.get(1).setAccept(MediaType.UNKNOWN);\n\n\t\tthis.requestDefinitions.get(2).setHttpMethod(HttpMethod.UNKNOWN);\n\t\tthis.requestDefinitions.get(2).setAccept(MediaType.HTML);\n\n\t\tfinal List<RequestDefinition> expected = Arrays.asList(this.requestDefinitions.get(1),\n\t\t\t\tthis.requestDefinitions.get(0), this.requestDefinitions.get(2));\n\n\t\tCollections.sort(this.requestDefinitions, this.comparator);\n\t\tAssert.assertEquals(expected, this.requestDefinitions);\n\t}", "@Test\n public void shouldReturnOnErrorWithRequestNotPermittedUsingObservable() {\n RateLimiterConfig rateLimiterConfig = RateLimiterConfig.custom()\n .limitRefreshPeriod(Duration.ofMillis(CYCLE_IN_MILLIS))\n .limitForPeriod(PERMISSIONS_RER_CYCLE)\n .timeoutDuration(TIMEOUT_DURATION)\n .build();\n\n // Create a RateLimiterRegistry with a custom global configuration\n RateLimiter rateLimiter = RateLimiter.of(LIMITER_NAME, rateLimiterConfig);\n\n assertThat(rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n Observable.fromIterable(makeEleven())\n .lift(RateLimiterOperator.of(rateLimiter))\n .test()\n .assertError(RequestNotPermitted.class)\n .assertNotComplete()\n .assertSubscribed();\n\n assertThat(!rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n RateLimiter.Metrics metrics = rateLimiter.getMetrics();\n\n assertThat(metrics.getAvailablePermissions()).isEqualTo(0);\n assertThat(metrics.getNumberOfWaitingThreads()).isEqualTo(0);\n }", "public void setNegativePermissions();", "@Test\n public void testNoMatchValidNoShareId1() {\n Matcher mtch = filter.getMatcher(\"/shares\");\n assertFalse(\"match\", filter.isResourceAccess(mtch));\n }", "void handleManualFilterRequest();", "Set<HttpMethod> optionsForAllow(String url, Object... uriVariables) throws RestClientException;", "@Test\n public void requestPassThroughForNoAuth() throws AmplifyException {\n final AuthorizationType mode = AuthorizationType.AMAZON_COGNITO_USER_POOLS;\n\n // NoAuth class does not have use @auth directive\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<NoAuth> originalRequest = createRequest(NoAuth.class, subscriptionType);\n GraphQLRequest<NoAuth> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertEquals(originalRequest, modifiedRequest);\n }\n }", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "private boolean checkOrigin(InetSocketAddress remoteAddress, boolean isSecured) {\n try {\n if (GlobalSettingsAndNotifier.singleton.getSetting(\"RESTRICT_SECURE\").equals(\"true\") && !isSecured) {\n return false;\n }\n String mode = GlobalSettingsAndNotifier.singleton.getSetting(\"NET_ORIGIN\");\n if (mode.equals(\"NO_RESTRICTIONS\")) {\n return true;\n }\n String a = remoteAddress.getAddress().toString().split(\"/\")[1];\n String add = a.split(\":\")[0];\n if (add == null) {\n add = a;\n }\n System.out.println(add);\n String[] parts = null;\n if (add.contains(\"-\")) {\n\n parts = add.split(\"-\");\n }\n if (add.contains('.' + \"\")) {\n\n parts = add.split(\"\\\\.\");\n }\n\n if (parts == null) {\n\n return false;\n }\n if (parts.length != 4) {\n\n return false;\n }\n final int[] remote = new int[]{Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), Integer.parseInt(parts[2]), Integer.parseInt(parts[3])};\n if (mode.equals(\"RESTRICT_LAN\")) {\n return networkAddressRange.isOnLAN(remote);\n }\n Iterator<networkAddressRange> inar = GlobalSettingsAndNotifier.singleton.permited.iterator();\n System.out.println(\"NrOf rules \" + GlobalSettingsAndNotifier.singleton.permited.size());\n while (inar.hasNext()) {\n\n networkAddressRange n = inar.next();\n System.out.println(\"Check\" + n.getNetworkForHumans());\n n.getAction();\n switch (n.isAllowed(new int[]{Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), Integer.parseInt(parts[2]), Integer.parseInt(parts[3])}, isSecured)) {\n case 1:\n return true;\n case -1:\n return false;\n\n }\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n\n }\n\n if (GlobalSettingsAndNotifier.singleton.getSetting(\"IMPLICIT_ALLOW\").equalsIgnoreCase(\"true\")) {\n\n return true;\n }\n\n return false;\n }", "boolean ignoresPermission();", "private boolean allowFeedsCollectionAccess(AuthzResource resource,\tString method, String subject, String subjectgroup) {\n\t\treturn method != null && (method.equalsIgnoreCase(\"GET\") || method.equalsIgnoreCase(\"POST\"));\n\t}", "@Override\n public void onRequestNoAsk(String permissionName) {\n }", "@Override\n\t\tpublic void configure(HttpSecurity http) throws Exception {\n\n\t\t\thttp.csrf().disable();\n\n\t\t\thttp.authorizeRequests().antMatchers(\"/oauth/token\").anonymous();\n\n\t\t\t// TODO: Why we cannot just use @PreAuthorize() ?\n\n\t\t\t// Require all GET requests to have client \"read\" scope\n\t\t\thttp.authorizeRequests().antMatchers(HttpMethod.GET, \"/rest/**\").access(\"#oauth2.hasScope('read')\");\n\t\t\t// Require all other requests to have \"write\" scope\n//\t\t\thttp.authorizeRequests().antMatchers(\"/rest/**\").access(\"#oauth2.hasScope('write')\");\n\t\t}", "@Override\n protected void configure(HttpSecurity httpSecurity) throws Exception {\n httpSecurity.cors().configurationSource(request -> {\n var cors = new CorsConfiguration();\n cors.setAllowedOrigins(List.of(\"*\"));\n cors.setAllowedMethods(List.of(\"GET\",\"POST\", \"PUT\", \"DELETE\", \"OPTIONS\"));\n cors.setAllowedHeaders(List.of(\"*\"));\n return cors;\n })\n .and()\n .csrf()\n .disable()\n .authorizeRequests()\n .antMatchers(DOCS_WHITELIST).permitAll()\n\n .antMatchers(HttpMethod.POST, jwtConfig.getUri() + \"/login\").permitAll()\n\n .antMatchers(HttpMethod.POST, \"/users/**\").permitAll()\n .antMatchers(HttpMethod.GET, \"/users/me/\").permitAll()\n .antMatchers(HttpMethod.GET, \"/users/**\").hasAnyRole(\"USER\", \"MODERATOR\", \"ADMIN\")\n .antMatchers(HttpMethod.DELETE, \"/users/**\").hasAnyRole(\"ADMIN\")\n .antMatchers(HttpMethod.PUT, \"/users/{userId}/\").hasAnyRole(\"ADMIN\")\n\n .antMatchers(\"/rooms/{roomId}/reservations/\").permitAll()\n\n .antMatchers(HttpMethod.GET, \"/buildings/**\").hasAnyRole(\"USER\", \"MODERATOR\", \"ADMIN\")\n .antMatchers(HttpMethod.POST,\"/buildings/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.PUT,\"/buildings/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.DELETE, \"/buildings/**\").hasRole(\"ADMIN\")\n\n .antMatchers(HttpMethod.GET, \"/rooms/**\").hasAnyRole(\"USER\", \"MODERATOR\", \"ADMIN\")\n .antMatchers(HttpMethod.POST,\"/rooms/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.PUT,\"/rooms/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.DELETE, \"/rooms/**\").hasRole(\"ADMIN\")\n\n .antMatchers(HttpMethod.GET, \"/sections/**\").hasAnyRole(\"USER\", \"MODERATOR\", \"ADMIN\")\n .antMatchers(HttpMethod.POST,\"/sections/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.PUT,\"/sections/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.DELETE, \"/sections/**\").hasRole(\"ADMIN\")\n\n .antMatchers(\"/admin/**\").hasRole(\"ADMIN\")\n\n .anyRequest()\n .authenticated()\n .and()\n .exceptionHandling()\n .authenticationEntryPoint(\n (req, res, e) -> {\n res.setContentType(\"application/json\");\n res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n res.getOutputStream().println(\"{ \\\"message\\\": \\\"Brukernavn eller passord er feil\\\"}\");\n })\n .and()\n .addFilter(new JWTUsernamePasswordAuthenticationFilter(refreshTokenService, authenticationManager(), jwtConfig))\n .addFilterAfter(new JWTAuthenticationFilter(jwtConfig, jwtUtil, userDetailsService), UsernamePasswordAuthenticationFilter.class)\n .sessionManagement()\n .sessionCreationPolicy(SessionCreationPolicy.STATELESS);\n }", "public synchronized void blacklist( IpNetwork network ) {\n server.addToACL( network, false );\n if ( Log.isLogging( Log.DEBUG_EVENTS ) ) {\n Log.append( HTTPD.EVENT, \"Blacklisted \" + network.toString() );\n Log.append( HTTPD.EVENT, \"ACL: \" + server.getIpAcl().toString() );\n }\n }", "@Override\n public Response throttlingPoliciesCustomGet(String accept, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n String userName = RestApiCommonUtil.getLoggedInUsername();\n\n //only super tenant is allowed to access global policies/custom rules\n checkTenantDomainForCustomRules();\n\n Policy[] globalPolicies = apiProvider.getPolicies(userName, PolicyConstants.POLICY_LEVEL_GLOBAL);\n List<GlobalPolicy> policies = new ArrayList<>();\n for (Policy policy : globalPolicies) {\n policies.add((GlobalPolicy) policy);\n }\n CustomRuleListDTO listDTO = GlobalThrottlePolicyMappingUtil\n .fromGlobalPolicyArrayToListDTO(policies.toArray(new GlobalPolicy[policies.size()]));\n return Response.ok().entity(listDTO).build();\n } catch (APIManagementException e) {\n String errorMessage = \"Error while retrieving Global level policies\";\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n return null;\n }", "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n\tpublic void othersShouldNotBeAbleToLookAtLeonardsQueryByItsPrivateId() throws Exception {\n\t\tthis.mockMvc.perform(get(\"/user/me/queries/123456789\").accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isForbidden());\n\t}", "public Set<HttpMethod> getAllow()\r\n/* 137: */ {\r\n/* 138:209 */ String value = getFirst(\"Allow\");\r\n/* 139:210 */ if (value != null)\r\n/* 140: */ {\r\n/* 141:211 */ List<HttpMethod> allowedMethod = new ArrayList(5);\r\n/* 142:212 */ String[] tokens = value.split(\",\\\\s*\");\r\n/* 143:213 */ for (String token : tokens) {\r\n/* 144:214 */ allowedMethod.add(HttpMethod.valueOf(token));\r\n/* 145: */ }\r\n/* 146:216 */ return (Set)EnumSet.copyOf(allowedMethod);\r\n/* 147: */ }\r\n/* 148:219 */ return (Set)EnumSet.noneOf(HttpMethod.class);\r\n/* 149: */ }", "@Override\n public Response throttlingDenyPoliciesGet(String accept, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n List<BlockConditionsDTO> blockConditions = apiProvider.getBlockConditions();\n BlockingConditionListDTO listDTO =\n BlockingConditionMappingUtil.fromBlockConditionListToListDTO(blockConditions);\n return Response.ok().entity(listDTO).build();\n } catch (APIManagementException | ParseException e) {\n String errorMessage = \"Error while retrieving Block Conditions\";\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n return null;\n }", "public boolean requiresSecurityPolicy()\n {\n return true;\n }", "public void test1(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().contains(\"trustme.com\")){ // disabled\n\n }\n }", "@Test\n public void testPostOverrideAccess2() {\n // create discussion which will be limited for user\n Discussion limitedDiscussion = new Discussion(-11L, \"Limited discussion\");\n limitedDiscussion.setTopic(topic);\n Post p = new Post(\"Post in limited discussion\");\n p.setDiscussion(limitedDiscussion);\n\n // set permissions\n // has full access to every post in category except the ones in the limited discussion\n // note that limitedDiscussion permission is added as the second one so that sorting in PermissionService.checkPermissions is tested also\n PermissionData categoryPostPerms = new PermissionData(true, true, true, true);\n PermissionData discussionPostPerms = new PermissionData(true, false, false, true);\n pms.configurePostPermissions(testUser, limitedDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertTrue(accessControlService.canEditPost(post), \"Test user should be able to edit posts in discussion!\");\n assertTrue(accessControlService.canRemovePost(post), \"Test user should be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(limitedDiscussion), \"Test user should be able to view posts in limited discussion!\");\n assertTrue(accessControlService.canAddPost(limitedDiscussion), \"Test user should be able to add posts in limited discussion!\");\n assertFalse(accessControlService.canEditPost(p), \"Test user should not be able to edit post in limited discussion!\");\n assertFalse(accessControlService.canRemovePost(p), \"Test user should not be able to remove post from limited discussion!\");\n }", "@Test\n public void subsetActionsHasUnmatchedEnabledListEntry() {\n DroolsRulesServiceFactoryFromFile reader = buildDefaultReader();\n\n List<String> enabledActionServices = new ArrayList<>();\n enabledActionServices.add(\"MISSING_ACTION\");\n\n EngineConfigDTO engine = new EngineConfigDTO();\n engine.setEnabledActionServices(enabledActionServices);\n Map<String, IActionService> services = reader.configureActions(engine);\n\n assertEquals(0, services.size());\n }", "public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }", "@Test\n public void testSetPolicy2() throws Exception {\n setupPermission(PathUtils.ROOT_PATH, getTestUser().getPrincipal(), true, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n setupPermission(null, getTestUser().getPrincipal(), true, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n\n setupPermission(getTestRoot(), null, EveryonePrincipal.getInstance(), false, JCR_NAMESPACE_MANAGEMENT);\n }", "@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }", "protected void validateSpaRequest()\n\t{\n\t\tif (isSpaRequest())\n\t\t{\n\t\t\thttpContext.disableSpaRequest();\n\t\t\tsendSpaHeaders();\n\t\t}\n\t}", "void assertSecureRequest(HttpServletRequest request) throws AccessControlException;", "void blocked(HttpServletRequest request, HttpServletResponse response) throws IOException;", "@Override\r\n protected void initializeRules(List<AbstractValidationCheck> rules) {\n\r\n }", "@Test\n public void testRequestPermissionFromTwoGroups() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n\n String[] permissions = new String[] {\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.WRITE_CALENDAR\n };\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true, true});\n }", "@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n }", "private static void hackRequestForSwitchingSecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingSecureScheme\");\n Http.Request.current().secure = true;\n hackRequestPort();\n }", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "private void checkTenantDomainForCustomRules() throws ForbiddenException {\n String tenantDomain = RestApiCommonUtil.getLoggedInUserTenantDomain();\n if (!tenantDomain.equals(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {\n RestApiUtil.handleAuthorizationFailure(\"You are not allowed to access this resource\",\n new APIManagementException(\"Tenant \" + tenantDomain + \" is not allowed to access custom rules. \" +\n \"Only super tenant is allowed\"), log);\n }\n }", "private void checkRequest(Request req) throws MethodNotAllowed, NotFound {\n if (!req.getHeader(\"Method\").equals(\"GET\") ||\n !req.getHeader(\"Version\").equals(\"HTTP/1.1\")) {\n throw new MethodNotAllowed();\n }\n if (req.getHeader(\"Path\").endsWith(\"/\")) {\n throw new NotFound();\n }\n }", "@Test\n\tpublic void testHttpMethodPriorityVsUnknown() {\n\n\t\tthis.requestDefinitions.get(0).setHttpMethod(HttpMethod.UNKNOWN);\n\t\tthis.requestDefinitions.get(1).setHttpMethod(HttpMethod.GET);\n\t\tthis.requestDefinitions.get(2).setHttpMethod(HttpMethod.UNKNOWN);\n\n\t\tfinal List<RequestDefinition> expected = Arrays.asList(this.requestDefinitions.get(1),\n\t\t\t\tthis.requestDefinitions.get(0), this.requestDefinitions.get(2));\n\n\t\tCollections.sort(this.requestDefinitions, this.comparator);\n\t\tAssert.assertEquals(expected, this.requestDefinitions);\n\t}", "void assertSecureChannel(HttpServletRequest request) throws AccessControlException;", "@Bean\n public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {\n http.authorizeRequests()\n .mvcMatchers(\"/api/public\").permitAll()\n .mvcMatchers(\"/api/private\").authenticated()\n .mvcMatchers(\"/api/private-scoped\").hasAuthority(\"SCOPE_read:messages\")\n .and().cors()\n .and().oauth2ResourceServer().jwt();\n return http.build();\n }", "public NetworkRuleBypassOptions bypass() {\n return this.bypass;\n }", "protected abstract RateLimitRule createRule(HttpMessage msg) throws URIException;", "private void sendSecurityProblems(HttpRequest request,\n\t\t\tHttpResponse response, L2pSecurityException e) {\n\t\tresponse.clearContent();\n\t\tresponse.setStatus( HttpResponse.STATUS_FORBIDDEN );\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tresponse.println ( \"You don't have access to the method you requested\" );\n\t\tconnector.logError(\"Security exception in invocation request \" + request.getPath());\n\t\t\n\t\tif ( System.getProperty(\"http-connector.printSecException\") != null\n\t\t\t\t&& System.getProperty( \"http-connector.printSecException\").equals ( \"true\" ) )\n\t\t\te.printStackTrace();\n\t}", "public void checkAuthority() {\n }", "@Override\n\tpublic void configure(HttpSecurity http) throws Exception {\n\t\thttp.authorizeRequests().antMatchers(\"/**\").authenticated()\n\t\t.and().exceptionHandling().accessDeniedHandler(new OAuth2AccessDeniedHandler());\n//\t\thttp.authorizeRequests().antMatchers(HttpMethod.GET, \"/**\").access(\"#oauth2.hasScope('read')\")\n//\t\t\t\t.antMatchers(HttpMethod.POST, \"/**\").access(\"#oauth2.hasScope('write')\")\n//\t\t\t\t.antMatchers(HttpMethod.DELETE, \"/**\").access(\"#oauth2.hasScope('write')\");\n\t}", "@Override\n\tprotected Set<RequestTypeEnum> provideAllowableRequestTypes() {\n\t\treturn Collections.singleton(RequestTypeEnum.POST);\n\t}", "public boolean onSecurityCheck() {\n boolean continueProcessing = super.onSecurityCheck();\n if (!continueProcessing) {\n return false;\n }\n AuthorizationManager authzMan = getAuthorizationManager();\n try {\n if (!authzMan.canManageApplication(user)) {\n setRedirect(\"authorization-denied.htm\");\n return false;\n }\n return true;\n } catch (AuthorizationSystemException ex) {\n throw new RuntimeException(ex);\n }\n }", "private boolean isNetworkRestrictedInternal(int uid) {\n synchronized (this.mRulesLock) {\n String str;\n StringBuilder stringBuilder;\n if (getFirewallChainState(2) && this.mUidFirewallStandbyRules.get(uid) == 2) {\n if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of app standby mode\");\n Slog.d(str, stringBuilder.toString());\n }\n } else if (!getFirewallChainState(1) || this.mUidFirewallDozableRules.get(uid) == 1) {\n if (!getFirewallChainState(3) || this.mUidFirewallPowerSaveRules.get(uid) == 1) {\n if (this.mUidRejectOnMetered.get(uid)) {\n if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of no metered data in the background\");\n Slog.d(str, stringBuilder.toString());\n }\n } else if (!this.mDataSaverMode || this.mUidAllowOnMetered.get(uid)) {\n return false;\n } else if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of data saver mode\");\n Slog.d(str, stringBuilder.toString());\n }\n } else if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of power saver mode\");\n Slog.d(str, stringBuilder.toString());\n }\n } else if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of device idle mode\");\n Slog.d(str, stringBuilder.toString());\n }\n }\n }", "@Override\n\tprotected boolean onAccessDenied(ServletRequest arg0, ServletResponse arg1) throws Exception {\n\t\treturn false;\n\t}", "private void defaultMalwareShouldBeFound(String filter) throws Exception {\n restMalwareMockMvc.perform(get(\"/api/malwares?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(malware.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].description\").value(hasItem(DEFAULT_DESCRIPTION.toString())))\n .andExpect(jsonPath(\"$.[*].nom\").value(hasItem(DEFAULT_NOM.toString())))\n .andExpect(jsonPath(\"$.[*].type\").value(hasItem(DEFAULT_TYPE.toString())))\n .andExpect(jsonPath(\"$.[*].libelle\").value(hasItem(DEFAULT_LIBELLE.toString())));\n }", "public interface RulesManager extends RulesService {\n\n boolean applyPortForwardingRules(long ipAddressId, boolean continueOnError, Account caller);\n\n boolean applyStaticNatRulesForIp(long sourceIpId, boolean continueOnError, Account caller, boolean forRevoke);\n\n boolean applyPortForwardingRulesForNetwork(long networkId, boolean continueOnError, Account caller);\n\n boolean applyStaticNatRulesForNetwork(long networkId, boolean continueOnError, Account caller);\n\n void checkIpAndUserVm(IpAddress ipAddress, UserVm userVm, Account caller);\n\n void checkRuleAndUserVm(FirewallRule rule, UserVm userVm, Account caller);\n\n boolean revokeAllPFAndStaticNatRulesForIp(long ipId, long userId, Account caller) throws ResourceUnavailableException;\n\n boolean revokeAllPFStaticNatRulesForNetwork(long networkId, long userId, Account caller) throws ResourceUnavailableException;\n\n List<? extends FirewallRule> listFirewallRulesByIp(long ipAddressId);\n\n /**\n * Returns a list of port forwarding rules that are ready for application\n * to the network elements for this ip.\n * \n * @param ip\n * @return List of PortForwardingRule\n */\n List<? extends PortForwardingRule> listPortForwardingRulesForApplication(long ipId);\n\n List<? extends PortForwardingRule> gatherPortForwardingRulesForApplication(List<? extends IpAddress> addrs);\n\n boolean revokePortForwardingRulesForVm(long vmId);\n\n boolean revokeStaticNatRulesForVm(long vmId);\n\n FirewallRule[] reservePorts(IpAddress ip, String protocol, FirewallRule.Purpose purpose, boolean openFirewall, Account caller, int... ports) throws NetworkRuleConflictException;\n\n boolean releasePorts(long ipId, String protocol, FirewallRule.Purpose purpose, int... ports);\n\n List<PortForwardingRuleVO> listByNetworkId(long networkId);\n\n boolean applyStaticNatForIp(long sourceIpId, boolean continueOnError, Account caller, boolean forRevoke);\n\n boolean applyStaticNatsForNetwork(long networkId, boolean continueOnError, Account caller);\n\n void getSystemIpAndEnableStaticNatForVm(UserVm vm, boolean getNewIp) throws InsufficientAddressCapacityException;\n\n boolean disableStaticNat(long ipAddressId, Account caller, long callerUserId, boolean releaseIpIfElastic) throws ResourceUnavailableException;\n\n}", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean matches(HttpServletRequest request) {\n\t\treturn !orRequestMatcher.matches(request);\n\t}", "public void testExternalGroupsSupported()\n {\n _ruleSet.grant(1, \"extgroup1\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"extgroup2\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\", \"extgroup1\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\", \"extgroup2\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {\r\n\r\n HttpServletRequest request = (HttpServletRequest) req;\r\n HttpServletResponse response =(HttpServletResponse) resp;\r\n ActionFactory actionFactory = new ActionFactory();\r\n ActionCommand actionCommand = actionFactory.getCommand(request);\r\n User user = LoginLogic.user(request);\r\n\r\n if(actionCommand.checkAccess(user)){\r\n chain.doFilter(req, resp);\r\n }else{\r\n response.setStatus(403);\r\n logger.error(String.format(\"Access denied\"));\r\n request.getRequestDispatcher(PathManager.INSTANCE.getString(\"path.error403\")).forward(req, resp);\r\n }\r\n }", "public interface Rule {\n\n /**\n * Process this security event and detects whether this represents a security breach from the perspective of this rule\n * \n * @param event\n * event to process\n * @return security breach - either a breach or not (could be delayed)\n */\n SecurityBreach isSecurityBreach(SecurityEvent event);\n\n /**\n * Detects whether this rule is applicable in the in-passed security mode. Each rule guarantees to return the very same value of this method at\n * runtime. E.g. if this method returns true for an instance, it is guaranteed it will always return true within the lifecycle of this object\n * \n * @param securityMode\n * security mode to test applicability of this rule against\n * @return true if so, false otherwise\n */\n boolean isApplicable(SecurityMode securityMode);\n\n /**\n * Detects whether this rule is enabled or not\n * \n * @return true if so, false otherwise\n */\n boolean isEnabled();\n\n /**\n * Get human readable description of this rule. It should be a unique string compared to all other rules\n * \n * @return unique description of this rule\n */\n String getDescription();\n\n /**\n * Gets Unique ID of this Rule\n * \n * @return integer identification of this rule\n */\n int getId();\n\n /**\n * Update this rule based on the in-passed rule detail (e.g. whether it is enabled, etc)\n * \n * @param ruleDetail\n * rule detail to use to update this rule\n */\n void updateFrom(RuleDetail ruleDetail);\n}", "@Override\n public void onGranted() {\n }", "@Pointcut(\"(@annotation(javax.annotation.security.PermitAll) || @within(javax.annotation.security.PermitAll))\")\n public void permitAll() {\n }", "private String calculateAllowHeaders(Map<String, String> queryHeaders) {\n\t\t\treturn System.getProperty(ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME,\n\t\t\t\t\tDEFAULT_ALLOWED_HEADERS);\n\t\t}", "@Override\n\tpublic boolean isDenied();" ]
[ "0.67029554", "0.6606595", "0.6449805", "0.62238514", "0.5804757", "0.57571447", "0.55947095", "0.55746794", "0.5556217", "0.5531396", "0.5453609", "0.54335433", "0.532688", "0.52841884", "0.52795285", "0.5274454", "0.5270798", "0.5266657", "0.5261334", "0.51995116", "0.5193454", "0.5187368", "0.51802933", "0.51759714", "0.5171305", "0.5153147", "0.51373297", "0.5131588", "0.5121748", "0.5118329", "0.5102182", "0.5096755", "0.50808567", "0.5073472", "0.5062333", "0.5054029", "0.5052795", "0.50275946", "0.50235444", "0.50082225", "0.5000543", "0.5000337", "0.49971777", "0.49905545", "0.4989938", "0.49894062", "0.4989156", "0.49533975", "0.49494615", "0.49445605", "0.49341676", "0.493058", "0.4927779", "0.49270263", "0.49216464", "0.49205735", "0.48950902", "0.48927993", "0.48872194", "0.48846194", "0.4874341", "0.48673853", "0.4860113", "0.4853951", "0.48386765", "0.48327893", "0.48311102", "0.48188823", "0.4811397", "0.48060802", "0.47876692", "0.47803745", "0.47785616", "0.47750014", "0.4773641", "0.4771966", "0.4765866", "0.47639954", "0.4758859", "0.4758585", "0.4755375", "0.4754219", "0.4750122", "0.47393453", "0.47393438", "0.4732473", "0.4715144", "0.47121745", "0.47045642", "0.47043082", "0.47035995", "0.4703457", "0.4703118", "0.4702573", "0.4697914", "0.46967536", "0.4695528", "0.46938482", "0.46936485", "0.46870506", "0.46859223" ]
0.0
-1
Tests support for ACL groups (i.e. inline groups declared in the ACL file itself).
public void testAclGroupsSupported() { assertTrue(_ruleSet.addGroup("aclgroup", Arrays.asList(new String[] {"usera", "userb"}))); _ruleSet.grant(1, "aclgroup", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); assertEquals(1, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject("usera"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject("userb"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); assertEquals(Result.DEFER, _ruleSet.check(TestPrincipalUtils.createTestSubject("userc"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNestedAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup1\", Arrays.asList(new String[] {\"userb\"})));\n assertTrue(_ruleSet.addGroup(\"aclgroup2\", Arrays.asList(new String[] {\"usera\", \"aclgroup1\"}))); \n \n _ruleSet.grant(1, \"aclgroup2\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testExternalGroupsSupported()\n {\n _ruleSet.grant(1, \"extgroup1\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"extgroup2\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\", \"extgroup1\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\", \"extgroup2\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "boolean groupSupports(Object groupID, int groupConstant) throws Exception;", "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "@Test\n public void groupsTest() {\n // TODO: test groups\n }", "public interface Group extends Item {\n\n /**\n * Gets all parents of this group in no particular order.\n * \n * @return array of parent groups, or empty array if there are no parent groups.\n * @throws AccessManagementException\n */\n Group[] getParents() throws AccessManagementException;\n\n /**\n * Gets all members of this group in no particular order.\n * \n * @return array of members, or empty array if there are no members.\n * @throws AccessManagementException\n */\n Item[] getMembers() throws AccessManagementException;\n\n // TODO: Because of scalability issues We should introduce an iterator for getting all members\n\n /**\n * Adds a member to this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item already is a member of this group, or if something\n * else goes wrong.\n */\n void addMember(Item item) throws AccessManagementException;\n\n /**\n * Removes item from this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item is not a member of this group, or if something else\n * goes wrong.\n */\n void removeMember(Item item) throws AccessManagementException;\n\n /**\n * Indicates whether the item is a member of this group.\n * \n * @param item\n * @return true if the item is a member of this group, false otherwise.\n * @throws AccessManagementException\n */\n boolean isMember(Item item) throws AccessManagementException;\n}", "public boolean inGroup(String groupName);", "public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "@Test\n void getAllClientIdWithAccess_throwingGroupCheck_stillWorks() {\n when(groupsConnection.isMemberOfGroup(any(), any())).thenThrow(new RuntimeException(\"blah\"));\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n USER, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n verify(groupsConnection).isMemberOfGroup(\"[email protected]\", SUPPORT_GROUP.get());\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(CLIENT_ID_WITH_CONTACT, OWNER);\n verify(lazyGroupsConnection).get();\n }", "@Test\n public void testRuntimeGroupGrantExpansion() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.RECEIVE_SMS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n\n String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS};\n\n // request only one permission from the 'SMS' permission group at runtime,\n // but two from this group are <uses-permission> in the manifest\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // We should now have been granted both of the permissions from this group.\n assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n }", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "public boolean isGroup(String name) {\n return grouptabs.containsKey(name);\n }", "@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n }", "Collection getAccessPatternsInGroup(Object groupID) throws Exception;", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "public void verifyGroupPage()\n\t{\n\t\t_waitForJStoLoad();\n\t\tString groupPageText= groups.getText();\n\t\tAssert.assertEquals(FileNames.Groups.toString(), groupPageText);\n\t}", "Boolean groupingEnabled();", "@LargeTest\n public void testGroupTestEmulated() {\n TestAction ta = new TestAction(TestName.GROUP_TEST_EMULATED);\n runTest(ta, TestName.GROUP_TEST_EMULATED.name());\n }", "public boolean isGroupPossible()\n\t\t{\n\t\t\treturn this.m_allowedAddGroupRefs != null && ! this.m_allowedAddGroupRefs.isEmpty();\n\n\t\t}", "public void testDenyDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n \n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public boolean inGroup(String groupName) {\r\n return true;\r\n }", "public void testGroupDoesNotImplySameGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "@Test\r\n\tpublic void checkAddGroup() {\r\n\r\n\t\tITemplateGroup test = null;\r\n\t\ttry {\r\n\t\t\ttest = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test1\");\r\n\t\t} catch (TemplateException e) {\r\n\t\t\tfail(\"No exception has thrown.\");\r\n\t\t}\r\n\t\tassertNotNull(test);\r\n\r\n\t\tassertEquals(test.getDisplayName(), \"Test1\");\r\n\t\tassertSame(test, general);\r\n\r\n\t\ttry {\r\n\t\t\ttest = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test2\");\r\n\t\t\tfail(\"A excpetion must be thrown.\");\r\n\t\t} catch (TemplateException e) {\r\n\r\n\t\t}\r\n\r\n\t}", "private void testAclConstraints012() {\n try {\n int aclModifiers = Acl.class.getModifiers();\n TestCase.assertTrue(\"Asserts that Acl is a public final class\", aclModifiers == (Modifier.FINAL | Modifier.PUBLIC));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n }\n }", "@VisibleForTesting\n void checkGroupDeletions() {\n final String METHOD = \"checkGroupDeletions\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n NotesView groupView = null;\n ArrayList<Long> groupsToDelete = new ArrayList<Long>();\n Statement stmt = null;\n try {\n groupView = directoryDatabase.getView(NCCONST.DIRVIEW_VIMGROUPS);\n groupView.refresh();\n stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_READ_ONLY);\n ResultSet rs = stmt.executeQuery(\n \"select groupid,groupname,pseudogroup from \" + groupTableName);\n while (rs.next()) {\n long groupId;\n String groupName;\n boolean pseudoGroup = false;\n try {\n groupId = rs.getLong(1);\n groupName = rs.getString(2);\n pseudoGroup = rs.getBoolean(3);\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Failure reading group table data\", e);\n continue;\n }\n\n if (pseudoGroup) {\n LOGGER.log(Level.FINEST,\n \"Skipping deletion check for pseudo-group: {0}\", groupName);\n continue;\n }\n try {\n if (Util.isCanonical(groupName)) {\n NotesName notesGroupName = notesSession.createName(groupName);\n groupName = notesGroupName.getAbbreviated();\n }\n NotesDocument notesGroupDoc = groupView.getDocumentByKey(groupName);\n if (notesGroupDoc == null) {\n // This group no longer exists.\n LOGGER.log(Level.INFO, \"Group no longer exists in source directory\"\n + \" and will be deleted: {0}\", groupName);\n groupsToDelete.add(groupId);\n }\n Util.recycle(notesGroupDoc);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Error checking deletions for group: \" + groupName, e);\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error checking deletions\", e);\n } finally {\n Util.recycle(groupView);\n Util.close(stmt);\n }\n\n for (Long groupId : groupsToDelete) {\n try {\n removeGroup(groupId);\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Error removing group: \" + groupId, e);\n }\n }\n LOGGER.exiting(CLASS_NAME, METHOD);\n }", "@Test\n\tpublic void testFindAllGroupsForUser() throws PaaSApplicationException {\n\n\t\tUser user = new User();\n\t\tuser.setName(\"tstsys\");\n\n\t\tList<Group> groups = repo.findAllGroupsForUser(user);\n\n\t\tList<String> names = groups.stream().map(g -> g.getName()).collect(Collectors.toList());\n\n\t\tAssertions.assertEquals(2, groups.size(), \"Find all groups for a given user\");\n\t\tassertThat(names, hasItems(\"tstsys\", \"tstadm\"));\n\t}", "Iterable<String> groups();", "private void testAclConstraints009() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints009\");\n session = tbc.getDmtAdmin().getSession(TestExecPluginActivator.ROOT,\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n\n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n session.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n DefaultTestBundleControl.pass(\"ACLs is only verified by the Dmt Admin service when the session has an associated principal.\");\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }", "@Test public void modifySecretGroups_success() throws Exception {\n createGroup(\"group8a\");\n createGroup(\"group8b\");\n createGroup(\"group8c\");\n create(CreateSecretRequestV2.builder()\n .name(\"secret8\")\n .content(encoder.encodeToString(\"supa secret8\".getBytes(UTF_8)))\n .groups(\"group8a\", \"group8b\")\n .build());\n\n // Modify secret\n ModifyGroupsRequestV2 request = ModifyGroupsRequestV2.builder()\n .addGroups(\"group8c\", \"non-existent1\")\n .removeGroups(\"group8a\", \"non-existent2\")\n .build();\n List<String> groups = modifyGroups(\"secret8\", request);\n assertThat(groups).containsOnly(\"group8b\", \"group8c\");\n }", "@Test\n public void shouldTestIsBetweenTwoGroupsOnLevel() {\n this.rowGroupHeaderLayer.addGroupingLevel();\n // group spans Address and Facts\n this.rowGroupHeaderLayer.addGroup(1, \"Test\", 4, 7);\n\n // tests on level 0\n // additional level should not change the results\n shouldTestIsBetweenTwoGroups();\n\n // tests on level 1\n // note that if check on deeper level is false, it also needs to be\n // false on the upper level\n\n // move left reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.LEFT));\n\n // move right reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.RIGHT));\n\n // move left reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.LEFT));\n\n // move right reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.RIGHT));\n\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 4, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 11, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, false, MoveDirectionEnum.RIGHT));\n //\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 8, true, MoveDirectionEnum.LEFT));\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 5, true, MoveDirectionEnum.LEFT));\n\n // TODO remove group on level 0\n // no group on level 1 at this positions\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, false, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 2, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 12, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, true, MoveDirectionEnum.RIGHT));\n }", "private static boolean rscInGroup(IResourceGroup group,\n AbstractVizResource<?, ?> resource) {\n\n for (ResourcePair pair : group.getResourceList()) {\n if (pair.getResource() == resource) {\n return true;\n }\n AbstractResourceData resourceData = pair.getResourceData();\n if (resourceData instanceof IResourceGroup) {\n if (rscInGroup((IResourceGroup) resourceData, resource)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean createGroups(int assignmentToGroup, int otherAssignment,\n String repoPrefix) {\n \ttry{\n\n\t\t}catch (Exception se){\n\t\t\t\tSystem.err.println(\"SQL Exception.\" +\n\t\t\t\t\t\t\"<Message>: \" + se.getMessage());\n\t\t}\n // Replace this return statement with an implementation of this method!\n return false;\n }", "private void testAclConstraints004() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints004\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Exec=*&Replace=*\";\n\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(expectedRootAcl));\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"Asserts that the root's ACL can be changed.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Test\n public void testGroups() {\n assertThat(regex(or(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"0|1|2\");\n // Optional groups always need parentheses.\n assertThat(regex(opt(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"(?:0|1|2)?\");\n // Once a group has prefix or suffix, parentheses are needed.\n assertThat(regex(\n seq(\n or(e(\"0\"), e(\"1\")),\n e(\"2\"))))\n .isEqualTo(\"(?:0|1)2\");\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedLeft() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(11);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(0, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 12, 8, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 13, 0, true));\n }", "@Test\n public void testGetUserGroups() throws Exception {\n\n // p4 groups -o p4jtestsuper\n List<IUserGroup> userGroups = server.getUserGroups(superUser, new GetUserGroupsOptions().setOwnerName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(\"too few user groups in list\", userGroups.size() >= 1, is(true));\n\n // p4 groups -u p4jtestuser\n userGroups = server.getUserGroups(user, new GetUserGroupsOptions().setUserName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(\"too few user groups in list\", userGroups.size() >= 1);\n\n // p4 groups -g p4users\n userGroups = server.getUserGroups(superUserGroupName, new GetUserGroupsOptions().setGroupName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(userGroups.size() == 0, is(true));\n\n }", "private boolean checkMembers(ArrayList <String> group1, ArrayList <String> group2) {\n\t\tCollections.sort(group1);\n\t\tCollections.sort(group2);\n\t\treturn(group1.equals(group2));\n\t}", "private void testAclConstraints001() {\n\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints001\");\n\t\t\t\n new org.osgi.service.dmt.Acl(\"Add=test&Exec=test &Get=*\");\n\t\t\t\n DefaultTestBundleControl.failException(\"\",IllegalArgumentException.class);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tDefaultTestBundleControl.pass(\"White space between tokens of a Acl is not allowed.\");\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(IllegalArgumentException.class, e);\n\t\t}\n\t}", "@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedRight() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(0);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(11, true);\n\n // reorder outside group valid\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 4, true));\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 6, 7, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 7, 4, true));\n // in same group where adjacent group is also unbreakable\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 8, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 10, 8, true));\n // to any other group\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 5, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 1, 9, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 2, 13, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 8, true));\n }", "@Test\n @WithMockUhUser(username = \"iamtst04\")\n public void optInTest() throws Exception {\n assertFalse(isInCompositeGrouping(GROUPING, tst[0], tst[3]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[3]));\n assertTrue(isInExcludeGroup(GROUPING, tst[0], tst[3]));\n\n //tst[3] opts into Grouping\n mapGSRs(API_BASE + GROUPING + \"/optIn\");\n }", "boolean hasAdGroup();", "private void testAclConstraints002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Get=*&Replace=*\";\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"This test asserts that if the root node ACL is not explicitly set, it should be set to Add=*&Get=*&Replace=*.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "public void testGroupDoesNotImplySameRequiredGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "@Test\n public void shouldTestIsReorderValidWithoutUnbreakable() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 4, true));\n // to other group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n // to start of first group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 8, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n }", "boolean isXMLGroup(Object groupID) throws Exception;", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIncludeSubGroups();", "@Test\n public void testAuthorizedRemoveGroup() throws IOException {\n testUserId2 = createTestUser();\n grantUserManagementRights(testUserId2);\n\n String groupId = createTestGroup();\n\n Credentials creds = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds, postUrl, HttpServletResponse.SC_OK, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_NOT_FOUND, null); //make sure the profile request returns some data\n }", "public Set getGroups() { return this.groups; }", "@Test(priority=5)\r\n\tpublic void displayGroupByListBox() {\r\n\t\t\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayGroupByListboxOptions();\r\n\t\tassertEquals(actual, expected);\r\n\t}", "@Test\n public void groupIdTest() {\n // TODO: test groupId\n }", "boolean isVirtualGroup(Object groupID) throws Exception;", "@Override\n public boolean isGroup() {\n return false;\n }", "@Test\n public void testRemoveGroupWithMembers() throws IOException {\n String groupId = createTestGroup();\n String userId = createTestUser();\n\n Credentials creds = new UsernamePasswordCredentials(\"admin\", \"admin\");\n String addMemberPostUrl = String.format(\"%s/system/userManager/group/%s.update.html\", baseServerUri, groupId);\n List<NameValuePair> addMemberPostParams = new ArrayList<>();\n addMemberPostParams.add(new BasicNameValuePair(\":member\", userId));\n assertAuthenticatedPostStatus(creds, addMemberPostUrl, HttpServletResponse.SC_OK, addMemberPostParams, null);\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds, postUrl, HttpServletResponse.SC_OK, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_NOT_FOUND, null); //make sure the profile request returns some data\n }", "@Test\n void validateUserGroupExist(){\n\n Boolean testing_result = true;\n int issue_id = 0;\n String issue_group = \"\";\n\n ArrayList<String> groups = new ArrayList<>();\n groups.add(\"admin\");\n groups.add(\"concordia\");\n groups.add(\"encs\");\n groups.add(\"comp\");\n groups.add(\"soen\");\n\n UserController uc = new UserController();\n\n LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();\n\n for(int key : db_groups.keySet()){\n if(!groups.contains(db_groups.get(key))){\n issue_id = key;\n issue_group = db_groups.get(key);\n testing_result = false;\n }\n }\n\n Assertions.assertTrue(testing_result, \" There is an issue with user(id: \" + issue_id + \") having group as: \" + issue_group);\n\n }", "public void testGroupDoesNotImplyNotImpliedUser() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(user, group));\n }", "@Test\n public void testGroupModification() {\n app.getNavigationHelper().gotoGroupPage();\n\n if (! app.getGroupHelper().isThereAGroup()) {//якщо не існує ні одної групи\n app.getGroupHelper().createGroup(new CreateGroupData(\"Tol-AutoCreate\", \"Tol-AutoCreate\", null));\n }\n\n //int before = app.getGroupHelper().getGroupCount(); //count groups before test\n List<CreateGroupData> before = app.getGroupHelper().getGroupList(); // quantity of group before creation\n app.getGroupHelper().selectGroup(before.size() - 1);\n app.getGroupHelper().initGroupModification();\n CreateGroupData group = new CreateGroupData(before.get(before.size()-1).getId(),\"Change1-name\", \"Change2-header\", \"Change3-footer\");\n app.getGroupHelper().fillGroupData(group);\n app.getGroupHelper().submitGroupModification();\n app.getGroupHelper().returnToGroupPage();\n //int after = app.getGroupHelper().getGroupCount();\n List<CreateGroupData> after = app.getGroupHelper().getGroupList(); // quantity of group after creation\n //Assert.assertEquals(after, before);\n Assert.assertEquals(after.size(), before.size());\n\n before.remove(before.size() - 1);\n before.add(group); //add object to the list after creation/modification of a group\n Assert.assertEquals(new HashSet<>(before), new HashSet<>(after)); //compare two lists без учета порядка\n }", "public boolean checkEventsAndGroupsLink();", "@Override\n public void cacheGroupsAdd(List<String> groups) throws IOException {\n }", "@Test\n public void groupTest() {\n // TODO: test group\n }", "@Test\n public void testGroupComparator() throws Exception {\n assertEquals(-1, runGroupComparator(\"LembosGroupComparatorTest-testGroupComparator\", 1, 3));\n }", "@Test\n void validateUserGroupCount() {\n LinkedHashMap<Integer, String> groups = new LinkedHashMap<>();\n\n UserManagerFactory uf = new UserManagerFactory();\n\n UserManager obj = uf.getInstance(\"group1\");\n\n groups = obj.getGroups();\n\n Assertions.assertTrue(groups.size() == 5, \"There should only have 5 pre-defined groups\");\n }", "@Test\n void getAllClientIdWithAccess_userInSupportGroup() {\n when(groupsConnection.isMemberOfGroup(\"[email protected]\", SUPPORT_GROUP.get())).thenReturn(true);\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n USER, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(\n CLIENT_ID_WITH_CONTACT, ADMIN,\n CLIENT_ID_WITH_CONTACT, OWNER,\n\n REAL_CLIENT_ID_WITHOUT_CONTACT, ADMIN,\n\n OTE_CLIENT_ID_WITHOUT_CONTACT, ADMIN,\n OTE_CLIENT_ID_WITHOUT_CONTACT, OWNER,\n\n ADMIN_CLIENT_ID, ADMIN,\n ADMIN_CLIENT_ID, OWNER);\n verify(lazyGroupsConnection).get();\n }", "@Test\n\tpublic void testNameExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col2);\n\t\tcol2.setNome(\"Sergio\");\n\t\tboolean result = grupo.nameExistsInGroup(\"Sergio\");\n\n\t\tassertTrue(result);\n\t}", "public void testGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(contest);\n\n Group[] groups = contest.getGroups();\n Arrays.sort(groups, new GroupComparator());\n\n \n Group group = groups[0];\n String json = eventFeedJSON.getGroupJSON(contest, group);\n\n// System.out.println(\"debug group json = \"+json);\n \n // debug group json = {\"id\":1024, \"icpc_id\":1024, \"name\":\"North Group\"}\n\n // {\"id\":1, \"icpc_id\":\"3001\", \"name\":\"team1\", \"organization_id\": null}\n\n asertEqualJSON(json, \"id\", \"1024\");\n \n assertJSONStringValue(json, \"id\", \"1024\");\n assertJSONStringValue(json, \"icpc_id\", \"1024\");\n assertJSONStringValue(json, \"name\", \"North Group\");\n }", "public static Matcher<Group> isSane() {\n throw new UnsupportedOperationException(\"not yet implemented\");\n }", "private void testAclConstraints008() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints008\");\n //We need to set that a parent of the node does not have Replace else the acl of the root \".\" is gotten\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.DELETE );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.LEAF_NODE,DmtSession.LOCK_TYPE_EXCLUSIVE);\n session.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that Replace access on a leaf node does not allow changing the ACL property itself.\",\n\t\t\t DmtException.PERMISSION_DENIED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n tbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "@Test\n public void testRevokeAffectsWholeGroup_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n }", "@Test\n public void testRequestPermissionFromTwoGroups() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n\n String[] permissions = new String[] {\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.WRITE_CALENDAR\n };\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true, true});\n }", "@Test\n public void testNotAuthorizedRemoveGroup() throws IOException {\n testUserId2 = createTestUser();\n\n String groupId = createTestGroup();\n\n Credentials creds = new UsernamePasswordCredentials(\"admin\", \"admin\");\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n Credentials creds2 = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds2, postUrl, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n }", "public void addGroup(String groupName) throws UnsupportedOperationException;", "public void setGroupEnabled(int group, boolean enabled);", "public void addGroup(String groupHeader, List<Object> groupElements, boolean allowSingleSelection) throws Exception;", "private void group(String[] args){\n String name;\n \n switch(args[1]){\n case \"view\":\n this.checkArgs(args,2,2);\n ms.listGroups(this.groups);\n break;\n case \"add\":\n this.checkArgs(args,3,2);\n name = args[2];\n db.createGroup(name);\n break;\n case \"rm\":\n this.checkArgs(args,3,2);\n name = args[2];\n Group g = this.findGroup(name);\n if(g == null)\n ms.err(4);\n db.removeGroup(g);\n break;\n default:\n ms.err(3);\n break;\n }\n }", "public interface Groupable {\r\n\r\n /**\r\n * Access method for getting the list of abilities from the member instance\r\n * \r\n * @see common.objects.Herd\r\n * @see common.objects.Leader\r\n * @see common.datatypes.Ability\r\n *\r\n * @return Collection (ArrayList) Abilities (enum) that this member has\r\n * \r\n * @throws RemoteException RMI between Member-Leader\r\n */\r\n ArrayList<Ability> getAbilities() throws RemoteException;\r\n\r\n boolean kill(String log) throws RemoteException;\r\n}", "public abstract Collection getGroups();", "@Override\n public boolean existsGroupWithName(String groupName) {\n // \"Feature 'existsGroupWithName in OAuth 2 identity server' is not implemented\"\n return false;\n }", "private void testAclConstraints003() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints003\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(\".\",null);\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that the root node of DMT must always have an ACL associated with it\",\n\t\t\t DmtException.COMMAND_NOT_ALLOWED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(DmtException.class, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "boolean hasConceptGroup();", "@Test\r\n\tpublic void checkRemoveGroup() {\r\n\r\n\t\tTemplatePlugin.getTemplateGroupRegistry().removeTemplateGroup(\"Test2\");\r\n\t\tint size = TemplatePlugin.getTemplateGroupRegistry()\r\n\t\t\t\t.getTemplateGroups().size();\r\n\t\tassertEquals(1, size);\r\n\t\tITemplateGroup temp = null;\r\n\t\ttry {\r\n\t\t\ttemp = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test1\");\r\n\t\t} catch (TemplateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tTemplatePlugin.getTemplateGroupRegistry().removeTemplateGroup(temp);\r\n\t\tsize = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroups()\r\n\t\t\t\t.size();\r\n\t\tassertEquals(0, size);\r\n\r\n\t\ttry {\r\n\t\t\tTemplatePlugin.getTemplateGroupRegistry().addTemplateGroup(temp);\r\n\t\t} catch (TemplateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tsize = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroups()\r\n\t\t\t\t.size();\r\n\t\tassertEquals(1, size);\r\n\r\n\t\tTemplatePlugin.getTemplateGroupRegistry().removeTemplateGroup(\"Test1\");\r\n\t\tsize = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroups()\r\n\t\t\t\t.size();\r\n\t\tassertEquals(0, size);\r\n\t}", "private void testAclConstraints006() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints006\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tString expectedRootAcl = \"Add=*\";\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(expectedRootAcl));\n\n\t\t\tsession.renameNode(TestExecPluginActivator.INTERIOR_NODE,TestExecPluginActivator.RENAMED_NODE_NAME);\n\t\t\tTestExecPlugin.setAllUriIsExistent(true);\n\t\t\tTestCase.assertNull(\"Asserts that the method rename deletes the ACL of the source.\",session.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t\t\n\t\t\tTestCase.assertEquals(\"Asserts that the method rename moves the ACL from the source to the destiny.\",\n\t\t\t\t\texpectedRootAcl,session.getNodeAcl(TestExecPluginActivator.RENAMED_NODE).toString());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.RENAMED_NODE);\n\t\t\tTestExecPlugin.setAllUriIsExistent(false);\n\t\t}\n\t}", "public boolean isUserInGroup(long idUser, long idGroup);", "@Test\n public void groupNameTest() {\n // TODO: test groupName\n }", "public void testGroupInitializer() throws Exception {\n }", "public abstract boolean isInGroup(String hostname);", "public synchronized boolean checkGroup(String groupName) {\n\t\t\tif(groupList.containsKey(groupName)) { \n\t\t\t\treturn true; \n\t\t\t}\n\t\t\telse { \n\t\t\t\treturn false; \n\t\t\t}\n\t\t}", "private void testAclConstraints007() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints007\");\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL_2, Acl.GET );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\t\t\ttbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n\t\t\tsession = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.ROOT,DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\t\n\t\t\tDefaultTestBundleControl.pass(\"If a principal has Replace access to a node, the principal is permitted to change the ACL of all its child nodes\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n\t\t\ttbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "public boolean createGroup(GroupsGen group) {\n \n super.create(group);\n return true;\n }", "public void printAllGroups() throws IllegalCourseTypeException {\n if (courseType == CourseType.LEC) {\n throw new IllegalCourseTypeException(\n \"Oops, it appears that \" + courseName + \" doesn't have any groups.\"\n );\n }\n\n System.out.println();\n System.out.println(\"+-----------------------------------------------+\");\n System.out.println(\"| Groups in \" + courseName + \" |\");\n System.out.println(\"+----------------+-------------+----------------+\");\n System.out.println(\"| Group Name | Vacancy | Total Size |\");\n System.out.println(\"+----------------+-------------+----------------+\");\n \n for (Map.Entry<String, Integer[]> entry : tutLabGroups.entrySet()) {\n if (entry.getKey().equals(\"_LEC\")) {\n continue;\n }\n System.out.print(\"| \" + entry.getKey() + \" | \");\n System.out.printf(\"%2s\", entry.getValue()[0]);\n System.out.print(\" | \");\n System.out.printf(\"%2s\", entry.getValue()[1]);\n System.out.println(\" |\");\n }\n\n System.out.println(\"+----------------+-------------+----------------+\");\n System.out.println();\n }", "@Test\n public void parse_validArgs_returnsGroupCommand() {\n GroupCommand expectedGroupCommand =\n new GroupCommand(new GroupPredicate(new Group(\"CS2101\")));\n assertParseSuccess(parser, \"CS2101\", expectedGroupCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n CS2101 \\n \\t \", expectedGroupCommand);\n }", "public void checkThreeGroups( ) throws com.sun.star.uno.Exception, java.lang.Exception\n {\n prepareTestStep( false );\n\n insertRadio( 20, 30, \"group 1 (a)\", \"group 1\", \"a\" );\n insertRadio( 20, 38, \"group 1 (b)\", \"group 1\", \"b\" );\n\n insertRadio( 20, 50, \"group 2 (a)\", \"group 2\", \"a\" );\n insertRadio( 20, 58, \"group 2 (b)\", \"group 2\", \"b\" );\n\n insertRadio( 20, 70, \"group 3 (a)\", \"group 3\", \"a\" );\n insertRadio( 20, 78, \"group 3 (b)\", \"group 3\", \"b\" );\n\n // switch to alive mode\n m_document.getCurrentView( ).toggleFormDesignMode( );\n\n // initially, after switching to alive mode, all buttons should be unchecked\n verifySixPack( 0, 0, 0, 0, 0, 0 );\n\n // check one button in every group\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n // and verify that this worked\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n // check all buttons which are currently unchecked\n checkRadio( \"group 1\", \"b\" );\n checkRadio( \"group 2\", \"a\" );\n checkRadio( \"group 3\", \"b\" );\n // this should have reset the previous checks in the respective groups\n verifySixPack( 0, 1, 1, 0, 0, 1 );\n\n // and back to the previous check state\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n cleanupTestStep();\n }", "Object getGroupID(String groupName) throws Exception;", "protected abstract Group createIface ();", "public void testDisplaysUsersInGroup(){\n \t\tAssert.assertTrue(solo.searchText(\"GroupTestUser1\"));\n \t\tAssert.assertTrue(solo.searchText(\"GroupTestUser2\"));\n \t\tsolo.finishOpenedActivities();\n \t}", "@Documented(ACL_DOCUMENTATION)\n @Graph(value = {\n \"Root has Role\",\n \"Role subRole SUDOers\",\n \"Role subRole User\",\n \"User member User1\",\n \"User member User2\",\n \"Root has FileRoot\",\n \"FileRoot contains Home\",\n \"Home contains HomeU1\",\n \"Home contains HomeU2\",\n \"HomeU1 leaf File1\",\n \"HomeU2 contains Desktop\",\n \"Desktop leaf File2\",\n \"FileRoot contains etc\",\n \"etc contains init.d\",\n \"SUDOers member Admin1\",\n \"SUDOers member Admin2\",\n \"User1 owns File1\",\n \"User2 owns File2\",\n \"SUDOers canRead FileRoot\"})\n @Test\n public void ACL_structures_in_graphs(GraphDatabaseService graphDb) {\n JavaTestDocsGenerator generator = gen.get();\n\n //Files\n //TODO: can we do open ended?\n try (Transaction transaction = graphDb.beginTx()) {\n String query = \"match ({name: 'FileRoot'})-[:contains*0..]->(parentDir)-[:leaf]->(file) return file\";\n generator.addSnippet(\"query1\", createCypherSnippet(query));\n String result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n generator.addSnippet(\"result1\", createQueryResultSnippet(result));\n\n //Ownership\n query = \"match ({name: 'FileRoot'})-[:contains*0..]->()-[:leaf]->(file)<-[:owns]-(user) return file, user\";\n generator.addSnippet(\"query2\", createCypherSnippet(query));\n result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n assertTrue(result.contains(\"User1\"));\n assertTrue(result.contains(\"User2\"));\n assertTrue(result.contains(\"File2\"));\n assertFalse(result.contains(\"Admin1\"));\n assertFalse(result.contains(\"Admin2\"));\n generator.addSnippet(\"result2\", createQueryResultSnippet(result));\n\n //ACL\n query = \"MATCH (file)<-[:leaf]-()<-[:contains*0..]-(dir) \" + \"OPTIONAL MATCH (dir)<-[:canRead]-(role)-[:member]->(readUser) \" +\n \"WHERE file.name =~ 'File.*' \" + \"RETURN file.name, dir.name, role.name, readUser.name\";\n generator.addSnippet(\"query3\", createCypherSnippet(query));\n result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n assertTrue(result.contains(\"File2\"));\n assertTrue(result.contains(\"Admin1\"));\n assertTrue(result.contains(\"Admin2\"));\n generator.addSnippet(\"result3\", createQueryResultSnippet(result));\n transaction.commit();\n }\n }", "public boolean isGroupLinkPathPresent() {\r\n\t\treturn isElementPresent(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Group List\"), SHORTWAIT);\r\n\t}", "boolean hasAdGroupLabel();" ]
[ "0.7787401", "0.72007775", "0.65965617", "0.6419053", "0.6265967", "0.6002199", "0.59725624", "0.5941192", "0.5933126", "0.592397", "0.59037274", "0.58887786", "0.58373785", "0.580705", "0.5803845", "0.5803845", "0.5754531", "0.5726704", "0.57215095", "0.5710042", "0.5695777", "0.5654967", "0.5654537", "0.5630102", "0.5608064", "0.560041", "0.558889", "0.55826664", "0.55825603", "0.5580439", "0.5574413", "0.55733526", "0.5573231", "0.5572833", "0.5567512", "0.5567512", "0.55548966", "0.555014", "0.5542426", "0.55225325", "0.5519637", "0.55181193", "0.5512283", "0.5510931", "0.5500023", "0.54938316", "0.5492628", "0.5480419", "0.547775", "0.5474433", "0.5472979", "0.5471526", "0.54492587", "0.54470766", "0.5431506", "0.54259783", "0.5409273", "0.5390144", "0.53681", "0.53670514", "0.5366052", "0.5363767", "0.53562593", "0.5345624", "0.5339538", "0.53308284", "0.5319825", "0.53157175", "0.53127396", "0.53111726", "0.5295732", "0.52904457", "0.5286772", "0.5281811", "0.5268772", "0.5267559", "0.52560383", "0.52451414", "0.5242278", "0.52339953", "0.5225725", "0.5225337", "0.5224592", "0.5210074", "0.5203295", "0.5202653", "0.5202086", "0.51938707", "0.51911306", "0.51890737", "0.5182593", "0.5181283", "0.51782805", "0.5174576", "0.51742166", "0.51739395", "0.51734626", "0.51580215", "0.5154837", "0.5149653" ]
0.80751383
0
Tests support for nested ACL groups.
public void testNestedAclGroupsSupported() { assertTrue(_ruleSet.addGroup("aclgroup1", Arrays.asList(new String[] {"userb"}))); assertTrue(_ruleSet.addGroup("aclgroup2", Arrays.asList(new String[] {"usera", "aclgroup1"}))); _ruleSet.grant(1, "aclgroup2", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); assertEquals(1, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject("usera"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject("userb"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\", \"userb\"}))); \n \n _ruleSet.grant(1, \"aclgroup\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DEFER, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userc\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testExternalGroupsSupported()\n {\n _ruleSet.grant(1, \"extgroup1\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"extgroup2\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\", \"extgroup1\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\", \"extgroup2\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "@Test\n public void groupsTest() {\n // TODO: test groups\n }", "public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Test\n public void shouldTestIsBetweenTwoGroupsOnLevel() {\n this.rowGroupHeaderLayer.addGroupingLevel();\n // group spans Address and Facts\n this.rowGroupHeaderLayer.addGroup(1, \"Test\", 4, 7);\n\n // tests on level 0\n // additional level should not change the results\n shouldTestIsBetweenTwoGroups();\n\n // tests on level 1\n // note that if check on deeper level is false, it also needs to be\n // false on the upper level\n\n // move left reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.LEFT));\n\n // move right reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.RIGHT));\n\n // move left reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.LEFT));\n\n // move right reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.RIGHT));\n\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 4, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 11, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, false, MoveDirectionEnum.RIGHT));\n //\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 8, true, MoveDirectionEnum.LEFT));\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 5, true, MoveDirectionEnum.LEFT));\n\n // TODO remove group on level 0\n // no group on level 1 at this positions\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, false, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 2, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 12, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, true, MoveDirectionEnum.RIGHT));\n }", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "private void testAclConstraints002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Get=*&Replace=*\";\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"This test asserts that if the root node ACL is not explicitly set, it should be set to Add=*&Get=*&Replace=*.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "public interface Group extends Item {\n\n /**\n * Gets all parents of this group in no particular order.\n * \n * @return array of parent groups, or empty array if there are no parent groups.\n * @throws AccessManagementException\n */\n Group[] getParents() throws AccessManagementException;\n\n /**\n * Gets all members of this group in no particular order.\n * \n * @return array of members, or empty array if there are no members.\n * @throws AccessManagementException\n */\n Item[] getMembers() throws AccessManagementException;\n\n // TODO: Because of scalability issues We should introduce an iterator for getting all members\n\n /**\n * Adds a member to this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item already is a member of this group, or if something\n * else goes wrong.\n */\n void addMember(Item item) throws AccessManagementException;\n\n /**\n * Removes item from this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item is not a member of this group, or if something else\n * goes wrong.\n */\n void removeMember(Item item) throws AccessManagementException;\n\n /**\n * Indicates whether the item is a member of this group.\n * \n * @param item\n * @return true if the item is a member of this group, false otherwise.\n * @throws AccessManagementException\n */\n boolean isMember(Item item) throws AccessManagementException;\n}", "@Test\n void getAllClientIdWithAccess_throwingGroupCheck_stillWorks() {\n when(groupsConnection.isMemberOfGroup(any(), any())).thenThrow(new RuntimeException(\"blah\"));\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n USER, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n verify(groupsConnection).isMemberOfGroup(\"[email protected]\", SUPPORT_GROUP.get());\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(CLIENT_ID_WITH_CONTACT, OWNER);\n verify(lazyGroupsConnection).get();\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "private void testAclConstraints004() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints004\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Exec=*&Replace=*\";\n\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(expectedRootAcl));\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"Asserts that the root's ACL can be changed.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "boolean groupSupports(Object groupID, int groupConstant) throws Exception;", "@Test\n public void testRuntimeGroupGrantExpansion() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.RECEIVE_SMS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n\n String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS};\n\n // request only one permission from the 'SMS' permission group at runtime,\n // but two from this group are <uses-permission> in the manifest\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // We should now have been granted both of the permissions from this group.\n assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n }", "@Documented(ACL_DOCUMENTATION)\n @Graph(value = {\n \"Root has Role\",\n \"Role subRole SUDOers\",\n \"Role subRole User\",\n \"User member User1\",\n \"User member User2\",\n \"Root has FileRoot\",\n \"FileRoot contains Home\",\n \"Home contains HomeU1\",\n \"Home contains HomeU2\",\n \"HomeU1 leaf File1\",\n \"HomeU2 contains Desktop\",\n \"Desktop leaf File2\",\n \"FileRoot contains etc\",\n \"etc contains init.d\",\n \"SUDOers member Admin1\",\n \"SUDOers member Admin2\",\n \"User1 owns File1\",\n \"User2 owns File2\",\n \"SUDOers canRead FileRoot\"})\n @Test\n public void ACL_structures_in_graphs(GraphDatabaseService graphDb) {\n JavaTestDocsGenerator generator = gen.get();\n\n //Files\n //TODO: can we do open ended?\n try (Transaction transaction = graphDb.beginTx()) {\n String query = \"match ({name: 'FileRoot'})-[:contains*0..]->(parentDir)-[:leaf]->(file) return file\";\n generator.addSnippet(\"query1\", createCypherSnippet(query));\n String result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n generator.addSnippet(\"result1\", createQueryResultSnippet(result));\n\n //Ownership\n query = \"match ({name: 'FileRoot'})-[:contains*0..]->()-[:leaf]->(file)<-[:owns]-(user) return file, user\";\n generator.addSnippet(\"query2\", createCypherSnippet(query));\n result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n assertTrue(result.contains(\"User1\"));\n assertTrue(result.contains(\"User2\"));\n assertTrue(result.contains(\"File2\"));\n assertFalse(result.contains(\"Admin1\"));\n assertFalse(result.contains(\"Admin2\"));\n generator.addSnippet(\"result2\", createQueryResultSnippet(result));\n\n //ACL\n query = \"MATCH (file)<-[:leaf]-()<-[:contains*0..]-(dir) \" + \"OPTIONAL MATCH (dir)<-[:canRead]-(role)-[:member]->(readUser) \" +\n \"WHERE file.name =~ 'File.*' \" + \"RETURN file.name, dir.name, role.name, readUser.name\";\n generator.addSnippet(\"query3\", createCypherSnippet(query));\n result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n assertTrue(result.contains(\"File2\"));\n assertTrue(result.contains(\"Admin1\"));\n assertTrue(result.contains(\"Admin2\"));\n generator.addSnippet(\"result3\", createQueryResultSnippet(result));\n transaction.commit();\n }\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedRight() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(0);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(11, true);\n\n // reorder outside group valid\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 4, true));\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 6, 7, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 7, 4, true));\n // in same group where adjacent group is also unbreakable\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 8, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 10, 8, true));\n // to any other group\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 5, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 1, 9, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 2, 13, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 8, true));\n }", "private void testAclConstraints008() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints008\");\n //We need to set that a parent of the node does not have Replace else the acl of the root \".\" is gotten\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.DELETE );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.LEAF_NODE,DmtSession.LOCK_TYPE_EXCLUSIVE);\n session.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that Replace access on a leaf node does not allow changing the ACL property itself.\",\n\t\t\t DmtException.PERMISSION_DENIED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n tbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n }", "public void testGroupDoesNotImplySameGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "private void testAclConstraints009() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints009\");\n session = tbc.getDmtAdmin().getSession(TestExecPluginActivator.ROOT,\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n\n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n session.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n DefaultTestBundleControl.pass(\"ACLs is only verified by the Dmt Admin service when the session has an associated principal.\");\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }", "public void testDenyDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n \n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "private void testAclConstraints003() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints003\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(\".\",null);\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that the root node of DMT must always have an ACL associated with it\",\n\t\t\t DmtException.COMMAND_NOT_ALLOWED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(DmtException.class, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "private void testAclConstraints007() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints007\");\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL_2, Acl.GET );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\t\t\ttbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n\t\t\tsession = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.ROOT,DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\t\n\t\t\tDefaultTestBundleControl.pass(\"If a principal has Replace access to a node, the principal is permitted to change the ACL of all its child nodes\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n\t\t\ttbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "@LargeTest\n public void testGroupTestEmulated() {\n TestAction ta = new TestAction(TestName.GROUP_TEST_EMULATED);\n runTest(ta, TestName.GROUP_TEST_EMULATED.name());\n }", "@Test\n public void groupTest() {\n // TODO: test group\n }", "@Test\n public void groupIdTest() {\n // TODO: test groupId\n }", "public void testGroupDoesNotImplySameRequiredGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "public void testPropfindPermissionsOnRoot() throws Exception\n {\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.putSingle(\"Depth\", \"0\");\n EnvironmentContext ctx = new EnvironmentContext();\n\n Set<String> adminRoles = new HashSet<String>();\n adminRoles.add(\"administrators\");\n\n DummySecurityContext adminSecurityContext = new DummySecurityContext(new Principal()\n {\n public String getName()\n {\n return USER_ROOT;\n }\n }, adminRoles);\n\n ctx.put(SecurityContext.class, adminSecurityContext);\n\n RequestHandlerImpl handler = (RequestHandlerImpl)container.getComponentInstanceOfType(RequestHandlerImpl.class);\n ResourceLauncher launcher = new ResourceLauncher(handler);\n\n String request =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\" + \"<D:propfind xmlns:D=\\\"DAV:\\\">\" + \"<D:prop>\" + \"<D:owner/>\"\n + \"<D:acl/>\" + \"</D:prop>\" + \"</D:propfind>\";\n\n ContainerResponse response =\n launcher.service(WebDAVMethods.PROPFIND, getPathWS(), BASE_URI, headers, request.getBytes(), null, ctx);\n\n assertEquals(HTTPStatus.MULTISTATUS, response.getStatus());\n assertNotNull(response.getEntity());\n\n HierarchicalPropertyEntityProvider provider = new HierarchicalPropertyEntityProvider();\n InputStream inputStream = TestUtils.getResponseAsStream(response);\n HierarchicalProperty multistatus = provider.readFrom(null, null, null, null, null, inputStream);\n\n assertEquals(new QName(\"DAV:\", \"multistatus\"), multistatus.getName());\n assertEquals(1, multistatus.getChildren().size());\n\n HierarchicalProperty resourceProp = multistatus.getChildren().get(0);\n\n HierarchicalProperty resourceHref = resourceProp.getChild(new QName(\"DAV:\", \"href\"));\n assertNotNull(resourceHref);\n assertEquals(BASE_URI + getPathWS() + \"/\", resourceHref.getValue());\n\n HierarchicalProperty propstatProp = resourceProp.getChild(new QName(\"DAV:\", \"propstat\"));\n HierarchicalProperty propProp = propstatProp.getChild(new QName(\"DAV:\", \"prop\"));\n\n HierarchicalProperty ownerProp = propProp.getChild(new QName(\"DAV:\", \"owner\"));\n HierarchicalProperty ownerHrefProp = ownerProp.getChild(new QName(\"DAV:\", \"href\"));\n\n assertEquals(\"__system\", ownerHrefProp.getValue());\n\n HierarchicalProperty aclProp = propProp.getChild(ACLProperties.ACL);\n assertEquals(1, aclProp.getChildren().size());\n\n HierarchicalProperty aceProp = aclProp.getChild(ACLProperties.ACE);\n assertEquals(2, aceProp.getChildren().size());\n\n HierarchicalProperty principalProp = aceProp.getChild(ACLProperties.PRINCIPAL);\n assertEquals(1, principalProp.getChildren().size());\n\n HierarchicalProperty allProp = principalProp.getChild(ACLProperties.ALL);\n assertNotNull(allProp);\n\n HierarchicalProperty grantProp = aceProp.getChild(ACLProperties.GRANT);\n assertEquals(2, grantProp.getChildren().size());\n\n HierarchicalProperty writeProp = grantProp.getChild(0).getChild(ACLProperties.WRITE);\n assertNotNull(writeProp);\n HierarchicalProperty readProp = grantProp.getChild(1).getChild(ACLProperties.READ);\n assertNotNull(readProp);\n }", "@Test\n\tvoid findAllForMySubGroup() {\n\t\tinitSpringSecurityContext(\"mmartin\");\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, \"biz agency\", \"fdoe2\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\n\t\t// Check the users\n\t\tAssertions.assertEquals(\"fdoe2\", tableItem.getData().get(0).getId());\n\t\tAssertions.assertFalse(tableItem.getData().get(0).isCanWrite());\n\t\tAssertions.assertTrue(tableItem.getData().get(0).isCanWriteGroups());\n\n\t\t// Check the groups\n\t\t// \"Biz Agency\" is visible since \"mmartin\" is in the parent group \"\n\t\tAssertions.assertEquals(2, tableItem.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency\", tableItem.getData().get(0).getGroups().get(0).getName());\n\t\tAssertions.assertTrue(tableItem.getData().get(0).getGroups().get(0).isCanWrite());\n\t\tAssertions.assertEquals(\"DIG RHA\", tableItem.getData().get(0).getGroups().get(1).getName());\n\t\tAssertions.assertFalse(tableItem.getData().get(0).getGroups().get(1).isCanWrite());\n\t}", "private void testAclConstraints012() {\n try {\n int aclModifiers = Acl.class.getModifiers();\n TestCase.assertTrue(\"Asserts that Acl is a public final class\", aclModifiers == (Modifier.FINAL | Modifier.PUBLIC));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n }\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedLeft() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(11);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(0, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 12, 8, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 13, 0, true));\n }", "@Test\n public void shouldTestIsReorderValidWithoutUnbreakable() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 4, true));\n // to other group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n // to start of first group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 8, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n }", "private static boolean rscInGroup(IResourceGroup group,\n AbstractVizResource<?, ?> resource) {\n\n for (ResourcePair pair : group.getResourceList()) {\n if (pair.getResource() == resource) {\n return true;\n }\n AbstractResourceData resourceData = pair.getResourceData();\n if (resourceData instanceof IResourceGroup) {\n if (rscInGroup((IResourceGroup) resourceData, resource)) {\n return true;\n }\n }\n }\n return false;\n }", "Group[] getParents() throws AccessManagementException;", "boolean isChildSelectable(int groupPosition, int childPosition);", "@Test\n @WithMockUhUser(username = \"iamtst04\")\n public void optInTest() throws Exception {\n assertFalse(isInCompositeGrouping(GROUPING, tst[0], tst[3]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[3]));\n assertTrue(isInExcludeGroup(GROUPING, tst[0], tst[3]));\n\n //tst[3] opts into Grouping\n mapGSRs(API_BASE + GROUPING + \"/optIn\");\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIncludeSubGroups();", "Collection getAccessPatternsInGroup(Object groupID) throws Exception;", "@Test\n\tvoid updateUserAddGroup() {\n\t\t// Pre condition, check the user \"wuser\", has not yet the group \"DIG\n\t\t// RHA\" we want to be added by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Pre condition, check the user \"wuser\", has no group visible by\n\t\t// \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult.getData().get(0).getGroups().size());\n\n\t\t// Pre condition, check the user \"wuser\", \"Biz Agency Manager\" is not\n\t\t// visible by \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager.getRecordsTotal());\n\t\tAssertions.assertEquals(0, usersFromOtherGroupManager.getData().get(0).getGroups().size());\n\n\t\t// Add a new valid group \"DIG RHA\" to \"wuser\" by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user = new UserOrgEditionVo();\n\t\tuser.setId(\"wuser\");\n\t\tuser.setFirstName(\"William\");\n\t\tuser.setLastName(\"User\");\n\t\tuser.setCompany(\"ing\");\n\t\tuser.setMail(\"[email protected]\");\n\t\tfinal List<String> groups = new ArrayList<>();\n\t\tgroups.add(\"DIG RHA\");\n\t\tgroups.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups);\n\t\tresource.update(user);\n\n\t\t// Check the group \"DIG RHA\" is added and\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\t\tAssertions.assertEquals(2, tableItem.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\", tableItem.getData().get(0).getGroups().get(0).getName());\n\t\tAssertions.assertEquals(\"DIG RHA\", tableItem.getData().get(0).getGroups().get(1).getName());\n\n\t\t// Check the user \"wuser\", still has no group visible by \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult2 = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult2.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult2.getData().get(0).getGroups().size());\n\n\t\t// Check the user \"wuser\", still has the group \"DIG RHA\" visible by\n\t\t// \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager2.getRecordsTotal());\n\t\tAssertions.assertEquals(\"DIG RHA\", usersFromOtherGroupManager2.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Restore the old state\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user2 = new UserOrgEditionVo();\n\t\tuser2.setId(\"wuser\");\n\t\tuser2.setFirstName(\"William\");\n\t\tuser2.setLastName(\"User\");\n\t\tuser2.setCompany(\"ing\");\n\t\tuser2.setMail(\"[email protected]\");\n\t\tfinal List<String> groups2 = new ArrayList<>();\n\t\tgroups2.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups2);\n\t\tresource.update(user);\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater2.getData().get(0).getGroups().get(0).getName());\n\t}", "public void testGroupInitializer() throws Exception {\n }", "boolean isNested();", "@Test\n public void testAuthorizedRemoveGroup() throws IOException {\n testUserId2 = createTestUser();\n grantUserManagementRights(testUserId2);\n\n String groupId = createTestGroup();\n\n Credentials creds = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds, postUrl, HttpServletResponse.SC_OK, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_NOT_FOUND, null); //make sure the profile request returns some data\n }", "@Test\n public void testRevokeAffectsWholeGroup_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n }", "@Test\n public final void WebDAV_ACL_parent_authority_test() {\n String topColPath = \"aclcol1\";\n String secondColPath = topColPath + \"/aclcol2\";\n String currentColPath = secondColPath + \"/aclcol3\";\n String testcell = \"testcell1\";\n String boxName = \"box1\";\n\n try {\n // コレクションの作成\n Http.request(\"box/mkcol-normal.txt\")\n .with(\"cellPath\", \"testcell1\")\n .with(\"path\", topColPath)\n .with(\"token\", TOKEN)\n .returns()\n .statusCode(HttpStatus.SC_CREATED);\n Http.request(\"box/mkcol-normal.txt\")\n .with(\"cellPath\", \"testcell1\")\n .with(\"path\", secondColPath)\n .with(\"token\", TOKEN)\n .returns()\n .statusCode(HttpStatus.SC_CREATED);\n Http.request(\"box/mkcol-normal.txt\")\n .with(\"cellPath\", \"testcell1\")\n .with(\"path\", currentColPath)\n .with(\"token\", TOKEN)\n .returns()\n .statusCode(HttpStatus.SC_CREATED);\n\n // ACLの設定\n Http.request(\"box/acl.txt\")\n .with(\"colname\", topColPath)\n .with(\"token\", TOKEN)\n .with(\"roleBaseUrl\", UrlUtils.roleResource(testcell, null, \"\"))\n .with(\"level\", \"none\")\n .returns()\n .statusCode(HttpStatus.SC_OK);\n Http.request(\"box/acl-setting.txt\")\n .with(\"cellPath\", \"testcell1\")\n .with(\"box\", \"box1\")\n .with(\"colname\", secondColPath)\n .with(\"token\", TOKEN)\n .with(\"roleBaseUrl\", UrlUtils.roleResource(testcell, null, \"\"))\n .with(\"role\", UrlUtils.roleResource(testcell, null, \"role1\"))\n .with(\"level\", \"none\")\n .with(\"privilege\", \"<D:write/>\")\n .returns()\n .statusCode(HttpStatus.SC_OK);\n\n // ACLの確認\n TResponse tresponseWebDav = Http.request(\"box/propfind-col-allprop.txt\")\n .with(\"path\", currentColPath)\n .with(\"depth\", \"1\")\n .with(\"token\", TOKEN)\n .returns();\n tresponseWebDav.statusCode(HttpStatus.SC_MULTI_STATUS);\n\n // PROPFOINDレスポンスボディの確認\n String resorce = UrlUtils.box(testcell, boxName, currentColPath);\n Element root2 = tresponseWebDav.bodyAsXml().getDocumentElement();\n List<Map<String, List<String>>> list = new ArrayList<Map<String, List<String>>>();\n\n // sub collection ace.\n Map<String, List<String>> map = new HashMap<String, List<String>>();\n List<String> rolList = new ArrayList<String>();\n rolList.add(\"write\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role1\"), rolList);\n list.add(map);\n\n // top collection ace.\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"read\");\n rolList.add(\"write\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role1\"), rolList);\n list.add(map);\n\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"read\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role2\"), rolList);\n list.add(map);\n\n // box ace.\n list.addAll(createDefaultBoxAceMapList());\n\n List<String> inheritedHrefList = new ArrayList<>();\n inheritedHrefList.add(UrlUtils.box(testcell, boxName, secondColPath));\n inheritedHrefList.add(UrlUtils.box(testcell, boxName, topColPath));\n inheritedHrefList.add(UrlUtils.box(testcell, boxName, topColPath));\n inheritedHrefList.add(UrlUtils.boxRoot(testcell, boxName));\n inheritedHrefList.add(UrlUtils.boxRoot(testcell, boxName));\n inheritedHrefList.add(UrlUtils.boxRoot(testcell, boxName));\n inheritedHrefList.add(UrlUtils.boxRoot(testcell, boxName));\n inheritedHrefList.add(UrlUtils.boxRoot(testcell, boxName));\n inheritedHrefList.add(UrlUtils.boxRoot(testcell, boxName));\n inheritedHrefList.add(UrlUtils.boxRoot(testcell, boxName));\n inheritedHrefList.add(UrlUtils.boxRoot(testcell, boxName));\n\n TestMethodUtils.aclResponseTest(root2, resorce, list, inheritedHrefList, 1,\n UrlUtils.roleResource(testcell, boxName, \"\"), null);\n\n } finally {\n deleteTest(currentColPath, -1);\n deleteTest(secondColPath, -1);\n deleteTest(topColPath, -1);\n }\n }", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "public void testPropfindPropOwnerAndAclOnNode() throws Exception\n {\n\n NodeImpl testNode = (NodeImpl)root.addNode(\"test_acl_property\", \"nt:folder\");\n testNode.addMixin(\"exo:owneable\");\n testNode.addMixin(\"exo:privilegeable\");\n session.save();\n\n Map<String, String[]> permissions = new HashMap<String, String[]>();\n\n String userName = USER_JOHN;\n permissions.put(userName, PermissionType.ALL);\n\n testNode.setPermissions(permissions);\n testNode.getSession().save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.putSingle(\"Depth\", \"1\");\n headers.putSingle(HttpHeaders.CONTENT_TYPE, \"text/xml; charset=\\\"utf-8\\\"\");\n\n EnvironmentContext ctx = new EnvironmentContext();\n\n Set<String> adminRoles = new HashSet<String>();\n adminRoles.add(\"administrators\");\n\n DummySecurityContext adminSecurityContext = new DummySecurityContext(new Principal()\n {\n public String getName()\n {\n return USER_ROOT;\n }\n }, adminRoles);\n\n ctx.put(SecurityContext.class, adminSecurityContext);\n\n RequestHandlerImpl handler = (RequestHandlerImpl)container.getComponentInstanceOfType(RequestHandlerImpl.class);\n ResourceLauncher launcher = new ResourceLauncher(handler);\n\n String request =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\" + \"<D:propfind xmlns:D=\\\"DAV:\\\">\" + \"<D:prop>\" + \"<D:owner/>\"\n + \"<D:acl/>\" + \"</D:prop>\" + \"</D:propfind>\";\n\n ContainerResponse cres =\n launcher.service(WebDAVMethods.PROPFIND, getPathWS() + testNode.getPath(), BASE_URI, headers,\n request.getBytes(), null, ctx);\n\n assertEquals(HTTPStatus.MULTISTATUS, cres.getStatus());\n\n HierarchicalPropertyEntityProvider provider = new HierarchicalPropertyEntityProvider();\n InputStream inputStream = TestUtils.getResponseAsStream(cres);\n HierarchicalProperty multistatus = provider.readFrom(null, null, null, null, null, inputStream);\n\n assertEquals(new QName(\"DAV:\", \"multistatus\"), multistatus.getName());\n assertEquals(1, multistatus.getChildren().size());\n\n HierarchicalProperty resourceProp = multistatus.getChildren().get(0);\n\n HierarchicalProperty resourceHref = resourceProp.getChild(new QName(\"DAV:\", \"href\"));\n assertNotNull(resourceHref);\n assertEquals(BASE_URI + getPathWS() + testNode.getPath() + \"/\", resourceHref.getValue());\n\n HierarchicalProperty propstatProp = resourceProp.getChild(new QName(\"DAV:\", \"propstat\"));\n HierarchicalProperty propProp = propstatProp.getChild(new QName(\"DAV:\", \"prop\"));\n\n HierarchicalProperty aclProp = propProp.getChild(ACLProperties.ACL);\n assertEquals(1, aclProp.getChildren().size());\n\n HierarchicalProperty aceProp = aclProp.getChild(ACLProperties.ACE);\n assertEquals(2, aceProp.getChildren().size());\n\n HierarchicalProperty principalProp = aceProp.getChild(ACLProperties.PRINCIPAL);\n assertEquals(1, principalProp.getChildren().size());\n\n assertEquals(userName, principalProp.getChildren().get(0).getValue());\n\n HierarchicalProperty grantProp = aceProp.getChild(ACLProperties.GRANT);\n assertEquals(2, grantProp.getChildren().size());\n\n HierarchicalProperty writeProp = grantProp.getChild(0).getChild(ACLProperties.WRITE);\n assertNotNull(writeProp);\n HierarchicalProperty readProp = grantProp.getChild(1).getChild(ACLProperties.READ);\n assertNotNull(readProp);\n\n }", "private static boolean allowClose(MutableGroup currentGroup) {\n \t\tif (currentGroup instanceof Instance) {\n \t\t\treturn false; // instances may never be closed, they have no parent in the group stack\n \t\t}\n \t\t\n \t\tif (currentGroup.getDefinition() instanceof GroupPropertyDefinition && \n \t\t\t\t((GroupPropertyDefinition) currentGroup.getDefinition()).getConstraint(ChoiceFlag.class).isEnabled()) {\n \t\t\t// group is a choice\n \t\t\tIterator<QName> it = currentGroup.getPropertyNames().iterator();\n \t\t\tif (it.hasNext()) {\n \t\t\t\t// choice has at least on value set -> check cardinality for the corresponding property\n \t\t\t\tQName name = it.next();\n \t\t\t\treturn isValidCardinality(currentGroup, currentGroup.getDefinition().getChild(name));\n \t\t\t}\n \t\t\t// else check all children like below\n \t\t}\n \t\t\n \t\t// determine all children\n \t\tCollection<? extends ChildDefinition<?>> children = DefinitionUtil.getAllChildren(currentGroup.getDefinition());\n \t\n \t\t// check cardinality of children\n \t\tfor (ChildDefinition<?> childDef : children) {\n \t\t\tif (isValidCardinality(currentGroup, childDef)) { //XXX is this correct?! should it be !isValid... instead?\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn true;\n \t}", "@Test\n public void testGroupComparator() throws Exception {\n assertEquals(-1, runGroupComparator(\"LembosGroupComparatorTest-testGroupComparator\", 1, 3));\n }", "@Test(priority=5)\r\n\tpublic void displayGroupByListBox() {\r\n\t\t\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayGroupByListboxOptions();\r\n\t\tassertEquals(actual, expected);\r\n\t}", "public void testGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(contest);\n\n Group[] groups = contest.getGroups();\n Arrays.sort(groups, new GroupComparator());\n\n \n Group group = groups[0];\n String json = eventFeedJSON.getGroupJSON(contest, group);\n\n// System.out.println(\"debug group json = \"+json);\n \n // debug group json = {\"id\":1024, \"icpc_id\":1024, \"name\":\"North Group\"}\n\n // {\"id\":1, \"icpc_id\":\"3001\", \"name\":\"team1\", \"organization_id\": null}\n\n asertEqualJSON(json, \"id\", \"1024\");\n \n assertJSONStringValue(json, \"id\", \"1024\");\n assertJSONStringValue(json, \"icpc_id\", \"1024\");\n assertJSONStringValue(json, \"name\", \"North Group\");\n }", "@Test\r\n\tpublic void checkAddGroup() {\r\n\r\n\t\tITemplateGroup test = null;\r\n\t\ttry {\r\n\t\t\ttest = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test1\");\r\n\t\t} catch (TemplateException e) {\r\n\t\t\tfail(\"No exception has thrown.\");\r\n\t\t}\r\n\t\tassertNotNull(test);\r\n\r\n\t\tassertEquals(test.getDisplayName(), \"Test1\");\r\n\t\tassertSame(test, general);\r\n\r\n\t\ttry {\r\n\t\t\ttest = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test2\");\r\n\t\t\tfail(\"A excpetion must be thrown.\");\r\n\t\t} catch (TemplateException e) {\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testUserAndFlowGroupQuotaMultipleUsersAdd() throws Exception {\n Dag<JobExecutionPlan> dag1 = DagManagerTest.buildDag(\"1\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag2 = DagManagerTest.buildDag(\"2\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag3 = DagManagerTest.buildDag(\"3\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group3\")));\n Dag<JobExecutionPlan> dag4 = DagManagerTest.buildDag(\"4\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n // Ensure that the current attempt is 1, normally done by DagManager\n dag1.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag2.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag3.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag4.getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dag1.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag2.getNodes().get(0)));\n\n // Should fail due to user quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n });\n // Should fail due to flowgroup quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n });\n // should pass due to quota being released\n this._quotaManager.releaseQuota(dag2.getNodes().get(0));\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n }", "@Test\n public void testGetUserGroups() throws Exception {\n\n // p4 groups -o p4jtestsuper\n List<IUserGroup> userGroups = server.getUserGroups(superUser, new GetUserGroupsOptions().setOwnerName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(\"too few user groups in list\", userGroups.size() >= 1, is(true));\n\n // p4 groups -u p4jtestuser\n userGroups = server.getUserGroups(user, new GetUserGroupsOptions().setUserName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(\"too few user groups in list\", userGroups.size() >= 1);\n\n // p4 groups -g p4users\n userGroups = server.getUserGroups(superUserGroupName, new GetUserGroupsOptions().setGroupName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(userGroups.size() == 0, is(true));\n\n }", "@Test\n public void testNotAuthorizedRemoveGroup() throws IOException {\n testUserId2 = createTestUser();\n\n String groupId = createTestGroup();\n\n Credentials creds = new UsernamePasswordCredentials(\"admin\", \"admin\");\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n Credentials creds2 = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds2, postUrl, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n }", "private void testAclConstraints011() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints011\");\n \n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.GET | Acl.ADD );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.ROOT, DmtConstants.PRINCIPAL, Acl.ADD );\n\n Acl aclExpected = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.ADD | Acl.DELETE | Acl.REPLACE });\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class\n\t\t\t\t\t.getName(), DmtConstants.PRINCIPAL, \"*\"));\n\t\t\t\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL, \".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n\n session.close();\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n TestCase.assertTrue(\"Asserts that if the calling principal does not have Replace rights for the parent, \" +\n \t\t\"the destiny node must be set with an Acl having Add, Delete and Replace permissions.\",\n \t\taclExpected.equals(session.getNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "UUID getNestedGroupId();", "@Test public void modifySecretGroups_success() throws Exception {\n createGroup(\"group8a\");\n createGroup(\"group8b\");\n createGroup(\"group8c\");\n create(CreateSecretRequestV2.builder()\n .name(\"secret8\")\n .content(encoder.encodeToString(\"supa secret8\".getBytes(UTF_8)))\n .groups(\"group8a\", \"group8b\")\n .build());\n\n // Modify secret\n ModifyGroupsRequestV2 request = ModifyGroupsRequestV2.builder()\n .addGroups(\"group8c\", \"non-existent1\")\n .removeGroups(\"group8a\", \"non-existent2\")\n .build();\n List<String> groups = modifyGroups(\"secret8\", request);\n assertThat(groups).containsOnly(\"group8b\", \"group8c\");\n }", "public static boolean createSubgroup(String name, String path, String parentId) {\n String url = BASE_URL + \"groups\";\n HttpPost post = new HttpPost(url);\n Gson gson = new Gson();\n NewSubgroup group = new NewSubgroup(name, path, parentId);\n setPostJson(post, gson.toJson(group));\n try {\n HttpResponse response = sendAuthenticated(post);\n return response.getStatusLine().getStatusCode() == 201;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "@Test\n public void testListStatusACL() throws IOException {\n String testfilename = \"testFileACL\";\n String childDirectoryName = \"testDirectoryACL\";\n TEST_DIR.mkdirs();\n File infile = new File(TEST_DIR, testfilename);\n final byte[] content = \"dingos\".getBytes();\n\n try (FileOutputStream fos = new FileOutputStream(infile)) {\n fos.write(content);\n }\n assertEquals(content.length, infile.length());\n File childDir = new File(TEST_DIR, childDirectoryName);\n childDir.mkdirs();\n\n Configuration conf = new Configuration();\n ConfigUtil.addLink(conf, \"/file\", infile.toURI());\n ConfigUtil.addLink(conf, \"/dir\", childDir.toURI());\n conf.setBoolean(Constants.CONFIG_VIEWFS_MOUNT_LINKS_AS_SYMLINKS, false);\n try (FileSystem vfs = FileSystem.get(FsConstants.VIEWFS_URI, conf)) {\n assertEquals(ViewFileSystem.class, vfs.getClass());\n FileStatus[] statuses = vfs.listStatus(new Path(\"/\"));\n\n FileSystem localFs = FileSystem.getLocal(conf);\n FileStatus fileStat = localFs.getFileStatus(new Path(infile.getPath()));\n FileStatus dirStat = localFs.getFileStatus(new Path(childDir.getPath()));\n\n for (FileStatus status : statuses) {\n if (status.getPath().getName().equals(\"file\")) {\n assertEquals(fileStat.getPermission(), status.getPermission());\n } else {\n assertEquals(dirStat.getPermission(), status.getPermission());\n }\n }\n\n localFs.setPermission(new Path(infile.getPath()),\n FsPermission.valueOf(\"-rwxr--r--\"));\n localFs.setPermission(new Path(childDir.getPath()),\n FsPermission.valueOf(\"-r--rwxr--\"));\n\n statuses = vfs.listStatus(new Path(\"/\"));\n for (FileStatus status : statuses) {\n if (status.getPath().getName().equals(\"file\")) {\n assertEquals(FsPermission.valueOf(\"-rwxr--r--\"),\n status.getPermission());\n assertFalse(status.isDirectory());\n } else {\n assertEquals(FsPermission.valueOf(\"-r--rwxr--\"),\n status.getPermission());\n assertTrue(status.isDirectory());\n }\n }\n }\n }", "@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}", "private boolean isNested(String name) {\n String c = firstChar(name);\n if (c.equals(\"^\")) {\n c = \"\\\\^\";\n }\n Pattern p = Pattern.compile(\"^[\" + c + \"][\" + c + \"]+$\");\n Matcher m = p.matcher(name);\n return m.matches();\n }", "public boolean isGroupPossible()\n\t\t{\n\t\t\treturn this.m_allowedAddGroupRefs != null && ! this.m_allowedAddGroupRefs.isEmpty();\n\n\t\t}", "@Test\n public void testCategoryAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureCategoryPermissions(testUser, data);\n\n // test access control\n assertTrue(accessControlService.canViewCategories(), \"Test user should be able to view categories!\");\n assertTrue(accessControlService.canAddCategory(), \"Test user should be able to create categories!\");\n assertFalse(accessControlService.canEditCategory(category), \"Test user should not be able to edit category!\");\n assertFalse(accessControlService.canRemoveCategory(category), \"Test user should not be able to remove category!\");\n }", "@Test\n public void testRemoveGroupWithMembers() throws IOException {\n String groupId = createTestGroup();\n String userId = createTestUser();\n\n Credentials creds = new UsernamePasswordCredentials(\"admin\", \"admin\");\n String addMemberPostUrl = String.format(\"%s/system/userManager/group/%s.update.html\", baseServerUri, groupId);\n List<NameValuePair> addMemberPostParams = new ArrayList<>();\n addMemberPostParams.add(new BasicNameValuePair(\":member\", userId));\n assertAuthenticatedPostStatus(creds, addMemberPostUrl, HttpServletResponse.SC_OK, addMemberPostParams, null);\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds, postUrl, HttpServletResponse.SC_OK, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_NOT_FOUND, null); //make sure the profile request returns some data\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_6_findMultiRolesByNameRecusiveNotExist() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId()+\"/departments/\"+\n d_1.getId()+\n \"/roles?name=manager\")\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded\").doesNotExist());\n }", "private void buildACL() {\n\t\tif (accountRoles == null || accountRoles.isEmpty()) return;\n\t\tAccessControlListGenerator gen = new AccessControlListGenerator();\n\n\t\tMap<Section,Set<String>> groups = new EnumMap<>(Section.class);\n\t\tgroups.put(BROWSE_SECTION, new HashSet<String>());\n\t\tgroups.put(Section.FINANCIAL_DASHBOARD, new HashSet<String>());\n\t\tgroups.put(Section.GAP_ANALYSIS, new HashSet<String>());\n\t\tgroups.put(Section.PRODUCT_EXPLORER, new HashSet<String>());\n\t\tgroups.put(Section.INSIGHT, new HashSet<String>());\n\t\tgroups.put(Section.UPDATES_EDITION, new HashSet<String>());\n\n\t\t//back-trace the approved hierarchies and authorize all parent levels as well\n\t\tfor (PermissionVO vo : accountRoles) {\n\t\t\tString[] tok = vo.getSolrTokenTxt().split(SearchDocumentHandler.HIERARCHY_DELIMITER);\n\t\t\tStringBuilder key = new StringBuilder(50);\n\t\t\tfor (int x=0; x < tok.length; x++) {\n\t\t\t\tif (key.length() > 0) key.append(SearchDocumentHandler.HIERARCHY_DELIMITER);\n\t\t\t\tkey.append(tok[x]);\n\n\t\t\t\tString acl = key.toString();\n\t\t\t\taddAclIf(vo.isBrowseAuth(), acl, groups.get(BROWSE_SECTION));\n\t\t\t\taddAclIf(vo.isFdAuth(), acl, groups.get(Section.FINANCIAL_DASHBOARD));\n\t\t\t\taddAclIf(vo.isGaAuth(), acl, groups.get(Section.GAP_ANALYSIS));\n\t\t\t\taddAclIf(vo.isPeAuth(), acl, groups.get(Section.PRODUCT_EXPLORER));\n\t\t\t\taddAclIf(vo.isAnAuth(), acl, groups.get(Section.INSIGHT));\n\t\t\t\taddAclIf(vo.isUpdatesAuth(), acl, groups.get(Section.UPDATES_EDITION));\n\t\t\t}\n\t\t}\n\t\t\n\t\tgroups.get(BROWSE_SECTION).add(PUBLIC_ACL);\n\t\tgroups.get(Section.FINANCIAL_DASHBOARD).add(PUBLIC_ACL);\n\t\tgroups.get(Section.GAP_ANALYSIS).add(PUBLIC_ACL);\n\t\tgroups.get(Section.PRODUCT_EXPLORER).add(PUBLIC_ACL);\n\t\tgroups.get(Section.INSIGHT).add(PUBLIC_ACL);\n\t\tgroups.get(Section.UPDATES_EDITION).add(PUBLIC_ACL);\n\n\t\tauthorizedSections = new EnumMap<>(Section.class);\n\t\tfor (Map.Entry<Section, Set<String>> entry : groups.entrySet()) {\n\t\t\tSection k = entry.getKey();\n\t\t\t//System.err.println(k + \" -> \" + entry.getValue())\n\t\t\tauthorizedSections.put(k, entry.getValue().toArray(new String[entry.getValue().size()]));\n\t\t\tsetAccessControlList(k, gen.getQueryACL(null, authorizedSections.get(k)));\n\t\t}\n\t}", "public void testTeamAndGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(contest);\n\n Account[] accounts = getAccounts(contest, Type.TEAM);\n \n Account account = accounts[0];\n\n String json = eventFeedJSON.getTeamJSON(contest, account);\n \n// System.out.println(\"debug team json = \"+json);\n\n // debug team json = {\"id\":\"1\", \"icpc_id\":\"3001\", \"name\":\"team1\", \"organization_id\": null, \"group_id\":\"1024\"}\n\n asertEqualJSON(json, \"id\", \"1\");\n asertEqualJSON(json, \"name\", \"team1\");\n ObjectMapper mapper = new ObjectMapper();\n JsonNode readTree = mapper.readTree(json);\n List<JsonNode> findValues = readTree.findValues(\"group_ids\");\n assertEquals(\"matching group ids\", \"1024\", findValues.get(0).elements().next().asText());\n\n assertJSONStringValue(json, \"id\", \"1\");\n assertJSONStringValue(json, \"icpc_id\", \"3001\");\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_6_findMultiRolesByNameRecusiveExist() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId()+\"/departments/\"+\n d_1.getId()+\n \"/roles?name=VP\")\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.roles\",hasSize(1)))\n .andExpect(jsonPath(\"$._embedded.roles[0].id\",is(r_1.getId().toString())));\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_6_findMultiRolesByName() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId()+\"/departments/**/roles?name=manager\")\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.roles\",hasSize(2)));\n }", "@Test\n public void testFetchRoles() {\n final FetchRoleRequest request = new FetchRoleRequest(findNationalGroup(token).getGroupId());\n final FetchRoleResponse response = administration.fetchRoles(token, request);\n assertThat(response, is(not(nullValue())));\n assertThat(response.isOk(), is(true));\n // There should be a total of 4 roles for this Group\n assertThat(response.getRoles().size(), is(4));\n }", "@Test\n void getAllClientIdWithAccess_userInSupportGroup() {\n when(groupsConnection.isMemberOfGroup(\"[email protected]\", SUPPORT_GROUP.get())).thenReturn(true);\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n USER, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(\n CLIENT_ID_WITH_CONTACT, ADMIN,\n CLIENT_ID_WITH_CONTACT, OWNER,\n\n REAL_CLIENT_ID_WITHOUT_CONTACT, ADMIN,\n\n OTE_CLIENT_ID_WITHOUT_CONTACT, ADMIN,\n OTE_CLIENT_ID_WITHOUT_CONTACT, OWNER,\n\n ADMIN_CLIENT_ID, ADMIN,\n ADMIN_CLIENT_ID, OWNER);\n verify(lazyGroupsConnection).get();\n }", "@Test\n public void testGroupModification() {\n app.getNavigationHelper().gotoGroupPage();\n\n if (! app.getGroupHelper().isThereAGroup()) {//якщо не існує ні одної групи\n app.getGroupHelper().createGroup(new CreateGroupData(\"Tol-AutoCreate\", \"Tol-AutoCreate\", null));\n }\n\n //int before = app.getGroupHelper().getGroupCount(); //count groups before test\n List<CreateGroupData> before = app.getGroupHelper().getGroupList(); // quantity of group before creation\n app.getGroupHelper().selectGroup(before.size() - 1);\n app.getGroupHelper().initGroupModification();\n CreateGroupData group = new CreateGroupData(before.get(before.size()-1).getId(),\"Change1-name\", \"Change2-header\", \"Change3-footer\");\n app.getGroupHelper().fillGroupData(group);\n app.getGroupHelper().submitGroupModification();\n app.getGroupHelper().returnToGroupPage();\n //int after = app.getGroupHelper().getGroupCount();\n List<CreateGroupData> after = app.getGroupHelper().getGroupList(); // quantity of group after creation\n //Assert.assertEquals(after, before);\n Assert.assertEquals(after.size(), before.size());\n\n before.remove(before.size() - 1);\n before.add(group); //add object to the list after creation/modification of a group\n Assert.assertEquals(new HashSet<>(before), new HashSet<>(after)); //compare two lists без учета порядка\n }", "@Test\n public void childrenTest() {\n // TODO: test children\n }", "private void testAclConstraints001() {\n\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints001\");\n\t\t\t\n new org.osgi.service.dmt.Acl(\"Add=test&Exec=test &Get=*\");\n\t\t\t\n DefaultTestBundleControl.failException(\"\",IllegalArgumentException.class);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tDefaultTestBundleControl.pass(\"White space between tokens of a Acl is not allowed.\");\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(IllegalArgumentException.class, e);\n\t\t}\n\t}", "public void testGroupDoesNotImplyNotImpliedUser() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(user, group));\n }", "boolean isVirtualGroup(Object groupID) throws Exception;", "public void checkThreeGroups( ) throws com.sun.star.uno.Exception, java.lang.Exception\n {\n prepareTestStep( false );\n\n insertRadio( 20, 30, \"group 1 (a)\", \"group 1\", \"a\" );\n insertRadio( 20, 38, \"group 1 (b)\", \"group 1\", \"b\" );\n\n insertRadio( 20, 50, \"group 2 (a)\", \"group 2\", \"a\" );\n insertRadio( 20, 58, \"group 2 (b)\", \"group 2\", \"b\" );\n\n insertRadio( 20, 70, \"group 3 (a)\", \"group 3\", \"a\" );\n insertRadio( 20, 78, \"group 3 (b)\", \"group 3\", \"b\" );\n\n // switch to alive mode\n m_document.getCurrentView( ).toggleFormDesignMode( );\n\n // initially, after switching to alive mode, all buttons should be unchecked\n verifySixPack( 0, 0, 0, 0, 0, 0 );\n\n // check one button in every group\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n // and verify that this worked\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n // check all buttons which are currently unchecked\n checkRadio( \"group 1\", \"b\" );\n checkRadio( \"group 2\", \"a\" );\n checkRadio( \"group 3\", \"b\" );\n // this should have reset the previous checks in the respective groups\n verifySixPack( 0, 1, 1, 0, 0, 1 );\n\n // and back to the previous check state\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n cleanupTestStep();\n }", "@Test\n\tpublic void testFindAllGroupsForUser() throws PaaSApplicationException {\n\n\t\tUser user = new User();\n\t\tuser.setName(\"tstsys\");\n\n\t\tList<Group> groups = repo.findAllGroupsForUser(user);\n\n\t\tList<String> names = groups.stream().map(g -> g.getName()).collect(Collectors.toList());\n\n\t\tAssertions.assertEquals(2, groups.size(), \"Find all groups for a given user\");\n\t\tassertThat(names, hasItems(\"tstsys\", \"tstadm\"));\n\t}", "public boolean createGroups(int assignmentToGroup, int otherAssignment,\n String repoPrefix) {\n \ttry{\n\n\t\t}catch (Exception se){\n\t\t\t\tSystem.err.println(\"SQL Exception.\" +\n\t\t\t\t\t\t\"<Message>: \" + se.getMessage());\n\t\t}\n // Replace this return statement with an implementation of this method!\n return false;\n }", "@Test\n public void testRequestPermissionFromTwoGroups() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n\n String[] permissions = new String[] {\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.WRITE_CALENDAR\n };\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true, true});\n }", "@Test(dataProvider = \"repositoryFactories\")\r\n\tpublic void testWithNestedRelation(RepositoryFactory factory)\r\n\t{\r\n\t\tIOrderRepository repo = factory.getRepository(IOrderRepository.class);\r\n\t\t\r\n\t\tList<Order> orders = repo.findOrdersOfCusomerGroup(\"Group3\");\r\n\t\tAssert.assertEquals(orders.size(), 2);\r\n\t\tAssert.assertEquals(CommonUtils.toSet(orders.get(0).getTitle(), orders.get(1).getTitle()), CommonUtils.toSet(\"order1\", \"order2\"));\r\n\r\n\t\torders = repo.findOrdersOfCusomerGroup(\"Group2\");\r\n\t\tAssert.assertEquals(orders.size(), 1);\r\n\t\tAssert.assertEquals(CommonUtils.toSet(orders.get(0).getTitle()), CommonUtils.toSet(\"order3\"));\r\n\r\n\t\torders = repo.findOrdersOfCusomerGroup(\"unknown\");\r\n\t\tAssert.assertEquals(orders.size(), 0);\r\n\t}", "@Test\n public void groupNameTest() {\n // TODO: test groupName\n }", "@Test\n public void testDiscussionAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureDiscussionPermissions(testUser, category, data);\n\n // test access control\n assertTrue(accessControlService.canViewDiscussions(topic), \"Test user should be able to view discussion in topic!\");\n assertTrue(accessControlService.canAddDiscussion(topic), \"Test user should be able to create discussion in topic!\");\n assertFalse(accessControlService.canEditDiscussion(discussion), \"Test user should not be able to edit discussion in topic!\");\n assertFalse(accessControlService.canRemoveDiscussion(discussion), \"Test user should not be able to remove discussion from topic!\");\n }", "Boolean groupingEnabled();", "private void testAclConstraints006() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints006\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tString expectedRootAcl = \"Add=*\";\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(expectedRootAcl));\n\n\t\t\tsession.renameNode(TestExecPluginActivator.INTERIOR_NODE,TestExecPluginActivator.RENAMED_NODE_NAME);\n\t\t\tTestExecPlugin.setAllUriIsExistent(true);\n\t\t\tTestCase.assertNull(\"Asserts that the method rename deletes the ACL of the source.\",session.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t\t\n\t\t\tTestCase.assertEquals(\"Asserts that the method rename moves the ACL from the source to the destiny.\",\n\t\t\t\t\texpectedRootAcl,session.getNodeAcl(TestExecPluginActivator.RENAMED_NODE).toString());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.RENAMED_NODE);\n\t\t\tTestExecPlugin.setAllUriIsExistent(false);\n\t\t}\n\t}", "@Test\n @WithMockUhUser(username = \"iamtst06\")\n public void optOutTest() throws Exception {\n assertTrue(isInCompositeGrouping(GROUPING, tst[0], tst[5]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[5]));\n\n //tst[5] opts out of Grouping\n mapGSRs(API_BASE + GROUPING + \"/optOut\");\n }", "public boolean checkEventsAndGroupsLink();", "public boolean isGroup(String name) {\n return grouptabs.containsKey(name);\n }", "@Test\n public void groupListingPaginationEnableTest() {\n // TODO: test groupListingPaginationEnable\n }", "public boolean inGroup(String groupName);", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_1_getAllDeptRoles() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n d_1.getCompany()+\n \"/departments/\"+\n d_1.getId().toString()+\n \"/roles?recursive=true\")\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.roles\",hasSize(3)));\n }", "@Test\n void validateUserGroupExist(){\n\n Boolean testing_result = true;\n int issue_id = 0;\n String issue_group = \"\";\n\n ArrayList<String> groups = new ArrayList<>();\n groups.add(\"admin\");\n groups.add(\"concordia\");\n groups.add(\"encs\");\n groups.add(\"comp\");\n groups.add(\"soen\");\n\n UserController uc = new UserController();\n\n LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();\n\n for(int key : db_groups.keySet()){\n if(!groups.contains(db_groups.get(key))){\n issue_id = key;\n issue_group = db_groups.get(key);\n testing_result = false;\n }\n }\n\n Assertions.assertTrue(testing_result, \" There is an issue with user(id: \" + issue_id + \") having group as: \" + issue_group);\n\n }", "@Test\n public void testGroups() {\n assertThat(regex(or(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"0|1|2\");\n // Optional groups always need parentheses.\n assertThat(regex(opt(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"(?:0|1|2)?\");\n // Once a group has prefix or suffix, parentheses are needed.\n assertThat(regex(\n seq(\n or(e(\"0\"), e(\"1\")),\n e(\"2\"))))\n .isEqualTo(\"(?:0|1)2\");\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_4_findMultiRolesByOccupant() throws Exception {\n /*d_2---r_2---s_1*/\n /*d_1_1---r_1_1-occupant-s_1*/\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId()+\"/departments/**/roles?occupant=\"+\n s_1.getId())\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.roles\",hasSize(2)));\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "private void testAclConstraints010() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints010\");\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n \n session = tbc.getDmtAdmin().getSession(\".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n Acl aclParent = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.REPLACE });\n session.setNodeAcl(TestExecPluginActivator.ROOT,\n aclParent);\n \n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new Acl(new String[] { DmtConstants.PRINCIPAL },\n new int[] { Acl.EXEC }));\n TestExecPlugin.setAllUriIsExistent(false);\n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n TestCase.assertTrue(\"Asserts that the copied nodes inherit the access rights from the parent of the destination node.\",\n aclParent.equals(session.getEffectiveNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "@Test\n void validateUserGroupCount() {\n LinkedHashMap<Integer, String> groups = new LinkedHashMap<>();\n\n UserManagerFactory uf = new UserManagerFactory();\n\n UserManager obj = uf.getInstance(\"group1\");\n\n groups = obj.getGroups();\n\n Assertions.assertTrue(groups.size() == 5, \"There should only have 5 pre-defined groups\");\n }" ]
[ "0.7192932", "0.64561766", "0.63150567", "0.6251814", "0.624959", "0.624959", "0.62135017", "0.61922014", "0.61398834", "0.59421605", "0.5875424", "0.5824554", "0.57711864", "0.57711864", "0.5761323", "0.5750455", "0.57414305", "0.57000506", "0.56943315", "0.5689206", "0.5676922", "0.5659788", "0.5651163", "0.56309664", "0.5616851", "0.5580527", "0.5577955", "0.55452055", "0.54681605", "0.5452763", "0.5448206", "0.5433371", "0.54311216", "0.54305553", "0.5430405", "0.5425282", "0.5423122", "0.54184216", "0.54159135", "0.5408938", "0.53963953", "0.53838485", "0.53816533", "0.5368366", "0.5355178", "0.53546685", "0.5342056", "0.5333592", "0.5326678", "0.53124195", "0.53034973", "0.5293418", "0.529014", "0.5276534", "0.5274833", "0.52744246", "0.52715194", "0.5262494", "0.526086", "0.525892", "0.52574533", "0.5246409", "0.5240875", "0.5237959", "0.5234839", "0.5233506", "0.52332705", "0.52205634", "0.5214726", "0.52130264", "0.52118677", "0.521163", "0.5209137", "0.51935387", "0.5182061", "0.5165382", "0.51623696", "0.5161455", "0.5157111", "0.51550144", "0.5139234", "0.5125607", "0.5122268", "0.51128495", "0.50872177", "0.50837266", "0.50829184", "0.50708675", "0.5059106", "0.5058258", "0.50526553", "0.5044773", "0.504382", "0.5041491", "0.50383455", "0.5026485", "0.50227886", "0.5018227", "0.5017106", "0.4998038" ]
0.83046734
0
Tests support for nested External groups (i.e. those groups coming from an external source such as an LDAP).
public void testExternalGroupsSupported() { _ruleSet.grant(1, "extgroup1", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); _ruleSet.grant(2, "extgroup2", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); assertEquals(2, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject("usera", "extgroup1"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject("userb", "extgroup2"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNestedAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup1\", Arrays.asList(new String[] {\"userb\"})));\n assertTrue(_ruleSet.addGroup(\"aclgroup2\", Arrays.asList(new String[] {\"usera\", \"aclgroup1\"}))); \n \n _ruleSet.grant(1, \"aclgroup2\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "@Test\n public void groupsTest() {\n // TODO: test groups\n }", "@Test\n public void shouldTestIsBetweenTwoGroupsOnLevel() {\n this.rowGroupHeaderLayer.addGroupingLevel();\n // group spans Address and Facts\n this.rowGroupHeaderLayer.addGroup(1, \"Test\", 4, 7);\n\n // tests on level 0\n // additional level should not change the results\n shouldTestIsBetweenTwoGroups();\n\n // tests on level 1\n // note that if check on deeper level is false, it also needs to be\n // false on the upper level\n\n // move left reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.LEFT));\n\n // move right reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.RIGHT));\n\n // move left reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.LEFT));\n\n // move right reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.RIGHT));\n\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 4, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 11, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, false, MoveDirectionEnum.RIGHT));\n //\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 8, true, MoveDirectionEnum.LEFT));\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 5, true, MoveDirectionEnum.LEFT));\n\n // TODO remove group on level 0\n // no group on level 1 at this positions\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, false, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 2, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 12, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, true, MoveDirectionEnum.RIGHT));\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "public interface Group extends Item {\n\n /**\n * Gets all parents of this group in no particular order.\n * \n * @return array of parent groups, or empty array if there are no parent groups.\n * @throws AccessManagementException\n */\n Group[] getParents() throws AccessManagementException;\n\n /**\n * Gets all members of this group in no particular order.\n * \n * @return array of members, or empty array if there are no members.\n * @throws AccessManagementException\n */\n Item[] getMembers() throws AccessManagementException;\n\n // TODO: Because of scalability issues We should introduce an iterator for getting all members\n\n /**\n * Adds a member to this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item already is a member of this group, or if something\n * else goes wrong.\n */\n void addMember(Item item) throws AccessManagementException;\n\n /**\n * Removes item from this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item is not a member of this group, or if something else\n * goes wrong.\n */\n void removeMember(Item item) throws AccessManagementException;\n\n /**\n * Indicates whether the item is a member of this group.\n * \n * @param item\n * @return true if the item is a member of this group, false otherwise.\n * @throws AccessManagementException\n */\n boolean isMember(Item item) throws AccessManagementException;\n}", "public void testGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(contest);\n\n Group[] groups = contest.getGroups();\n Arrays.sort(groups, new GroupComparator());\n\n \n Group group = groups[0];\n String json = eventFeedJSON.getGroupJSON(contest, group);\n\n// System.out.println(\"debug group json = \"+json);\n \n // debug group json = {\"id\":1024, \"icpc_id\":1024, \"name\":\"North Group\"}\n\n // {\"id\":1, \"icpc_id\":\"3001\", \"name\":\"team1\", \"organization_id\": null}\n\n asertEqualJSON(json, \"id\", \"1024\");\n \n assertJSONStringValue(json, \"id\", \"1024\");\n assertJSONStringValue(json, \"icpc_id\", \"1024\");\n assertJSONStringValue(json, \"name\", \"North Group\");\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "public void testAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\", \"userb\"}))); \n \n _ruleSet.grant(1, \"aclgroup\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DEFER, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userc\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "@LargeTest\n public void testGroupTestEmulated() {\n TestAction ta = new TestAction(TestName.GROUP_TEST_EMULATED);\n runTest(ta, TestName.GROUP_TEST_EMULATED.name());\n }", "boolean groupSupports(Object groupID, int groupConstant) throws Exception;", "@Test\n public void testGetUserGroups() throws Exception {\n\n // p4 groups -o p4jtestsuper\n List<IUserGroup> userGroups = server.getUserGroups(superUser, new GetUserGroupsOptions().setOwnerName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(\"too few user groups in list\", userGroups.size() >= 1, is(true));\n\n // p4 groups -u p4jtestuser\n userGroups = server.getUserGroups(user, new GetUserGroupsOptions().setUserName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(\"too few user groups in list\", userGroups.size() >= 1);\n\n // p4 groups -g p4users\n userGroups = server.getUserGroups(superUserGroupName, new GetUserGroupsOptions().setGroupName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(userGroups.size() == 0, is(true));\n\n }", "@Test\n @WithMockUhUser(username = \"iamtst04\")\n public void optInTest() throws Exception {\n assertFalse(isInCompositeGrouping(GROUPING, tst[0], tst[3]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[3]));\n assertTrue(isInExcludeGroup(GROUPING, tst[0], tst[3]));\n\n //tst[3] opts into Grouping\n mapGSRs(API_BASE + GROUPING + \"/optIn\");\n }", "public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "private void expandGroupToPatients(Group group, Set<String> groupsInPath)\n throws Exception{\n if (group == null) {\n return;\n }\n groupsInPath.add(group.getId());\n for (Member member : group.getMember()) {\n String refValue = member.getEntity().getReference().getValue();\n if (refValue.startsWith(\"Patient\")) {\n if (uniquenessGuard.add(refValue)) {\n patientMembers.add(member);\n }\n } else if (refValue.startsWith(\"Group\")) {\n Group group2 = findGroupByID(refValue.substring(6));\n // Only expand if NOT previously found\n if (!groupsInPath.contains(group2.getId())) {\n expandGroupToPatients(group2, groupsInPath);\n }\n } else if (logger.isLoggable(Level.FINE)){\n logger.fine(\"Skipping group member '\" + refValue + \"'. \"\n + \"Only literal relative references to patients will be used for export.\");\n }\n }\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIncludeSubGroups();", "public void testGroupDoesNotImplySameGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "public void testGroupInitializer() throws Exception {\n }", "@Test\n public void testDumpExternalNode() throws Exception {\n\n /* create and verify a replication group */\n prepareTestEnv();\n\n ReplicatedEnvironment masterEnv = repEnvInfo[0].getEnv();\n /* populate some data and verify */\n populateDataAndVerify(masterEnv);\n\n final MockClientNode mockClientNode =\n new MockClientNode(NodeType.EXTERNAL, masterEnv, logger);\n\n /* handshake with feeder */\n mockClientNode.handshakeWithFeeder();\n\n /* sync up with feeder */\n mockClientNode.syncupWithFeeder(VLSN.FIRST_VLSN);\n\n /* get an instance of rep group admin */\n final ReplicationNetworkConfig repNetConfig =\n RepTestUtils.readRepNetConfig();\n final ReplicationGroupAdmin repGroupAdmin =\n repNetConfig.getChannelType().isEmpty() ?\n new ReplicationGroupAdmin(RepTestUtils.TEST_REP_GROUP_NAME,\n masterEnv.getRepConfig()\n .getHelperSockets())\n :\n new ReplicationGroupAdmin(RepTestUtils.TEST_REP_GROUP_NAME,\n masterEnv.getRepConfig()\n .getHelperSockets(),\n RepTestUtils.readRepNetConfig());\n\n final RepGroupImpl repGroupImpl = repGroupAdmin.getGroup()\n .getRepGroupImpl();\n final Set<RepNodeImpl> result = repGroupImpl.getExternalMembers();\n assertTrue(\"Expect only one external node.\", result.size() == 1);\n final RepNodeImpl node = result.iterator().next();\n assertEquals(\"Node name mismatch\", mockClientNode.nodeName,\n node.getName());\n assertEquals(\"Node type mismatch\", NodeType.EXTERNAL, node.getType());\n\n mockClientNode.shutdown();\n }", "@Test\n void validateUserGroupExist(){\n\n Boolean testing_result = true;\n int issue_id = 0;\n String issue_group = \"\";\n\n ArrayList<String> groups = new ArrayList<>();\n groups.add(\"admin\");\n groups.add(\"concordia\");\n groups.add(\"encs\");\n groups.add(\"comp\");\n groups.add(\"soen\");\n\n UserController uc = new UserController();\n\n LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();\n\n for(int key : db_groups.keySet()){\n if(!groups.contains(db_groups.get(key))){\n issue_id = key;\n issue_group = db_groups.get(key);\n testing_result = false;\n }\n }\n\n Assertions.assertTrue(testing_result, \" There is an issue with user(id: \" + issue_id + \") having group as: \" + issue_group);\n\n }", "@Test\r\n\tpublic void checkAddGroup() {\r\n\r\n\t\tITemplateGroup test = null;\r\n\t\ttry {\r\n\t\t\ttest = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test1\");\r\n\t\t} catch (TemplateException e) {\r\n\t\t\tfail(\"No exception has thrown.\");\r\n\t\t}\r\n\t\tassertNotNull(test);\r\n\r\n\t\tassertEquals(test.getDisplayName(), \"Test1\");\r\n\t\tassertSame(test, general);\r\n\r\n\t\ttry {\r\n\t\t\ttest = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test2\");\r\n\t\t\tfail(\"A excpetion must be thrown.\");\r\n\t\t} catch (TemplateException e) {\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n @Bug(bug=70720)\n public void errorHandling() throws Exception {\n Map<String, Object> domainAttrs = Maps.newHashMap();\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapURL, \"ldap://localhost:389\");\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapAdminBindDn, extDomainAdminBindDn);\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapAdminBindPassword, extDomainAdminBindPassword);\n StringUtil.addToMultiMap(domainAttrs, Provisioning.A_zmailAutoProvMode, AutoProvMode.LAZY.name());\n StringUtil.addToMultiMap(domainAttrs, Provisioning.A_zmailAutoProvMode, AutoProvMode.MANUAL.name());\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(cn=auth*)\");\n // domainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(cn=%n)\");\n domainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchBase, extDomainDn);\n domainAttrs.put(Provisioning.A_zmailAutoProvAccountNameMap, \"cn\");\n domainAttrs.put(Provisioning.A_zmailAutoProvAttrMap, \"userPassword=userPassword\");\n Domain domain = createZmailDomain(genDomainSegmentName(), domainAttrs);\n \n /*\n * create external accounts\n */\n Map<String, Object> extAcct1Attrs = Maps.newHashMap();\n extAcct1Attrs.put(\"cn\", \"authaccount01\");\n createExternalAcctEntry(\"acct1\", \"test123\", extAcct1Attrs);\n \n Map<String, Object> extAcct2Attrs = Maps.newHashMap();\n extAcct2Attrs.put(\"cn\", \"authaccount02\");\n createExternalAcctEntry(\"acct2\", \"test123\", extAcct2Attrs);\n \n Map<String, Object> extAcct3Attrs = Maps.newHashMap();\n extAcct3Attrs.put(\"cn\", \"authaccount03\");\n createExternalAcctEntry(\"acct3\", \"test123\", extAcct3Attrs);\n \n Map<String, Object> extAcct4Attrs = Maps.newHashMap();\n extAcct4Attrs.put(\"cn\", \"authaccount04\");\n createExternalAcctEntry(\"acct4\", \"test123\", extAcct4Attrs);\n \n /*\n * do a manual auto provision\n */\n SoapTransport transport = authZmailAdmin();\n DomainSelector domainSel = new DomainSelector(DomainSelector.DomainBy.name, domain.getName());\n PrincipalSelector principalSel = PrincipalSelector.create(AutoProvPrincipalBy.name, \"authaccount04\");\n AutoProvAccountRequest req = AutoProvAccountRequest.create(domainSel, principalSel);\n \n boolean caughtException = false;\n try {\n invokeJaxb(transport, req);\n } catch (ServiceException e) {\n String msg = e.getMessage();\n \n if (e.getCode().equals(LdapException.MULTIPLE_ENTRIES_MATCHED) &&\n msg.contains(String.format(\"uid=acct1,ou=people,%s\", extDomainDn)) && \n msg.contains(String.format(\"uid=acct2,ou=people,%s\", extDomainDn)) &&\n msg.contains(String.format(\"uid=acct3,ou=people,%s\", extDomainDn)) && \n msg.contains(String.format(\"uid=acct4,ou=people,%s\", extDomainDn))) {\n caughtException = true;\n }\n }\n assertTrue(caughtException);\n \n /*\n * modify domain to have the correct search filter\n */\n domain.setAutoProvLdapSearchFilter(\"(cn=%n)\");\n \n /*\n * do the manual provision, should succeed this time\n */\n AutoProvAccountResponse resp = invokeJaxb(transport, req);\n AccountInfo acctInfo = resp.getAccount();\n assertEquals(TestUtil.getAddress(\"authaccount04\", domain.getName()), acctInfo.getName());\n \n /*\n * do the same manual provision again, should fail with \n */\n caughtException = false;\n try {\n invokeJaxb(transport, req);\n } catch (ServiceException e) {\n String msg = e.getMessage();\n \n if (e.getCode().equals(AccountServiceException.ACCOUNT_EXISTS)) {\n caughtException = true;\n }\n }\n assertTrue(caughtException);\n \n /*\n <CreateDomainRequest xmlns=\"urn:zmailAdmin\">\n <name>autoprov44.1330496906457.com</name>\n <a n=\"zmailAutoProvLdapURL\">ldap://zqa-003.eng.vmware.com:389/</a>\n <a n=\"zmailAutoProvLdapAdminBindDn\">[email protected]</a>\n <a n=\"zmailAutoProvLdapAdminBindPassword\">liquidsys</a>\n <a n=\"zmailAutoProvMode\">LAZY</a>\n <a n=\"zmailAutoProvMode\">MANUAL</a>\n <a n=\"zmailAutoProvLdapSearchFilter\">(cn=auth*)</a>\n <a n=\"zmailAutoProvLdapSearchBase\">OU=CommonUsers,DC=zmailqa,DC=com</a>\n <a n=\"zmailAutoProvAccountNameMap\">cn</a>\n <a n=\"zmailAutoProvAttrMap\">userPassword=userPassword</a>\n </CreateDomainRequest>\n \n zmsoap -z AutoProvAccountRequest domain=bug70720.org.zmail.qa.unittest.prov.soap.testautoprovision.soaptest.unittest @by=name ../principal=authaccount04 @by=name \n \n this zmsoap yields the following soap:\n \n <AutoProvAccountRequest xmlns=\"urn:zmailAdmin\">\n <domain by=\"name\">bug70720.org.zmail.qa.unittest.prov.soap.testautoprovision.soaptest.unittest</domain>\n <principal by=\"name\">authaccount04</principal>\n </AutoProvAccountRequest>\n */\n }", "@Test\n public void groupIdTest() {\n // TODO: test groupId\n }", "public void testTeamAndGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(contest);\n\n Account[] accounts = getAccounts(contest, Type.TEAM);\n \n Account account = accounts[0];\n\n String json = eventFeedJSON.getTeamJSON(contest, account);\n \n// System.out.println(\"debug team json = \"+json);\n\n // debug team json = {\"id\":\"1\", \"icpc_id\":\"3001\", \"name\":\"team1\", \"organization_id\": null, \"group_id\":\"1024\"}\n\n asertEqualJSON(json, \"id\", \"1\");\n asertEqualJSON(json, \"name\", \"team1\");\n ObjectMapper mapper = new ObjectMapper();\n JsonNode readTree = mapper.readTree(json);\n List<JsonNode> findValues = readTree.findValues(\"group_ids\");\n assertEquals(\"matching group ids\", \"1024\", findValues.get(0).elements().next().asText());\n\n assertJSONStringValue(json, \"id\", \"1\");\n assertJSONStringValue(json, \"icpc_id\", \"3001\");\n }", "@Test\n\tpublic void testFindAllGroupsForUser() throws PaaSApplicationException {\n\n\t\tUser user = new User();\n\t\tuser.setName(\"tstsys\");\n\n\t\tList<Group> groups = repo.findAllGroupsForUser(user);\n\n\t\tList<String> names = groups.stream().map(g -> g.getName()).collect(Collectors.toList());\n\n\t\tAssertions.assertEquals(2, groups.size(), \"Find all groups for a given user\");\n\t\tassertThat(names, hasItems(\"tstsys\", \"tstadm\"));\n\t}", "boolean isXMLGroup(Object groupID) throws Exception;", "public void testGroupDoesNotImplySameRequiredGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "boolean isVirtualGroup(Object groupID) throws Exception;", "@Test\n\tvoid findAllForMySubGroup() {\n\t\tinitSpringSecurityContext(\"mmartin\");\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, \"biz agency\", \"fdoe2\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\n\t\t// Check the users\n\t\tAssertions.assertEquals(\"fdoe2\", tableItem.getData().get(0).getId());\n\t\tAssertions.assertFalse(tableItem.getData().get(0).isCanWrite());\n\t\tAssertions.assertTrue(tableItem.getData().get(0).isCanWriteGroups());\n\n\t\t// Check the groups\n\t\t// \"Biz Agency\" is visible since \"mmartin\" is in the parent group \"\n\t\tAssertions.assertEquals(2, tableItem.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency\", tableItem.getData().get(0).getGroups().get(0).getName());\n\t\tAssertions.assertTrue(tableItem.getData().get(0).getGroups().get(0).isCanWrite());\n\t\tAssertions.assertEquals(\"DIG RHA\", tableItem.getData().get(0).getGroups().get(1).getName());\n\t\tAssertions.assertFalse(tableItem.getData().get(0).getGroups().get(1).isCanWrite());\n\t}", "Collection getGroupsForPartialName(String partialGroupName) throws Exception;", "public void testGetGroupsForNullPointerException()\r\n throws Exception {\r\n try {\r\n searcher.getGroups(null);\r\n fail(\"the NullPointerException should be thrown!\");\r\n } catch (NullPointerException e) {\r\n // Good\r\n }\r\n }", "public boolean inGroup(String groupName);", "@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}", "@Test\n @WithMockUhUser(username = \"iamtst06\")\n public void optOutTest() throws Exception {\n assertTrue(isInCompositeGrouping(GROUPING, tst[0], tst[5]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[5]));\n\n //tst[5] opts out of Grouping\n mapGSRs(API_BASE + GROUPING + \"/optOut\");\n }", "@Test\n public void groupTest() {\n // TODO: test group\n }", "Group[] getParents() throws AccessManagementException;", "@Test\n public void testGroup() throws Exception {\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addGroupBegin();\n programBuilder.addRuleInstance( CalcMergeRule.INSTANCE );\n programBuilder.addRuleInstance( ProjectToCalcRule.INSTANCE );\n programBuilder.addRuleInstance( FilterToCalcRule.INSTANCE );\n programBuilder.addGroupEnd();\n\n checkPlanning( programBuilder.build(), \"select upper(name) from dept where deptno=20\" );\n }", "protected void buildGroups( Group rootElement, ListIterator<IActualElement> elements ) {\n//\t\t\n\t\twhile ( elements.hasNext() ) {\n\t\t\tIActualElement element = elements.next();\n\n\t\t\t// untested\n\t\t\tif ( element.getLevel() == 88 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( element.getLevel() <= rootElement.getLevel() ) {\n\t\t\t\telements.previous();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( element.isOccursed() ) {\n\t\t\t\t//element.setOccursDepth( rootElement.getOccursDepth() + 1 );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//element.setOccursDepth( rootElement.getOccursDepth() );\n\t\t\t}\n\n\t\t\tif ( element instanceof Group ) {\n\t\t\t\tbuildGroups( (Group)element, elements);\n\t\t\t}\n\n\t\t\t//\t\t\t\t\n\t\t\trootElement.addChildElement( element );\n\n\t\t\tif ( element.isOccursed() )\n\t\t\t{\n\t\t\t\tfor ( int i = 1; i < element.getOccursCount(); ++i )\n\t\t\t\t{\n\t\t\t\t\tIActualElement clonedElement = element.cloneElement();\n//\t\t\t\t\t\n\t\t\t\t\trootElement.addChildElement( clonedElement );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public abstract boolean isInGroup(String hostname);", "public void setIncludeSubGroups(java.lang.Boolean value);", "@Test(priority=5)\r\n\tpublic void displayGroupByListBox() {\r\n\t\t\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayGroupByListboxOptions();\r\n\t\tassertEquals(actual, expected);\r\n\t}", "public void testDisplaysUsersInGroup(){\n \t\tAssert.assertTrue(solo.searchText(\"GroupTestUser1\"));\n \t\tAssert.assertTrue(solo.searchText(\"GroupTestUser2\"));\n \t\tsolo.finishOpenedActivities();\n \t}", "public final void rule__CheckContainsLink__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:2648:1: ( rule__CheckContainsLink__Group__2__Impl rule__CheckContainsLink__Group__3 )\n // InternalBrowser.g:2649:2: rule__CheckContainsLink__Group__2__Impl rule__CheckContainsLink__Group__3\n {\n pushFollow(FOLLOW_17);\n rule__CheckContainsLink__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__CheckContainsLink__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n void getAllClientIdWithAccess_throwingGroupCheck_stillWorks() {\n when(groupsConnection.isMemberOfGroup(any(), any())).thenThrow(new RuntimeException(\"blah\"));\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n USER, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n verify(groupsConnection).isMemberOfGroup(\"[email protected]\", SUPPORT_GROUP.get());\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(CLIENT_ID_WITH_CONTACT, OWNER);\n verify(lazyGroupsConnection).get();\n }", "static void findGroups() {\n G2 = 0;\n while (group2()) {\n }\n\n // find group of size 3\n G3 = 0;\n while (group3()) {\n }\n }", "UUID getNestedGroupId();", "private boolean isNested(String name) {\n String c = firstChar(name);\n if (c.equals(\"^\")) {\n c = \"\\\\^\";\n }\n Pattern p = Pattern.compile(\"^[\" + c + \"][\" + c + \"]+$\");\n Matcher m = p.matcher(name);\n return m.matches();\n }", "public boolean checkEventsAndGroupsLink();", "Object getGroupID(String groupName) throws Exception;", "@Test\n public void testLDAPManagerLink() throws Exception {\n }", "@Test\n public void testGroupComparator() throws Exception {\n assertEquals(-1, runGroupComparator(\"LembosGroupComparatorTest-testGroupComparator\", 1, 3));\n }", "@Test\n\tpublic void getEmployeeGroupsTest() {\n\t\tResponseEntity<PagedResources<EmployeeGroupResource>> result = this.search(\"/employeeGroup\");\n\t\t// The reponse can't be null\n\t\tassertThat(result).isNotNull();\n\t\t// The status code must be OK\n\t\tassertThat(result.getStatusCode()).isEqualTo(HttpStatus.OK);\n\t\t// Response body must not be null\n\t\tPagedResources<EmployeeGroupResource> page = result.getBody();\n\t\tassertThat(page).isNotNull();\n\t\tassertThat(page.getMetadata()).isNotNull();\n\t\tassertThat(page.getMetadata().getTotalElements()).isEqualTo(0);\n\t\tassertThat(page.getMetadata().getTotalPages()).isEqualTo(0);\n\t\t// By default page size is 20\n\t\tassertThat(page.getMetadata().getSize()).isEqualTo(20);\n\n\t\t// Insert 21 employeeGroup\n\t\tfor (int i = 1; i < 22; i++) {\n\t\t\tcreateMocKEmployeeGroup(String.valueOf(i), new Short((short)i));\n\t\t}\n\t\tresult = this.search(\"/employeeGroup\");\n\t\t// Response body must not be null\n\t\tpage = result.getBody();\n\t\tassertThat(page).isNotNull();\n\t\tassertThat(page.getMetadata().getTotalElements()).isEqualTo(21);\n\t\tassertThat(page.getMetadata().getTotalPages()).isEqualTo(2);\n\n\t\t// Change the number of element per page and assert the page number\n\t\tresult = this.search(\"/employeeGroup?size=3\");\n\t\t// Response body must not be null\n\t\tpage = result.getBody();\n\t\tassertThat(page).isNotNull();\n\t\tassertThat(page.getMetadata().getTotalElements()).isEqualTo(21);\n\t\tassertThat(page.getMetadata().getTotalPages()).isEqualTo(7);\n\t}", "public boolean inGroup(String groupName) {\r\n return true;\r\n }", "private static boolean rscInGroup(IResourceGroup group,\n AbstractVizResource<?, ?> resource) {\n\n for (ResourcePair pair : group.getResourceList()) {\n if (pair.getResource() == resource) {\n return true;\n }\n AbstractResourceData resourceData = pair.getResourceData();\n if (resourceData instanceof IResourceGroup) {\n if (rscInGroup((IResourceGroup) resourceData, resource)) {\n return true;\n }\n }\n }\n return false;\n }", "public Collection getGroups() throws Exception\r\n {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }", "public void verifyGroupPage()\n\t{\n\t\t_waitForJStoLoad();\n\t\tString groupPageText= groups.getText();\n\t\tAssert.assertEquals(FileNames.Groups.toString(), groupPageText);\n\t}", "private boolean checkMembers(ArrayList <String> group1, ArrayList <String> group2) {\n\t\tCollections.sort(group1);\n\t\tCollections.sort(group2);\n\t\treturn(group1.equals(group2));\n\t}", "public final void rule__AstExternalFunction__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9055:1: ( rule__AstExternalFunction__Group__2__Impl rule__AstExternalFunction__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9056:2: rule__AstExternalFunction__Group__2__Impl rule__AstExternalFunction__Group__3\n {\n pushFollow(FOLLOW_rule__AstExternalFunction__Group__2__Impl_in_rule__AstExternalFunction__Group__218580);\n rule__AstExternalFunction__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstExternalFunction__Group__3_in_rule__AstExternalFunction__Group__218583);\n rule__AstExternalFunction__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static List<RequireGroup> retrieveAllRequireGroups(final Subject subject) {\r\n\r\n // # grouper.requireGroup.name.0 = ref:require\r\n // # grouper.requireGroup.allowedToUse.0 = ref:requireCanUse\r\n\r\n final GrouperConfig grouperConfig = GrouperConfig.retrieveConfig();\r\n \r\n final List<RequireGroup> results = new ArrayList<RequireGroup>();\r\n\r\n GrouperSession.internal_callbackRootGrouperSession(new GrouperSessionHandler() {\r\n \r\n public Object callback(GrouperSession grouperSession) throws GrouperSessionException {\r\n for (int i=0;i<100;i++) {\r\n\r\n String requireGroupNameKey = \"grouper.requireGroup.name.\" + i;\r\n\r\n if (grouperConfig.containsKey(requireGroupNameKey)) {\r\n\r\n RequireGroup requireGroup = new RequireGroup();\r\n requireGroup.setName(grouperConfig.propertyValueString(requireGroupNameKey));\r\n\r\n if (StringUtils.isBlank(requireGroup.getName())) {\r\n continue;\r\n }\r\n \r\n String requireAllowedGroupKey = \"grouper.requireGroup.allowedToUse.\" + i;\r\n \r\n if (grouperConfig.containsKey(requireAllowedGroupKey)) {\r\n final String requireGroupName = grouperConfig.propertyValueString(requireGroupNameKey);\r\n \r\n // if controlling who can use\r\n if (!StringUtils.isBlank(requireGroupName)) {\r\n if (subject != null && !PrivilegeHelper.isWheelOrRoot(subject)) {\r\n Group requireGroupAllowedToUse = GroupFinder.findByName(grouperSession, requireGroupName, true);\r\n \r\n //if the current subject is not in the group, then not allowed\r\n if (!requireGroupAllowedToUse.hasMember(subject)) {\r\n continue;\r\n }\r\n }\r\n requireGroup.setAllowedToUseGroup(requireGroupName);\r\n }\r\n }\r\n Group requireGroupGroup = GroupFinder.findByName(grouperSession, requireGroup.getName(), true);\r\n requireGroup.setRequireGroup(requireGroupGroup);\r\n results.add(requireGroup);\r\n }\r\n }\r\n return null;\r\n }\r\n });\r\n \r\n if (GrouperUtil.length(results) > 1) {\r\n Collections.sort(results, new Comparator<RequireGroup>() {\r\n\r\n public int compare(RequireGroup o1, RequireGroup o2) {\r\n if (o1 == o2) {\r\n return 0;\r\n }\r\n if (o1 == null) {\r\n return 1;\r\n }\r\n if (o2 == null) {\r\n return -1;\r\n }\r\n return o1.getName().compareTo(o2.getName());\r\n \r\n }\r\n });\r\n }\r\n \r\n return results;\r\n }", "@Test\n\tpublic void testNameExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col2);\n\t\tcol2.setNome(\"Sergio\");\n\t\tboolean result = grupo.nameExistsInGroup(\"Sergio\");\n\n\t\tassertTrue(result);\n\t}", "private void checkCollisionGroupInternal() {\n\t\tcheckInternalCollisions();\r\n\t\t\r\n\t\t// for every composite in this Group..\r\n\t\tint clen = _composites.size();\r\n\t\tfor (int j = 0; j < clen; j++) {\r\n\t\t\t\r\n\t\t\tComposite ca = _composites.get(j);\r\n\t\t\t\r\n\t\t\t// .. vs non composite particles and constraints in this group\r\n\t\t\tca.checkCollisionsVsCollection(this);\r\n\t\t\t\r\n\t\t\t// ...vs every other composite in this Group\r\n\t\t\tfor (int i = j + 1; i < clen; i++) {\r\n\t\t\t\tComposite cb = _composites.get(i);\r\n\t\t\t\tca.checkCollisionsVsCollection(cb);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n void validateUserGroupCount() {\n LinkedHashMap<Integer, String> groups = new LinkedHashMap<>();\n\n UserManagerFactory uf = new UserManagerFactory();\n\n UserManager obj = uf.getInstance(\"group1\");\n\n groups = obj.getGroups();\n\n Assertions.assertTrue(groups.size() == 5, \"There should only have 5 pre-defined groups\");\n }", "@Override\n public boolean existsGroupWithName(String groupName) {\n // \"Feature 'existsGroupWithName in OAuth 2 identity server' is not implemented\"\n return false;\n }", "public boolean isGroup(String name) {\n return grouptabs.containsKey(name);\n }", "boolean isNested();", "@Test\n public void testAcceptingExternalClasses() {\n try (ScanResult scanResult = new ClassGraph().acceptPackages(\n InternalExternalTest.class.getPackage().getName(), ExternalAnnotation.class.getName()).scan()) {\n assertThat(scanResult.getAllStandardClasses().getNames()).containsOnly(\n InternalExternalTest.class.getName(), InternalExtendsExternal.class.getName(),\n InternalImplementsExternal.class.getName(), InternalAnnotatedByExternal.class.getName());\n }\n }", "Collection getAccessPatternsInGroup(Object groupID) throws Exception;", "public boolean isGroupPossible()\n\t\t{\n\t\t\treturn this.m_allowedAddGroupRefs != null && ! this.m_allowedAddGroupRefs.isEmpty();\n\n\t\t}", "Boolean groupingEnabled();", "public boolean inGroup(Person p){\n\t return false;\n }", "private boolean findEmptyGroup(){\r\n boolean isEmpty = true;\r\n TreeNode root = (TreeNode)sponsorHierarchyTree.getModel().getRoot();\r\n TreePath result = findEmptyGroup(sponsorHierarchyTree, new TreePath(root));\r\n if( result != null && result.getLastPathComponent() instanceof Integer ){\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"sponsorHierarchyList_exceptionCode.1204\"));\r\n isEmpty = false;\r\n }\r\n return isEmpty;\r\n }", "public final void rule__AstExternalVariable__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6660:1: ( rule__AstExternalVariable__Group__2__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6661:2: rule__AstExternalVariable__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__AstExternalVariable__Group__2__Impl_in_rule__AstExternalVariable__Group__213857);\n rule__AstExternalVariable__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n\tvoid updateUserAddGroup() {\n\t\t// Pre condition, check the user \"wuser\", has not yet the group \"DIG\n\t\t// RHA\" we want to be added by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Pre condition, check the user \"wuser\", has no group visible by\n\t\t// \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult.getData().get(0).getGroups().size());\n\n\t\t// Pre condition, check the user \"wuser\", \"Biz Agency Manager\" is not\n\t\t// visible by \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager.getRecordsTotal());\n\t\tAssertions.assertEquals(0, usersFromOtherGroupManager.getData().get(0).getGroups().size());\n\n\t\t// Add a new valid group \"DIG RHA\" to \"wuser\" by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user = new UserOrgEditionVo();\n\t\tuser.setId(\"wuser\");\n\t\tuser.setFirstName(\"William\");\n\t\tuser.setLastName(\"User\");\n\t\tuser.setCompany(\"ing\");\n\t\tuser.setMail(\"[email protected]\");\n\t\tfinal List<String> groups = new ArrayList<>();\n\t\tgroups.add(\"DIG RHA\");\n\t\tgroups.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups);\n\t\tresource.update(user);\n\n\t\t// Check the group \"DIG RHA\" is added and\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\t\tAssertions.assertEquals(2, tableItem.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\", tableItem.getData().get(0).getGroups().get(0).getName());\n\t\tAssertions.assertEquals(\"DIG RHA\", tableItem.getData().get(0).getGroups().get(1).getName());\n\n\t\t// Check the user \"wuser\", still has no group visible by \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult2 = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult2.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult2.getData().get(0).getGroups().size());\n\n\t\t// Check the user \"wuser\", still has the group \"DIG RHA\" visible by\n\t\t// \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager2.getRecordsTotal());\n\t\tAssertions.assertEquals(\"DIG RHA\", usersFromOtherGroupManager2.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Restore the old state\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user2 = new UserOrgEditionVo();\n\t\tuser2.setId(\"wuser\");\n\t\tuser2.setFirstName(\"William\");\n\t\tuser2.setLastName(\"User\");\n\t\tuser2.setCompany(\"ing\");\n\t\tuser2.setMail(\"[email protected]\");\n\t\tfinal List<String> groups2 = new ArrayList<>();\n\t\tgroups2.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups2);\n\t\tresource.update(user);\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater2.getData().get(0).getGroups().get(0).getName());\n\t}", "public void testGroupDoesNotImplyNotImpliedUser() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(user, group));\n }", "public com.hps.july.persistence.Group getGroups() throws Exception {\n\tGroupAccessBean bean = constructGroups();\n\tif (bean != null)\n\t return (Group)bean.getEJBRef();\n\telse\n\t return null;\n\n}", "@Test\n\tpublic void testGroupName() {\n\t\tString groupStr1 = \"a\";\n\t\tString groupStr2 = \"a/b/c\";\n\n\t\tint oldsize1 = VintageConfigWebUtils.lookup(groupStr1).size();\n\t\tint oldsize2 = VintageConfigWebUtils.lookup(groupStr2).size();\n\n\t\tVintageConfigWebUtils.register(groupStr1, keyString, valueString);\n\t\tVintageConfigWebUtils.register(groupStr2, keyString, valueString);\n\n\t\tint newsize1 = VintageConfigWebUtils.lookup(groupStr1).size();\n\t\tint newsize2 = VintageConfigWebUtils.lookup(groupStr2).size();\n\n\t\tassertEquals(oldsize1 + 1, newsize1);\n\t\tassertEquals(oldsize2 + 1, newsize2);\n\n\t\tList<String> nodesList = VintageConfigWebUtils.lookup(\"a/b\");\n\n\t\tVintageConfigWebUtils.unregister(groupStr1, keyString);\n\t\tVintageConfigWebUtils.unregister(groupStr2, keyString);\n\n\t\t// check the key number of group \"a/b\"\n\t\tSystem.out.print(nodesList.size());\n\t\tassertEquals(0, nodesList.size());\n\t}", "private static List<Element> buildGroups(SegmentLibrary segmentLibrary,\n\t\t\tMap<Integer, gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group> map) {\n\t\tList<Element> topLevelGroup = new ArrayList<Element>();\n\t\tMap<Integer, Element> gm = new HashMap<Integer, Element>();\n\t\t// create groups map\n\t\tlog.info(\"group count=\" + map.values().size());\n\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g : map.values()) {\n//\t\t\tlog.info(\"group name=\" + g.getName());\n\t\t\tElement e = new Element();\n\t\t\te.setName(g.getName());\n\t\t\te.setType(g.isChoice() ? ElementType.CHOICE : ElementType.GROUP);\n\t\t\tgm.put(g.getId(), e);\n\t\t\tif (g.getName().contains(\".ROOT\"))\n\t\t\t\ttopLevelGroup.add(e);\n\t\t\tif (e.getName() == null) {\n\t\t\t\tlog.info(\"here=\" + e.toString());\n\t\t\t}\n\t\t}\n\t\t// update groups children\n\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g : map.values()) {\n\t\t\tList<Element> children = new ArrayList<Element>();\n\t\t\tif (g.getChildren() != null) {\n\t\t\t\t// Some messages in old versions don't have children\n\t\t\t\t// log.info(\"o loop=\" + \" gid=\" + g.getId() + \" g.name=\" +\n\t\t\t\t// g.getName() + \" size=\" + g.getChildren().size());\n\t\t\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Element ee : g.getChildren()) {\n//\t\t\t\t\tlog.info(\"ee group id=\" + ee.getGroupId());\n\t\t\t\t\t// FIXME: Temporary hack to fix the position\n\t\t\t\t\tElement tmp = updateChildren(ee, map, gm, segmentLibrary);\n\t\t\t\t\tchildren.add(tmp);\n\t\t\t\t\ttmp.setPosition(children.size());\n\t\t\t\t}\n\t\t\t}\n\t\t\tgm.get(g.getId()).setChildren(children);\n\t\t}\n\t\treturn topLevelGroup;\n\t}", "GroupsType createGroupsType();", "@Test(priority=45)\t\n\tpublic void campaign_user_with_filter_for_nonexisting_group_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_nonexisting_group_id\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for non existing group_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_nonexisting_group_id\");\n\t\tString camp_group_id = test_data.get(4);\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"group_id%3d\"+camp_group_id));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for group_id\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t String result_data = json.get(\"result\").toString();\n\t\t Assert.assertEquals(result_data, \"error\", \"API is returning success when non existing group_id is entered for filter\");\n\t\t test.log(LogStatus.PASS, \"API is returning error when non existing group_id is entered for filter\");\n\t\t Assert.assertEquals(json.get(\"err\").toString(), \"no records found\", \"Proper validation is not displayed when non existing group_id is passed.\");\n\t\t test.log(LogStatus.PASS, \"Proper validation is displayed when non existing group_id is passed.\");\n\t\t}\n\t}", "public final void rule__CheckContainsLink__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:2621:1: ( rule__CheckContainsLink__Group__1__Impl rule__CheckContainsLink__Group__2 )\n // InternalBrowser.g:2622:2: rule__CheckContainsLink__Group__1__Impl rule__CheckContainsLink__Group__2\n {\n pushFollow(FOLLOW_10);\n rule__CheckContainsLink__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__CheckContainsLink__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public abstract Collection getGroups();", "public void testNested() {\n try {\n PropertyConfigurator.configure(FILTER1_PROPERTIES);\n this.validateNested();\n } finally {\n LogManager.resetConfiguration();\n }\n }", "@Test\n public void testExternalNodeType() throws Exception {\n\n /* create and verify a replication group */\n prepareTestEnv();\n\n ReplicatedEnvironment masterEnv = repEnvInfo[0].getEnv();\n /* populate some data and verify */\n populateDataAndVerify(masterEnv);\n\n final MockClientNode mockClientNode =\n new MockClientNode(NodeType.EXTERNAL, masterEnv, logger);\n\n /* handshake with feeder */\n mockClientNode.handshakeWithFeeder();\n\n /* sync up with feeder */\n final VLSN startVLSN = mockClientNode.syncupWithFeeder(VLSN.FIRST_VLSN);\n\n /* verify */\n assertTrue(\"Mismatch start vlsn \", startVLSN.equals(VLSN.FIRST_VLSN));\n\n /* receive 10K keys */\n mockClientNode.consumeMsgLoop(numKeys);\n assertTrue(\"Expect receive \" + numKeys + \" keys while actually \" +\n \"receiving \" + mockClientNode.getReceivedMsgs().size() +\n \" keys.\",\n mockClientNode.getReceivedMsgs().size() == numKeys);\n\n mockClientNode.shutdown();\n }", "@Override\n public boolean isGroup() {\n return false;\n }", "protected void verifyNestedElem(IJavaElem javaElem) {\n for(Class c: cls.getClasses()){\n \n String name1 = c.getName();\n String name2 = javaElem.getFullName();\n \n System.out.println(\"[nested] \\\"\" + name1 +\"\\\"\");\n System.out.println(\" \\\"\" + name2 + \"\\\"\");\n \n if(name1.equals(name2)){\n return;\n }\n }\n \n appendMessage(\"Nested class not found: \" + javaElem.getFullName());\n \n }", "public final void rule__CheckContainsLink__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:2633:1: ( ( '.checkContainsLink(By.' ) )\n // InternalBrowser.g:2634:1: ( '.checkContainsLink(By.' )\n {\n // InternalBrowser.g:2634:1: ( '.checkContainsLink(By.' )\n // InternalBrowser.g:2635:2: '.checkContainsLink(By.'\n {\n before(grammarAccess.getCheckContainsLinkAccess().getCheckContainsLinkByKeyword_1()); \n match(input,36,FOLLOW_2); \n after(grammarAccess.getCheckContainsLinkAccess().getCheckContainsLinkByKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void groupNameTest() {\n // TODO: test groupName\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedLeft() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(11);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(0, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 12, 8, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 13, 0, true));\n }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedRight() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(0);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(11, true);\n\n // reorder outside group valid\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 4, true));\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 6, 7, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 7, 4, true));\n // in same group where adjacent group is also unbreakable\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 8, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 10, 8, true));\n // to any other group\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 5, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 1, 9, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 2, 13, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 8, true));\n }", "@Test\n public void testSearch() {\n List<String> fields = new ArrayList<>();\n fields.add(\"memberOf\");\n fields.add(\"cn\");\n \n BridgeRequest request = new BridgeRequest();\n request.setStructure(\"User\");\n request.setFields(fields);\n request.setQuery(\"(sAMAccountName=mary.olowu)\");\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 Object str = JSONValue.parse((String)list.getRecords().get(0).getValue(\"memberOf\"));\n\n assertTrue(str instanceof JSONArray);\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "public final void rule__AstExternalFunction__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9026:1: ( rule__AstExternalFunction__Group__1__Impl rule__AstExternalFunction__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9027:2: rule__AstExternalFunction__Group__1__Impl rule__AstExternalFunction__Group__2\n {\n pushFollow(FOLLOW_rule__AstExternalFunction__Group__1__Impl_in_rule__AstExternalFunction__Group__118519);\n rule__AstExternalFunction__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstExternalFunction__Group__2_in_rule__AstExternalFunction__Group__118522);\n rule__AstExternalFunction__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test(dataProvider = \"repositoryFactories\")\r\n\tpublic void testWithNestedRelation(RepositoryFactory factory)\r\n\t{\r\n\t\tIOrderRepository repo = factory.getRepository(IOrderRepository.class);\r\n\t\t\r\n\t\tList<Order> orders = repo.findOrdersOfCusomerGroup(\"Group3\");\r\n\t\tAssert.assertEquals(orders.size(), 2);\r\n\t\tAssert.assertEquals(CommonUtils.toSet(orders.get(0).getTitle(), orders.get(1).getTitle()), CommonUtils.toSet(\"order1\", \"order2\"));\r\n\r\n\t\torders = repo.findOrdersOfCusomerGroup(\"Group2\");\r\n\t\tAssert.assertEquals(orders.size(), 1);\r\n\t\tAssert.assertEquals(CommonUtils.toSet(orders.get(0).getTitle()), CommonUtils.toSet(\"order3\"));\r\n\r\n\t\torders = repo.findOrdersOfCusomerGroup(\"unknown\");\r\n\t\tAssert.assertEquals(orders.size(), 0);\r\n\t}", "public abstract ModuleContactGroups contactGroups();", "GroupRefType createGroupRefType();", "public final void rule__AstExternalFunction__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9067:1: ( ( 'external' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9068:1: ( 'external' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9068:1: ( 'external' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9069:1: 'external'\n {\n before(grammarAccess.getAstExternalFunctionAccess().getExternalKeyword_2()); \n match(input,68,FOLLOW_68_in_rule__AstExternalFunction__Group__2__Impl18611); \n after(grammarAccess.getAstExternalFunctionAccess().getExternalKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void testEnableExternalClasses() {\n try (ScanResult scanResult = new ClassGraph()\n .acceptPackages(InternalExternalTest.class.getPackage().getName(),\n ExternalAnnotation.class.getName())\n .enableExternalClasses().scan()) {\n assertThat(scanResult.getAllStandardClasses().getNames()).containsOnly(\n ExternalSuperclass.class.getName(), InternalExternalTest.class.getName(),\n InternalExtendsExternal.class.getName(), InternalImplementsExternal.class.getName(),\n InternalAnnotatedByExternal.class.getName());\n }\n }", "private void readGroups(List<Element> groupElements, Model model)\n throws ObjectExistsException {\n // Add the groups.\n for (int i = 0; i < groupElements.size(); i++) {\n Element curGroupElement = groupElements.get(i);\n Integer groupID;\n try {\n groupID = Integer.valueOf(curGroupElement.getAttributeValue(\"id\"));\n }\n catch (NumberFormatException e) {\n groupID = null;\n }\n Group curGroup = model.createGroup(groupID);\n TCSObjectReference<Group> groupRef = curGroup.getReference();\n String groupName = curGroupElement.getAttributeValue(\"name\");\n if (groupName == null || groupName.isEmpty()) {\n groupName = \"GroupName\" + i + \"Unknown\";\n }\n model.getObjectPool().renameObject(curGroup.getReference(), groupName);\n // Add members.\n List<Element> memberElements = curGroupElement.getChildren(\"member\");\n for (int j = 0; j < memberElements.size(); j++) {\n Element curMemberElement = memberElements.get(j);\n String memberName = curMemberElement.getAttributeValue(\"name\");\n if (memberName == null || memberName.isEmpty()) {\n memberName = \"MemberName\" + j + \"Unknown\";\n }\n TCSObject<?> curMember = model.getObjectPool().getObject(memberName);\n curGroup.addMember(curMember.getReference());\n }\n List<Element> properties = curGroupElement.getChildren(\"property\");\n for (int k = 0; k < properties.size(); k++) {\n Element curPropElement = properties.get(k);\n String curKey = curPropElement.getAttributeValue(\"name\");\n if (curKey == null || curKey.isEmpty()) {\n curKey = \"Key\" + k + \"Unknown\";\n }\n String curValue = curPropElement.getAttributeValue(\"value\");\n if (curValue == null || curValue.isEmpty()) {\n curValue = \"Value\" + k + \"Unknown\";\n }\n model.getObjectPool().setObjectProperty(groupRef, curKey, curValue);\n }\n }\n }", "@Test public void shouldReturnAllToolsFromAGroupWhenSearchedByItsGroup(){\n given.imInTheMainPage();\n when.searchByToolsGroup(GROUPS.RADIOS.getGroupName());\n then.mySearchWillReturnTheTools(TOOLS.PLANETA_ATLANTIDA, TOOLS.POD_CASTING, TOOLS.RADIOS_ADMIN, TOOLS.RADIOS_PLAYLIST, TOOLS.RADIOS_SITE, TOOLS.RADIOS_E_TV);\n }" ]
[ "0.673164", "0.6119689", "0.60152185", "0.59713566", "0.59713566", "0.5955474", "0.5670417", "0.56520087", "0.56520087", "0.5613851", "0.56077087", "0.5603212", "0.557064", "0.55586326", "0.5523956", "0.5514505", "0.54939044", "0.54897344", "0.54839975", "0.54795367", "0.5461906", "0.54496074", "0.54495704", "0.5443968", "0.5432833", "0.54170567", "0.54052323", "0.53897333", "0.5339251", "0.5331696", "0.5287368", "0.52838963", "0.5280553", "0.526547", "0.5259289", "0.5246089", "0.5245668", "0.5237063", "0.5222939", "0.5208683", "0.5182736", "0.5178713", "0.5174127", "0.51543725", "0.51513785", "0.51500386", "0.5147827", "0.5146406", "0.5143919", "0.5134351", "0.51330703", "0.5128938", "0.5115905", "0.51149493", "0.5113481", "0.51131904", "0.51020616", "0.5098726", "0.50934273", "0.50819767", "0.5075538", "0.50689983", "0.5066726", "0.5065825", "0.50620145", "0.50577116", "0.50563467", "0.5044248", "0.50357103", "0.50352526", "0.50230193", "0.5016888", "0.50160986", "0.501127", "0.500815", "0.5005072", "0.5005007", "0.5000806", "0.49826527", "0.49789745", "0.4978448", "0.49752593", "0.49747488", "0.49697465", "0.4966844", "0.49660304", "0.4960368", "0.4956327", "0.4948623", "0.494695", "0.49395472", "0.49342543", "0.49289405", "0.4928217", "0.49269572", "0.49227756", "0.49146202", "0.49100193", "0.49089614", "0.4908442" ]
0.7284632
0
Rule order in the ACL determines the outcome of the check. This test ensures that a user who is granted explicit permission on an object, is granted that access even although late a group to which the user belongs is later denied the permission.
public void testAllowDeterminedByRuleOrder() { assertTrue(_ruleSet.addGroup("aclgroup", Arrays.asList(new String[] {"usera"}))); _ruleSet.grant(1, "usera", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); _ruleSet.grant(2, "aclgroup", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); assertEquals(2, _ruleSet.getRuleCount()); assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject("usera"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDenyDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n \n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testNestedAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup1\", Arrays.asList(new String[] {\"userb\"})));\n assertTrue(_ruleSet.addGroup(\"aclgroup2\", Arrays.asList(new String[] {\"usera\", \"aclgroup1\"}))); \n \n _ruleSet.grant(1, \"aclgroup2\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\", \"userb\"}))); \n \n _ruleSet.grant(1, \"aclgroup\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DEFER, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userc\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testExternalGroupsSupported()\n {\n _ruleSet.grant(1, \"extgroup1\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"extgroup2\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\", \"extgroup1\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\", \"extgroup2\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "private void testAclConstraints009() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints009\");\n session = tbc.getDmtAdmin().getSession(TestExecPluginActivator.ROOT,\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n\n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n session.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n DefaultTestBundleControl.pass(\"ACLs is only verified by the Dmt Admin service when the session has an associated principal.\");\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }", "@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n }", "public void testGroupDoesNotImplySameRequiredGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "public void testUserImpliesImpliedGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(m_anyone);\n group.addMember(user);\n\n assertTrue(m_roleChecker.isImpliedBy(group, user));\n }", "private void testAclConstraints007() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints007\");\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL_2, Acl.GET );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\t\t\ttbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n\t\t\tsession = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.ROOT,DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\t\n\t\t\tDefaultTestBundleControl.pass(\"If a principal has Replace access to a node, the principal is permitted to change the ACL of all its child nodes\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n\t\t\ttbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "private void testAclConstraints003() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints003\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(\".\",null);\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that the root node of DMT must always have an ACL associated with it\",\n\t\t\t DmtException.COMMAND_NOT_ALLOWED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(DmtException.class, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "private void testAclConstraints010() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints010\");\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n \n session = tbc.getDmtAdmin().getSession(\".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n Acl aclParent = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.REPLACE });\n session.setNodeAcl(TestExecPluginActivator.ROOT,\n aclParent);\n \n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new Acl(new String[] { DmtConstants.PRINCIPAL },\n new int[] { Acl.EXEC }));\n TestExecPlugin.setAllUriIsExistent(false);\n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n TestCase.assertTrue(\"Asserts that the copied nodes inherit the access rights from the parent of the destination node.\",\n aclParent.equals(session.getEffectiveNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "public abstract boolean impliesWithoutTreePathCheck(Permission permission);", "private void testAclConstraints011() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints011\");\n \n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.GET | Acl.ADD );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.ROOT, DmtConstants.PRINCIPAL, Acl.ADD );\n\n Acl aclExpected = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.ADD | Acl.DELETE | Acl.REPLACE });\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class\n\t\t\t\t\t.getName(), DmtConstants.PRINCIPAL, \"*\"));\n\t\t\t\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL, \".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n\n session.close();\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n TestCase.assertTrue(\"Asserts that if the calling principal does not have Replace rights for the parent, \" +\n \t\t\"the destiny node must be set with an Acl having Add, Delete and Replace permissions.\",\n \t\taclExpected.equals(session.getNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "@Test\n public void testRevokeAffectsWholeGroup_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n }", "public void testGroupDoesNotImplyNotImpliedUser() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(user, group));\n }", "@Test\n public void testRequestPermissionFromTwoGroups() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n\n String[] permissions = new String[] {\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.WRITE_CALENDAR\n };\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true, true});\n }", "private void testAclConstraints002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Get=*&Replace=*\";\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"This test asserts that if the root node ACL is not explicitly set, it should be set to Add=*&Get=*&Replace=*.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "public void testGroupDoesNotImplySameGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "public void testFirstTemporarySecondDurableThirdNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n ObjectProperties namedDurable = new ObjectProperties(_queueName);\n namedDurable.put(ObjectProperties.Property.DURABLE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedDurable);\n _ruleSet.grant(3, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(3, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n }", "public void testUserDoesNotImplyNotImpliedGroup() {\n User user = RoleFactory.createUser(\"foo\");\n Group group = RoleFactory.createGroup(\"bar\");\n \n assertFalse(m_roleChecker.isImpliedBy(user, group));\n }", "private void testAclConstraints004() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints004\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Exec=*&Replace=*\";\n\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(expectedRootAcl));\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"Asserts that the root's ACL can be changed.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }", "@Test(expected = org.jsecurity.authz.UnauthorizedException.class)\n\tpublic void testCheckPermission_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tfixture.checkPermission(permission);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testCheckPermission_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tfixture.checkPermission(permission);\n\n\t\t// add additional test code here\n\t}", "private void testAclConstraints008() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints008\");\n //We need to set that a parent of the node does not have Replace else the acl of the root \".\" is gotten\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.DELETE );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.LEAF_NODE,DmtSession.LOCK_TYPE_EXCLUSIVE);\n session.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that Replace access on a leaf node does not allow changing the ACL property itself.\",\n\t\t\t DmtException.PERMISSION_DENIED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n tbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "private void testAclConstraints012() {\n try {\n int aclModifiers = Acl.class.getModifiers();\n TestCase.assertTrue(\"Asserts that Acl is a public final class\", aclModifiers == (Modifier.FINAL | Modifier.PUBLIC));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n }\n }", "@Test\n public void testWithExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n AuthorizationResponse response = authzClient.authorization(\"marta\", \"password\", \"foo\")\n .authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource A with client scope bar.\n request = new PermissionRequest(\"Resource A\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource B with client scope bar.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\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 }", "@Test\n public void testCheckExistsPermission() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE\");\n assertFalse(permissionManager.checkExists(permission2));\n }", "@Test\n public void testSetPolicy2() throws Exception {\n setupPermission(PathUtils.ROOT_PATH, getTestUser().getPrincipal(), true, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n setupPermission(null, getTestUser().getPrincipal(), true, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n\n setupPermission(getTestRoot(), null, EveryonePrincipal.getInstance(), false, JCR_NAMESPACE_MANAGEMENT);\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 }", "@Test\n\tpublic void testUpdateActionIsPerformedWhenPermissionInheritedAndUserAuthenticatedAndAllowed()\n\t\t\tthrows Throwable {\n\t\tcheck(getAllowedUser(), HttpStatus.SC_OK);\n\t}", "@Test\n\tpublic void testCheckPermissions_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testIsPermitted_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void testAclConstraints006() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints006\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tString expectedRootAcl = \"Add=*\";\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(expectedRootAcl));\n\n\t\t\tsession.renameNode(TestExecPluginActivator.INTERIOR_NODE,TestExecPluginActivator.RENAMED_NODE_NAME);\n\t\t\tTestExecPlugin.setAllUriIsExistent(true);\n\t\t\tTestCase.assertNull(\"Asserts that the method rename deletes the ACL of the source.\",session.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t\t\n\t\t\tTestCase.assertEquals(\"Asserts that the method rename moves the ACL from the source to the destiny.\",\n\t\t\t\t\texpectedRootAcl,session.getNodeAcl(TestExecPluginActivator.RENAMED_NODE).toString());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.RENAMED_NODE);\n\t\t\tTestExecPlugin.setAllUriIsExistent(false);\n\t\t}\n\t}", "@Test\n\tpublic void testIsPermitted_7()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "private void checkAccessRights(final String operation, final String id,\n final String username, final Profile myProfile,\n final String myUserId, final List<GroupElem> userGroups,\n final UserGroupRepository groupRepository) { Before we do anything check (for UserAdmin) that they are not trying\n // to add a user to any group outside of their own - if they are then\n // raise an exception - this shouldn't happen unless someone has\n // constructed their own malicious URL!\n //\n if (operation.equals(Params.Operation.NEWUSER)\n || operation.equals(Params.Operation.EDITINFO)\n || operation.equals(Params.Operation.FULLUPDATE)) {\n if (!(myUserId.equals(id)) && myProfile == Profile.UserAdmin) {\n final List<Integer> groupIds = groupRepository\n .findGroupIds(UserGroupSpecs.hasUserId(Integer\n .parseInt(myUserId)));\n for (GroupElem userGroup : userGroups) {\n boolean found = false;\n for (int myGroup : groupIds) {\n if (userGroup.getId() == myGroup) {\n found = true;\n }\n }\n if (!found) {\n throw new IllegalArgumentException(\n \"Tried to add group id \"\n + userGroup.getId()\n + \" to user \"\n + username\n + \" - not allowed \"\n + \"because you are not a member of that group!\");\n }\n }\n }\n }\n }", "@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public boolean checkAccess(HasUuid object) {\n // Allow newly-instantiated objects\n if (!wasResolved(object)) {\n return true;\n }\n // Allow anything when there are no roles in use\n if (getRoles().isEmpty()) {\n return true;\n }\n Principal principal = getPrincipal();\n // Check for superusers\n if (!principalMapper.isAccessEnforced(principal, object)) {\n return true;\n }\n\n List<PropertyPath> paths = typeContext.getPrincipalPaths(object.getClass());\n PropertyPathChecker checker = checkers.get();\n for (PropertyPath path : paths) {\n path.evaluate(object, checker);\n if (checker.getResult()) {\n return true;\n }\n }\n addWarning(object, \"User %s does not have permission to edit this %s\", principal,\n typeContext.getPayloadName(object.getClass()));\n return false;\n }", "@Test\n\t// Delivery 2 Use Case 1. Grant/Deny Access to commands based on profile's role\n\tpublic void test() {\n\n\t\tUsers user1 = new Users(\"Test1\", \"PARENT\");\n\t\tUsers user2 = new Users(\"Test2\", \"STRANGER\");\n\t\tUsers user3 = new Users(\"Test3\", \"CHILDREN\");\n\t\tUsers user4 = new Users(\"Test4\", \"GUEST\");\n\n\t\t// Checking if users have permissions\n\t\tassertEquals(\"PARENT\", user1.getPermission());\n\t\tassertEquals(\"STRANGER\", user2.getPermission());\n\t\tassertEquals(\"CHILDREN\", user3.getPermission());\n\t\tassertEquals(\"GUEST\", user4.getPermission());\n\n\t}", "@Test\n public void testPostOverrideAccess2() {\n // create discussion which will be limited for user\n Discussion limitedDiscussion = new Discussion(-11L, \"Limited discussion\");\n limitedDiscussion.setTopic(topic);\n Post p = new Post(\"Post in limited discussion\");\n p.setDiscussion(limitedDiscussion);\n\n // set permissions\n // has full access to every post in category except the ones in the limited discussion\n // note that limitedDiscussion permission is added as the second one so that sorting in PermissionService.checkPermissions is tested also\n PermissionData categoryPostPerms = new PermissionData(true, true, true, true);\n PermissionData discussionPostPerms = new PermissionData(true, false, false, true);\n pms.configurePostPermissions(testUser, limitedDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertTrue(accessControlService.canEditPost(post), \"Test user should be able to edit posts in discussion!\");\n assertTrue(accessControlService.canRemovePost(post), \"Test user should be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(limitedDiscussion), \"Test user should be able to view posts in limited discussion!\");\n assertTrue(accessControlService.canAddPost(limitedDiscussion), \"Test user should be able to add posts in limited discussion!\");\n assertFalse(accessControlService.canEditPost(p), \"Test user should not be able to edit post in limited discussion!\");\n assertFalse(accessControlService.canRemovePost(p), \"Test user should not be able to remove post from limited discussion!\");\n }", "@Test\n\tpublic void testIsPermitted_6()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Override\n public void checkPermission(Permission perm) {\n }", "@Test\n public void testRuntimeGroupGrantExpansion() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.RECEIVE_SMS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n\n String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS};\n\n // request only one permission from the 'SMS' permission group at runtime,\n // but two from this group are <uses-permission> in the manifest\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // We should now have been granted both of the permissions from this group.\n assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n }", "@Test\n\tpublic void testIsPermitted_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = null;\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testIsPermitted_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "@Test\n\tpublic void testIsPermittedAll_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n public void testCategoryAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureCategoryPermissions(testUser, data);\n\n // test access control\n assertTrue(accessControlService.canViewCategories(), \"Test user should be able to view categories!\");\n assertTrue(accessControlService.canAddCategory(), \"Test user should be able to create categories!\");\n assertFalse(accessControlService.canEditCategory(category), \"Test user should not be able to edit category!\");\n assertFalse(accessControlService.canRemoveCategory(category), \"Test user should not be able to remove category!\");\n }", "@Test\n\tpublic void testIsPermittedAll_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "private void testAclConstraints001() {\n\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints001\");\n\t\t\t\n new org.osgi.service.dmt.Acl(\"Add=test&Exec=test &Get=*\");\n\t\t\t\n DefaultTestBundleControl.failException(\"\",IllegalArgumentException.class);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tDefaultTestBundleControl.pass(\"White space between tokens of a Acl is not allowed.\");\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(IllegalArgumentException.class, e);\n\t\t}\n\t}", "@Test\n\tpublic void testIsPermitted_8()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(null);\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n public void testDenialWithPrejudice() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n permissions, new boolean[] {false});\n }", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "@Test\n\tpublic void testCheckPermissions_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "public void testFirstNamedSecondTemporaryQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "private void testAclConstraints005() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints005\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n\t\t\tsession.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n\t\t\tTestCase.assertNull(\"This test asserts that the Dmt Admin service synchronizes the ACLs with any change \"\n\t\t\t\t\t\t\t+ \"in the DMT that is made through its service interface\",\n\t\t\t\t\t\t\tsession.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "public boolean checkPermissions(String account,String group, String resource, String action)\n throws Exception\n {\n return checkPermissions(new PolicyCredentials(account,group),resource,action);\n }", "public void testFirstTemporarySecondNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "@Test\n\tpublic void testIsPermitted_9()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "boolean hasSetAcl();", "private void usersCheckPermission(PermissionRequest.ActionType grantedAction, IEntity entity)\n {\n authGrantedUser();\n try {\n executeAction(grantedAction, entity);\n } catch (AccessDeniedException e) {\n fail(\"Action \" + grantedAction.name() + \" was granted but could not be executed \" + entity.getEntityName());\n }\n\n authNotGrantedUser();\n try {\n executeAction(grantedAction, entity);\n fail(\"Action \" + grantedAction.name() + \" was not granted but could be executed \" + entity.getEntityName());\n } catch (AccessDeniedException e) {\n //\n }\n }", "@Test\n\tpublic void testIsPermitted_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testIsPermittedAll_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "@Documented(ACL_DOCUMENTATION)\n @Graph(value = {\n \"Root has Role\",\n \"Role subRole SUDOers\",\n \"Role subRole User\",\n \"User member User1\",\n \"User member User2\",\n \"Root has FileRoot\",\n \"FileRoot contains Home\",\n \"Home contains HomeU1\",\n \"Home contains HomeU2\",\n \"HomeU1 leaf File1\",\n \"HomeU2 contains Desktop\",\n \"Desktop leaf File2\",\n \"FileRoot contains etc\",\n \"etc contains init.d\",\n \"SUDOers member Admin1\",\n \"SUDOers member Admin2\",\n \"User1 owns File1\",\n \"User2 owns File2\",\n \"SUDOers canRead FileRoot\"})\n @Test\n public void ACL_structures_in_graphs(GraphDatabaseService graphDb) {\n JavaTestDocsGenerator generator = gen.get();\n\n //Files\n //TODO: can we do open ended?\n try (Transaction transaction = graphDb.beginTx()) {\n String query = \"match ({name: 'FileRoot'})-[:contains*0..]->(parentDir)-[:leaf]->(file) return file\";\n generator.addSnippet(\"query1\", createCypherSnippet(query));\n String result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n generator.addSnippet(\"result1\", createQueryResultSnippet(result));\n\n //Ownership\n query = \"match ({name: 'FileRoot'})-[:contains*0..]->()-[:leaf]->(file)<-[:owns]-(user) return file, user\";\n generator.addSnippet(\"query2\", createCypherSnippet(query));\n result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n assertTrue(result.contains(\"User1\"));\n assertTrue(result.contains(\"User2\"));\n assertTrue(result.contains(\"File2\"));\n assertFalse(result.contains(\"Admin1\"));\n assertFalse(result.contains(\"Admin2\"));\n generator.addSnippet(\"result2\", createQueryResultSnippet(result));\n\n //ACL\n query = \"MATCH (file)<-[:leaf]-()<-[:contains*0..]-(dir) \" + \"OPTIONAL MATCH (dir)<-[:canRead]-(role)-[:member]->(readUser) \" +\n \"WHERE file.name =~ 'File.*' \" + \"RETURN file.name, dir.name, role.name, readUser.name\";\n generator.addSnippet(\"query3\", createCypherSnippet(query));\n result = transaction.execute(query).resultAsString();\n assertTrue(result.contains(\"File1\"));\n assertTrue(result.contains(\"File2\"));\n assertTrue(result.contains(\"Admin1\"));\n assertTrue(result.contains(\"Admin2\"));\n generator.addSnippet(\"result3\", createQueryResultSnippet(result));\n transaction.commit();\n }\n }", "void check(Permission permission, DBObject dBObject) throws T2DBException;", "public void testVotersRequiredMembersOk() {\n Group citizens = RoleFactory.createGroup(\"citizen\");\n citizens.addRequiredMember(m_anyone);\n \n Group adults = RoleFactory.createGroup(\"adult\");\n adults.addRequiredMember(m_anyone);\n \n Group voters = RoleFactory.createGroup(\"voter\");\n voters.addRequiredMember(citizens);\n voters.addRequiredMember(adults);\n voters.addMember(m_anyone);\n \n \n // Elmer belongs to the citizens and adults...\n User elmer = RoleFactory.createUser(\"elmer\");\n citizens.addMember(elmer);\n adults.addMember(elmer);\n \n // Pepe belongs to the citizens, but is not an adult...\n User pepe = RoleFactory.createUser(\"pepe\");\n citizens.addMember(pepe);\n \n // Bugs is an adult, but is not a citizen...\n User bugs = RoleFactory.createUser(\"bugs\");\n adults.addMember(bugs);\n \n // Daffy is not an adult, neither a citizen...\n User daffy = RoleFactory.createUser(\"daffy\");\n\n assertTrue(m_roleChecker.isImpliedBy(voters, elmer));\n assertFalse(m_roleChecker.isImpliedBy(voters, pepe));\n assertFalse(m_roleChecker.isImpliedBy(voters, bugs));\n assertFalse(m_roleChecker.isImpliedBy(voters, daffy));\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "@Override\r\n\tpublic void checkPermission(String absPath, String actions)\r\n\t\t\tthrows AccessControlException, RepositoryException {\n\t\t\r\n\t}", "@Test\n\tpublic void testCheckPermissions_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testCheckPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "@Test(expected = org.jsecurity.authz.AuthorizationException.class)\n\tpublic void testCheckPermissions_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testPostOverrideAccess() {\n // create user's discussion\n Discussion usersDiscussion = new Discussion(-11L, \"Users own discussion\");\n usersDiscussion.setTopic(topic);\n Post p = new Post(\"Post in user's discussion\");\n p.setDiscussion(usersDiscussion);\n\n // set permissions\n // can create and view posts in category\n PermissionData categoryPostPerms = new PermissionData(true, false, false, true);\n // has complete control over posts in his discussion\n PermissionData discussionPostPerms = new PermissionData(true, true, true, true);\n pms.configurePostPermissions(testUser, usersDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertFalse(accessControlService.canEditPost(post), \"Test user should not be able to edit posts in discussion!\");\n assertFalse(accessControlService.canRemovePost(post), \"Test user should not be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(usersDiscussion), \"Test user should be able to view posts in his discussion!\");\n assertTrue(accessControlService.canAddPost(usersDiscussion), \"Test user should be able to add posts in his discussion!\");\n assertTrue(accessControlService.canEditPost(p), \"Test user should be able to edit post in his discussion!\");\n assertTrue(accessControlService.canRemovePost(p), \"Test user should be able to remove post from his discussion!\");\n }", "private boolean toPermission(EC2SecurityGroup response, CloudStackSecurityGroup group) {\n List<CloudStackIngressRule> rules = group.getIngressRules();\n\n if (rules == null || rules.isEmpty())\n return false;\n\n for (CloudStackIngressRule rule : rules) {\n EC2IpPermission perm = new EC2IpPermission();\n perm.setProtocol(rule.getProtocol());\n perm.setFromPort(rule.getStartPort());\n perm.setToPort(rule.getEndPort());\n perm.setRuleId(rule.getRuleId() != null ? rule.getRuleId().toString() : new String());\n perm.setIcmpCode(rule.getIcmpCode() != null ? rule.getIcmpCode().toString() : new String());\n perm.setIcmpType(rule.getIcmpType() != null ? rule.getIcmpType().toString() : new String());\n perm.setCIDR(rule.getCidr());\n perm.addIpRange(rule.getCidr());\n\n if (rule.getAccountName() != null && rule.getSecurityGroupName() != null) {\n EC2SecurityGroup newGroup = new EC2SecurityGroup();\n newGroup.setAccount(rule.getAccountName());\n newGroup.setName(rule.getSecurityGroupName());\n perm.addUser(newGroup);\n }\n response.addIpPermission(perm);\n }\n return true;\n }", "@Test\n\tvoid addUserToGroup() {\n\t\t// Pre condition\n\t\tAssertions.assertTrue(resource.findById(\"wuser\").getGroups().contains(\"Biz Agency Manager\"));\n\n\t\tresource.addUserToGroup(\"wuser\", \"biz agency manager\");\n\n\t\t// Post condition -> no change\n\t\tAssertions.assertTrue(resource.findById(\"wuser\").getGroups().contains(\"Biz Agency Manager\"));\n\t}", "@Test\n\tpublic void testIsPermittedAll_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public final boolean implies(Permission permission) {\r\n\t\tthrow new IllegalAccessError(String.format(\"AbstractTreePermission.implies() invoked. This kind of permission cannot be\" +\r\n\t\t\t\t\"evaluated outside a TreePermissionCollection. Argument was %s\", permission));\r\n\t}", "boolean check(Permission permission, Surrogate surrogate, boolean permissionRequired) throws T2DBException;", "@Test\n public void testPolicyEvalCacheInvalidationWhenSubjectParentChanges() throws Exception {\n BaseSubject fbi = new BaseSubject(this.FBI);\n\n BaseSubject specialAgentsGroup = new BaseSubject(this.SPECIAL_AGENTS_GROUP);\n specialAgentsGroup\n .setParents(new HashSet<>(Arrays.asList(new Parent[] { new Parent(fbi.getSubjectIdentifier()) })));\n\n BaseSubject agentMulder = new BaseSubject(this.AGENT_MULDER);\n agentMulder.setParents(\n new HashSet<>(Arrays.asList(new Parent[] { new Parent(specialAgentsGroup.getSubjectIdentifier()) })));\n\n BaseSubject agentScully = new BaseSubject(this.AGENT_SCULLY);\n agentScully.setParents(\n new HashSet<>(Arrays.asList(new Parent[] { new Parent(specialAgentsGroup.getSubjectIdentifier()) })));\n\n BaseResource scullysTestimony = new BaseResource(EVIDENCE_SCULLYS_TESTIMONY_ID);\n\n PolicyEvaluationRequestV1 mulderPolicyEvaluationRequest = this.policyHelper\n .createEvalRequest(\"GET\", agentMulder.getSubjectIdentifier(), EVIDENCE_SCULLYS_TESTIMONY_ID, null);\n PolicyEvaluationRequestV1 scullyPolicyEvaluationRequest = this.policyHelper\n .createEvalRequest(\"GET\", agentScully.getSubjectIdentifier(), EVIDENCE_SCULLYS_TESTIMONY_ID, null);\n\n String endpoint = this.acsUrl;\n\n // Set up fbi <-- specialAgentsGroup <-- (agentMulder, agentScully) subject hierarchy\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, fbi, endpoint, this.acsZone1Headers);\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, specialAgentsGroup, endpoint, this.acsZone1Headers,\n this.SPECIAL_AGENTS_GROUP_ATTRIBUTE);\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, agentMulder, endpoint, this.acsZone1Headers);\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, agentScully, endpoint, this.acsZone1Headers);\n\n // Set up resource\n this.privilegeHelper.putResource(this.acsAdminRestTemplate, scullysTestimony, endpoint, this.acsZone1Headers,\n this.SPECIAL_AGENTS_GROUP_ATTRIBUTE, this.TOP_SECRET_CLASSIFICATION);\n\n // Set up policy\n String policyFile = \"src/test/resources/policies/complete-sample-policy-set-2.json\";\n this.policyHelper.setTestPolicy(this.acsAdminRestTemplate, this.acsZone1Headers, endpoint, policyFile);\n\n // Verify that policy is evaluated to DENY since top secret classification is not set\n ResponseEntity<PolicyEvaluationResult> postForEntity = this.acsAdminRestTemplate\n .postForEntity(endpoint + PolicyHelper.ACS_POLICY_EVAL_API_PATH,\n new HttpEntity<>(mulderPolicyEvaluationRequest, this.acsZone1Headers),\n PolicyEvaluationResult.class);\n Assert.assertEquals(postForEntity.getStatusCode(), HttpStatus.OK);\n PolicyEvaluationResult responseBody = postForEntity.getBody();\n Assert.assertEquals(responseBody.getEffect(), Effect.DENY);\n\n postForEntity = this.acsAdminRestTemplate.postForEntity(endpoint + PolicyHelper.ACS_POLICY_EVAL_API_PATH,\n new HttpEntity<>(scullyPolicyEvaluationRequest, this.acsZone1Headers), PolicyEvaluationResult.class);\n Assert.assertEquals(postForEntity.getStatusCode(), HttpStatus.OK);\n responseBody = postForEntity.getBody();\n Assert.assertEquals(responseBody.getEffect(), Effect.DENY);\n\n // Change parent subject to add top secret classification\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, specialAgentsGroup, endpoint, this.acsZone1Headers,\n this.SPECIAL_AGENTS_GROUP_ATTRIBUTE, this.TOP_SECRET_CLASSIFICATION);\n\n // Verify that policy is evaluated to PERMIT since top secret classification is now propogated from the parent\n postForEntity = this.acsAdminRestTemplate.postForEntity(endpoint + PolicyHelper.ACS_POLICY_EVAL_API_PATH,\n new HttpEntity<>(mulderPolicyEvaluationRequest, this.acsZone1Headers), PolicyEvaluationResult.class);\n Assert.assertEquals(postForEntity.getStatusCode(), HttpStatus.OK);\n responseBody = postForEntity.getBody();\n Assert.assertEquals(responseBody.getEffect(), Effect.PERMIT);\n\n postForEntity = this.acsAdminRestTemplate.postForEntity(endpoint + PolicyHelper.ACS_POLICY_EVAL_API_PATH,\n new HttpEntity<>(scullyPolicyEvaluationRequest, this.acsZone1Headers), PolicyEvaluationResult.class);\n Assert.assertEquals(postForEntity.getStatusCode(), HttpStatus.OK);\n responseBody = postForEntity.getBody();\n Assert.assertEquals(responseBody.getEffect(), Effect.PERMIT);\n }", "public boolean checkAccessTemp(String user, String role, String obj,String op){\n\t\t\n\t\t/*Integer object = values.get(5).get(obj);\n\t\tInteger operation = values.get(3).get(op);\n\t\tInteger session = values.get(4).get(s);*/\n\t\t\n\t\tHashMap<Integer,Integer> elements = new HashMap<Integer,Integer>();\n\t\telements.put(1,values.get(1).get(user));\n\t\telements.put(2,values.get(2).get(role));\n\t\telements.put(3,values.get(3).get(op));\n\t\telements.put(5, values.get(5).get(obj));\n\n\t\t\n\t\t//elements.put(4, values.get(4).get(s));\n\t\t\n\t\tif (authGraph.dfsWalkEdges(authGraph.getRoot(), elements)) return true;\n\t\telse return false;\n\t\t\n\t\t//CHECK ACCESS MUST HANDLE THE INHERITANCE PROPERLY.........\n\t\t//MEANING IF THERE IS A SPECIAL EDGE BETWEEN TWO ROLES THEN PASS IT WITHOUT CONSUMING THE PATH VALUES....\n\t}", "public boolean checkPermission(Permission permission);", "public interface AclService<T> extends PermissionEvaluator {\n\n\t/**\n\t * Creates an acl for an object if neccessary and adds an ace for that\n\t * object with the permission specified. This adds the permission to the\n\t * currently-logged-in user\n\t * \n\t * @param object\n\t * The object for which the acl and ace are to be created.\n\t * @param permission\n\t * The permission to grant to the user on the object.\n\t */\n\tpublic void addPermission(T object, Permission permission);\n\t\n\t/**\n\t * Creates an acl for an object if neccessary and adds an ace for that\n\t * object with the permission specified for the specified user\n\t * \n\t * @param object\n\t * The object for which the acl and ace are to be created.\n\t * @param permission\n\t * The permission to grant to the user on the object.\n\t * @param user\n\t * A <code>User</code> who will be granted the permission on\n\t * the object.\n\t */\n\tpublic void addPermission(T object, Permission permission, User user);\n\n\t/**\n\t * Removes the permission of a user on an object. If the object does not\n\t * have an acl or if the ace does not exist for the object, do nothing.\n\t * \n\t * @param object\n\t * The object for which the permission is to be removed.\n\t * @param permission\n\t * The permission to remove from the user on the object.\n\t * @param user\n\t * The <code>User</code> who will lose the permission on\n\t * the object.\n\t */\n\tpublic void removePermission(T object, Permission permission, User user);\n\t\n\t/**\n\t * Gets a list of Permissions that the user has on the specified object.\n\t * \n\t * @param object\n\t * The object to retrieve the permission on.\n\t * @param user\n\t * \t\t\tThe <code>User</code> who is granted permissions on\n\t * the object.\n\t * @return A <code>Permission</code> containing the \n\t */\n\tpublic List<Permission> getPermissions(T object, User user);\n\n\t/**\n\t * Returns <code>boolean</code> true if the given <code>User</code> principle\n\t * has the given <code>Permission</code> on the give <code>Object</code>, returns\n\t * fale otherwise.\n\t */\n\tpublic boolean hasPermission(T object, Permission permission, User user);\n}", "public boolean checkAccess(String s, String op, String obj){\n\t\t\n\t\t/*Integer object = values.get(5).get(obj);\n\t\tInteger operation = values.get(3).get(op);\n\t\tInteger session = values.get(4).get(s);*/\n\t\t\n\t\tHashMap<Integer,Integer> elements = new HashMap<Integer,Integer>();\n\t\telements.put(5, values.get(5).get(obj));\n\t\telements.put(3,values.get(3).get(op));\n\t\telements.put(4, values.get(4).get(s));\n\t\t\n\t\tif (authGraph.dfsWalkEdges(authGraph.getRoot(), elements)) return true;\n\t\telse return false;\n\t\t\n\t\t//CHECK ACCESS MUST HANDLE THE INHERITANCE PROPERLY.........\n\t\t//MEANING IF THERE IS A SPECIAL EDGE BETWEEN TWO ROLES THEN PASS IT WITHOUT CONSUMING THE PATH VALUES....\n\t}", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "public void confirmPermission(String objectId, User user) throws UserManagementException;", "@Test\n public void testCheckExistsPermissionWithString() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE2\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission.getName()));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE2\");\n assertFalse(permissionManager.checkExists(permission2.getName()));\n }", "@Test\n public void testRequestGrantedPermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and allow it\n BasePermissionActivity.Result firstResult = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, null);\n\n // Expect the permission is granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {true});\n }", "public void checkAuthority() {\n }", "public boolean validatePermissions()\r\n\t{\n\t\treturn true;\r\n\t}", "private static boolean allowAddCheckOrder(Group group,\n \t\t\tQName propertyName, final DefinitionGroup groupDef) {\n \t\tboolean before = true;\n \t\t\n \t\tCollection<? extends ChildDefinition<?>> children = DefinitionUtil.getAllChildren(groupDef);\n \t\t\n \t\tfor (ChildDefinition<?> childDef : children) {\n \t\t\tif (childDef.getName().equals(propertyName)) {\n \t\t\t\tbefore = false;\n \t\t\t}\n \t\t\telse {\n \t\t\t\t// ignore XML attributes\n \t\t\t\tif (childDef.asProperty() != null && childDef.asProperty().getConstraint(XmlAttributeFlag.class).isEnabled()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t// ignore groups that contain no elements\n \t\t\t\tif (childDef.asGroup() != null && !StreamGmlHelper.hasElements(childDef.asGroup())) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (before) {\n \t\t\t\t\t// child before the property\n \t\t\t\t\t// the property may only be added if all children before are valid in their cardinality\n \t\t\t\t\tif (!isValidCardinality(group, childDef)) {\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\t// child after the property\n \t\t\t\t\t// the property may only be added if there are no values for children after the property\n \t\t\t\t\tObject[] values = group.getProperty(childDef.getName());\n \t\t\t\t\tif (values != null && values.length > 0) {\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t// no fail -> allow add\n \t\treturn true;\n \t}", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Test\n public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n String[] permissions = new String[] {Manifest.permission.READ_CALENDAR};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Clear the denial with prejudice\n grantPermission(Manifest.permission.READ_CALENDAR);\n revokePermission(Manifest.permission.READ_CALENDAR);\n\n // We just committed a suicide by revoking the permission. See part2 below...\n }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "@Test\n public void testDiscussionAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureDiscussionPermissions(testUser, category, data);\n\n // test access control\n assertTrue(accessControlService.canViewDiscussions(topic), \"Test user should be able to view discussion in topic!\");\n assertTrue(accessControlService.canAddDiscussion(topic), \"Test user should be able to create discussion in topic!\");\n assertFalse(accessControlService.canEditDiscussion(discussion), \"Test user should not be able to edit discussion in topic!\");\n assertFalse(accessControlService.canRemoveDiscussion(discussion), \"Test user should not be able to remove discussion from topic!\");\n }" ]
[ "0.81507146", "0.7060555", "0.6862893", "0.634386", "0.6303302", "0.62053525", "0.61702394", "0.60943556", "0.60403055", "0.60186243", "0.601854", "0.5964617", "0.59569705", "0.59514666", "0.5943688", "0.58963466", "0.58789414", "0.58524674", "0.5848106", "0.58387524", "0.5815845", "0.57841384", "0.5761615", "0.57601446", "0.5733054", "0.57188743", "0.5671467", "0.56559575", "0.56548524", "0.5624806", "0.56016475", "0.55892974", "0.55802006", "0.5565566", "0.55514574", "0.55474323", "0.5529735", "0.5528744", "0.5526371", "0.552451", "0.5504417", "0.5494529", "0.5483807", "0.54689264", "0.5462284", "0.54494655", "0.54275715", "0.54271156", "0.5412837", "0.5412032", "0.54099864", "0.54068214", "0.5402565", "0.5400442", "0.5385862", "0.5379524", "0.5367179", "0.5360429", "0.53561765", "0.5343861", "0.5319046", "0.5312016", "0.5306139", "0.52999985", "0.5297202", "0.52722454", "0.5272101", "0.5270889", "0.52675575", "0.5261332", "0.5250776", "0.52287096", "0.52249604", "0.52235264", "0.52180797", "0.5214263", "0.5200323", "0.5198238", "0.51977533", "0.51912326", "0.5190589", "0.517812", "0.5171964", "0.5161191", "0.5155737", "0.5154738", "0.51539046", "0.5151875", "0.5150267", "0.5146995", "0.5139805", "0.51348007", "0.5120188", "0.5118757", "0.51168287", "0.5113815", "0.5113815", "0.5101484", "0.5094281", "0.5086901" ]
0.8698403
0
Rule order in the ACL determines the outcome of the check. This tests ensures that a user who is denied access by group, is denied access, despite there being a later rule granting permission to that user.
public void testDenyDeterminedByRuleOrder() { assertTrue(_ruleSet.addGroup("aclgroup", Arrays.asList(new String[] {"usera"}))); _ruleSet.grant(1, "aclgroup", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); _ruleSet.grant(2, "usera", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); assertEquals(2, _ruleSet.getRuleCount()); assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject("usera"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testNestedAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup1\", Arrays.asList(new String[] {\"userb\"})));\n assertTrue(_ruleSet.addGroup(\"aclgroup2\", Arrays.asList(new String[] {\"usera\", \"aclgroup1\"}))); \n \n _ruleSet.grant(1, \"aclgroup2\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\", \"userb\"}))); \n \n _ruleSet.grant(1, \"aclgroup\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DEFER, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userc\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "public void testGroupDoesNotImplySameRequiredGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "public void testUserDoesNotImplyNotImpliedGroup() {\n User user = RoleFactory.createUser(\"foo\");\n Group group = RoleFactory.createGroup(\"bar\");\n \n assertFalse(m_roleChecker.isImpliedBy(user, group));\n }", "public void testGroupDoesNotImplyNotImpliedUser() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(user, group));\n }", "public void testGroupDoesNotImplySameGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }", "public void testUserImpliesImpliedGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(m_anyone);\n group.addMember(user);\n\n assertTrue(m_roleChecker.isImpliedBy(group, user));\n }", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "@Test\n public void testRevokeAffectsWholeGroup_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n }", "public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "private void checkAccessRights(final String operation, final String id,\n final String username, final Profile myProfile,\n final String myUserId, final List<GroupElem> userGroups,\n final UserGroupRepository groupRepository) { Before we do anything check (for UserAdmin) that they are not trying\n // to add a user to any group outside of their own - if they are then\n // raise an exception - this shouldn't happen unless someone has\n // constructed their own malicious URL!\n //\n if (operation.equals(Params.Operation.NEWUSER)\n || operation.equals(Params.Operation.EDITINFO)\n || operation.equals(Params.Operation.FULLUPDATE)) {\n if (!(myUserId.equals(id)) && myProfile == Profile.UserAdmin) {\n final List<Integer> groupIds = groupRepository\n .findGroupIds(UserGroupSpecs.hasUserId(Integer\n .parseInt(myUserId)));\n for (GroupElem userGroup : userGroups) {\n boolean found = false;\n for (int myGroup : groupIds) {\n if (userGroup.getId() == myGroup) {\n found = true;\n }\n }\n if (!found) {\n throw new IllegalArgumentException(\n \"Tried to add group id \"\n + userGroup.getId()\n + \" to user \"\n + username\n + \" - not allowed \"\n + \"because you are not a member of that group!\");\n }\n }\n }\n }\n }", "public void testExternalGroupsSupported()\n {\n _ruleSet.grant(1, \"extgroup1\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"extgroup2\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\", \"extgroup1\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\", \"extgroup2\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "private void denyAccessInConditionalFlow(String flowAlias, String userCondMatch, String userCondNotMatch, String errorMessage) {\n try {\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userCondMatch);\n\n errorPage.assertCurrent();\n assertThat(errorPage.getError(), is(errorMessage));\n\n events.expectLogin()\n .user((String) null)\n .session((String) null)\n .error(Errors.ACCESS_DENIED)\n .detail(Details.USERNAME, userCondMatch)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n\n final String userCondNotMatchId = testRealm().users().search(userCondNotMatch).get(0).getId();\n\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userCondNotMatch);\n\n passwordPage.assertCurrent();\n passwordPage.login(\"password\");\n\n events.expectLogin().user(userCondNotMatchId)\n .detail(Details.USERNAME, userCondNotMatch)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n } finally {\n revertFlows(testRealm(), flowAlias);\n }\n }", "public void testFirstTemporarySecondDurableThirdNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n ObjectProperties namedDurable = new ObjectProperties(_queueName);\n namedDurable.put(ObjectProperties.Property.DURABLE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedDurable);\n _ruleSet.grant(3, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(3, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedDurable));\n }", "@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\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 }", "private void testAclConstraints009() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints009\");\n session = tbc.getDmtAdmin().getSession(TestExecPluginActivator.ROOT,\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n\n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n session.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n DefaultTestBundleControl.pass(\"ACLs is only verified by the Dmt Admin service when the session has an associated principal.\");\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }", "private List<IAuthRule> unauthorizedRule() {\n return new RuleBuilder().allow().metadata().andThen().denyAll().build();\n }", "@Test\n public void testRequestPermissionFromTwoGroups() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n\n String[] permissions = new String[] {\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.WRITE_CALENDAR\n };\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true, true});\n }", "@Test\n public void testDenyAccessWithNegateUserAttributeCondition() {\n final String flowAlias = \"browser - user attribute condition\";\n final String userWithoutAttribute = \"test-user@localhost\";\n final String errorMessage = \"You don't have necessary attribute.\";\n\n Map<String, String> attributeConfigMap = new HashMap<>();\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_ATTRIBUTE_NAME, \"attribute\");\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_ATTRIBUTE_EXPECTED_VALUE, \"value\");\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_NOT, \"true\");\n\n Map<String, String> denyAccessConfigMap = new HashMap<>();\n denyAccessConfigMap.put(DenyAccessAuthenticatorFactory.ERROR_MESSAGE, errorMessage);\n\n configureBrowserFlowWithDenyAccessInConditionalFlow(flowAlias, ConditionalUserAttributeValueFactory.PROVIDER_ID, attributeConfigMap, denyAccessConfigMap);\n\n try {\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userWithoutAttribute);\n\n errorPage.assertCurrent();\n assertThat(errorPage.getError(), is(errorMessage));\n\n events.expectLogin()\n .user((String) null)\n .session((String) null)\n .error(Errors.ACCESS_DENIED)\n .detail(Details.USERNAME, userWithoutAttribute)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n } finally {\n revertFlows(testRealm(), flowAlias);\n }\n }", "public void testFirstNamedSecondTemporaryQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n _ruleSet.grant(2, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "boolean validateUserGroups(SessionState state, String userId, Assignment asn)\n\t{\n\t\tSite site = getSite(asn);\n\n\t\t// finding any of the user's groups is sufficient, if they are in multiple groups the check\n\t\t// will fail no matter which of their groups is used\n\t\tOptional<Group> userGroup = getGroupsWithUser(userId, asn, site).stream().findAny();\n\t\tif (userGroup.isPresent())\n\t\t{\n\t\t\treturn checkSubmissionForUsersInMultipleGroups(asn, userGroup.get(), state, true).isEmpty();\n\t\t}\n\n\t\t// user is not in any assignment groups, if they are an instructor this is probably the Student View feature so let them through\n\t\treturn assignmentService.allowAddAssignment(site.getId()) || assignmentService.allowUpdateAssignmentInContext(site.getId());\n\t}", "@Test\n\tpublic void testUpdateActionIsNotPerformedWhenPermissionInheritedAndUserAuthenticatedButNotAllowed()\n\t\t\tthrows Throwable {\n\t\tcheck(getAuthenticatedButNotAllowedUser(), new ResponseHandler() {\n\t\t\tpublic void handleResponse(HttpResponse response)\n\t\t\t\t\tthrows Throwable {\n\t\t\t\tassertIsUnauthorized(response);\n\t\t\t\tassertFirstErrorOfEntityEquals(response, ErrorCode.NO_PERM_UPDATE);\n\t\t\t}\n\t\t});\n\t}", "@Test\n\tpublic void testUpdateActionIsNotPerformedWhenPermissionInheritedAndUserNotAuthenticated()\n\t\t\tthrows Throwable {\n\t\tcheck(getNonAuthenticatedUser(), HttpStatus.SC_UNAUTHORIZED);\n\t}", "@Test\n public void testNotAuthorizedRemoveGroup() throws IOException {\n testUserId2 = createTestUser();\n\n String groupId = createTestGroup();\n\n Credentials creds = new UsernamePasswordCredentials(\"admin\", \"admin\");\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n Credentials creds2 = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds2, postUrl, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n }", "@Test(expected = AccessDeniedException.class)\n public void permissionDeniedIsThrownWhenUserIsNonOwnerNonAdmin()\n throws Exception {\n Recipe testRecipe = new Recipe();\n testRecipe.setId(1L);\n testRecipe.setOwner(\n new User(\"name\", \"username\", \"password\")\n );\n\n // Given user that is non-owner, non-admin\n User nonOwnerNonAdmin = new User();\n nonOwnerNonAdmin.setRole(new Role(\"ROLE_USER\"));\n\n assertThat(\n \"user is non owner\",\n nonOwnerNonAdmin,\n not(\n is(testRecipe.getOwner())\n )\n );\n\n // Given that when recipeDao.findOne(1L) will be called\n // testRecipe will be returned\n when(\n recipeDao.findOne(anyLong())\n ).thenReturn(testRecipe);\n\n // When checkIfUserIsAdminIsCalled\n recipeService.checkIfUserCanEditRecipe(\n nonOwnerNonAdmin, testRecipe\n );\n\n // Then AccessDeniedException should be thrown\n }", "public void testFirstTemporarySecondNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n\n _ruleSet.grant(1, TEST_USER, Permission.DENY, Operation.CREATE, ObjectType.QUEUE, namedTemporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CREATE, ObjectType.QUEUE, named);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, named));\n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CREATE, ObjectType.QUEUE, namedTemporary));\n }", "@Test\n public void testDenialWithPrejudice() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n permissions, new boolean[] {false});\n }", "public abstract boolean impliesWithoutTreePathCheck(Permission permission);", "private boolean toPermission(EC2SecurityGroup response, CloudStackSecurityGroup group) {\n List<CloudStackIngressRule> rules = group.getIngressRules();\n\n if (rules == null || rules.isEmpty())\n return false;\n\n for (CloudStackIngressRule rule : rules) {\n EC2IpPermission perm = new EC2IpPermission();\n perm.setProtocol(rule.getProtocol());\n perm.setFromPort(rule.getStartPort());\n perm.setToPort(rule.getEndPort());\n perm.setRuleId(rule.getRuleId() != null ? rule.getRuleId().toString() : new String());\n perm.setIcmpCode(rule.getIcmpCode() != null ? rule.getIcmpCode().toString() : new String());\n perm.setIcmpType(rule.getIcmpType() != null ? rule.getIcmpType().toString() : new String());\n perm.setCIDR(rule.getCidr());\n perm.addIpRange(rule.getCidr());\n\n if (rule.getAccountName() != null && rule.getSecurityGroupName() != null) {\n EC2SecurityGroup newGroup = new EC2SecurityGroup();\n newGroup.setAccount(rule.getAccountName());\n newGroup.setName(rule.getSecurityGroupName());\n perm.addUser(newGroup);\n }\n response.addIpPermission(perm);\n }\n return true;\n }", "private void testAclConstraints003() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints003\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(\".\",null);\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that the root node of DMT must always have an ACL associated with it\",\n\t\t\t DmtException.COMMAND_NOT_ALLOWED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failExpectedOtherException(DmtException.class, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testPostOverrideAccess2() {\n // create discussion which will be limited for user\n Discussion limitedDiscussion = new Discussion(-11L, \"Limited discussion\");\n limitedDiscussion.setTopic(topic);\n Post p = new Post(\"Post in limited discussion\");\n p.setDiscussion(limitedDiscussion);\n\n // set permissions\n // has full access to every post in category except the ones in the limited discussion\n // note that limitedDiscussion permission is added as the second one so that sorting in PermissionService.checkPermissions is tested also\n PermissionData categoryPostPerms = new PermissionData(true, true, true, true);\n PermissionData discussionPostPerms = new PermissionData(true, false, false, true);\n pms.configurePostPermissions(testUser, limitedDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertTrue(accessControlService.canEditPost(post), \"Test user should be able to edit posts in discussion!\");\n assertTrue(accessControlService.canRemovePost(post), \"Test user should be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(limitedDiscussion), \"Test user should be able to view posts in limited discussion!\");\n assertTrue(accessControlService.canAddPost(limitedDiscussion), \"Test user should be able to add posts in limited discussion!\");\n assertFalse(accessControlService.canEditPost(p), \"Test user should not be able to edit post in limited discussion!\");\n assertFalse(accessControlService.canRemovePost(p), \"Test user should not be able to remove post from limited discussion!\");\n }", "@Test\n\tpublic void testUpdateActionIsPerformedWhenPermissionInheritedAndUserAuthenticatedAndAllowed()\n\t\t\tthrows Throwable {\n\t\tcheck(getAllowedUser(), HttpStatus.SC_OK);\n\t}", "private void testAclConstraints002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Get=*&Replace=*\";\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"This test asserts that if the root node ACL is not explicitly set, it should be set to Add=*&Get=*&Replace=*.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "private void testErrorMessageInDenyAccess(String setUpMessage, String expectedMessage) {\n final String flowAlias = \"browser - deny defaultMessage\";\n final String userWithoutAttribute = \"test-user@localhost\";\n\n Map<String, String> denyAccessConfigMap = new HashMap<>();\n if (setUpMessage != null) {\n denyAccessConfigMap.put(DenyAccessAuthenticatorFactory.ERROR_MESSAGE, setUpMessage);\n }\n\n configureBrowserFlowWithDenyAccess(flowAlias, denyAccessConfigMap);\n\n try {\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userWithoutAttribute);\n\n errorPage.assertCurrent();\n assertThat(errorPage.getError(), is(expectedMessage));\n\n events.expectLogin()\n .user((String) null)\n .session((String) null)\n .error(Errors.ACCESS_DENIED)\n .detail(Details.USERNAME, userWithoutAttribute)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n } finally {\n revertFlows(testRealm(), flowAlias);\n }\n }", "private void usersCheckPermission(PermissionRequest.ActionType grantedAction, IEntity entity)\n {\n authGrantedUser();\n try {\n executeAction(grantedAction, entity);\n } catch (AccessDeniedException e) {\n fail(\"Action \" + grantedAction.name() + \" was granted but could not be executed \" + entity.getEntityName());\n }\n\n authNotGrantedUser();\n try {\n executeAction(grantedAction, entity);\n fail(\"Action \" + grantedAction.name() + \" was not granted but could be executed \" + entity.getEntityName());\n } catch (AccessDeniedException e) {\n //\n }\n }", "private void testAclConstraints007() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints007\");\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL_2, Acl.GET );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\t\t\ttbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n\t\t\tsession = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.ROOT,DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\t\n\t\t\tDefaultTestBundleControl.pass(\"If a principal has Replace access to a node, the principal is permitted to change the ACL of all its child nodes\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n\t\t\ttbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "private void denyAccessWithRoleCondition(boolean negateOutput) {\n final String flowAlias = \"browser-deny\";\n final String userWithRole = \"test-user@localhost\";\n final String userWithoutRole = \"john-doh@localhost\";\n final String role = \"offline_access\";\n final String errorMessage = \"Your account doesn't have the required role\";\n\n Map<String, String> config = new HashMap<>();\n config.put(ConditionalRoleAuthenticatorFactory.CONDITIONAL_USER_ROLE, role);\n config.put(ConditionalRoleAuthenticatorFactory.CONF_NEGATE, Boolean.toString(negateOutput));\n\n Map<String, String> denyConfig = new HashMap<>();\n denyConfig.put(DenyAccessAuthenticatorFactory.ERROR_MESSAGE, errorMessage);\n\n configureBrowserFlowWithDenyAccessInConditionalFlow(flowAlias, ConditionalRoleAuthenticatorFactory.PROVIDER_ID, config, denyConfig);\n\n denyAccessInConditionalFlow(flowAlias,\n negateOutput ? userWithoutRole : userWithRole,\n negateOutput ? userWithRole : userWithoutRole,\n errorMessage\n );\n }", "@Test(expected = org.jsecurity.authz.UnauthorizedException.class)\n\tpublic void testCheckPermission_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tfixture.checkPermission(permission);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }", "public boolean denied(String action) {\n if (deny_all) {\n return true;\n }\n\t\tfor(String a : actions) {\n\t\t\tif (a.equals(action)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testSkipOtherExecutionsIfUserHasRoleCondition() {\n final String userWithRole = \"test-user@localhost\";\n final String role = \"offline_access\";\n final String newFlowAlias = \"browser - allow skip\";\n\n Map<String, String> configMap = new HashMap<>();\n configMap.put(ConditionalRoleAuthenticatorFactory.CONDITIONAL_USER_ROLE, role);\n configMap.put(ConditionalRoleAuthenticatorFactory.CONF_NEGATE, \"false\");\n\n configureBrowserFlowWithSkipExecutionInConditionalFlow(newFlowAlias, ConditionalRoleAuthenticatorFactory.PROVIDER_ID, configMap);\n try {\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userWithRole);\n\n final String testUserWithRoleId = testRealm().users().search(userWithRole).get(0).getId();\n\n events.expectLogin()\n .user(testUserWithRoleId)\n .detail(Details.USERNAME, userWithRole)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n } finally {\n revertFlows(testRealm(), newFlowAlias);\n }\n }", "@Test\n public void testUserAndFlowGroupQuotaMultipleUsersAdd() throws Exception {\n Dag<JobExecutionPlan> dag1 = DagManagerTest.buildDag(\"1\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag2 = DagManagerTest.buildDag(\"2\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag3 = DagManagerTest.buildDag(\"3\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group3\")));\n Dag<JobExecutionPlan> dag4 = DagManagerTest.buildDag(\"4\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n // Ensure that the current attempt is 1, normally done by DagManager\n dag1.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag2.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag3.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag4.getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dag1.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag2.getNodes().get(0)));\n\n // Should fail due to user quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n });\n // Should fail due to flowgroup quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n });\n // should pass due to quota being released\n this._quotaManager.releaseQuota(dag2.getNodes().get(0));\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n }", "@Test\n public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n String[] permissions = new String[] {Manifest.permission.READ_CALENDAR};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Clear the denial with prejudice\n grantPermission(Manifest.permission.READ_CALENDAR);\n revokePermission(Manifest.permission.READ_CALENDAR);\n\n // We just committed a suicide by revoking the permission. See part2 below...\n }", "@Test\n public void testDeleteUserWhenOnlyUserInGroup2() throws Exception {\n /*\n * This test has the following setup:\n * - Step 1: user B\n * - Step 2: user C\n * - Step 3: user B\n *\n * This test will perform the following checks:\n * - create a workspace item, and let it move to step 1\n * - delete user B\n * - verify the delete is refused\n * - remove user B from step 1\n * - verify that the removal is refused due to B being the last member in the workflow group and the group\n * having a pool task\n * - approve it by user B and let it move to step 2\n * - remove user B from step 3\n * - delete user B\n * - verify the delete succeeds\n * - Approve it by user C\n * - verify that the item is archived without any actions apart from the approving in step 2\n */\n context.turnOffAuthorisationSystem();\n\n Community parent = CommunityBuilder.createCommunity(context).build();\n Collection collection = CollectionBuilder.createCollection(context, parent)\n .withWorkflowGroup(1, workflowUserB)\n .withWorkflowGroup(2, workflowUserC)\n .withWorkflowGroup(3, workflowUserB)\n .build();\n\n WorkspaceItem wsi = WorkspaceItemBuilder.createWorkspaceItem(context, collection)\n .withSubmitter(workflowUserA)\n .withTitle(\"Test item full workflow\")\n .withIssueDate(\"2019-03-06\")\n .withSubject(\"ExtraEntry\")\n .build();\n\n Workflow workflow = XmlWorkflowServiceFactory.getInstance().getWorkflowFactory().getWorkflow(collection);\n\n XmlWorkflowItem workflowItem = xmlWorkflowService.startWithoutNotify(context, wsi);\n MockHttpServletRequest httpServletRequest = new MockHttpServletRequest();\n httpServletRequest.setParameter(\"submit_approve\", \"submit_approve\");\n\n assertDeletionOfEperson(workflowUserB, false);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, REVIEW_ROLE, false);\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, CLAIM_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, REVIEW_ACTION);\n\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, REVIEW_ROLE, true);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, \"finaleditor\", true);\n\n assertDeletionOfEperson(workflowUserB, true);\n\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, CLAIM_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, EDIT_ACTION);\n\n assertTrue(workflowItem.getItem().isArchived());\n\n }", "private static boolean allowAddCheckOrder(Group group,\n \t\t\tQName propertyName, final DefinitionGroup groupDef) {\n \t\tboolean before = true;\n \t\t\n \t\tCollection<? extends ChildDefinition<?>> children = DefinitionUtil.getAllChildren(groupDef);\n \t\t\n \t\tfor (ChildDefinition<?> childDef : children) {\n \t\t\tif (childDef.getName().equals(propertyName)) {\n \t\t\t\tbefore = false;\n \t\t\t}\n \t\t\telse {\n \t\t\t\t// ignore XML attributes\n \t\t\t\tif (childDef.asProperty() != null && childDef.asProperty().getConstraint(XmlAttributeFlag.class).isEnabled()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t// ignore groups that contain no elements\n \t\t\t\tif (childDef.asGroup() != null && !StreamGmlHelper.hasElements(childDef.asGroup())) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (before) {\n \t\t\t\t\t// child before the property\n \t\t\t\t\t// the property may only be added if all children before are valid in their cardinality\n \t\t\t\t\tif (!isValidCardinality(group, childDef)) {\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\t// child after the property\n \t\t\t\t\t// the property may only be added if there are no values for children after the property\n \t\t\t\t\tObject[] values = group.getProperty(childDef.getName());\n \t\t\t\t\tif (values != null && values.length > 0) {\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t// no fail -> allow add\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean isDenied();", "@Test\n public void testAuthorizedRemoveGroup() throws IOException {\n testUserId2 = createTestUser();\n grantUserManagementRights(testUserId2);\n\n String groupId = createTestGroup();\n\n Credentials creds = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds, postUrl, HttpServletResponse.SC_OK, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_NOT_FOUND, null); //make sure the profile request returns some data\n }", "@Override\r\n\tpublic void checkPermission(String absPath, String actions)\r\n\t\t\tthrows AccessControlException, RepositoryException {\n\t\t\r\n\t}", "@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 }", "boolean ignoresPermission();", "public boolean checkPermissions(String account,String group, String resource, String action)\n throws Exception\n {\n return checkPermissions(new PolicyCredentials(account,group),resource,action);\n }", "@Test\n @WithMockUhUser(username = \"iamtst06\")\n public void optOutTest() throws Exception {\n assertTrue(isInCompositeGrouping(GROUPING, tst[0], tst[5]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[5]));\n\n //tst[5] opts out of Grouping\n mapGSRs(API_BASE + GROUPING + \"/optOut\");\n }", "public static void checkAccess(int userId) throws SecurityException {\n if(userId == -1) {\n throw new SecurityException(\"Invalid Permissions\");\n }\n if(getCurrentUserId() == -1) {\n return;\n }\n checkAccess();\n }", "public void testUserAlwaysImpliesItself() {\n User user = RoleFactory.createUser(\"foo\");\n \n assertTrue(m_roleChecker.isImpliedBy(user, user));\n }", "@Test\n public void testDeleteUserWhenOnlyUserInGroup1() throws Exception {\n /*\n * This test has the following setup:\n * - Step 1: user B\n * - Step 2: user C\n * - Step 3: user B\n *\n * This test will perform the following checks:\n * - create a workspace item, and let it move to step 1\n * - claim it by user B\n * - delete user B\n * - verify the delete is refused\n * - remove user B from step 1\n * - verify that the removal is refused due to B being the last member in the workflow group and the group\n * having a claimed item\n * - approve it by user B and let it move to step 2\n * - remove user B from step 3\n * - approve it by user C\n * - verify that the item is archived without any actions apart from removing user B\n * - delete user B\n * - verify the delete succeeds\n */\n context.turnOffAuthorisationSystem();\n\n Community parent = CommunityBuilder.createCommunity(context).build();\n Collection collection = CollectionBuilder.createCollection(context, parent)\n .withWorkflowGroup(1, workflowUserB)\n .withWorkflowGroup(2, workflowUserC)\n .withWorkflowGroup(3, workflowUserB)\n .build();\n\n WorkspaceItem wsi = WorkspaceItemBuilder.createWorkspaceItem(context, collection)\n .withSubmitter(workflowUserA)\n .withTitle(\"Test item full workflow\")\n .withIssueDate(\"2019-03-06\")\n .withSubject(\"ExtraEntry\")\n .build();\n\n Workflow workflow = XmlWorkflowServiceFactory.getInstance().getWorkflowFactory().getWorkflow(collection);\n\n XmlWorkflowItem workflowItem = xmlWorkflowService.startWithoutNotify(context, wsi);\n MockHttpServletRequest httpServletRequest = new MockHttpServletRequest();\n httpServletRequest.setParameter(\"submit_approve\", \"submit_approve\");\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, CLAIM_ACTION);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, REVIEW_ROLE, false);\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, REVIEW_ACTION);\n\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, CLAIM_ACTION);\n\n\n assertDeletionOfEperson(workflowUserB, false);\n\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, FINAL_EDIT_ROLE, true);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, REVIEW_ROLE, true);\n\n assertDeletionOfEperson(workflowUserB, true);\n\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, EDIT_ACTION);\n\n assertTrue(workflowItem.getItem().isArchived());\n\n }", "private void testAclConstraints011() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints011\");\n \n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.GET | Acl.ADD );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.ROOT, DmtConstants.PRINCIPAL, Acl.ADD );\n\n Acl aclExpected = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.ADD | Acl.DELETE | Acl.REPLACE });\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class\n\t\t\t\t\t.getName(), DmtConstants.PRINCIPAL, \"*\"));\n\t\t\t\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL, \".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n\n session.close();\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n \n TestCase.assertTrue(\"Asserts that if the calling principal does not have Replace rights for the parent, \" +\n \t\t\"the destiny node must be set with an Acl having Add, Delete and Replace permissions.\",\n \t\taclExpected.equals(session.getNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "public static void main(String[] args) {\n int i = 3;\n boolean state;\n do {\n if (i == 0) {\n System.out.println(\"Acess denied\");\n break;\n }\n state = auth();\n if (!state) {\n i--;\n if (i >= 1) {\n System.out.println(\"You have \" + i + \" chances\");\n }\n } else {\n System.out.println(\"Acess granted\");\n }\n } while (!state);\n }", "@Test\n void testGetRegistrarForUser_noAccess_isNotAdmin() {\n expectGetRegistrarFailure(\n REAL_CLIENT_ID_WITHOUT_CONTACT,\n USER,\n \"user [email protected] doesn't have access to registrar NewRegistrar\");\n verify(lazyGroupsConnection).get();\n }", "private void testAclConstraints008() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints008\");\n //We need to set that a parent of the node does not have Replace else the acl of the root \".\" is gotten\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.DELETE );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\n tbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n session = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.LEAF_NODE,DmtSession.LOCK_TYPE_EXCLUSIVE);\n session.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\tDefaultTestBundleControl.failException(\"\",DmtException.class);\n\t\t} catch (DmtException e) {\t\n\t\t\tTestCase.assertEquals(\"Asserts that Replace access on a leaf node does not allow changing the ACL property itself.\",\n\t\t\t DmtException.PERMISSION_DENIED,e.getCode());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n tbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedLeft() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(11);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(0, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 12, 8, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 13, 0, true));\n }", "@Test\n public void testDeleteUserWhenOnlyUserInGroup5() throws Exception {\n /*\n * This test has the following setup:\n * - Collection A - Step 1: user B\n * - Collection A - Step 2: user C\n * - Collection A - Step 3: user B\n *\n * - Collection B - Step 1: user B\n *\n * This test will perform the following checks:\n * - create a workspace item in Collection A, and let it move to step 1\n * - claim it by user B\n * - delete user B\n * - verify the delete is refused\n * - remove user B from Col A - step 3\n * - remove user B from Col B - step 1\n * - remove user B from Col A - step 1\n * - Verify that the removal from Col A - step 1 is refused because user B has a claimed task in that\n * collection and no other user is present\n * - approve it by user B, and let it move to step 2\n * - remove user B from Col A - step 1\n * - verify it succeeds\n * - delete user B\n * - verify it succeeds\n * - approve it by user C\n * - verify that the item is archived\n */\n context.turnOffAuthorisationSystem();\n\n Community parent = CommunityBuilder.createCommunity(context).build();\n Collection collectionA = CollectionBuilder.createCollection(context, parent)\n .withWorkflowGroup(1, workflowUserB)\n .withWorkflowGroup(2, workflowUserC)\n .withWorkflowGroup(3, workflowUserB)\n .build();\n\n Collection collectionB = CollectionBuilder.createCollection(context, parent)\n .withWorkflowGroup(1, workflowUserB)\n .build();\n\n WorkspaceItem wsi = WorkspaceItemBuilder.createWorkspaceItem(context, collectionA)\n .withSubmitter(workflowUserA)\n .withTitle(\"Test item full workflow\")\n .withIssueDate(\"2019-03-06\")\n .withSubject(\"ExtraEntry\")\n .build();\n\n Workflow workflow = XmlWorkflowServiceFactory.getInstance().getWorkflowFactory().getWorkflow(collectionA);\n\n XmlWorkflowItem workflowItem = xmlWorkflowService.startWithoutNotify(context, wsi);\n MockHttpServletRequest httpServletRequest = new MockHttpServletRequest();\n httpServletRequest.setParameter(\"submit_approve\", \"submit_approve\");\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, CLAIM_ACTION);\n\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collectionA, FINAL_EDIT_ROLE, true);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collectionB, REVIEW_ROLE, true);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collectionA, REVIEW_ROLE, false);\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, REVIEW_ACTION);\n\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collectionA, REVIEW_ROLE, true);\n assertDeletionOfEperson(workflowUserB, true);\n\n\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, CLAIM_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, EDIT_ACTION);\n\n assertTrue(workflowItem.getItem().isArchived());\n\n }", "@Test\n public void testRuntimeGroupGrantExpansion() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.RECEIVE_SMS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n\n String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS};\n\n // request only one permission from the 'SMS' permission group at runtime,\n // but two from this group are <uses-permission> in the manifest\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // We should now have been granted both of the permissions from this group.\n assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.SEND_SMS));\n }", "private void testAclConstraints004() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints004\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tString expectedRootAcl = \"Add=*&Exec=*&Replace=*\";\n\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(expectedRootAcl));\n\t\t\tString rootAcl = session.getNodeAcl(\".\").toString();\n\t\t\tTestCase.assertEquals(\"Asserts that the root's ACL can be changed.\",expectedRootAcl,rootAcl);\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsession.setNodeAcl(\".\",new org.osgi.service.dmt.Acl(\"Add=*&Get=*&Replace=*\"));\n\t\t\t} catch (Exception e) {\n\t\t\t\ttbc.failUnexpectedException(e);\n\t\t\t} finally {\n\t\t\t\ttbc.closeSession(session);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testPostOverrideAccess() {\n // create user's discussion\n Discussion usersDiscussion = new Discussion(-11L, \"Users own discussion\");\n usersDiscussion.setTopic(topic);\n Post p = new Post(\"Post in user's discussion\");\n p.setDiscussion(usersDiscussion);\n\n // set permissions\n // can create and view posts in category\n PermissionData categoryPostPerms = new PermissionData(true, false, false, true);\n // has complete control over posts in his discussion\n PermissionData discussionPostPerms = new PermissionData(true, true, true, true);\n pms.configurePostPermissions(testUser, usersDiscussion, discussionPostPerms);\n pms.configurePostPermissions(testUser, category, categoryPostPerms);\n\n // override mock so that correct permissions are returned\n when(permissionDao.findForUser(any(IDiscussionUser.class), anyLong(), anyLong(), anyLong())).then(invocationOnMock -> {\n Long discusionId = (Long) invocationOnMock.getArguments()[1];\n if(discusionId != null && discusionId == -11L) {\n return testPermissions;\n } else {\n return testPermissions.subList(1,2);\n }\n });\n\n // test access control in category\n assertTrue(accessControlService.canViewPosts(discussion), \"Test user should be able to view posts in discussion!\");\n assertTrue(accessControlService.canAddPost(discussion), \"Test user should be able to add posts in discussion!\");\n assertFalse(accessControlService.canEditPost(post), \"Test user should not be able to edit posts in discussion!\");\n assertFalse(accessControlService.canRemovePost(post), \"Test user should not be able to delete posts from discussion!\");\n\n // test access in user's discussion\n assertTrue(accessControlService.canViewPosts(usersDiscussion), \"Test user should be able to view posts in his discussion!\");\n assertTrue(accessControlService.canAddPost(usersDiscussion), \"Test user should be able to add posts in his discussion!\");\n assertTrue(accessControlService.canEditPost(p), \"Test user should be able to edit post in his discussion!\");\n assertTrue(accessControlService.canRemovePost(p), \"Test user should be able to remove post from his discussion!\");\n }", "@Test\n\tvoid updateUserAddGroup() {\n\t\t// Pre condition, check the user \"wuser\", has not yet the group \"DIG\n\t\t// RHA\" we want to be added by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Pre condition, check the user \"wuser\", has no group visible by\n\t\t// \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult.getData().get(0).getGroups().size());\n\n\t\t// Pre condition, check the user \"wuser\", \"Biz Agency Manager\" is not\n\t\t// visible by \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager.getRecordsTotal());\n\t\tAssertions.assertEquals(0, usersFromOtherGroupManager.getData().get(0).getGroups().size());\n\n\t\t// Add a new valid group \"DIG RHA\" to \"wuser\" by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user = new UserOrgEditionVo();\n\t\tuser.setId(\"wuser\");\n\t\tuser.setFirstName(\"William\");\n\t\tuser.setLastName(\"User\");\n\t\tuser.setCompany(\"ing\");\n\t\tuser.setMail(\"[email protected]\");\n\t\tfinal List<String> groups = new ArrayList<>();\n\t\tgroups.add(\"DIG RHA\");\n\t\tgroups.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups);\n\t\tresource.update(user);\n\n\t\t// Check the group \"DIG RHA\" is added and\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\t\tAssertions.assertEquals(2, tableItem.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\", tableItem.getData().get(0).getGroups().get(0).getName());\n\t\tAssertions.assertEquals(\"DIG RHA\", tableItem.getData().get(0).getGroups().get(1).getName());\n\n\t\t// Check the user \"wuser\", still has no group visible by \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult2 = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult2.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult2.getData().get(0).getGroups().size());\n\n\t\t// Check the user \"wuser\", still has the group \"DIG RHA\" visible by\n\t\t// \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager2.getRecordsTotal());\n\t\tAssertions.assertEquals(\"DIG RHA\", usersFromOtherGroupManager2.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Restore the old state\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user2 = new UserOrgEditionVo();\n\t\tuser2.setId(\"wuser\");\n\t\tuser2.setFirstName(\"William\");\n\t\tuser2.setLastName(\"User\");\n\t\tuser2.setCompany(\"ing\");\n\t\tuser2.setMail(\"[email protected]\");\n\t\tfinal List<String> groups2 = new ArrayList<>();\n\t\tgroups2.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups2);\n\t\tresource.update(user);\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater2.getData().get(0).getGroups().get(0).getName());\n\t}", "private void testAclConstraints010() {\n DmtSession session = null;\n try {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints010\");\n tbc.cleanAcl(TestExecPluginActivator.INEXISTENT_NODE);\n \n session = tbc.getDmtAdmin().getSession(\".\",\n DmtSession.LOCK_TYPE_EXCLUSIVE);\n Acl aclParent = new Acl(new String[] { DmtConstants.PRINCIPAL },new int[] { Acl.REPLACE });\n session.setNodeAcl(TestExecPluginActivator.ROOT,\n aclParent);\n \n session.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n new Acl(new String[] { DmtConstants.PRINCIPAL },\n new int[] { Acl.EXEC }));\n TestExecPlugin.setAllUriIsExistent(false);\n session.copy(TestExecPluginActivator.INTERIOR_NODE,\n TestExecPluginActivator.INEXISTENT_NODE, true);\n TestExecPlugin.setAllUriIsExistent(true);\n TestCase.assertTrue(\"Asserts that the copied nodes inherit the access rights from the parent of the destination node.\",\n aclParent.equals(session.getEffectiveNodeAcl(TestExecPluginActivator.INEXISTENT_NODE)));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.cleanUp(session, TestExecPluginActivator.INTERIOR_NODE);\n tbc.cleanAcl(TestExecPluginActivator.ROOT);\n TestExecPlugin.setAllUriIsExistent(false);\n }\n }", "@Test\n public void ownerArgumentAddedIfOwnerIsNotInGroupWithUserPools() throws AmplifyException {\n final AuthorizationType mode = AuthorizationType.AMAZON_COGNITO_USER_POOLS;\n final String expectedOwner = FakeCognitoAuthProvider.USERNAME;\n\n // OwnerNotInGroup class uses combined owner and group-based auth,\n // but user is not in the read-restricted group.\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<OwnerNotInGroup> originalRequest =\n createRequest(OwnerNotInGroup.class, subscriptionType);\n GraphQLRequest<OwnerNotInGroup> modifiedRequest =\n decorator.decorate(originalRequest, mode);\n assertEquals(expectedOwner, getOwnerField(modifiedRequest));\n }\n }", "@Test\n public void shouldReturnOnErrorWithRequestNotPermittedUsingFlowable() {\n RateLimiterConfig rateLimiterConfig = RateLimiterConfig.custom()\n .limitRefreshPeriod(Duration.ofMillis(CYCLE_IN_MILLIS))\n .limitForPeriod(PERMISSIONS_RER_CYCLE)\n .timeoutDuration(TIMEOUT_DURATION)\n .build();\n\n // Create a RateLimiterRegistry with a custom global configuration\n RateLimiter rateLimiter = RateLimiter.of(LIMITER_NAME, rateLimiterConfig);\n\n assertThat(rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n Flowable.fromIterable(makeEleven())\n .lift(RateLimiterOperator.of(rateLimiter))\n .test()\n .assertError(RequestNotPermitted.class)\n .assertNotComplete()\n .assertSubscribed();\n\n assertThat(!rateLimiter.getPermission(rateLimiter.getRateLimiterConfig().getTimeoutDuration()));\n\n RateLimiter.Metrics metrics = rateLimiter.getMetrics();\n\n assertThat(metrics.getAvailablePermissions()).isEqualTo(0);\n assertThat(metrics.getNumberOfWaitingThreads()).isEqualTo(0);\n }", "@Test\n public void test120SimpleExclusion2() throws Exception {\n\t\tfinal String TEST_NAME = \"test120SimpleExclusion2\";\n TestUtil.displayTestTile(this, TEST_NAME);\n \n Task task = taskManager.createTaskInstance(TestSegregationOfDuties.class.getName() + \".\" + TEST_NAME);\n OperationResult result = task.getResult();\n \n // This should go well\n assignRole(USER_JACK_OID, ROLE_JUDGE_OID, task, result);\n \n try {\n\t // This should die\n\t assignRole(USER_JACK_OID, ROLE_PIRATE_OID, task, result);\n\t \n\t AssertJUnit.fail(\"Expected policy violation after adding pirate role, but it went well\");\n } catch (PolicyViolationException e) {\n \t// This is expected\n }\n \n unassignRole(USER_JACK_OID, ROLE_JUDGE_OID, task, result);\n assertAssignedNoRole(USER_JACK_OID, task, result);\n\t}", "@Test\n public void testDeleteUserWhenOnlyUserInGroup7() throws Exception {\n /*\n * This test has the following setup:\n * - Step 1: user B\n * - Step 2: user C\n * - Step 3: user B\n *\n * This test will perform the following checks:\n * - create a workspace item, and let it move to step 1\n * - delete user B\n * - verify the delete is refused\n * - remove user B from step 1\n * - verify the removal is refused\n * - remove user B from step 3\n * - verify the removal succeeds\n * - approve it by user B\n * - verify that the item moved to step 2\n * - remove user B from step 1\n * - delete user B\n * - verify the delete succeeds\n * - approve it by user C\n * - verify that the item is archived without any actions apart from removing user B\n */\n context.turnOffAuthorisationSystem();\n\n Community parent = CommunityBuilder.createCommunity(context).build();\n Collection collection = CollectionBuilder.createCollection(context, parent)\n .withWorkflowGroup(1, workflowUserB)\n .withWorkflowGroup(2, workflowUserC)\n .withWorkflowGroup(3, workflowUserB)\n .build();\n\n WorkspaceItem wsi = WorkspaceItemBuilder.createWorkspaceItem(context, collection)\n .withSubmitter(workflowUserA)\n .withTitle(\"Test item full workflow\")\n .withIssueDate(\"2019-03-06\")\n .withSubject(\"ExtraEntry\")\n .build();\n\n Workflow workflow = XmlWorkflowServiceFactory.getInstance().getWorkflowFactory().getWorkflow(collection);\n\n XmlWorkflowItem workflowItem = xmlWorkflowService.startWithoutNotify(context, wsi);\n MockHttpServletRequest httpServletRequest = new MockHttpServletRequest();\n httpServletRequest.setParameter(\"submit_approve\", \"submit_approve\");\n\n assertDeletionOfEperson(workflowUserB, false);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, REVIEW_ROLE, false);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, FINAL_EDIT_ROLE, true);\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, CLAIM_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, REVIEW_ACTION);\n\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, REVIEW_ROLE, true);\n assertDeletionOfEperson(workflowUserB, true);\n\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, CLAIM_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, EDIT_ACTION);\n\n assertTrue(workflowItem.getItem().isArchived());\n\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 }", "@Test\n public void shouldTestIsReorderValidWithUnbreakableFromNonGroupedRight() {\n this.gridLayer.setClientAreaProvider(new IClientAreaProvider() {\n\n @Override\n public Rectangle getClientArea() {\n return new Rectangle(0, 0, 1600, 250);\n }\n\n });\n this.gridLayer.doCommand(new ClientAreaResizeCommand(new Shell(Display.getDefault(), SWT.V_SCROLL | SWT.H_SCROLL)));\n\n // remove first group\n this.rowGroupHeaderLayer.removeGroup(0);\n\n // set all remaining groups unbreakable\n this.rowGroupHeaderLayer.setGroupUnbreakable(4, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(8, true);\n this.rowGroupHeaderLayer.setGroupUnbreakable(11, true);\n\n // reorder outside group valid\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 4, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 4, true));\n // in same group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 6, 7, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 7, 4, true));\n // in same group where adjacent group is also unbreakable\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 4, 8, true));\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 10, 8, true));\n // to any other group\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 5, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 6, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 1, 9, true));\n assertFalse(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 2, 13, true));\n // to start of table\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 0, true));\n // to end of last group\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 0, 13, false));\n // between unbreakable groups\n assertTrue(RowGroupUtils.isReorderValid(this.rowGroupHeaderLayer, 3, 8, true));\n }", "@Test\n void getAllClientIdWithAccess_throwingGroupCheck_stillWorks() {\n when(groupsConnection.isMemberOfGroup(any(), any())).thenThrow(new RuntimeException(\"blah\"));\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n USER, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n verify(groupsConnection).isMemberOfGroup(\"[email protected]\", SUPPORT_GROUP.get());\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(CLIENT_ID_WITH_CONTACT, OWNER);\n verify(lazyGroupsConnection).get();\n }", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "@Test\n void testGetRegistrarForUser_doesntExist_isAdmin() {\n expectGetRegistrarFailure(\n \"BadClientId\",\n GAE_ADMIN,\n \"Registrar BadClientId does not exist\");\n verifyNoInteractions(lazyGroupsConnection);\n }", "public StringBuilder adminDelGroupFlowCtrlRule(HttpServletRequest req,\n StringBuilder sBuffer,\n ProcessResult result) {\n // check and get operation info\n if (!WebParameterUtils.getAUDBaseInfo(req, false, null, sBuffer, result)) {\n WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());\n return sBuffer;\n }\n BaseEntity opEntity = (BaseEntity) result.getRetData();\n // get group list\n if (!WebParameterUtils.getStringParamValue(req,\n WebFieldDef.COMPSGROUPNAME, true, null, sBuffer, result)) {\n WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());\n return sBuffer;\n }\n Set<String> groupNameSet = (Set<String>) result.getRetData();\n // add or modify records\n GroupResCtrlEntity ctrlEntity;\n List<GroupProcessResult> retInfoList = new ArrayList<>();\n for (String groupName : groupNameSet) {\n ctrlEntity = defMetaDataService.getGroupCtrlConf(groupName);\n if (ctrlEntity != null\n && ctrlEntity.getFlowCtrlStatus() != EnableStatus.STATUS_DISABLE) {\n retInfoList.add(defMetaDataService.insertGroupCtrlConf(opEntity, groupName,\n TServerConstants.QRY_PRIORITY_DEF_VALUE, EnableStatus.STATUS_DISABLE,\n 0, TServerConstants.BLANK_FLOWCTRL_RULES, sBuffer, result));\n } else {\n result.setFullInfo(true, DataOpErrCode.DERR_SUCCESS.getCode(), \"Ok\");\n retInfoList.add(new GroupProcessResult(groupName, \"\", result));\n }\n }\n return buildRetInfo(retInfoList, sBuffer);\n }", "@Test\n public void testCheckExistsPermission() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE\");\n assertFalse(permissionManager.checkExists(permission2));\n }", "@Test\n public void testDeleteUserWhenOnlyUserInGroup4() throws Exception {\n /*\n * This test has the following setup:\n * - Step 1: user B\n * - Step 2: user C\n * - Step 3: user B\n *\n * This test will perform the following checks:\n * - create a workspace item, and let it move to step 1\n * - approve it by user B, and let it move to step 2\n * - approve it by user C, and let it move to step 3\n * - claim it by user B\n * - remove user B from step 1\n * - delete user B\n * - verify the delete is refused\n * - remove user B from step 3, verify that the removal is refused due to user B having a claimed task and there\n * being no other members in step 3\n * - approve it by user B\n * - delete user B\n * - verify the delete suceeds\n * - verify that the item is archived\n */\n context.turnOffAuthorisationSystem();\n\n Community parent = CommunityBuilder.createCommunity(context).build();\n Collection collection = CollectionBuilder.createCollection(context, parent)\n .withWorkflowGroup(1, workflowUserB)\n .withWorkflowGroup(2, workflowUserC)\n .withWorkflowGroup(3, workflowUserB)\n .build();\n\n WorkspaceItem wsi = WorkspaceItemBuilder.createWorkspaceItem(context, collection)\n .withSubmitter(workflowUserA)\n .withTitle(\"Test item full workflow\")\n .withIssueDate(\"2019-03-06\")\n .withSubject(\"ExtraEntry\")\n .build();\n\n Workflow workflow = XmlWorkflowServiceFactory.getInstance().getWorkflowFactory().getWorkflow(collection);\n\n XmlWorkflowItem workflowItem = xmlWorkflowService.startWithoutNotify(context, wsi);\n MockHttpServletRequest httpServletRequest = new MockHttpServletRequest();\n httpServletRequest.setParameter(\"submit_approve\", \"submit_approve\");\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, CLAIM_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, REVIEW_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, CLAIM_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, EDIT_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, FINAL_EDIT_STEP, CLAIM_ACTION);\n\n assertDeletionOfEperson(workflowUserB, false);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, REVIEW_ROLE, true);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, FINAL_EDIT_ROLE, false);\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, FINAL_EDIT_STEP,\n FINAL_EDIT_ACTION);\n\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collection, FINAL_EDIT_ROLE, true);\n assertDeletionOfEperson(workflowUserB, true);\n\n assertTrue(workflowItem.getItem().isArchived());\n\n }", "private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test\n\tvoid addUserToGroup() {\n\t\t// Pre condition\n\t\tAssertions.assertTrue(resource.findById(\"wuser\").getGroups().contains(\"Biz Agency Manager\"));\n\n\t\tresource.addUserToGroup(\"wuser\", \"biz agency manager\");\n\n\t\t// Post condition -> no change\n\t\tAssertions.assertTrue(resource.findById(\"wuser\").getGroups().contains(\"Biz Agency Manager\"));\n\t}", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "public void checkPermission (Socket socket, LogEvent evt) throws ISOException\n {\n if (specificIPPerms.isEmpty() && wildcardAllow == null && wildcardDeny == null)\n return;\n\n String ip= socket.getInetAddress().getHostAddress (); // The remote IP\n\n // first, check allows or denies for specific/whole IPs (no wildcards)\n Boolean specificAllow= specificIPPerms.get(ip);\n if (specificAllow == Boolean.TRUE) { // specific IP allow\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n\n } else if (specificAllow == Boolean.FALSE) { // specific IP deny\n throw new ISOException(\"access denied, ip=\" + ip);\n\n } else { // no specific match under the specificIPPerms Map\n // We check the wildcard lists, deny first\n if (wildcardDeny != null) {\n for (String wdeny : wildcardDeny) {\n if (ip.startsWith(wdeny)) {\n throw new ISOException (\"access denied, ip=\" + ip);\n }\n }\n }\n if (wildcardAllow != null) {\n for (String wallow : wildcardAllow) {\n if (ip.startsWith(wallow)) {\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n }\n }\n }\n\n // Reaching this point means that nothing matched our specific or wildcard rules, so we fall\n // back on the default permission policies and log type\n switch (ipPermLogPolicy) {\n case DENY_LOG: // only allows were specified, default policy is to deny non-matches and log the issue\n throw new ISOException (\"access denied, ip=\" + ip);\n // break;\n\n case ALLOW_LOG: // only denies were specified, default policy is to allow non-matches and log the issue\n evt.addMessage(\"access granted, ip=\" + ip);\n break;\n\n case DENY_LOGWARNING: // mix of allows and denies were specified, but the IP matched no rules!\n // so we adopt a deny policy but give a special warning\n throw new ISOException (\"access denied, ip=\" + ip + \" (WARNING: the IP did not match any rules!)\");\n // break;\n\n case ALLOW_NOLOG: // this is the default case when no allow/deny are specified\n // the method will abort early on the first \"if\", so this is here just for completion\n break;\n }\n\n }\n // we should never reach this point!! :-)\n }", "public abstract boolean checkPolicy(User user);", "@Test\n public void testSkipExecutionUserHasNotRoleCondition() {\n final String userWithoutRole = \"john-doh@localhost\";\n final String role = \"offline_access\";\n final String newFlowAlias = \"browser - allow skip\";\n\n Map<String, String> configMap = new HashMap<>();\n configMap.put(ConditionalRoleAuthenticatorFactory.CONDITIONAL_USER_ROLE, role);\n configMap.put(ConditionalRoleAuthenticatorFactory.CONF_NEGATE, \"false\");\n\n configureBrowserFlowWithSkipExecutionInConditionalFlow(newFlowAlias, ConditionalRoleAuthenticatorFactory.PROVIDER_ID, configMap);\n try {\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userWithoutRole);\n\n final String testUserWithoutRoleId = testRealm().users().search(userWithoutRole).get(0).getId();\n\n passwordPage.assertCurrent();\n passwordPage.login(\"password\");\n\n events.expectLogin()\n .user(testUserWithoutRoleId)\n .detail(Details.USERNAME, userWithoutRole)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n } finally {\n revertFlows(testRealm(), newFlowAlias);\n }\n }", "private void testAclConstraints005() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints005\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(\"Replace=*\"));\n\n\t\t\tsession.deleteNode(TestExecPluginActivator.INTERIOR_NODE);\n\n\t\t\tTestCase.assertNull(\"This test asserts that the Dmt Admin service synchronizes the ACLs with any change \"\n\t\t\t\t\t\t\t+ \"in the DMT that is made through its service interface\",\n\t\t\t\t\t\t\tsession.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "@Test\n void testGetRegistrarForUser_noAccess_isNotAdmin_notReal() {\n expectGetRegistrarFailure(\n OTE_CLIENT_ID_WITHOUT_CONTACT,\n USER,\n \"user [email protected] doesn't have access to registrar OteRegistrar\");\n verify(lazyGroupsConnection).get();\n }", "@Test\n\tpublic void testIsPermitted_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void checkAdminOrModerator(HttpServletRequest request, String uri)\n throws ForbiddenAccessException, ResourceNotFoundException {\n if (isAdministrator(request)) {\n return;\n }\n\n ModeratedItem moderatedItem = getModeratedItem(uri);\n if (moderatedItem == null) {\n throw new ResourceNotFoundException(uri);\n }\n\n String loggedInUser = getLoggedInUserEmail(request);\n if (moderatedItem.isModerator(loggedInUser)) {\n return;\n }\n\n throw new ForbiddenAccessException(loggedInUser);\n }", "private void testAclConstraints012() {\n try {\n int aclModifiers = Acl.class.getModifiers();\n TestCase.assertTrue(\"Asserts that Acl is a public final class\", aclModifiers == (Modifier.FINAL | Modifier.PUBLIC));\n \n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n }\n }", "@Test\n public void rejectRevoked() {\n /*\n * Given\n */\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n var revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * When\n */\n var rejected = revoked.reject(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(rejected)\n .as(\"The reject should not be successful\")\n .satisfies(a -> {\n assertThat(a.isFailure()).isTrue();\n });\n }", "private void testAclConstraints006() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints006\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tString expectedRootAcl = \"Add=*\";\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(expectedRootAcl));\n\n\t\t\tsession.renameNode(TestExecPluginActivator.INTERIOR_NODE,TestExecPluginActivator.RENAMED_NODE_NAME);\n\t\t\tTestExecPlugin.setAllUriIsExistent(true);\n\t\t\tTestCase.assertNull(\"Asserts that the method rename deletes the ACL of the source.\",session.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t\t\n\t\t\tTestCase.assertEquals(\"Asserts that the method rename moves the ACL from the source to the destiny.\",\n\t\t\t\t\texpectedRootAcl,session.getNodeAcl(TestExecPluginActivator.RENAMED_NODE).toString());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.RENAMED_NODE);\n\t\t\tTestExecPlugin.setAllUriIsExistent(false);\n\t\t}\n\t}", "private void checkLegal() {\n\tif (undoStack.size() == 2) {\n ArrayList<Integer> canGo = \n getMoves(undoStack.get(0), curBoard);\n boolean isLegal = false;\n int moveTo = undoStack.get(1);\n for (int i = 0; i < canGo.size(); i++) {\n if(canGo.get(i) == moveTo) {\n isLegal = true;\n break;\n }\n }\n\n if(isLegal) {\n curBoard = moveUnit(undoStack.get(0), \n moveTo, curBoard);\n clearStack();\n\n moveCount++;\n\t setChanged();\n\t notifyObservers();\n }\n\t}\n }", "private StringBuilder innAddOrUpdGroupFlowCtrlRule(HttpServletRequest req,\n StringBuilder sBuffer,\n ProcessResult result,\n boolean isAddOp) {\n // check and get operation info\n if (!WebParameterUtils.getAUDBaseInfo(req, isAddOp, null, sBuffer, result)) {\n WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());\n return sBuffer;\n }\n BaseEntity opEntity = (BaseEntity) result.getRetData();\n // get group list\n if (!WebParameterUtils.getStringParamValue(req,\n WebFieldDef.COMPSGROUPNAME, true, null, sBuffer, result)) {\n WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());\n return sBuffer;\n }\n final Set<String> groupNameSet = (Set<String>) result.getRetData();\n // get and valid qryPriorityId info\n if (!WebParameterUtils.getQryPriorityIdParameter(req,\n false, TBaseConstants.META_VALUE_UNDEFINED,\n TServerConstants.QRY_PRIORITY_MIN_VALUE, sBuffer, result)) {\n WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());\n return sBuffer;\n }\n int qryPriorityId = (int) result.getRetData();\n // get flowCtrlEnable's statusId info\n if (!WebParameterUtils.getFlowCtrlStatusParamValue(req,\n false, null, sBuffer, result)) {\n WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());\n return sBuffer;\n }\n EnableStatus flowCtrlEnable = (EnableStatus) result.getRetData();\n // get and flow control rule info\n int flowRuleCnt = WebParameterUtils.getAndCheckFlowRules(req,\n (isAddOp ? TServerConstants.BLANK_FLOWCTRL_RULES : null), sBuffer, result);\n if (!result.isSuccess()) {\n WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());\n return sBuffer;\n }\n String flowCtrlInfo = (String) result.getRetData();\n // add or modify records\n GroupResCtrlEntity ctrlEntity;\n List<GroupProcessResult> retInfoList = new ArrayList<>();\n for (String groupName : groupNameSet) {\n ctrlEntity = defMetaDataService.getGroupCtrlConf(groupName);\n if (ctrlEntity == null) {\n if (isAddOp) {\n retInfoList.add(defMetaDataService.insertGroupCtrlConf(opEntity, groupName,\n qryPriorityId, flowCtrlEnable, flowRuleCnt, flowCtrlInfo, sBuffer, result));\n } else {\n result.setFailResult(DataOpErrCode.DERR_NOT_EXIST.getCode(),\n DataOpErrCode.DERR_NOT_EXIST.getDescription());\n retInfoList.add(new GroupProcessResult(groupName, \"\", result));\n }\n } else {\n retInfoList.add(defMetaDataService.insertGroupCtrlConf(opEntity, groupName,\n qryPriorityId, flowCtrlEnable, flowRuleCnt, flowCtrlInfo, sBuffer, result));\n }\n }\n return buildRetInfo(retInfoList, sBuffer);\n }", "private List<IPSAcl> testSave(List<IPSAcl> aclList) throws Exception\n {\n // modify and add something\n List<IPSGuid> aclGuids = new ArrayList<IPSGuid>();\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n aclGuids.add(aclImpl.getGUID());\n aclImpl.setDescription(\"modified\");\n for (IPSAclEntry entry : aclImpl.getEntries())\n entry.addPermission(PSPermissions.DELETE);\n\n PSAclEntryImpl newEntry = new PSAclEntryImpl();\n newEntry.setPrincipal(new PSTypedPrincipal(\"test1\",\n PrincipalTypes.ROLE));\n newEntry.addPermission(PSPermissions.DELETE);\n aclImpl.addEntry(newEntry);\n }\n\n IPSAclService aclService = PSAclServiceLocator.getAclService();\n aclService.saveAcls(aclList);\n List<IPSAcl> loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n // check basic roundtrip\n aclService.saveAcls(aclList);\n loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n // remove a permission\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n for (IPSAclEntry entry : aclImpl.getEntries())\n {\n entry.removePermission(PSPermissions.DELETE);\n assertFalse(entry.checkPermission(PSPermissions.DELETE));\n }\n }\n\n aclService.saveAcls(aclList);\n loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n List<IPSAclEntry> entries = new ArrayList<IPSAclEntry>(\n aclImpl.getEntries());\n for (IPSAclEntry entry : entries)\n {\n if (!aclImpl.isOwner(entry.getPrincipal()))\n {\n aclImpl.removeEntry((PSAclEntryImpl)entry);\n assertTrue(aclImpl.findEntry(entry.getPrincipal()) == null);\n }\n }\n }\n\n aclService.saveAcls(aclList);\n loadList = aclService.loadAcls(aclGuids);\n assertEquals(aclList, loadList);\n\n return loadList;\n }", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "@Test\n public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n // Request the permission and allow it\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Make sure the permission is granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n new String[] {Manifest.permission.READ_CALENDAR}, new boolean[] {true});\n }" ]
[ "0.81757975", "0.65573657", "0.6312244", "0.63118494", "0.6287425", "0.6283195", "0.6096306", "0.601234", "0.5781794", "0.5753684", "0.57250446", "0.5720548", "0.5713", "0.5636782", "0.5612284", "0.5552268", "0.55160344", "0.5462525", "0.544429", "0.53936064", "0.5316066", "0.5308907", "0.5307631", "0.5236025", "0.5235027", "0.52262163", "0.5224244", "0.5213248", "0.52012175", "0.51894724", "0.5182141", "0.5164485", "0.5151067", "0.5146791", "0.5134506", "0.5123071", "0.5088746", "0.50853014", "0.5080141", "0.5047889", "0.5019852", "0.5016641", "0.49651697", "0.49518308", "0.4949372", "0.4948549", "0.49204746", "0.4918854", "0.49095947", "0.49044886", "0.4896518", "0.48871562", "0.48731145", "0.48563692", "0.48437744", "0.48297817", "0.4816555", "0.4815578", "0.4808365", "0.48059374", "0.4799175", "0.47911537", "0.47909597", "0.478687", "0.47866103", "0.47782823", "0.47776303", "0.47741652", "0.4766407", "0.47621387", "0.47570607", "0.47548854", "0.47524792", "0.4751595", "0.47502884", "0.4749415", "0.47464886", "0.47407508", "0.4736368", "0.47347963", "0.47337124", "0.4731699", "0.47251162", "0.4721521", "0.47205088", "0.4720244", "0.47187752", "0.47168607", "0.47156832", "0.47039947", "0.46965805", "0.46942663", "0.46937248", "0.46926653", "0.46896166", "0.4683426", "0.46811333", "0.46634308", "0.4659836", "0.4658928" ]
0.85616773
0
Converts integer to string.
@Override public String convert(Long input) { return String.valueOf(input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String NumberToString(int number){return \"\"+number;}", "public static String integerToString(Integer i) {\n String ret = \"\";\n if (i!=null)\n ret = i.toString();\n\n return ret;\n }", "protected String parseIntToString(int value) {\n return String.valueOf(value);\n }", "public static String IntToString(int IntValue){\n Integer integer = new Integer(IntValue);\n return integer.toString(); \n }", "public static String intToString(int n) { \n\t if (n == 0) return \"0\";\n\t StringBuilder sb = new StringBuilder();\n\t while (n > 0) { \n\t int curr = n % 10;\n\t n = n/10;\n\t sb.append(curr);\n\t }\n\t String s = sb.substring(0);\n\t sb = new StringBuilder();\n\t for (int i = s.length() -1; i >= 0; i--) { \n\t sb.append(s.charAt(i));\n\t }\n\t return sb.substring(0);\n\t}", "String toStringAsInt();", "public String convertToString(int i) {\n\t\tswitch (i) {\n\t\t\tcase 0: return \"\";\n\t\t\tcase 1: return \"1\";\n\t\t\tcase 2: return \"2\";\n\t\t\tcase 3: return \"3\";\n\t\t\tcase 4: return \"4\";\n\t\t\tcase 5: return \"5\";\n\t\t\tcase 6: return \"6\";\n\t\t\tcase 7: return \"7\";\n\t\t\tcase 8: return \"8\";\n\t\t\tcase 9: return \"9\";\n\t\t\tcase 10: return \"A\";\n\t\t\tcase 11: return \"B\";\n\t\t\tcase 12: return \"C\";\n\t\t\tcase 13: return \"D\";\n\t\t\tcase 14: return \"E\";\n\t\t\tcase 15: return \"F\";\n\t\t\tcase 16: return \"G\";\n\t\t\tcase 17: return \"H\";\n\t\t\tcase 18: return \"I\";\n\t\t\tcase 19: return \"J\";\n\t\t\tcase 20: return \"K\";\n\t\t\tcase 21: return \"L\";\n\t\t\tcase 22: return \"M\";\n\t\t\tcase 23: return \"N\";\n\t\t\tcase 24: return \"O\";\n\t\t\tcase 25: return \"P\";\n\t\t\tcase 26: return \"Q\";\n\t\t\tcase 27: return \"R\";\n\t\t\tcase 28: return \"S\";\n\t\t\tcase 29: return \"T\";\n\t\t\tcase 30: return \"U\";\n\t\t\tcase 31: return \"V\";\n\t\t\tcase 32: return \"W\";\n\t\t\tcase 33: return \"X\";\n\t\t\tcase 34: return \"Y\";\n\t\t\tcase 35: return \"Z\";\n\t\t\tdefault: System.out.println(\"The number is too high.\");\n\t\t return \"0\";\n\t\t}\n }", "public String getNumberAsString() {\n if(number < 10)\n return \"0\".concat(Integer.toString(number));\n else\n return Integer.toString(number);\n }", "@Override\n public String toString(Integer value) {\n if (value == null) {\n return \"\";\n }\n return (Integer.toString(((Integer) value).intValue()));\n }", "public String\ttoString() { return Integer.toString(value); }", "private static String str(long i) {\n return String.valueOf(i);\n }", "private static String str(long i) {\n return String.valueOf(i);\n }", "public String toString( )\n {\n return Integer.toString( value );\n }", "private String intString(int n){\r\n String s=\"\";\r\n if(n>9){\r\n s+=(char)(Math.min(n/10,9)+'0');\r\n }\r\n s+=(char)(n%10+'0');\r\n return s; \r\n }", "public String toString () {\n return Integer.toString (intVal);\n }", "public String convertToString(int anInt)\n \t{\n \t\treturn Integer.toString(anInt); // return String version of the portnumber.\n \t}", "public static String idToString(int id) {\n return Integer.toString(id, Character.MAX_RADIX);\n }", "public static String getXMLInteger(Integer integer) {\n\t\t return DatatypeConverter.printInt(integer);\n\t }", "public static String toUI(int value) {\n return toUI(value, SCALE);\n }", "public String convert(int num) {\n if (num == 0)\n return ZERO_STRINGS;\n\n long tmpNum = num;\n StringBuilder buffer = new StringBuilder();\n if (tmpNum < 0) { // Negative number\n tmpNum *= -1;\n buffer.append(\"minus \");\n }\n\n for (int i : NUMERIC_INDEXES) {\n long pow = (int)Math.pow(10, i);\n if (tmpNum >= pow) {\n long numberAtIndex = tmpNum/pow; // The number at position 3\n tmpNum -= numberAtIndex*pow;\n buffer.append(convert((int)numberAtIndex)).append(\" \");\n buffer.append(NUMERIC_STRINGS.get(pow)).append(\" \");\n }\n }\n if (tmpNum >= 20) { // second number in the integer\n long numberAtIndex = ((tmpNum % 100)/10)*10; // The number at position 2\n tmpNum -= numberAtIndex;\n buffer.append(NUMERIC_STRINGS.get(numberAtIndex)).append(\" \");\n }\n if (NUMERIC_STRINGS.containsKey(tmpNum))\n buffer.append(NUMERIC_STRINGS.get(tmpNum));\n return buffer.toString().trim();\n }", "public static String FormatNumber(int i) {\n\t\ttry {\n\t\t\tif (i >= 0 && i < 10)\n\t\t\t\treturn \"0\" + i;\n\t\t\telse\n\t\t\t\treturn \"\" + i;\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public String toString()\n {\n String string = new Integer(this.getValue()).toString();\n return string; \n }", "public String toString() {\n \t\tint bn = 0;\n \t\tString s = String.valueOf(bn);\n\t\t\treturn s;\n\t\t}", "public String intToString(String s) {\r\n int x = s.length();\r\n char[] bytes = new char[4];\r\n for(int i = 3; i > -1; --i) {\r\n bytes[3 - i] = (char) (x >> (i * 8) & 0xff);\r\n }\r\n return new String(bytes);\r\n }", "public String covertIng(int num) {\n\t\tchar[] digits = new char[10];\r\n\t\t\r\n\t\tboolean sign = num >= 0 ? true : false;\r\n\t\tint idx = 0;\r\n\t\t\r\n\t\twhile(idx <digits.length){\r\n\t\t\tdigits[idx] = toChar(num % 10);\r\n\t\t\tnum = num /10;\r\n\t\t\tif(num== 0)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tidx++;\r\n\t\t}\r\n\t\t\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tif(!sign)\r\n\t\t\tsb.append('-');\r\n\t\t\r\n\t\twhile(idx>=0){\r\n\t\t\tsb.append(digits[idx--]);\r\n\t\t}\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t\t\r\n\t}", "String convert(int number) {\n final Supplier<IntStream> factors = () -> IntStream.of(3, 5, 7)\n .filter(factor -> number % factor == 0);\n\n if (factors.get().count() == 0) {\n return Integer.toString(number);\n }\n\n return factors.get().mapToObj(factor -> {\n switch (factor) {\n case 3:\n return \"Pling\";\n case 5:\n return \"Plang\";\n case 7:\n return \"Plong\";\n default:\n return \"\";\n }\n }).collect(Collectors.joining());\n }", "public static String intToBinaryString(int value) {\r\n String bin = \"00000000000000000000000000000000\" + Integer.toBinaryString(value);\r\n\r\n return bin.substring(bin.length() - 32, bin.length() - 24)\r\n + \" \"\r\n + bin.substring(bin.length() - 24, bin.length() - 16)\r\n + \" \"\r\n + bin.substring(bin.length() - 16, bin.length() - 8)\r\n + \" \"\r\n + bin.substring(bin.length() - 8, bin.length());\r\n }", "public static String intToString(int num, int digits) {\n if (BuildConfig.DEBUG && !(digits > 0))\r\n \t\tthrow new AssertionError(\"Campo digits non valido\");\r\n\r\n // create variable length array of zeros\r\n char[] zeros = new char[digits];\r\n Arrays.fill(zeros, '0');\r\n // format number as String\r\n DecimalFormat df = new DecimalFormat(String.valueOf(zeros));\r\n\r\n return df.format(num);\r\n }", "public String covertToAscii(int num){\n\t\t\n\t\tString result=\"\";\n\t\t//int i=result.length -1;\n\t\tint rem;\n\t\tif(num==0){\n\t\t\treturn \"0\";\n\t\t}\n\t\tboolean negative=(num<0);\n\t\tif(negative){\n\t\t\tnum=0-num;\n\t\t}\n\t\t//works for integers with base 10\n\t\twhile(num>0){\n\t\t\trem=num%10;\n\t\t\tnum=num/10;\n\t\t\tresult=(char)(rem+'0')+result;\n\t\t}\n\t\tif(negative){\n\t\t\tresult=\"-\"+result;\n\t\t}\n\t\treturn result;\n\t}", "public final static String toString(final int id) {\n\t\tfinal StringBuffer result = new StringBuffer(4);\n\n\t\treturn toString(id, result);\n\t}", "private static String twoDigitString(long number) {\n if (number == 0) {\n return \"00\";\n }\n if (number / 10 == 0) {\n return \"0\" + number;\n }\n return String.valueOf(number);\n }", "public static String intToNumeral(int number)\n\t{\n\t\tString numeral = \"\";\n\t\twhile(number > 0)\n\t\t{\n\t\t\tif(number >= 1000)\n\t\t\t{\n\t\t\t\tnumber -= 1000;\n\t\t\t\tnumeral = numeral + \"M\";\n\t\t\t}\n\t\t\telse if(number >= 900)\n\t\t\t{\n\t\t\t\tnumber -= 900;\n\t\t\t\tnumeral = numeral + \"CM\";\n\t\t\t}\n\t\t\telse if(number >= 500)\n\t\t\t{\n\t\t\t\tnumber -= 500;\n\t\t\t\tnumeral = numeral + \"D\";\n\t\t\t}\n\t\t\telse if(number >= 400)\n\t\t\t{\n\t\t\t\tnumber -= 400;\n\t\t\t\tnumeral = numeral + \"DC\";\n\t\t\t}\n\t\t\telse if(number >= 100)\n\t\t\t{\n\t\t\t\tnumber -= 100;\n\t\t\t\tnumeral = numeral + \"C\";\n\t\t\t}\n\t\t\telse if(number >= 90)\n\t\t\t{\n\t\t\t\tnumber -= 90;\n\t\t\t\tnumeral = numeral + \"XC\";\n\t\t\t}\n\t\t\telse if(number >= 50)\n\t\t\t{\n\t\t\t\tnumber -= 50;\n\t\t\t\tnumeral = numeral + \"L\";\n\t\t\t}\n\t\t\telse if(number >= 40)\n\t\t\t{\n\t\t\t\tnumber -= 40;\n\t\t\t\tnumeral = numeral + \"XL\";\n\t\t\t}\n\t\t\telse if(number >= 10)\n\t\t\t{\n\t\t\t\tnumber -= 10;\n\t\t\t\tnumeral = numeral + \"X\";\n\t\t\t}\n\t\t\telse if(number >= 9)\n\t\t\t{\n\t\t\t\tnumber -= 9;\n\t\t\t\tnumeral = numeral + \"IX\";\n\t\t\t}\n\t\t\telse if(number >= 5)\n\t\t\t{\n\t\t\t\tnumber -= 5;\n\t\t\t\tnumeral = numeral + \"V\";\n\t\t\t}\n\t\t\telse if(number >= 4)\n\t\t\t{\n\t\t\t\tnumber -= 4;\n\t\t\t\tnumeral = numeral + \"IV\";\n\t\t\t}\n\t\t\telse if(number >= 1)\n\t\t\t{\n\t\t\t\tnumber -= 1;\n\t\t\t\tnumeral = numeral + \"I\";\n\t\t\t}\n\t\t\tif(number < 0) return \"ERROR\";\n\t\t}\n\t\treturn numeral;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn Integer.toUnsignedString(value);\n\t}", "public String valueAsText() {\n return \"\" + this.intValue;\n }", "private String feelZero(Integer i){\n if( i < 10 ){\n return \"0\"+i;\n }else{\n return Integer.toString(i);\n }\n }", "public static String randInt(){\n return String.valueOf(rand.nextInt(10));\n }", "public void toStr()\r\n {\r\n numar = Integer.toString(read());\r\n while(numar.length() % 3 != 0){\r\n numar = \"0\" + numar; //Se completeaza cu zerouri pana numarul de cifre e multiplu de 3.\r\n }\r\n }", "public String toString() {\n return Integer.toString(name);\n }", "String intWrite();", "private static String convertP(int value)\n {\n String output = Integer.toBinaryString(value);\n\n for(int i = output.length(); i < 6; i++) // pad zeros\n output = \"0\" + output;\n\n return output;\n }", "public String formatAs32BitString(int i) {\r\n\t\tString retVal = Integer.toBinaryString(i);\r\n\t\tif(i >= 0) {\r\n\t\t\tretVal = \"00000000000000000000000000000000\" + retVal;\r\n\t\t\tretVal = retVal.substring(retVal.length()-32);\r\n\t\t}\r\n\t\treturn retVal;\r\n\t}", "@Override\n\tpublic String str(int number) {\n\t\treturn \"C3(\"+number+\")\";\n\t}", "public String toString() {\n\t\tif(useNum < 10) {\n\t\t\treturn \"0\" + useNum + useStr + \" \" + idNum;\n\t\t} else {\n\t\t\treturn useNum + useStr + \" \" + idNum;\n\t\t}\n\t}", "public String intToString(int nums[]) {\n\t\tString empty = \"\";\n\t\tfor(int i = nums.length-1; i >= 0; i--) {\n\t\t\tempty += Integer.toString(nums[(nums.length-1) - i]);\n\t\t}\n\t\treturn empty;\n\t}", "public static String intToHex(int i) {\n\n return Integer.toHexString(i);\n\n }", "public static String toString(final Cell myCell) {\n return Integer.toString(Utils.toInt(myCell));\n }", "private String priorityIntToString(int priority) {\n switch (priority) {\n case 0:\n return \"High Priority\";\n case 1:\n return \"Medium Priority\";\n case 2:\n return \"Low Priority\";\n default:\n return \"None Selected\";\n }\n }", "public static String ipIntegerToString(int ip) {\n final String[] parts2 = new String[4];\n\n for (int i = 0; i < 4; i++) {\n parts2[3 - i] = Integer.toString (ip & 0xff);\n ip >>= 8;\n }\n\n return parts2[0] + '.' + parts2[1] + '.' + parts2[2] + '.' + parts2[3];\n }", "@Override\n public String toString() {\n String num = \"\";\n\n if (!isPositive) {\n // Add '-' if the number is negative\n num = num.concat(\"-\");\n }\n\n // Add all the digits in reverse order\n for (int i = number.size() - 1; i >= 0; --i) {\n num = num.concat(number.get(i).toString());\n }\n\n return num;\n }", "public static String randomNumberString() {\n\r\n Random random = new Random();\r\n int i = random.nextInt(999999);\r\n\r\n\r\n return String.format(\"%06d\", i);\r\n }", "public static String createString(int integer){\n StringBuilder result = new StringBuilder(\"\");\n\n for(int i = 0; i < 20; i++){\n result.append(integer);\n }\n\n result.append(\"\\n\");\n return result.toString();\n }", "public static String inputToString(int input) {\n\t\tswitch (input) {\n\t\tcase 1:\n\t\t\treturn \"animated\";\n\t\tcase 2:\n\t\t\treturn \"drama\";\n\t\tcase 3:\n\t\t\treturn \"horror\";\n\t\tcase 4:\n\t\t\treturn \"scifi\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}", "public String convert(int input) {\n\n\t\tStringBuilder result = new StringBuilder();\n\n\t\tfor(FBQValues enumValue: FBQValues.values()) {\n\t\t\tresult.append(enumValue.replaceDivisible(input));\n\t\t}\n\n\t\treplaceCharacters(input, result);\n\n\t\tif(result.length() == 0) {\n\t\t\tresult.append(Integer.toString(input));\n\t\t}\n\n\t\treturn result.toString();\n\t}", "public String toBitString (int i) {\n\tint[] result = new int[64];\n\tint counter = 0;\n\twhile (i > 0) {\n\t\tresult[counter] = i % 2;\n\t\ti /= 2;\n\t\tcounter++;\n\t}\n\tString answer = \"\";\n\tfor (int j = 0; j < counter; j++)\n\t\tanswer += \"\" + result[j];\n\treturn answer;\t\n}", "public static String makeDayString(int day) { return ((day < 10) ? \"0\" + day : \"\" + day); }", "private String convertNumOfItemInIntToString(long numberOfItems) {\n if (numberOfItems <= 1) {\n return Long.toString(numberOfItems) + \" item\";\n } else {\n return Long.toString(numberOfItems) + \" items\";\n }\n }", "public static String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(9999999);\n\n // this will convert any number sequence into 6 character.\n return String.format(\"%07d\", number);\n }", "public String fieldIdToString() {\r\n\t\treturn new String(String.format(\"%02d\", getID()));\r\n\t}", "@Override\n public String toString() {\n StringBuilder buff = new StringBuilder();\n\n buff.append(this.getClass().getSimpleName()).append(\": \");\n buff.append(\" int: \");\n buff.append(this.intValue);\n buff.append(\" \");\n buff.append(super.toString());\n\n return buff.toString();\n }", "public static String cardIntToString(int k) {\n String temp = \"\";\n switch (k) {\n case 11:\n temp = \"Jack\";\n break;\n case 12:\n temp = \"Queen\";\n break;\n case 13:\n temp = \"King\";\n break;\n case 14:\n temp = \"Ace\";\n break;\n\n default:\n temp = String.valueOf(k);\n break;\n }\n return temp;\n }", "private String number() {\n switch (this.value) {\n case 1:\n return \"A\";\n case 11:\n return \"J\";\n case 12:\n return \"Q\";\n case 13:\n return \"K\";\n default:\n return Integer.toString(getValue());\n }\n }", "public static String getString(int value){\n for (ItemAttributeEnum item : ItemAttributeEnum.values()) {\n if (value == item.intValue){\n return item.toString();\n }\n }\n return null;\n }", "private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }", "public static void main(String args[]){\nSystem.out.println(Integer.toOctalString(8)); \nSystem.out.println(Integer.toOctalString(19)); \nSystem.out.println(Integer.toOctalString(81)); \n}", "public static String prepareEmptyInt(Object object) {\n return (object == null ? \"-1\" : object.toString());\n }", "@Override\n public String toString() {\n return number.toString();\n }", "public String toString(){\r\n return \"(\" + num + \")\";\r\n }", "public static String toString(int n, int base) {\n\t // special case\n\t if (n == 0) return \"0\";\n\n\t String digits = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t String s = \"\";\n\t while (n > 0) {\n\t int d = n % base;\n\t s = digits.charAt(d) + s;\n\t n = n / base;\n\t }\n\t return s;\n\t }", "public String getString() { \n return new BigInteger(this.value).toString();\n }", "public String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(899999) + 100000;\n\n // this will convert any number sequence into 6 character.\n String formatted_code = String.format(\"%06d\", number);\n\n return formatted_code;\n }", "public String toString()\n\t{\n\t\treturn Integer.toString(bitHolder.getValue());\n\t}", "static final String typeToString(int type) {\n switch (type) {\n case (UNKNOWN): return \"UNKNOWN\";\n case (STRING_FIELD): return \"STRING_FIELD\";\n case (NUMERIC_FIELD): return \"NUMERIC_FIELD\";\n case (DATE_FIELD): return \"DATE_FIELD\";\n case (TIME_FIELD): return \"TIME_FIELD\";\n case (DATE_TIME_FIELD): return \"DATE_TIME_FIELD\";\n case (TIMESTAMP_FIELD): return \"TIMESTAMP_FIELD\";\n default: return \"NOT_DEFINED\";\n }\n }", "private String _toString(IntTreeNode root) {\r\n if (root == null) {\r\n return \"\";\r\n } else {\r\n String leftToString = _toString(root.left);\r\n String rightToString = _toString(root.right);\r\n return leftToString + rightToString + \" \" + root.data;\r\n } \r\n }", "public static String m106642a(Integer num) {\n String str = \"\";\n switch (num.intValue()) {\n case 0:\n return \"HOME\";\n case 1:\n return \"DISCOVER\";\n case 2:\n return \"PUBLISH\";\n case 3:\n return \"NOTIFICATION\";\n case 4:\n return \"USER\";\n case 5:\n return \"DISCOVER\";\n default:\n return str;\n }\n }", "public String convert(int num) throws InvalidInputException {\r\n \t\t//Validate input number\r\n\t\tvalidateInput(num);\r\n\t\t\r\n\t\t//check if number is less than or equals to 999\r\n\t\tif(num <= THREE_DIGIT_MAX_VALUE) {\r\n\t\t\treturn convert999(num);\r\n\t\t}\r\n\t\t\r\n\t\t//store the result\r\n\t\tStringBuilder str=new StringBuilder(\"\");\r\n\t\t\r\n\t\tint t=0;\r\n\t\t\r\n\t\t// Iterate while num is not zero\r\n\t\twhile(num > ZERO) {\r\n\t\t\t\r\n\t\t\t// check if number is divisible by 1 thousand\r\n\t\t\tif(num % ONE_THOUSAND != ZERO) {\r\n\t\t\t\tStringBuilder temp = new StringBuilder(\"\");\r\n\t\t\t\ttemp.append(convert999(num % ONE_THOUSAND));\r\n\t\t\t\t\r\n\t\t\t\t//execute below block if number is >=1000\r\n\t\t\t\tif(t>0) {\r\n\t\t\t\t\ttemp.append(SPACE+bigNames[t]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(str.length()==0) {\r\n\t\t\t\t\tstr=temp;\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttemp.append(SPACE+str);\r\n\t\t\t\t\tstr=temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\tnum/= ONE_THOUSAND;\r\n\t\tt++;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn str.toString();\r\n\t}", "public String toString(int i) \r\n\t\t{\r\n\t\t\treturn(getCodiceID()+\" \"+getPesoA()+\" \"+getDataA()+\" \"+getPesoV()+\" \"+getDataV());\r\n\t\t}", "private String toImmediate(int val) {\n\t\tString field = \"\";\n\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tfield = (val % 2) + field;\n\t\t\tval /= 2;\n\t\t}\n\t\treturn field;\n\t}", "public void print(int someInt) {\r\n print(someInt + \"\");\r\n }", "String intToBinaryNumber(int n){\n return Integer.toBinaryString(n);\n }", "public static String toBinaryString(int number) {\r\n\t\tString result = \"\";\r\n\t\tint origin = Math.abs(number);\r\n\r\n\t\twhile (origin > 0) {\r\n\t\t\tif (origin % 2 == 0)\r\n\t\t\t\tresult = \"0\" + result;\r\n\t\t\telse\r\n\t\t\t\tresult = \"1\" + result;\r\n\t\t\torigin = origin / 2;\r\n\t\t}\r\n\t\twhile (result.length() < 16)\r\n\t\t\tresult = \"0\" + result;\r\n\r\n\t\tif (number > 0)\r\n\t\t\treturn result;\r\n\t\telse {\r\n\t\t\tString result2 = \"\";\r\n\t\t\tfor (int i = 0; i < result.length(); i++)\r\n\t\t\t\tresult2 += result.charAt(i) == '1' ? \"0\" : \"1\";\r\n\t\t\tchar[] result2Array = result2.toCharArray();\r\n\t\t\tfor (int i = result2Array.length - 1; i >= 0; i--)\r\n\t\t\t\tif (result2Array[i] == '0') {\r\n\t\t\t\t\tresult2Array[i] = '1';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else\r\n\t\t\t\t\tresult2Array[i] = '0';\r\n\t\t\tresult2 = \"\";\r\n\t\t\tfor (int i = 0; i < result2Array.length; i++)\r\n\t\t\t\tresult2 += String.valueOf(result2Array[i]);\r\n\t\t\treturn result2;\r\n\t\t}\r\n\t}", "public String getString(int paramInt) {\n }", "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "static String numToStr(int type)\r\n\t{\r\n\t\tif (type==MUTEX)\r\n\t\t\treturn \"Mutex\";\r\n\t\telse if (type==SEMAPHORE)\r\n\t\t\treturn \"Semaphore\";\r\n\t\telse if (type==SIGNAL)\r\n\t\t\treturn \"Signal\";\r\n\t\telse\r\n\t\t\treturn \"Unknown\";\r\n\t}", "@Override\r\n public String toString(){\r\n return Integer.toString(node);\r\n }", "private static String NUmberToEnglishString(long number) {\n\t\tString s;\r\n\t\tif(number<0)\r\n\t\t{\r\n\t\t\ts=\"error\";\r\n\t\t\treturn s;\r\n\t\t}\r\n\t\tif(number<20)\r\n\t\t{\r\n\t\t\tswitch ((int)number)\r\n\t\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t\ts=\"zero\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 1:\r\n\t\t\t\ts=\"one\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 2:\r\n\t\t\t\ts=\"two\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 3:\r\n\t\t\t\ts=\"three\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 4:\r\n\t\t\t\ts=\"four\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 5:\r\n\t\t\t\ts=\"five\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 6:\r\n\t\t\t\ts=\"six\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 7:\r\n\t\t\t\ts=\"seven\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 8:\r\n\t\t\t\ts=\"eight\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 9:\r\n\t\t\t\ts=\"nine\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 10:\r\n\t\t\t\ts=\"ten\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 11:\r\n\t\t\t\ts=\"eleven\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 12:\r\n\t\t\t\ts=\"twelve\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 13:\r\n\t\t\t\ts=\"thirteen\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 14:\r\n\t\t\t\ts=\"fourteen\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 15:\r\n\t\t\t\ts=\"fifteen\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 16:\r\n\t\t\t\ts=\"sixteen\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 17:\r\n\t\t\t\ts=\"seventeen\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 18:\r\n\t\t\t\ts=\"eighteen\";\r\n\t\t\t\treturn s;\r\n\t\t\tcase 19:\r\n\t\t\t\ts=\"nineteen\";\r\n\t\t\t\treturn s;\r\n\t\t\tdefault:\r\n\t\t\t\ts=\"error\";\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(number<100) //21-99\r\n\t\t{\r\n\t\t\tif (number % 10 == 0) //20,30,40,...90的输出\r\n\t\t\t{\r\n\t\t\t\tswitch ((int)number)\r\n\t\t\t\t{\r\n\t\t\t\tcase 20:\r\n\t\t\t\t\ts=\"twenty\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\tcase 30:\r\n\t\t\t\t\ts=\"thirty\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\tcase 40:\r\n\t\t\t\t\ts=\"forty\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\tcase 50:\r\n\t\t\t\t\ts=\"fifty\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\tcase 60:\r\n\t\t\t\t\ts=\"sixty\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\tcase 70:\r\n\t\t\t\t\ts=\"seventy\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\tcase 80:\r\n\t\t\t\t\ts=\"eighty\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\tcase 90:\r\n\t\t\t\t\ts=\"ninety\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\ts=\"error\";\r\n\t\t\t\t\treturn s;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ts=NUmberToEnglishString(number/10*10)+' '+NUmberToEnglishString(number%10);\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif(number<1000) //100-999\r\n\t\t{\r\n\t\t\tif(number%100==0)\r\n\t\t\t{\r\n\t\t\t\ts=NUmberToEnglishString(number/100)+\" hundred\";\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ts=NUmberToEnglishString(number/100)+\" hundred and \"+NUmberToEnglishString(number%100);\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(number<1000000) //1000-999999 百万以下\r\n\t\t{\r\n\t\t\tif(number%1000==0)\r\n\t\t\t{\r\n\t\t\t\ts=NUmberToEnglishString(number/1000)+\" thousand\";\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ts=NUmberToEnglishString(number/1000)+\" thousand \"+NUmberToEnglishString(number%1000);\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(number<1000000000) //十亿以下\r\n\t\t{\r\n\t\t\tif(number%1000000==0)\r\n\t\t\t{\r\n\t\t\t\ts=NUmberToEnglishString(number/1000000)+\" million\";\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ts=NUmberToEnglishString(number/1000000)+\" million \"+NUmberToEnglishString(number%1000000);\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (number>999999999)\r\n\t\t{\r\n\t\t\ts=\"error\";\r\n\t\t\treturn s;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String toString() {\r\n return \"Type: Integer\";\r\n }", "public String converter(int n){\r\n str = \"\";\r\n condition = true;\r\n while(condition){\r\n if(n >= 1 && n < 100){\r\n str = str + oneToHundred(n);\r\n condition = false; \r\n }else if (n >= 100 && n < 1000){\r\n str = str + oneToHundred(n / 100);\r\n str = str + \"Hundred \";\r\n n = n % 100;\r\n condition = true; \r\n }\r\n \r\n }\r\n return str;\r\n \r\n }", "public static String intToHexString(int value) {\r\n String hex = \"00000000\" + Integer.toHexString(value);\r\n return \"0x\" + hex.substring(hex.length() - 8, hex.length());\r\n }", "public String toStr() {\r\n return value.toString();\r\n }", "public String toString(){\n\t\treturn \"\"+getId();\n\t}", "public static String toString(final int id, final StringBuffer result) {\n\t\tresult.append((char) ((id >> 24) & 0xFF));\n\t\tresult.append((char) ((id >> 16) & 0xFF));\n\t\tresult.append((char) ((id >> 8) & 0xFF));\n\t\tresult.append((char) ((id >> 0) & 0xFF));\n\n\t\treturn result.toString();\n\t}", "public String convert(int input) {\n\t\tif (input < 1 || input > 3000)\n\t\t\treturn \"invalid numeral\" ;\n\t\tString n = \"\";\n\t\t\n\t\twhile (input >= 1000) {\n\t\t\tn += \"M\";\n\t\t\tinput -= 1000;\n\t\t}\n\t\t\n\t\twhile (input >= 900) {\n\t\t\tn += \"CM\";\n\t\t\tinput -= 900;\n\t\t}\n\t\t\n\t\twhile (input >= 500) {\n\t\t\tn += \"D\";\n\t\t\tinput -= 500;\n\t\t}\n\t\t\n\t\twhile (input >= 400) {\n\t\t\tn += \"CD\";\n\t\t\tinput -= 400;\n\t\t}\n\t\t\n\t\twhile (input >= 100) {\n\t\t\tn += \"C\";\n\t\t\tinput -= 100;\n\t\t}\n\t\t\n\t\twhile (input >= 90) {\n\t\t\tn += \"XC\";\n\t\t\tinput -= 90;\n\t\t}\n\t\t\n\t\twhile (input >= 50) {\n\t\t\tn += \"L\";\n\t\t\tinput -= 50;\n\t\t}\n\t\t\n\t\twhile (input >= 40) {\n\t\t\tn += \"XL\";\n\t\t\tinput -= 40;\n\t\t}\n\t\t\n\t\twhile (input >= 10) {\n\t\t\tn += \"X\";\n\t\t\tinput -= 10;\n\t\t}\n\t\t\n\t\twhile (input >= 9) {\n\t\t\tn += \"IX\";\n\t\t\tinput -= 9;\n\t\t}\n\t\t\n\t\twhile (input >= 5) {\n\t\t\tn += \"V\";\n\t\t\tinput -= 5;\n\t\t}\n\t\t\n\t\twhile (input >= 4) {\n\t\t\tn += \"IV\";\n\t\t\tinput -= 4;\n\t\t}\n\t\t\n\t\twhile (input >= 1) {\n\t\t\tn += \"I\";\n\t\t\tinput -= 1;\n\t\t}\n\t\t\n\t\treturn n; \n\t}", "public static String formatQuantity(Integer quantity) {\n if (quantity == null)\n return \"\";\n else\n return formatQuantity(quantity.doubleValue());\n }", "public static String formatQuantity(int quantity) {\n return formatQuantity((double) quantity);\n }", "private String hR(int x) {\n if (x < 10) {\n return \"0\" + x;\n }\n return \"\" + x;\n }", "public String toString()\n\t{\n\t\t// TO DO\t\n\t\t\n\t\tString s = new String();\n\t\tfor(int i=0; i<infNumber.length; i++)\n\t\t{\n\t\t\ts = s +(Integer.toString(infNumber[i]));\n\t\t}\n\t\t\t\t\n\t\t\n\t\tif(isNeg)\n\t\t{\n\t\t\ts = \"-\" + s;\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "public String toString() {\r\n String result = new String();\r\n for (int i = getSize() - 1; i >= 0; i--) result+=getDigit(i);\r\n return result;\r\n }", "public String intToRoman(int num)\n {\n String[] digit={\"\", \"I\", \"II\", \"III\", \"IV\", \"V\", \"VI\", \"VII\", \"VIII\", \"IX\"};\n String[] ten={\"\", \"X\", \"XX\", \"XXX\", \"XL\", \"L\", \"LX\", \"LXX\", \"LXXX\", \"XC\"};\n String[] hundred={\"\", \"C\", \"CC\", \"CCC\", \"CD\", \"D\", \"DC\", \"DCC\", \"DCCC\", \"CM\"};\n String[] thousand={\"\", \"M\", \"MM\", \"MMM\"};\n if(num>3999)\n num=3999;\n if(num<0)\n num=0;\n StringBuilder sb=new StringBuilder();\n sb.append(thousand[num/1000]);\n sb.append(hundred[num/100%10]);\n sb.append(ten[num/10%10]);\n sb.append(digit[num%10]);\n return sb.toString();\n }" ]
[ "0.80038047", "0.7828087", "0.7705449", "0.7666421", "0.75564355", "0.7199357", "0.71949047", "0.71704805", "0.71476334", "0.7146684", "0.7088579", "0.7088579", "0.7050425", "0.69694704", "0.6861023", "0.6807233", "0.67670643", "0.6754485", "0.66855663", "0.6631527", "0.6534763", "0.64590114", "0.64020985", "0.6382315", "0.6375683", "0.63675195", "0.63488406", "0.631296", "0.6312729", "0.6288706", "0.6286114", "0.6271968", "0.6237576", "0.62326735", "0.6227839", "0.6215067", "0.62078094", "0.62045366", "0.6201736", "0.6163541", "0.6088553", "0.6069813", "0.6061557", "0.6055772", "0.6054865", "0.60528433", "0.6049594", "0.6024414", "0.5995971", "0.5965375", "0.5957169", "0.5928162", "0.5926254", "0.5915638", "0.59074837", "0.5878384", "0.5875551", "0.5874647", "0.58647007", "0.58535707", "0.58320844", "0.58171844", "0.5813422", "0.58105063", "0.5809059", "0.58049184", "0.5782516", "0.57798666", "0.5776473", "0.5753928", "0.57449585", "0.5739382", "0.57388395", "0.57318896", "0.57170385", "0.5711662", "0.5702858", "0.56997615", "0.5691545", "0.56909037", "0.5682404", "0.5679193", "0.5679193", "0.5679193", "0.5677032", "0.56689787", "0.56645983", "0.56617546", "0.56590354", "0.5649614", "0.5647795", "0.5635595", "0.562971", "0.5617938", "0.561687", "0.56160873", "0.5613882", "0.56088316", "0.5587067", "0.55809" ]
0.6147038
40
cube chose agg modify
@Override public String getAggrFunctionName() { return FUNC_INTERSECT_COUNT_DISTINCT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}", "public static boolean createBasicAggregation(Cube cube)\r\n {\r\n String sqlBase;\r\n String name; \r\n Dimension dimension;\r\n int dimensionQuantity;\r\n Map dimensionMap;\r\n int order;\r\n String orderName = \"\"; // apenas para fazer a concatenação de \"9\" para a \r\n \t\t\t\t // ordenação (que será depois convertida para número)\r\n dimensionMap = cube.getDimensions();\r\n dimensionQuantity = dimensionMap.size() - 1; // menos um, a tabela fato\r\n \r\n // cria agora um nome para a agregação base atrbuindo tantos \"9\" \r\n // quantas forem as dimensões\r\n int i;\r\n name = cube.getName() + \"Base\";\r\n // cria o numero para agregação base dentre as demais agregações\r\n for (i = 1; i <= dimensionQuantity; i++)\r\n orderName += \"9\";\r\n order = Integer.parseInt(orderName);\r\n // monta a SQL \"FROM...\" para a agregação base\r\n sqlBase = \"FROM \";\r\n\r\n Iterator iterator = dimensionMap.keySet().iterator();\r\n String key;\r\n while (iterator.hasNext())\r\n {\r\n key = (String) iterator.next();\r\n dimension = (Dimension) dimensionMap.get(key);\r\n if (!sqlBase.equals(\"FROM \"))\r\n sqlBase += \", \";\r\n sqlBase += \"\\\"\" + dimension.getName() + \"\\\"\";\r\n }\r\n \r\n // completa a parte WHERE da SQL para a agregação base\r\n sqlBase += \" WHERE \";\r\n iterator = dimensionMap.keySet().iterator();\r\n while (iterator.hasNext())\r\n {\r\n key = (String) iterator.next();\r\n dimension = (Dimension) dimensionMap.get(key);\r\n if (!dimension.getType().equals(\"Fact\"))\r\n {\r\n if (!sqlBase.endsWith(\"WHERE \"))\r\n sqlBase += \" AND \";\r\n sqlBase += dimension.getClause();\r\n }\r\n }\r\n \r\n // insere os dados e cria a agregação\r\n return save(name, true, sqlBase, cube.getCode(), order);\r\n }", "private void arretes_fG(){\n\t\tthis.cube[31] = this.cube[28]; \n\t\tthis.cube[28] = this.cube[30];\n\t\tthis.cube[30] = this.cube[34];\n\t\tthis.cube[34] = this.cube[32];\n\t\tthis.cube[32] = this.cube[31];\n\t}", "private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}", "private void aretes_aB(){\n\t\tthis.cube[22] = this.cube[12]; \n\t\tthis.cube[12] = this.cube[48];\n\t\tthis.cube[48] = this.cube[39];\n\t\tthis.cube[39] = this.cube[3];\n\t\tthis.cube[3] = this.cube[22];\n\t}", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "public BranchGroup cubo3(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.01,1,1);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.01,-.5,2);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n // rotate.mul(objScale);\n TransformGroup objRotate = new TransformGroup(rotate);\n \n //objRotate.addChild(new ColorCube(0.4));\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n\n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\n\t \n\t // Set up the background\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "public BranchGroup cubo2(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.2,.05,.2);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(.5,.6,.5);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n // rotate.mul(objScale);\n TransformGroup objRotate = new TransformGroup(rotate);\n \n //objRotate.addChild(new ColorCube(0.4));\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\n\t \n\t // Set up the background\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}", "private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}", "private void aretes_aY(){\n\t\tthis.cube[49] = this.cube[43]; \n\t\tthis.cube[43] = this.cube[21];\n\t\tthis.cube[21] = this.cube[10];\n\t\tthis.cube[10] = this.cube[32];\n\t\tthis.cube[32] = this.cube[49];\n\t}", "private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}", "public void testGroupFilterOnComputedColumnsWithAggregations( ) throws Exception\n \t{\n \t\tccName = new String[] { \"cc1\", \"cc2\", \"cc3\", \"cc4\" };\n \t\tccExpr = new String[] {\n \t\t\t\t\"row.COL0+row.COL1\",\n \t\t\t\t\"Total.sum(row.COL1+row.cc1)\",\n \t\t\t\t\"Total.ave(row.cc1+row.COL2+row.COL3, null, 0)*81\",\n \t\t\t\t\"Total.sum(row.COL1+row.COL2+row.COL3+row.COL0)\" };\n \t\t\n \t\tfor (int i = 0; i < ccName.length; i++) {\n \t\t\tComputedColumn computedColumn = new ComputedColumn(ccName[i],\n \t\t\t\t\tccExpr[i], DataType.ANY_TYPE);\n \t\t\t((BaseDataSetDesign) this.dataSet)\n \t\t\t\t\t.addComputedColumn(computedColumn);\n \t\t}\n \t\t\n \t\tString[] bindingNameGroup = new String[1];\n \t\tbindingNameGroup[0] = \"GROUP_GROUP1\";\n \t\tIBaseExpression[] bindingExprGroup = new IBaseExpression[1];\n \t\tbindingExprGroup[0] = new ScriptExpression(\"dataSetRow.cc1\");\n \n \t\tGroupDefinition[] groupDefn = new GroupDefinition[] {\n \t\t\t\tnew GroupDefinition(\"group1\") };\t\n \t\tgroupDefn[0].setKeyExpression(\"row.GROUP_GROUP1\");\n \t\t\n \t\tFilterDefinition filter = new FilterDefinition(new ScriptExpression(\n \t\t\t\t\"Total.sum(dataSetRow.COL0)>400\"));\n \t\tgroupDefn[0].addFilter(filter);\n \n \t\tString[] bindingNameRow = new String[8];\n \t\tbindingNameRow[0] = \"ROW_COL0\";\n \t\tbindingNameRow[1] = \"ROW_COL1\";\n \t\tbindingNameRow[2] = \"ROW_COL2\";\n \t\tbindingNameRow[3] = \"ROW_COL3\";\n \t\tbindingNameRow[4] = \"ROW_cc1\";\n \t\tbindingNameRow[5] = \"ROW_cc2\";\n \t\tbindingNameRow[6] = \"ROW_cc3\";\n \t\tbindingNameRow[7] = \"ROW_cc4\";\n \t\tScriptExpression[] bindingExprRow = new ScriptExpression[] {\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL0\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL1\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL2\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL3\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[0], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[1], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[2], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[3], 0) };\n \n \t\ttry {\n \t\t\tthis.executeQuery(this.createQuery(null, null, null, null, null,\n \t\t\t\t\tnull, null, null, null, bindingNameRow, bindingExprRow));\n \t\t\t// fail( \"Should not arrive here\" );\n \t\t} catch (DataException e) {\n \n \t\t}\n \t}", "public BranchGroup cubo1(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.5,.05,.5);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.5,.6,1);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n TransformGroup objRotate = new TransformGroup(rotate);\n\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "private void arretes_fB(){\n\t\tthis.cube[22] = this.cube[19]; \n\t\tthis.cube[19] = this.cube[21];\n\t\tthis.cube[21] = this.cube[25];\n\t\tthis.cube[25] = this.cube[23];\n\t\tthis.cube[23] = this.cube[22];\n\t}", "private void coins_a1G(){\n\t\tthis.cube[31] = this.cube[17]; \n\t\tthis.cube[17] = this.cube[8];\n\t\tthis.cube[8] = this.cube[44];\n\t\tthis.cube[44] = this.cube[53];\n\t\tthis.cube[53] = this.cube[31];\n\t}", "private void arretes_fR(){\n\t\tthis.cube[13] = this.cube[10]; \n\t\tthis.cube[10] = this.cube[12];\n\t\tthis.cube[12] = this.cube[16];\n\t\tthis.cube[16] = this.cube[14];\n\t\tthis.cube[14] = this.cube[13];\n\t}", "private void arretes_fW(){\n\t\tthis.cube[4] = this.cube[1]; \n\t\tthis.cube[1] = this.cube[3];\n\t\tthis.cube[3] = this.cube[7];\n\t\tthis.cube[7] = this.cube[5];\n\t\tthis.cube[5] = this.cube[4];\n\t}", "@Test\n public void testMetricDeletion() throws Exception {\n Aggregation agg1 = new DefaultAggregation(ImmutableList.of(\"dim1\", \"dim2\", \"dim3\"),\n ImmutableList.of(\"dim1\"));\n Aggregation agg2 = new DefaultAggregation(ImmutableList.of(\"dim1\", \"dim3\"),\n ImmutableList.of(\"dim3\"));\n\n int resolution = 1;\n Cube cube = getCube(\"testDeletion\", new int[] {resolution},\n ImmutableMap.of(\"agg1\", agg1, \"agg2\", agg2));\n\n Map<String, String> agg1Dims = new LinkedHashMap<>();\n agg1Dims.put(\"dim1\", \"1\");\n agg1Dims.put(\"dim2\", \"1\");\n agg1Dims.put(\"dim3\", \"1\");\n\n Map<String, String> agg2Dims = new LinkedHashMap<>();\n agg2Dims.put(\"dim1\", \"1\");\n agg2Dims.put(\"dim3\", \"1\");\n\n\n // write some data\n writeInc(cube, \"metric1\", 1, 1, agg1Dims);\n writeInc(cube, \"metric2\", 3, 3, agg2Dims);\n\n // verify data is there\n verifyCountQuery(cube, 0, 15, resolution, \"metric1\", AggregationFunction.SUM,\n agg1Dims, ImmutableList.of(),\n ImmutableList.of(\n new TimeSeries(\"metric1\", new HashMap<>(), timeValues(1, 1))));\n verifyCountQuery(cube, 0, 15, resolution, \"metric2\", AggregationFunction.SUM,\n agg2Dims, ImmutableList.of(),\n ImmutableList.of(\n new TimeSeries(\"metric2\", new HashMap<>(), timeValues(3, 3))));\n\n // delete metrics from agg2\n Predicate<List<String>> predicate =\n aggregates -> Collections.indexOfSubList(aggregates, new ArrayList<>(agg2Dims.keySet())) == 0;\n CubeDeleteQuery query =\n new CubeDeleteQuery(0, 15, resolution, agg2Dims, Collections.emptySet(), predicate);\n cube.delete(query);\n\n // agg1 data should still be there\n verifyCountQuery(cube, 0, 15, resolution, \"metric1\", AggregationFunction.SUM,\n agg1Dims, ImmutableList.of(),\n ImmutableList.of(\n new TimeSeries(\"metric1\", new HashMap<>(), timeValues(1, 1))));\n // agg2 data should get deleted\n verifyCountQuery(cube, 0, 15, resolution, \"metric2\", AggregationFunction.SUM,\n agg2Dims, ImmutableList.of(), ImmutableList.of());\n\n // delete metrics remain for agg1\n predicate = aggregates -> Collections.indexOfSubList(aggregates, new ArrayList<>(agg1Dims.keySet())) == 0;\n query = new CubeDeleteQuery(0, 15, resolution, agg1Dims, Collections.emptySet(), predicate);\n cube.delete(query);\n verifyCountQuery(cube, 0, 15, resolution, \"metric1\", AggregationFunction.SUM,\n agg1Dims, ImmutableList.of(), ImmutableList.of());\n }", "private void coins_a2G(){\n\t\tthis.cube[31] = this.cube[11]; \n\t\tthis.cube[11] = this.cube[2];\n\t\tthis.cube[2] = this.cube[38];\n\t\tthis.cube[38] = this.cube[47];\n\t\tthis.cube[47] = this.cube[31];\n\t}", "@Override\n public void agg(double newVal)\n {\n aggVal += newVal;\n firstTime = false;\n }", "public void testFilterOnAggregationColumn() throws Exception {\n \t\tccName = new String[] { \"cc1\", \"cc2\", \"cc3\" };\n \t\tccExpr = new String[] { \"row.COL0+row.COL1\",\n \t\t\t\t\"Total.runningSum(row.cc1,row.COL0==0,0)\",\n \t\t\t\t\"Total.runningSum(row.cc1,row.COL0>0,0)\" };\n \n \t\tfor (int i = 0; i < ccName.length; i++) {\n \t\t\tComputedColumn computedColumn = new ComputedColumn(ccName[i],\n \t\t\t\t\tccExpr[i], DataType.ANY_TYPE);\n \t\t\t((BaseDataSetDesign) this.dataSet)\n \t\t\t\t\t.addComputedColumn(computedColumn);\n \t\t}\n \n \t\tString[] bindingNameRow = new String[7];\n \t\tbindingNameRow[0] = \"ROW_COL0\";\n \t\tbindingNameRow[1] = \"ROW_COL1\";\n \t\tbindingNameRow[2] = \"ROW_COL2\";\n \t\tbindingNameRow[3] = \"ROW_COL3\";\n \t\tbindingNameRow[4] = \"ROW_cc1\";\n \t\tbindingNameRow[5] = \"ROW_cc2\";\n \t\tbindingNameRow[6] = \"ROW_cc3\";\n \t\tScriptExpression[] bindingExprRow = new ScriptExpression[] {\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL0\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL1\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL2\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL3\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[0], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[1], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[2], 0) };\n \n \t\tIResultIterator resultIt = this.executeQuery(this.createQuery(null,\n \t\t\t\tnull, null, null, null, null, null, null, null, bindingNameRow,\n \t\t\t\tbindingExprRow));\n \n \t\tprintResult(resultIt, bindingNameRow, bindingExprRow);\n \t\t// assert\n \t\tcheckOutputFile();\n \n \t}", "private void xCubed()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.cubed ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "BigDecimal calculate(Rete engine, Cube cube, Object[] data, CubeBinding binding);", "@Override\n public void agg(Object newVal)\n {\n aggVal += (Double)newVal;\n firstTime = false;\n }", "public void redimensionar() {\n\t\tthis.numCub *= 1.5;\n\t}", "private void coins_a1O(){\n\t\tthis.cube[40] = this.cube[6]; \n\t\tthis.cube[6] = this.cube[24];\n\t\tthis.cube[24] = this.cube[47];\n\t\tthis.cube[47] = this.cube[33];\n\t\tthis.cube[33] = this.cube[40];\n\t}", "private void coins_fG(){\n\t\tthis.cube[31] = this.cube[27]; \n\t\tthis.cube[27] = this.cube[33];\n\t\tthis.cube[33] = this.cube[35];\n\t\tthis.cube[35] = this.cube[29];\n\t\tthis.cube[29] = this.cube[31];\n\t}", "private void coins_a1R(){\n\t\tthis.cube[13] = this.cube[51]; \n\t\tthis.cube[51] = this.cube[20];\n\t\tthis.cube[20] = this.cube[2];\n\t\tthis.cube[2] = this.cube[29];\n\t\tthis.cube[29] = this.cube[13];\n\t}", "private void coins_a1B(){\n\t\tthis.cube[22] = this.cube[9]; \n\t\tthis.cube[9] = this.cube[45];\n\t\tthis.cube[45] = this.cube[36];\n\t\tthis.cube[36] = this.cube[0];\n\t\tthis.cube[0] = this.cube[22];\n\t}", "private void coins_fY(){\n\t\tthis.cube[49] = this.cube[45]; \n\t\tthis.cube[45] = this.cube[51];\n\t\tthis.cube[51] = this.cube[53];\n\t\tthis.cube[53] = this.cube[47];\n\t\tthis.cube[47] = this.cube[49];\n\t}", "public abstract Transformation updateTransform(Rectangle selectionBox);", "public void testNestedAggregationOnComputedColumn( ) throws Exception\n \t{\n \t\tccName = new String[] { \"cc1\", \"cc2\", \"cc3\" };\n \t\tccExpr = new String[] {\n \t\t\t\t\"row.COL0+row.COL1\",\n \t\t\t\t\"Total.runningSum(row.cc1/Total.sum(row.cc1))*100\",\n \t\t\t\t\"Total.runningSum(Total.sum(row.cc1/Total.sum(row.cc1)))\" };\n \n \t\tfor (int i = 0; i < ccName.length; i++) {\n \t\t\tComputedColumn computedColumn = new ComputedColumn(ccName[i],\n \t\t\t\t\tccExpr[i], DataType.ANY_TYPE);\n \t\t\t((BaseDataSetDesign) this.dataSet)\n \t\t\t\t\t.addComputedColumn(computedColumn);\n \t\t}\n \t\t\n \t\tString[] bindingNameRow = new String[7];\n \t\tbindingNameRow[0] = \"ROW_COL0\";\n \t\tbindingNameRow[1] = \"ROW_COL1\";\n \t\tbindingNameRow[2] = \"ROW_COL2\";\n \t\tbindingNameRow[3] = \"ROW_COL3\";\n \t\tbindingNameRow[4] = \"ROW_cc1\";\n \t\tbindingNameRow[5] = \"ROW_cc2\";\n \t\tbindingNameRow[6] = \"ROW_cc3\";\n \t\tScriptExpression[] bindingExprRow = new ScriptExpression[] {\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL0\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL1\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL2\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL3\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[0], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[1], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[2], 0) };\n \n \t\tIResultIterator resultIt = this.executeQuery(this.createQuery(null,\n \t\t\t\tnull, null, null, null, null, null, null, null, bindingNameRow,\n \t\t\t\tbindingExprRow));\n \n \t\tprintResult(resultIt, bindingNameRow, bindingExprRow);\n \t\t// assert\n \t\tcheckOutputFile();\n \t\t\n \t}", "public abstract void update (org.apache.spark.sql.expressions.MutableAggregationBuffer buffer, org.apache.spark.sql.Row input) ;", "private void coins_a1Y(){\n\t\tthis.cube[49] = this.cube[42]; \n\t\tthis.cube[42] = this.cube[18];\n\t\tthis.cube[18] = this.cube[11];\n\t\tthis.cube[11] = this.cube[35];\n\t\tthis.cube[35] = this.cube[49];\n\t}", "@LargeTest\n public void testColorCube3DIntrinsic() {\n TestAction ta = new TestAction(TestName.COLOR_CUBE_3D_INTRINSIC);\n runTest(ta, TestName.COLOR_CUBE_3D_INTRINSIC.name());\n }", "private void coins_a1W(){\n\t\tthis.cube[4] = this.cube[15]; \n\t\tthis.cube[15] = this.cube[26];\n\t\tthis.cube[26] = this.cube[38];\n\t\tthis.cube[38] = this.cube[27];\n\t\tthis.cube[27] = this.cube[4];\n\t}", "private TransformGroup createBox(\n\t\tfloat x,\n\t\tfloat z,\n\t\tfloat size,\n\t\tfloat height,\n\t\tColor3f col) {\n\n\t\t//quadrilatere\n\t\tQuadArray quad =\n\t\t\tnew QuadArray(24, QuadArray.COORDINATES | QuadArray.COLOR_3);\n\t\tquad.setCoordinate(0, new Point3f(0.001f, height - 0.001f, 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t1,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, 0.001f));\n\t\tquad.setCoordinate(2, new Point3f(size - 0.001f, 0.001f, 0.001f));\n\t\tquad.setCoordinate(3, new Point3f(0.001f, 0.001f, 0.001f));\n\n\t\tquad.setCoordinate(4, new Point3f(0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t5,\n\t\t\tnew Point3f(size - 0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t6,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t7,\n\t\t\tnew Point3f(0.001f, height - 0.001f, size - 0.001f));\n\n\t\tquad.setCoordinate(8, new Point3f(0.001f, 0.001f, 0.001f));\n\t\tquad.setCoordinate(9, new Point3f(0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t10,\n\t\t\tnew Point3f(0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(11, new Point3f(0.001f, height - 0.001f, 0.001f));\n\n\t\tquad.setCoordinate(\n\t\t\t12,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t13,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t14,\n\t\t\tnew Point3f(size - 0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(15, new Point3f(size - 0.001f, 0.001f, 0.001f));\n\n\t\tquad.setCoordinate(16, new Point3f(size - 0.001f, 0.001f, 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t17,\n\t\t\tnew Point3f(size - 0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(18, new Point3f(0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(19, new Point3f(0.001f, 0.001f, 0.001f));\n\n\t\tquad.setCoordinate(20, new Point3f(0.001f, height - 0.001f, 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t21,\n\t\t\tnew Point3f(0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t22,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t23,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, 0.001f));\n\n\t\tfor (int i = 0; i < 24; i++)\n\t\t\tquad.setColor(i, col);\n\n\t\t//dessine les aretes\n\n\t\t//quadrilatere\n\t\tQuadArray aretes =\n\t\t\tnew QuadArray(24, QuadArray.COORDINATES | QuadArray.COLOR_3);\n\t\taretes.setCoordinate(0, new Point3f(0.0f, 0.0f, 0.0f));\n\t\taretes.setCoordinate(1, new Point3f(size, 0.0f, 0.0f));\n\t\taretes.setCoordinate(2, new Point3f(size, height, 0.0f));\n\t\taretes.setCoordinate(3, new Point3f(0.0f, height, 0.0f));\n\n\t\taretes.setCoordinate(4, new Point3f(0.0f, 0.0f, size));\n\t\taretes.setCoordinate(5, new Point3f(size, 0.0f, size));\n\t\taretes.setCoordinate(6, new Point3f(size, height, size));\n\t\taretes.setCoordinate(7, new Point3f(0.0f, height, size));\n\n\t\taretes.setCoordinate(8, new Point3f(0.0f, 0.0f, 0.0f));\n\t\taretes.setCoordinate(9, new Point3f(0.0f, 0.0f, size));\n\t\taretes.setCoordinate(10, new Point3f(0.0f, height, size));\n\t\taretes.setCoordinate(11, new Point3f(0.0f, height, 0.0f));\n\n\t\taretes.setCoordinate(12, new Point3f(size, 0.0f, 0.0f));\n\t\taretes.setCoordinate(13, new Point3f(size, 0.0f, size));\n\t\taretes.setCoordinate(14, new Point3f(size, height, size));\n\t\taretes.setCoordinate(15, new Point3f(size, height, 0.0f));\n\n\t\tfor (int i = 0; i < 24; i++)\n\t\t\taretes.setColor(i, new Color3f(1f, 1f, 1f));\n\n\t\t// move the box\n\t\tTransform3D translate = new Transform3D();\n\t\ttranslate.set(new Vector3f(x, 0.0f, z));\n\n\t\tTransformGroup tg = new TransformGroup(translate);\n\n\t\t// create the box\n\t\ttg.addChild(new Shape3D(quad));\n\t\ttg.addChild(new Shape3D(aretes, lineApp()));\n\t\treturn tg;\n\t}", "private void coins_a2R(){\n\t\tthis.cube[13] = this.cube[53]; \n\t\tthis.cube[53] = this.cube[18];\n\t\tthis.cube[18] = this.cube[0];\n\t\tthis.cube[0] = this.cube[27];\n\t\tthis.cube[27] = this.cube[13];\n\t}", "public void UEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint cube = CUBE1;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(FRONT).get(cube).getColor();\r\n \tfaces.get(FRONT).get(cube).changeColor(faces.get(RIGHT).get(cube).getColor());\r\n \tfaces.get(RIGHT).get(cube).changeColor(faces.get(BACK).get(cube).getColor());\r\n \tfaces.get(BACK).get(cube).changeColor(faces.get(LEFT).get(cube).getColor());\r\n \tfaces.get(LEFT).get(cube).changeColor(color);\r\n \tcube++; \t\r\n \t} \r\n \r\n \tColor color = faces.get(TOP).get(CUBE1).getColor();\r\n \tfaces.get(TOP).get(CUBE1).changeColor(faces.get(TOP).get(CUBE7).getColor());\r\n \tfaces.get(TOP).get(CUBE7).changeColor(faces.get(TOP).get(CUBE9).getColor());\r\n \tfaces.get(TOP).get(CUBE9).changeColor(faces.get(TOP).get(CUBE3).getColor());\r\n \tfaces.get(TOP).get(CUBE3).changeColor(color);\r\n \tcolor = faces.get(TOP).get(CUBE2).getColor();\r\n \tfaces.get(TOP).get(CUBE2).changeColor(faces.get(TOP).get(CUBE4).getColor());\r\n \tfaces.get(TOP).get(CUBE4).changeColor(faces.get(TOP).get(CUBE8).getColor());\r\n \tfaces.get(TOP).get(CUBE8).changeColor(faces.get(TOP).get(CUBE6).getColor());\r\n \tfaces.get(TOP).get(CUBE6).changeColor(color);\r\n }", "private void coins_a2B(){\n\t\tthis.cube[22] = this.cube[15]; \n\t\tthis.cube[15] = this.cube[51];\n\t\tthis.cube[51] = this.cube[42];\n\t\tthis.cube[42] = this.cube[6];\n\t\tthis.cube[6] = this.cube[22];\n\t}", "public void update(GL2 gl){\r\n\t\t// Not implemented, chunks are immutable\r\n\t}", "int cubeCol() {\n return c; \n }", "public void createNewCube() {\n CUBE = new Cube();\n }", "@Test\n @DependsOnMethod(\"testDimensionReduction\")\n public void testDimensionAugmentation() throws TransformException {\n transform = new ProjectiveTransform(Matrices.create(4, 3, new double[] {\n 0, 1, 0,\n 1, 0, 0,\n 0, 0, 0,\n 0, 0, 1}));\n\n assertInstanceOf(\"inverse\", CopyTransform.class, transform.inverse());\n verifyTransform(new double[] {2,3, 6,0, 2, Double.NaN},\n new double[] {3,2,0, 0,6,0, Double.NaN, 2, 0});\n }", "private void coins_fB(){\n\t\tthis.cube[22] = this.cube[18]; \n\t\tthis.cube[18] = this.cube[24];\n\t\tthis.cube[24] = this.cube[26];\n\t\tthis.cube[26] = this.cube[20];\n\t\tthis.cube[20] = this.cube[22];\n\t}", "public void UPrimeEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint cube = CUBE1;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(FRONT).get(cube).getColor();\r\n \tfaces.get(FRONT).get(cube).changeColor(faces.get(LEFT).get(cube).getColor());\r\n \tfaces.get(LEFT).get(cube).changeColor(faces.get(BACK).get(cube).getColor());\r\n \tfaces.get(BACK).get(cube).changeColor(faces.get(RIGHT).get(cube).getColor());\r\n \tfaces.get(RIGHT).get(cube).changeColor(color);\r\n \tcube++;\r\n \t} \r\n \r\n \tColor color = faces.get(TOP).get(CUBE1).getColor();\r\n \tfaces.get(TOP).get(CUBE1).changeColor(faces.get(TOP).get(CUBE3).getColor());\r\n \tfaces.get(TOP).get(CUBE3).changeColor(faces.get(TOP).get(CUBE9).getColor());\r\n \tfaces.get(TOP).get(CUBE9).changeColor(faces.get(TOP).get(CUBE7).getColor());\r\n \tfaces.get(TOP).get(CUBE7).changeColor(color);\r\n \tcolor = faces.get(TOP).get(CUBE2).getColor();\r\n \tfaces.get(TOP).get(CUBE2).changeColor(faces.get(TOP).get(CUBE6).getColor());\r\n \tfaces.get(TOP).get(CUBE6).changeColor(faces.get(TOP).get(CUBE8).getColor());\r\n \tfaces.get(TOP).get(CUBE8).changeColor(faces.get(TOP).get(CUBE4).getColor());\r\n \tfaces.get(TOP).get(CUBE4).changeColor(color);\r\n }", "private void coins_a2O(){\n\t\tthis.cube[40] = this.cube[8]; \n\t\tthis.cube[8] = this.cube[26];\n\t\tthis.cube[26] = this.cube[45];\n\t\tthis.cube[45] = this.cube[35];\n\t\tthis.cube[35] = this.cube[40];\n\t}", "@Override\r\n\t\tpublic int cube() {\n\t\t\treturn width*width*width;\r\n\t\t}", "public void aggregate() {\n\t\tIAggregate selectedAggregation = this.gui.getSelectedAggregation();\n\t\tthis.output(selectedAggregation.aggregate(satelliteList));\n\t}", "@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }", "public RubiksCube(){\n\t\tString[] c = {\n\t\t\t\t\"W\",\"W\",\"W\",\"W\",\"W\",\"W\",\"W\",\"W\",\"W\",\n\t\t\t\t\"R\",\"R\",\"R\",\"R\",\"R\",\"R\",\"R\",\"R\",\"R\",\n\t\t\t\t\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\n\t\t\t\t\"G\",\"G\",\"G\",\"G\",\"G\",\"G\",\"G\",\"G\",\"G\",\n\t\t\t\t\"O\",\"O\",\"O\",\"O\",\"O\",\"O\",\"O\",\"O\",\"O\",\n\t\t\t\t\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\n\t\t};\n\t\tthis.cube = c;\n\t}", "private void coins_fO(){\n\t\tthis.cube[40] = this.cube[36]; \n\t\tthis.cube[36] = this.cube[42];\n\t\tthis.cube[42] = this.cube[44];\n\t\tthis.cube[44] = this.cube[38];\n\t\tthis.cube[38] = this.cube[40];\n\t}", "public RubiksCube(String[] c){\n\t\tif(c.length == 54){\n\t\t\tString[] tab = new String[c.length];\n\t\t\tfor(int i=0; i<c.length;i++){\n\t\t\t\ttab[i] = c[i];\n\t\t\t}\n\t\t\tthis.cube = tab;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Wrong input table size : \" + c.length);\n\t\t}\n\t}", "@Override public CubeState times(Group g){\n CubeState cs = (CubeState)g;\n CubeState r = new CubeState();\n r.co = cs.co.times(cs.cp.action(co));\n r.cp = cp.times(cs.cp);\n r.eo = cs.eo.times(cs.ep.action(eo));\n r.ep = ep.times(cs.ep);\n return r;\n }", "private void coins_fR(){\n\t\tthis.cube[13] = this.cube[9]; \n\t\tthis.cube[9] = this.cube[15];\n\t\tthis.cube[15] = this.cube[17];\n\t\tthis.cube[17] = this.cube[11];\n\t\tthis.cube[11] = this.cube[13];\n\t}", "public abstract void updateVertices();", "protected void updateCube(String player, String color, int cube){\n playBoard.setCube(player, color, cube);\n refreshCube();\n }", "void rotateInv() {\n startAnimation(allSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n rotateCubeSwap();\n rotateCubeSwap();\n rotateCubeSwap();\n }", "void initialize(CubeModel cube) {\n boolean [] newcopy = new boolean [6];\n boolean [][] newcopy2 = new boolean [cube.s][cube.s];\n System.arraycopy(cube.the_cube, 0,newcopy, 0, 6);\n for (int i = 0; i < cube.s; i ++) {\n System.arraycopy(cube.grid[i], 0, newcopy[i], 0, cube.s);\n }\n initialize(cube.s, cube.r, cube.c, newcopy2, newcopy);\n setChanged();\n notifyObservers();\n }", "public void REvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint cube = CUBE3, backCube = CUBE7;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(FRONT).get(cube).getColor();\r\n \tfaces.get(FRONT).get(cube).changeColor(faces.get(BOTTOM).get(cube).getColor());\r\n \tfaces.get(BOTTOM).get(cube).changeColor(faces.get(BACK).get(backCube).getColor());\r\n \tfaces.get(BACK).get(backCube).changeColor(faces.get(TOP).get(cube).getColor());\r\n \tfaces.get(TOP).get(cube).changeColor(color);\r\n \tcube += SHIFT_ROW;\r\n \tbackCube -= SHIFT_ROW;\r\n \t\r\n \t} \r\n \r\n \tColor color = faces.get(RIGHT).get(CUBE1).getColor();\r\n \tfaces.get(RIGHT).get(CUBE1).changeColor(faces.get(RIGHT).get(CUBE7).getColor());\r\n \tfaces.get(RIGHT).get(CUBE7).changeColor(faces.get(RIGHT).get(CUBE9).getColor());\r\n \tfaces.get(RIGHT).get(CUBE9).changeColor(faces.get(RIGHT).get(CUBE3).getColor());\r\n \tfaces.get(RIGHT).get(CUBE3).changeColor(color);\r\n \tcolor = faces.get(RIGHT).get(CUBE2).getColor();\r\n \tfaces.get(RIGHT).get(CUBE2).changeColor(faces.get(RIGHT).get(CUBE4).getColor());\r\n \tfaces.get(RIGHT).get(CUBE4).changeColor(faces.get(RIGHT).get(CUBE8).getColor());\r\n \tfaces.get(RIGHT).get(CUBE8).changeColor(faces.get(RIGHT).get(CUBE6).getColor());\r\n \tfaces.get(RIGHT).get(CUBE6).changeColor(color);\r\n }", "@Override\n public Boolean colisionoCon(MV gr) {\n return true;\n }", "private void coins_a2W(){\n\t\tthis.cube[4] = this.cube[17]; \n\t\tthis.cube[17] = this.cube[20];\n\t\tthis.cube[20] = this.cube[36];\n\t\tthis.cube[36] = this.cube[33];\n\t\tthis.cube[33] = this.cube[4];\n\t}", "@LargeTest\n public void testColorCube() {\n TestAction ta = new TestAction(TestName.COLOR_CUBE);\n runTest(ta, TestName.COLOR_CUBE.name());\n }", "private void green(){\n\t\tthis.arretes_fG();\n\t\tthis.coins_fG();\n\t\tthis.coins_a1G();\n\t\tthis.coins_a2G();\n\t\tthis.aretes_aG();\n\t\tthis.cube[31] = \"G\";\n\t}", "public abstract void update(Grid theOldGrid, Grid theNewGrid);", "private void setGridOnCollectibleSelected() {\n showCardInfo(getNameFromID(selectedCollectibleID));\n setGridColor(Color.GOLD);\n for (int row = 0; row < Map.NUMBER_OF_ROWS; row++) {\n for (int column = 0; column < Map.NUMBER_OF_COLUMNS; column++) {\n ImageView interactor = getInteractor(row, column);\n int finalRow = row, finalColumn = column;\n interactor.setOnMouseClicked(e -> handleUseCollectible(finalRow, finalColumn, false));\n\n }\n }\n }", "@Override\n public void combinedIMU(int ax, int ay, int az, int gx, int gy, int gz, int timestamp) {\n }", "public void BPrimeEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint u1 = CUBE1, l1 = CUBE7, b1 = CUBE9, r1 = CUBE3;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(TOP).get(u1).getColor();\r\n \tfaces.get(TOP).get(u1).changeColor(faces.get(LEFT).get(l1).getColor());\r\n \tfaces.get(LEFT).get(l1).changeColor(faces.get(BOTTOM).get(b1).getColor());\r\n \tfaces.get(BOTTOM).get(b1).changeColor(faces.get(RIGHT).get(r1).getColor());\r\n \tfaces.get(RIGHT).get(r1).changeColor(color);\r\n \tu1++;\r\n \tl1 -= SHIFT_ROW;\r\n \tb1--;\r\n \tr1 += SHIFT_ROW;\r\n \t\r\n \t} \r\n \r\n \tColor color = faces.get(BACK).get(CUBE1).getColor();\r\n \tfaces.get(BACK).get(CUBE1).changeColor(faces.get(BACK).get(CUBE3).getColor());\r\n \tfaces.get(BACK).get(CUBE3).changeColor(faces.get(BACK).get(CUBE9).getColor());\r\n \tfaces.get(BACK).get(CUBE9).changeColor(faces.get(BACK).get(CUBE7).getColor());\r\n \tfaces.get(BACK).get(CUBE7).changeColor(color);\r\n \tcolor = faces.get(BACK).get(CUBE2).getColor();\r\n \tfaces.get(BACK).get(CUBE2).changeColor(faces.get(BACK).get(CUBE6).getColor());\r\n \tfaces.get(BACK).get(CUBE6).changeColor(faces.get(BACK).get(CUBE8).getColor());\r\n \tfaces.get(BACK).get(CUBE8).changeColor(faces.get(BACK).get(CUBE4).getColor());\r\n \tfaces.get(BACK).get(CUBE4).changeColor(color);\r\n }", "Aggregator updateAggregator(Aggregator aggregator) throws RepoxException;", "private void coins_fW(){\n\t\tthis.cube[4] = this.cube[0]; \n\t\tthis.cube[0] = this.cube[6];\n\t\tthis.cube[6] = this.cube[8];\n\t\tthis.cube[8] = this.cube[2];\n\t\tthis.cube[2] = this.cube[4];\n\t}", "public final AstValidator.cube_by_clause_return cube_by_clause() throws RecognitionException {\n AstValidator.cube_by_clause_return retval = new AstValidator.cube_by_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 BY133=null;\n AstValidator.cube_or_rollup_return cube_or_rollup134 =null;\n\n\n CommonTree BY133_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:324:2: ( ^( BY cube_or_rollup ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:324:4: ^( BY cube_or_rollup )\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 BY133=(CommonTree)match(input,BY,FOLLOW_BY_in_cube_by_clause1404); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n BY133_tree = (CommonTree)adaptor.dupNode(BY133);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(BY133_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_cube_or_rollup_in_cube_by_clause1406);\n cube_or_rollup134=cube_or_rollup();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cube_or_rollup134.getTree());\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 void DEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint cube = CUBE7;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(FRONT).get(cube).getColor();\r\n \tfaces.get(FRONT).get(cube).changeColor(faces.get(LEFT).get(cube).getColor());\r\n \tfaces.get(LEFT).get(cube).changeColor(faces.get(BACK).get(cube).getColor());\r\n \tfaces.get(BACK).get(cube).changeColor(faces.get(RIGHT).get(cube).getColor());\r\n \tfaces.get(RIGHT).get(cube).changeColor(color);\r\n \tcube++;\t\r\n \t} \r\n \r\n \tColor color = faces.get(BOTTOM).get(CUBE1).getColor();\r\n \tfaces.get(BOTTOM).get(CUBE1).changeColor(faces.get(BOTTOM).get(CUBE7).getColor());\r\n \tfaces.get(BOTTOM).get(CUBE7).changeColor(faces.get(BOTTOM).get(CUBE9).getColor());\r\n \tfaces.get(BOTTOM).get(CUBE9).changeColor(faces.get(BOTTOM).get(CUBE3).getColor());\r\n \tfaces.get(BOTTOM).get(CUBE3).changeColor(color);\r\n \tcolor = faces.get(BOTTOM).get(CUBE2).getColor();\r\n \tfaces.get(BOTTOM).get(CUBE2).changeColor(faces.get(BOTTOM).get(CUBE4).getColor());\r\n \tfaces.get(BOTTOM).get(CUBE4).changeColor(faces.get(BOTTOM).get(CUBE8).getColor());\r\n \tfaces.get(BOTTOM).get(CUBE8).changeColor(faces.get(BOTTOM).get(CUBE6).getColor());\r\n \tfaces.get(BOTTOM).get(CUBE6).changeColor(color);\r\n }", "public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j] = mcHelper(tarr, galois, i, j);\n }\n }\n }", "private Geometry buildCube(ColorRGBA color) {\n Geometry cube = new Geometry(\"Box\", new Box(0.5f, 0.5f, 0.5f));\n Material mat = new Material(assetManager, \"TestMRT/MatDefs/ExtractRGB.j3md\");\n mat.setColor(\"Albedo\", color);\n cube.setMaterial(mat);\n return cube;\n }", "public void setup(){\n\t\t gl.glEnable(GL.GL_BLEND);\n\t\t gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n\t\t for (int i = 0; i< cubes.length; i++){\n\t\t cubes[i] = this.s.new Cube(\n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\t5,//Math.round(random(-100, 100)),\n\t\t \t\tMath.round(p.random(-10, 10)), \n\t\t \t\t\tMath.round(p.random(-10, 10)), \n\t\t\t\t\tMath.round( p.random(-10, 10))\n\t\t );\n\t\t cubRotation[i]=new Vector3D();\n\t\t cubRotationFactor[i]=new Vector3D();\n\t\t cubRotationFactor[i].x = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].y = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].z = (float)Math.random()/2f;\n\t\t \n\t\t cubColor[i]=new Vector3D();\n\t\t cubColor[i].x = (float)Math.random();\n\t\t cubColor[i].y = (float)Math.random();\n\t\t cubColor[i].z = (float)Math.random();\n\t\t }\n\t\t \n\t\t try {\n\t\t\togl.makeProgram(\n\t\t\t\t\t\t\"glass\",\n\t\t\t\t\t\tnew String[] {},\n\t\t\t\t\t\tnew String[] {\"SpecularColor1\",\"SpecularColor2\",\"SpecularFactor1\",\"SpecularFactor2\",\"LightPosition\"}, //\"GlassColor\",\n\t\t\t\t\t\togl.loadGLSLShaderVObject(\t\"resources/robmunro/perform/ol5/glass_c.vert\" ), \n\t\t\t\t\t\togl.loadGLSLShaderFObject(\t\"resources/robmunro/perform/ol5/glass_c.frag\"\t)\n\t\t\t\t);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "@Override\n public Boolean colisionoCon(BOrigen gr) {\n return true;\n }", "private void coins_a2Y(){\n\t\tthis.cube[49] = this.cube[44]; \n\t\tthis.cube[44] = this.cube[24];\n\t\tthis.cube[24] = this.cube[9];\n\t\tthis.cube[9] = this.cube[29];\n\t\tthis.cube[29] = this.cube[49];\n\t}", "@Override\r\n\tpublic void transformComponent(AffineTransform transform, Set<JVGShape> locked) {\n\t}", "public ViewerCube getCube() {\n return cube;\n }", "public Block[][][] getCubes(){ return cubes; }", "abstract public Vector3[][] update();", "private void generateCube() {\n\t\tverts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)};\n\t\tverts[0].setElement(0, -1);\n\t\tverts[0].setElement(1, -1);\n\t\tverts[0].setElement(2, -1);\n\t\t\n\t\tverts[1].setElement(0, 1);\n\t\tverts[1].setElement(1, -1);\n\t\tverts[1].setElement(2, -1);\n\t\t\n\t\tverts[2].setElement(0, -1);\n\t\tverts[2].setElement(1, -1);\n\t\tverts[2].setElement(2, 1);\n\t\t\n\t\tverts[3].setElement(0, 1);\n\t\tverts[3].setElement(1, -1);\n\t\tverts[3].setElement(2, 1);\n\t\t\n\t\tverts[4].setElement(0, -1);\n\t\tverts[4].setElement(1, 1);\n\t\tverts[4].setElement(2, -1);\n\t\t\n\t\tverts[5].setElement(0, 1);\n\t\tverts[5].setElement(1, 1);\n\t\tverts[5].setElement(2, -1);\n\t\t\n\t\tverts[6].setElement(0, -1);\n\t\tverts[6].setElement(1, 1);\n\t\tverts[6].setElement(2, 1);\n\t\t\n\t\tverts[7].setElement(0, 1);\n\t\tverts[7].setElement(1, 1);\n\t\tverts[7].setElement(2, 1);\n\t\t\n\t\tfaces = new int[][] {{0, 3, 2}, {0, 1, 3}, {0, 4, 5}, {0, 5, 1}, {0, 2, 6}, {0, 6, 4}, {2, 7, 6}, {2, 3, 7}, {3, 1, 5}, {3, 5, 7}, {4, 7, 5}, {4, 6, 7}}; // List the vertices of each face by index in verts. Vertices must be listed in clockwise order from outside of the shape so that the faces pointing away from the camera can be culled or shaded differently\n\t}", "public void\nGLRenderBoundingBox(SoGLRenderAction action, final SbBox3f bbox)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int face, vert;\n final SoMaterialBundle mb = new SoMaterialBundle(action);\n final SbVec3f scale = new SbVec3f(), tmp = new SbVec3f();\n\n // Make sure textures are disabled, just to speed things up\n action.getState().push();\n SoGLMultiTextureEnabledElement.set(action.getState(),this,0, false);\n\n // Make sure first material is sent if necessary\n mb.sendFirst();\n\n // Scale and translate the cube to the correct spot\n final SbVec3f translate = bbox.getCenter();\n final SbVec3f size = new SbVec3f();\n bbox.getSize(size);\n scale.copyFrom(size.operator_mul(0.5f));\n\n GL2 gl2 = Ctx.get(SoGLCacheContextElement.get(action.getState())); \n \n for (face = 0; face < 6; face++) {\n\n if (! mb.isColorOnly())\n gl2.glNormal3fv(normals[face].getValueRead(),0);\n\n gl2.glBegin(GL2.GL_POLYGON);\n\n for (vert = 0; vert < 4; vert++)\n gl2.glVertex3fv((SCALE(verts[face][vert],tmp,scale).operator_add(translate)).getValueRead(),0);\n\n gl2.glEnd();\n }\n\n // Restore state\n action.getState().pop();\n mb.destructor(); // java port\n}", "private void updatePivot(int objIndex) {\n if (haveChanged[objIndex]){\n return;\n }\n int parentIndex=parentIndexes[objIndex];\n if (parentIndex!=-1){\n updatePivot(parentIndex);\n }\n pivots[objIndex].interpolateTransforms(beginPointTime.look[objIndex],endPointTime.look[objIndex],delta);\n if (parentIndex!=-1)\n pivots[objIndex].combineWithParent(pivots[parentIndex]);\n haveChanged[objIndex]=true;\n }", "private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}", "public void setCube(ViewerCube cube) {\n ViewerCube oldCube = this.cube;\n if (this.cube != null)\n {\n cube.removePropertyChangeListener(this);\n }\n this.cube = cube;\n if (this.cube != null)\n {\n cube.addPropertyChangeListener(this);\n }\n updateFromCube();\n firePropertyChange(PROP_CUBE, oldCube, cube);\n }", "public void multiply(CubieCube multiplier) {\n multiplyTheCorners(multiplier);\n multiplyTheEdges(multiplier);\n }", "public CubeState(){\n ep = new PermutationGroup(12);\n cp = new PermutationGroup(8);\n eo = new EdgeOrientation();\n co = new CubieOrientation();\n }", "public void RPrimeEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint cube = CUBE3, backCube = CUBE7;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(FRONT).get(cube).getColor();\r\n \tfaces.get(FRONT).get(cube).changeColor(faces.get(TOP).get(cube).getColor());\r\n \tfaces.get(TOP).get(cube).changeColor(faces.get(BACK).get(backCube).getColor());\r\n \tfaces.get(BACK).get(backCube).changeColor(faces.get(BOTTOM).get(cube).getColor());\r\n \tfaces.get(BOTTOM).get(cube).changeColor(color);\r\n \tcube += SHIFT_ROW;\r\n \tbackCube -= SHIFT_ROW;\r\n \t\r\n \t} \r\n \r\n \tColor color = faces.get(RIGHT).get(CUBE1).getColor();\r\n \tfaces.get(RIGHT).get(CUBE1).changeColor(faces.get(RIGHT).get(CUBE3).getColor());\r\n \tfaces.get(RIGHT).get(CUBE3).changeColor(faces.get(RIGHT).get(CUBE9).getColor());\r\n \tfaces.get(RIGHT).get(CUBE9).changeColor(faces.get(RIGHT).get(CUBE7).getColor());\r\n \tfaces.get(RIGHT).get(CUBE7).changeColor(color);\r\n \tcolor = faces.get(RIGHT).get(CUBE2).getColor();\r\n \tfaces.get(RIGHT).get(CUBE2).changeColor(faces.get(RIGHT).get(CUBE6).getColor());\r\n \tfaces.get(RIGHT).get(CUBE6).changeColor(faces.get(RIGHT).get(CUBE8).getColor());\r\n \tfaces.get(RIGHT).get(CUBE8).changeColor(faces.get(RIGHT).get(CUBE4).getColor());\r\n \tfaces.get(RIGHT).get(CUBE4).changeColor(color);\r\n }", "public final AstValidator.cube_clause_return cube_clause() throws RecognitionException {\n AstValidator.cube_clause_return retval = new AstValidator.cube_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 CUBE119=null;\n AstValidator.cube_item_return cube_item120 =null;\n\n\n CommonTree CUBE119_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:296:2: ( ^( CUBE cube_item ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:296:4: ^( CUBE cube_item )\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 CUBE119=(CommonTree)match(input,CUBE,FOLLOW_CUBE_in_cube_clause1282); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CUBE119_tree = (CommonTree)adaptor.dupNode(CUBE119);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CUBE119_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_cube_item_in_cube_clause1284);\n cube_item120=cube_item();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cube_item120.getTree());\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 void group() {\n for (Box box : boxes) {\r\n box.x += this.x;\r\n box.y += this.y;\r\n }\r\n }", "public void LEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint cube = CUBE1, backCube = CUBE9;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(FRONT).get(cube).getColor();\r\n \tfaces.get(FRONT).get(cube).changeColor(faces.get(TOP).get(cube).getColor());\r\n \tfaces.get(TOP).get(cube).changeColor(faces.get(BACK).get(backCube).getColor());\r\n \tfaces.get(BACK).get(backCube).changeColor(faces.get(BOTTOM).get(cube).getColor());\r\n \tfaces.get(BOTTOM).get(cube).changeColor(color);\r\n \tcube += SHIFT_ROW;\r\n \tbackCube -= SHIFT_ROW;\r\n \t\r\n \t} \r\n \r\n \tColor color = faces.get(LEFT).get(CUBE1).getColor();\r\n \tfaces.get(LEFT).get(CUBE1).changeColor(faces.get(LEFT).get(CUBE7).getColor());\r\n \tfaces.get(LEFT).get(CUBE7).changeColor(faces.get(LEFT).get(CUBE9).getColor());\r\n \tfaces.get(LEFT).get(CUBE9).changeColor(faces.get(LEFT).get(CUBE3).getColor());\r\n \tfaces.get(LEFT).get(CUBE3).changeColor(color);\r\n \tcolor = faces.get(LEFT).get(CUBE2).getColor();\r\n \tfaces.get(LEFT).get(CUBE2).changeColor(faces.get(LEFT).get(CUBE4).getColor());\r\n \tfaces.get(LEFT).get(CUBE4).changeColor(faces.get(LEFT).get(CUBE8).getColor());\r\n \tfaces.get(LEFT).get(CUBE8).changeColor(faces.get(LEFT).get(CUBE6).getColor());\r\n \tfaces.get(LEFT).get(CUBE6).changeColor(color);\r\n }", "public CubieCube inverseCube() {\n\n CubieCube clone = this.clone();\n for (int i = 0; i < edgesValues.length; i++) {\n clone.eo[i] = this.eo[clone.ep[i]];\n }\n for (int i = 0; i < cornerValues.length; i++) {\n char ori = this.co[clone.cp[i]];\n if (ori >= 3)\n clone.co[i] = ori;\n else {\n clone.co[i] = (char) -ori;\n if (clone.co[i] < 0)\n clone.co[i] += 3;\n }\n }\n return clone;\n }", "private void updateGrid() {\n if (intersection != null) {\n colorizeGrid();\n for (int x = 0; x < field.length; x++) {\n for (int y = 0; y < field[0].length; y++) {\n field[x][y].setText(intersection.getLetterCode(x, y));\n }\n }\n }\n }", "public void updateGridX();", "@Override\r\n\tpublic double area() {\n\r\n\t\tif (cube1.area()>cube2.area()) {\r\n\t\r\nc double volume() {\r\n\t\t\t\treturn super.area() * iDepth;\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic double perimeter() throws UnsupportedOperationException{\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\tpublic class SortByArea implements Comparator<Cuboid>{\r\n\r\n\t\t\t\tSortByArea() {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Cuboid cub1, Cuboid cub2) {\r\n\t\t\t\t\tif (cub1.area() > cub2.area()) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else if(cub1.area() < cub2.area()) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\tpublic class SortByVolume implements Comparator<Cuboid>{\r\n\r\n\t\t\t\tSortByVolume() {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Cuboid cub1, Cuboid cub2) {\r\n\t\t\t\t\tif (cub1.volume() > cub2.volume()) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else if(cub1.volume() < cub2.volume()) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\r\n}\r\n}", "protected void updateMeasureValue(Object[] row) {\n for (int i = 0; i < aggregators.length; i++) {\n if (null != row[i]) {\n aggregators[i].agg(row[i]);\n }\n }\n calculateMaxMinUnique();\n }", "Lab apply();", "void convertSubsetToExperimentalFactor( ExpressionExperiment expExp, GeoSubset geoSubSet );", "public void applyUpdates() {\r\n synchronized (visualItemMap) {\r\n adder.execute(parentGroup);\r\n for (VisualItem3D item : visualItemMap.values()) {\r\n item.applyTransform();\r\n }\r\n }\r\n }" ]
[ "0.61796194", "0.6054068", "0.5793821", "0.578791", "0.5756235", "0.57330656", "0.5589866", "0.55860287", "0.5497824", "0.5480461", "0.5440227", "0.5432547", "0.541011", "0.5376334", "0.5364569", "0.5356388", "0.5336115", "0.5317258", "0.5284505", "0.5266747", "0.5265413", "0.52336067", "0.5230851", "0.5219424", "0.5213611", "0.5208148", "0.5142435", "0.5087551", "0.50640655", "0.50389004", "0.5025656", "0.50002515", "0.49987447", "0.4991383", "0.49910063", "0.49901783", "0.49678192", "0.49483663", "0.493798", "0.49278912", "0.492655", "0.49206972", "0.48988116", "0.48962483", "0.48926455", "0.48868078", "0.4835726", "0.4814111", "0.48078957", "0.48022044", "0.47980255", "0.47837812", "0.47814202", "0.47752547", "0.47673056", "0.47500047", "0.47492287", "0.47473285", "0.47451738", "0.4744972", "0.47400308", "0.4738644", "0.47261027", "0.47252247", "0.47240347", "0.47226417", "0.471466", "0.46810716", "0.46802172", "0.46776173", "0.4677441", "0.4677262", "0.4676156", "0.467428", "0.46646595", "0.46598077", "0.46476424", "0.46435785", "0.46426806", "0.46416786", "0.46376297", "0.46322215", "0.46285316", "0.46250656", "0.46173084", "0.4614167", "0.46068913", "0.46060708", "0.4598298", "0.45969424", "0.45942277", "0.45756364", "0.4572972", "0.4570467", "0.45685098", "0.4565916", "0.45638493", "0.45607162", "0.4556719", "0.45565557", "0.45562857" ]
0.0
-1
In order to keep compatibility with old version, tinyint/smallint/int column use value directly, without dictionary
private boolean needDictionaryColumn(FunctionDesc functionDesc) { DataType dataType = functionDesc.getParameter().getColRefs().get(0).getType(); if (dataType.isIntegerFamily() && !dataType.isBigInt()) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object toJdbcType(Object value) {\n return value;\n }", "protected abstract Map<String, String> getColumnValueTypeOverrides();", "@SuppressWarnings(value=\"unchecked\")\n public void put(int field$, java.lang.Object value) {\n if (field$ >= 0 && field$ < 8) {\n setDirty(field$) ;\n }\n switch (field$) {\n case 0: defaultLong1 = (java.lang.Long)(value); break;\n case 1: defaultStringEmpty = (java.lang.CharSequence)(value); break;\n case 2: columnLong = (java.lang.Long)(value); break;\n case 3: unionRecursive = (org.apache.gora.cascading.test.storage.TestRow)(value); break;\n case 4: unionString = (java.lang.CharSequence)(value); break;\n case 5: unionLong = (java.lang.Long)(value); break;\n case 6: unionDefNull = (java.lang.Long)(value); break;\n case 7: family2 = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper((java.util.Map)value)); break;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "protected final int get_INTEGER(int column) {\n // @AGG had to get integer as Little Endian\n if (metadata.isZos())\n return dataBuffer_.getInt(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getIntLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getInt(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }", "public Integer getValue();", "Object convertDBValueToJavaValue(Object value, Class<?> javaType);", "Object convertJavaValueToDBValue(Object value, Class<?> javaType);", "Integer getValue();", "Integer getValue();", "IntegerValue getValueObject();", "private int entityValue(String name)\n\t{\n\t\treturn map.value(name);\n\t}", "int getDataTypeValue();", "private void setValue(int columnIndex, String value) throws Exception {\n //TODO Take into account the possiblity of a collision, and notify listeners if necessary\n if (wasNull || value == null) {\n rowValues[columnIndex - 1] = null;\n } else {\n switch (metaData.getColumnType(columnIndex)) {\n case Types.TINYINT:\n rowValues[columnIndex - 1] = Byte.valueOf(value.trim());\n break;\n case Types.SMALLINT:\n rowValues[columnIndex - 1] = Short.valueOf(value.trim());\n break;\n case Types.INTEGER:\n rowValues[columnIndex - 1] = Integer.valueOf(value.trim());\n break;\n case Types.BIGINT:\n rowValues[columnIndex - 1] = Long.valueOf(value.trim());\n break;\n case Types.REAL:\n rowValues[columnIndex - 1] = Float.valueOf(value.trim());\n break;\n case Types.FLOAT:\n case Types.DOUBLE:\n rowValues[columnIndex - 1] = Double.valueOf(value.trim());\n break;\n case Types.DECIMAL:\n case Types.NUMERIC:\n rowValues[columnIndex - 1] = new BigDecimal(value.trim());\n break;\n case Types.BOOLEAN:\n case Types.BIT:\n rowValues[columnIndex - 1] = Boolean.valueOf(value.trim());\n break;\n case Types.CHAR:\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n rowValues[columnIndex - 1] = value;\n break;\n case Types.VARBINARY:\n case Types.LONGVARBINARY:\n case Types.BINARY:\n byte[] bytes = Base64.decode(value);\n rowValues[columnIndex - 1] = bytes;\n break;\n case Types.DATE:\n case Types.TIME:\n case Types.TIMESTAMP:\n rowValues[columnIndex - 1] = new Timestamp(Long.parseLong(value.trim()));\n break;\n case Types.ARRAY:\n case Types.BLOB:\n case Types.CLOB:\n case Types.DATALINK:\n case Types.DISTINCT:\n case Types.JAVA_OBJECT:\n case Types.OTHER:\n case Types.REF:\n case Types.STRUCT:\n //what to do with this?\n break;\n default :\n //do nothing\n }\n }\n }", "public int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public static JdbcTypeType get(int value) {\r\n\t\tswitch (value) {\r\n\t\t\tcase _1: return _1_LITERAL;\r\n\t\t\tcase _2: return _2_LITERAL;\r\n\t\t\tcase _3: return _3_LITERAL;\r\n\t\t\tcase _4: return _4_LITERAL;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public interface ValueConvertor {\n\t/**\n\t * \n\t * Convert the value of result set to JAVA type<BR>\n\t * \n\t * @param cursor\n\t * @param columnIndex\n\t * @param javaType\n\t * @return value after converting\n\t */\n\tObject convertCursorToJavaValue(Cursor cursor, int columnIndex,\n\t\t\tClass<?> javaType);\n\n\t/**\n\t * \n\t * Convert DB type to JAVA type<BR>\n\t * \n\t * @param value\n\t * @param javaType\n\t * @return value after converting\n\t */\n\tObject convertDBValueToJavaValue(Object value, Class<?> javaType);\n\n\t/**\n\t * Convert JAVA type to DB type<BR>\n\t * \n\t * @param value\n\t * @param javaType\n\t * @return value after converting\n\t */\n\tObject convertJavaValueToDBValue(Object value, Class<?> javaType);\n}", "io.dstore.values.IntegerValue getValueLanguageId();", "Object getColumnValue(int colIndex);", "@Override\n\t\tpublic int getValueColumn() {\n\t\t\treturn valueColumn;\n\t\t}", "void setValueOfColumn(ModelColumnInfo<Item> column, @Nullable Object value);", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "@SuppressWarnings(\"null\")\r\n\tpublic void addColumnValue(Column column, Object value)\r\n\t{\r\n\t\tint type = ZConstant.UNKNOWN;\r\n\t\tif(value == null)\r\n\t\t\ttype = ZConstant.NULL;\r\n\t\telse if(value instanceof Number)\r\n\t\t\ttype = ZConstant.NUMBER;\r\n\t\telse if(value instanceof String)\r\n\t\t\ttype = ZConstant.STRING;\r\n\t\tZConstant right = new ZConstant(value.toString(), type);\r\n\t\t\r\n\t\tcolumnValues.put(column.getName(), right);\r\n\t}", "public void getTinyInt(int columnIndex, NullableTinyIntHolder holder) {\n TinyIntVector vector = (TinyIntVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }", "@Override\n\tpublic Integer getValue() {\n\t\treturn value;\n\t}", "@Override\n\tpublic Integer getValue() {\n\t\treturn value;\n\t}", "public byte getTinyInt(int columnIndex) {\n TinyIntVector vector = (TinyIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "@Override\n public int intValue(int numId) {\n return 0;\n }", "public void getTinyInt(String columnName, NullableTinyIntHolder holder) {\n TinyIntVector vector = (TinyIntVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }", "int getValue() {\r\n switch (this) {\r\n case Boolean:\r\n return BOOLEAN;\r\n case Number:\r\n return NUMBER;\r\n case Array:\r\n return ARRAY;\r\n default:\r\n return STRING;\r\n }\r\n }", "@Override\n public CashTransactionType convertToEntityAttribute(\n final String dbColumnValue) {\n\n return CashTransactionType.dbMappedValue(dbColumnValue);\n// for (CashTransactionType cashTransactionType\n// : CashTransactionType.values()) {\n// if (cashTransactionType.getValue().equals(dbColumnValue)) {\n// return cashTransactionType;\n// }\n// }\n// return null;\n }", "@Override\r\n\tpublic Integer getValue() {\n\t\treturn null;\r\n\t}", "public int getValue();", "public int getValue();", "public static void setParameter(PreparedStatement p, int number, Column column, Object value)\n throws SQLException\n {\n byte[] b;\n InputStream stream;\n int type;\n\n type = column.getType();\n\n if (value == null)\n {\n p.setNull(number, type);\n return;\n }\n\n try\n {\n switch (type)\n {\n case Types.BIT:\n p.setBoolean(number, ((Boolean)value).booleanValue());\n break;\n\n case Types.TINYINT:\n p.setByte(number, ((Byte)value).byteValue());\n break;\n\n case Types.SMALLINT:\n p.setShort(number, ((Short)value).shortValue());\n break;\n\n case Types.INTEGER:\n p.setInt(number, ((Integer)value).intValue());\n break;\n\n case Types.BIGINT:\n p.setLong(number, ((Long)value).longValue());\n break;\n\n case Types.REAL:\n p.setFloat(number, ((Float)value).floatValue());\n break;\n\n case Types.FLOAT:\n case Types.DOUBLE:\n p.setDouble(number, ((Double)value).doubleValue());\n break;\n\n case Types.DECIMAL:\n case Types.NUMERIC:\n p.setBigDecimal(number, (BigDecimal)value);\n break;\n\n case Types.CHAR:\n case Types.VARCHAR:\n p.setString(number, (String)value);\n break;\n\n case Types.LONGVARCHAR:\n // First try to pass the value as Unicode. If this fails,\n // assume it is because setUnicodeStream() is not supported.\n // Next, try calling setAsciiStream(). If this also fails,\n // then return the exception.\n try\n {\n b = ((String)value).getBytes(\"UTF-16\");\n stream = new ByteArrayInputStream(b);\n p.setUnicodeStream(number, stream, b.length);\n }\n catch (Exception e)\n {\n try\n {\n b = ((String)value).getBytes(\"US-ASCII\");\n stream = new ByteArrayInputStream(b);\n p.setAsciiStream(number, stream, b.length);\n }\n catch (UnsupportedEncodingException u)\n {\n throw new SQLException(\"[XML-DBMS] \" + u.getMessage());\n }\n }\n break;\n\n case Types.BINARY:\n case Types.VARBINARY:\n b = ((ByteArray)value).getBytes();\n p.setBytes(number, b);\n break;\n\n case Types.LONGVARBINARY:\n b = ((ByteArray)value).getBytes();\n stream = new ByteArrayInputStream(b);\n p.setBinaryStream(number, stream, b.length);\n break;\n\n case Types.DATE:\n p.setDate(number, (java.sql.Date)value);\n break;\n\n case Types.TIME:\n p.setTime(number, (Time)value);\n break;\n\n case Types.TIMESTAMP:\n p.setTimestamp(number, (Timestamp)value);\n break;\n\n default:\n String name = JDBCTypes.getName(type);\n if (name == null)\n {\n name = Integer.toString(type);\n }\n throw new SQLException(\"Unsupported JDBC Type: \" + name);\n \n }\n }\n catch (ClassCastException c)\n {\n // If the value is not the expected type, then try to convert it to the\n // correct type. Note that convertAndSetParameter calls back into this\n // method. However, an infinite loop cannot occur because either (a)\n // convertAndSetParameter fails the conversion and an exception is thrown,\n // or (b) convertAndSetParameter succeeds in the conversion and this clause\n // is not reached again.\n\n convertAndSetParameter(p, number, column, value);\n }\n }", "int value(String name);", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public Object resultToJava(FieldType fieldType, DatabaseResults results, int dbColumnPos) throws SQLException {\n \t\t\tshort shortVal = results.getShort(dbColumnPos);\n \t\t\t// make sure the database value doesn't overflow the byte\n \t\t\tif (shortVal < Byte.MIN_VALUE) {\n \t\t\t\treturn Byte.MIN_VALUE;\n \t\t\t} else if (shortVal > Byte.MAX_VALUE) {\n \t\t\t\treturn Byte.MAX_VALUE;\n \t\t\t} else {\n \t\t\t\treturn (byte) shortVal;\n \t\t\t}\n \t\t}", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "private JdbcTypeType(int value, String name, String literal) {\r\n\t\tsuper(value, name, literal);\r\n\t}", "final byte getByte(int column) {\n switch (jdbcTypes_[column - 1]) {\n case Types.BOOLEAN:\n return CrossConverters.getByteFromBoolean(get_BOOLEAN(column));\n case Types.SMALLINT:\n int smallInt = get_SMALLINT(column);\n if (smallInt > Byte.MAX_VALUE || smallInt < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + smallInt);\n return (byte) smallInt;\n case Types.INTEGER:\n int i = get_INTEGER(column);\n if (i > Byte.MAX_VALUE || i < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + i);\n return (byte) i;\n case Types.BIGINT:\n long l = get_BIGINT(column);\n if (l > Byte.MAX_VALUE || l < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + l);\n return (byte) l;\n case Types.REAL:\n float f = get_FLOAT(column);\n if (f > Byte.MAX_VALUE || f < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + f);\n return (byte) f;\n case Types.DOUBLE:\n double d = get_DOUBLE(column);\n if (d > Byte.MAX_VALUE || d < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + d);\n return (byte) d;\n case Types.DECIMAL:\n // For performance we don't materialize the BigDecimal, but convert directly from decimal bytes to a long.\n long ld = getLongFromDECIMAL(column, \"byte\");\n if (ld > Byte.MAX_VALUE || ld < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + ld);\n return (byte) ld;\n case Types.CHAR:\n return CrossConverters.getByteFromString(get_CHAR(column));\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n return CrossConverters.getByteFromString(get_VARCHAR(column));\n default:\n throw coercionError( \"byte\", column );\n }\n }", "@Override\r\n\tpublic boolean evaluate(Object value, int column) throws SQLException {\n\t\treturn false;\r\n\t}", "public byte getTinyInt(String columnName) {\n TinyIntVector vector = (TinyIntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "@Override\n\tpublic String getValue() {\n\t\treturn integerLiteral;\n\t}", "public int intValue(Map<Prop, Object> map) {\n assert type == Integer.class;\n Object o = map.get(this);\n return this.<Integer>typeValue(o);\n }", "Short getValue();", "@Test\n public void test_column_type_detection_integer_07() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDunsignedShort), true, Types.INTEGER, Integer.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertFalse(info.isSigned());\n }", "public abstract int getValue();", "public abstract int getValue();", "public abstract int getValue();", "public void getBigInt(String columnName, NullableBigIntHolder holder) {\n BigIntVector vector = (BigIntVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }", "io.dstore.values.IntegerValue getActive();", "private DatabaseType(Integer value, String displayValue, String className) {\n this.value = value;\n this.displayValue = displayValue;\n this.className = className;\n }", "public static Column val(final Object obj) {\n\t\tif(obj == null) // if obj is null we can't generate metadata.. \n\t\t\tthrow new RuntimeException(\"Don't use val() with a null value! Use valNULL() instead!\"); \n\t\treturn new Column(obj, \"val(\" + obj.toString() + \")\"){\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic ColumnMetaData getColumnMetaData() {\n\t\t\t\t// make sure this val is only used as intended by the user..\n\t\t\t\t// ATTENTION: this means that for \"internal\" use, like\n\t\t\t\t// checkForNumber, the columnmetadata\n\t\t\t\t// needs to be accessed directly!\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\t\"If you want to use val() to create a real\"\n\t\t\t\t\t\t\t\t+ \" column within a tuple, give it a name (i.e. use val(obj, name))!\");\n\t\t\t}\n\t\t};\n\t}", "@Test\n public void test_column_type_detection_integer_01() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactoryExtra.intToNode(1234), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }", "@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }", "@Test\n public void test_column_type_detection_integer_02() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDint), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }", "void setColumnValue(int colIndex, Object value);", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "@Test\n public void testConversionsLimits() throws Exception {\n LOG.info(\"TEST CQL CONVERSIONS LIMITS - Start\");\n\n String createStmt = \"CREATE TABLE test_varint\" +\n \"(h1 varint, r1 varint, v1 tinyint, v2 smallint, v3 int, v4 bigint, \" +\n \"v5 float, v6 double, primary key(h1, r1));\";\n session.execute(createStmt);\n\n TreeSet<BigInteger> varints = new TreeSet<BigInteger>();\n\n BigInteger varintHash;\n\n // Create a unique varint hash.\n do {\n varintHash = new BigInteger(getRandomVarInt());\n } while (!varints.add(varintHash));\n\n // Test the minimum values allowed for each integer type.\n final String insertStmtFmt =\n \"INSERT INTO test_varint (h1, r1, v1, v2, v3, v4, v5, v6) \" +\n \"VALUES (%s, 1, %d, %d, %d, %d, %e, %e);\";\n\n String insertStmt = String.format(insertStmtFmt, varintHash.toString(), -128, -32768,\n Integer.MIN_VALUE, Long.MIN_VALUE, Float.MIN_VALUE,\n Double.MIN_VALUE);\n session.execute(insertStmt);\n\n final String selectStmtFmt =\n \"SELECT h1, v1, v2, v3, v4, v5, v6 FROM test_varint WHERE h1 = %s;\";\n String selectStmt = String.format(selectStmtFmt, varintHash.toString());\n LOG.info(\"selectStmt: \" + selectStmt);\n\n ResultSet rs = session.execute(selectStmt);\n assertEquals(1, rs.getAvailableWithoutFetching());\n\n Row row = rs.one();\n assertEquals(varintHash, row.getVarint(\"h1\"));\n assertEquals(-128, row.getByte(\"v1\"));\n assertEquals(-32768, row.getShort(\"v2\"));\n assertEquals(Integer.MIN_VALUE, row.getInt(\"v3\"));\n assertEquals(Long.MIN_VALUE, row.getLong(\"v4\"));\n assertEquals(Float.MIN_VALUE, row.getFloat(\"v5\"), Float.MIN_VALUE);\n assertEquals(Double.MIN_VALUE, row.getDouble(\"v6\"), Double.MIN_VALUE);\n\n // Test the maximum values allowed for each integer type.\n insertStmt = String.format(insertStmtFmt, varintHash.toString(), 127, 32767,\n Integer.MAX_VALUE, Long.MAX_VALUE, Float.MAX_VALUE, Double.MAX_VALUE);\n session.execute(insertStmt);\n\n selectStmt = String.format(selectStmtFmt, varintHash.toString());\n\n rs = session.execute(selectStmt);\n assertEquals(1, rs.getAvailableWithoutFetching());\n\n row = rs.one();\n assertEquals(varintHash, row.getVarint(\"h1\"));\n assertEquals(127, row.getByte(\"v1\"));\n assertEquals(32767, row.getShort(\"v2\"));\n assertEquals(Integer.MAX_VALUE, row.getInt(\"v3\"));\n assertEquals(Long.MAX_VALUE, row.getLong(\"v4\"));\n assertEquals(Float.MAX_VALUE, row.getFloat(\"v5\"), Float.MAX_VALUE / 1e5);\n assertEquals(Double.MAX_VALUE, row.getDouble(\"v6\"), Double.MAX_VALUE / 1e5);\n\n final String dropStmt = \"DROP TABLE test_varint;\";\n session.execute(dropStmt);\n\n LOG.info(\"TEST CQL CONVERSIONS LIMITS - End\");\n }", "public abstract long getValue();", "public abstract long getValue();", "public SQLColumn(K name, V value) {\n key = name;\n this.value = value;\n }", "public void setValueOf( final Object value, final R row, final C columnEnum ) {}", "@Test\n public void test_column_type_detection_integer_06() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDshort), true, Types.INTEGER, Integer.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }", "org.apache.calcite.avatica.proto.Common.TypedValue getValue();", "public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }", "@Test\n public void test_column_type_detection_integer_03() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDlong), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }", "private Type get_value_type(long xx) {\n Type vt = _values.get(xx);\n assert vt!=null;\n return vt;\n }", "io.dstore.values.IntegerValue getFieldTypeId();", "public long getMappedValue() {\n\t\treturn this.value;\n\t}", "io.dstore.values.IntegerValueOrBuilder getActiveOrBuilder();", "private void insertValue(String field, String value) {\n switch (mapFieldsTypes.get(field)) {\n case DBCreator.STRING_TYPE:\n insertStringValue(field, value);\n break;\n case DBCreator.INTEGER_TYPE:\n insertIntegerValue(field, Integer.valueOf(value));\n break;\n }\n }", "long intField(String name, boolean isDefined, long value,\n IntegerSpecification spec) throws NullField, InvalidFieldValue;", "private void insertIntegerValue(String field, int value) {\n mapFieldsIntegers.put(field,value);\n }", "public void getBigInt(int columnIndex, NullableBigIntHolder holder) {\n BigIntVector vector = (BigIntVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }", "public byte getValueInRowKey() {\n return valueInRowKey;\n }", "protected abstract DTDataTypes52 getDataType(C column);", "ValueType getValue();", "private void setValues(PreparedStatement ps, int type, String key, Object value) throws SQLException, PropertyException {\n String driverName;\n\n try {\n driverName = ps.getConnection().getMetaData().getDriverName().toUpperCase();\n } catch (Exception e) {\n driverName = \"\";\n }\n\n ps.setNull(1, Types.VARCHAR);\n ps.setNull(2, Types.TIMESTAMP);\n\n // Patched by Edson Richter for MS SQL Server JDBC Support!\n // Oracle support suggestion also Michael G. Slack\n if ((driverName.indexOf(\"SQLSERVER\") >= 0) || (driverName.indexOf(\"ORACLE\") >= 0)) {\n ps.setNull(3, Types.BINARY);\n } else {\n ps.setNull(3, Types.BLOB);\n }\n\n ps.setNull(4, Types.FLOAT);\n ps.setNull(5, Types.NUMERIC);\n ps.setInt(6, type);\n ps.setString(7, globalKey);\n ps.setString(8, key);\n\n switch (type) {\n case PropertySet.BOOLEAN:\n\n Boolean boolVal = (Boolean) value;\n ps.setInt(5, boolVal.booleanValue() ? 1 : 0);\n\n break;\n\n case PropertySet.DATA:\n\n Data data = (Data) value;\n ps.setBytes(3, data.getBytes());\n\n break;\n\n case PropertySet.DATE:\n\n Date date = (Date) value;\n ps.setTimestamp(2, new Timestamp(date.getTime()));\n\n break;\n\n case PropertySet.DOUBLE:\n\n Double d = (Double) value;\n ps.setDouble(4, d.doubleValue());\n\n break;\n\n case PropertySet.INT:\n\n Integer i = (Integer) value;\n ps.setInt(5, i.intValue());\n\n break;\n\n case PropertySet.LONG:\n\n Long l = (Long) value;\n ps.setLong(5, l.longValue());\n\n break;\n\n case PropertySet.STRING:\n ps.setString(1, (String) value);\n\n break;\n\n default:\n throw new PropertyException(\"This type isn't supported!\");\n }\n }", "@Test\n public void test_column_type_detection_integer_04() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDunsignedInt), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertFalse(info.isSigned());\n }", "public int intValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "protected Object getTableValue()\n\t\t{\n\t\t\treturn Value ;\n\t\t}", "public void getSmallInt(String columnName, NullableSmallIntHolder holder) {\n SmallIntVector vector = (SmallIntVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }", "BigInteger getValue();", "private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }", "public void getSmallInt(int columnIndex, NullableSmallIntHolder holder) {\n SmallIntVector vector = (SmallIntVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }", "@Override\n public int getValue() {\n return super.getValue();\n }", "@Test\n public void test_column_type_detection_integer_05() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDunsignedLong), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertFalse(info.isSigned());\n }", "public TableValue(short type) {\n\tkey = null; // No name by default.\n\tstorageType = type; // Type of data. \n\tattrs = null; // No attributes yet.\n\tflags = -1; // No flags yet. \n\n\t// Create a generic, default vector clock. \n\tvclock = new VectorClock(\"s\".getBytes(), 0);\n }", "void setInt(String key, int val);", "int getValue();" ]
[ "0.61312044", "0.5954524", "0.592474", "0.58756214", "0.5869657", "0.5846992", "0.58464175", "0.57794994", "0.57794994", "0.5725861", "0.57216716", "0.5700901", "0.5670324", "0.56673247", "0.5663909", "0.56583315", "0.56564236", "0.5625116", "0.5603034", "0.5592029", "0.55661064", "0.5559227", "0.5542537", "0.55184555", "0.55184555", "0.55056614", "0.55005205", "0.5500185", "0.5500132", "0.549221", "0.5489903", "0.5457215", "0.5457215", "0.5431229", "0.5424559", "0.54232496", "0.5422511", "0.5414722", "0.5405967", "0.5400787", "0.54007536", "0.5387671", "0.5373135", "0.5365152", "0.5364468", "0.5348021", "0.53385293", "0.53290707", "0.53290707", "0.53290707", "0.53147966", "0.5314706", "0.5314056", "0.52956647", "0.5286901", "0.52779406", "0.5276174", "0.5273684", "0.5272316", "0.5272316", "0.52716804", "0.5264885", "0.5264885", "0.5261758", "0.52597916", "0.52584106", "0.5241663", "0.5239466", "0.52379453", "0.5230275", "0.52252185", "0.5221051", "0.5219957", "0.52162546", "0.52147585", "0.5212105", "0.5210831", "0.52046335", "0.5204597", "0.51900035", "0.518873", "0.5186854", "0.518552", "0.5183232", "0.5183232", "0.5183232", "0.5183232", "0.5183232", "0.5183232", "0.5183232", "0.51746786", "0.5174168", "0.5165495", "0.5163386", "0.51606745", "0.51573974", "0.5157379", "0.5154821", "0.51463234", "0.5141979" ]
0.55850196
20
TODO Autogenerated method stub
public static void main(String[] args) { GarbageCollection s1= new GarbageCollection(); GarbageCollection s2= new GarbageCollection(); s1=null; s2=null; System.gc(); System.out.println(""+s1); }
{ "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
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.id
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCustId(){\n return this.custId;\r\n }", "int getListSnId(int index);", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public Long getCustId() {\n return custId;\n }", "public int getListId()\n {\n return listId;\n }", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "public int getSeasonId() {\n return seasonId;\n }", "public int getIdCadastroSelecionado(int listPosition, String condition){\n \tif (listPosition == -1){\r\n \t\treturn 0;\r\n \r\n \t}else{\r\n \treturn Integer.parseInt(Controlador.getInstancia().getCadastroDataManipulator().selectIdImoveis(condition).get(listPosition));\r\n \t}\r\n }", "public IntColumn getDatasetListId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"dataset_list_id\", IntColumn::new) :\n getBinaryColumn(\"dataset_list_id\"));\n }", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public String getCustId() {\n return custId;\n }", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "int getDoctorId();", "int getDoctorId();", "private static int getCustomerIndex(List<Integer> customer){\n return customer.get(0);\n }", "int clientSourceStationID(final int index);", "public int getListSnId(int index) {\n return listSnId_.getInt(index);\n }", "io.dstore.values.IntegerValue getCampaignId();", "io.dstore.values.IntegerValue getCampaignId();", "private String bekommeId(String matrikelnummerClient) throws SQLException {\n\t\tquery = \"SELECT `Id` FROM `student` WHERE `matrikelnummer` = \\\"\" + matrikelnummerClient + \"\\\"\";\n\t\tstmt = connec.createStatement();\n\t\trs = stmt.executeQuery(query); //Ergebnis der Abfrage im ResultSet gespeichert: Hier die gewünschte Id\n\t\tif(rs.next())\t\t//Ist die Anfrage erfolgreich gewesen?\n\t\t{\n\t\t\treturn rs.getString(\"Id\");\n\t\t}\n\t\telse return \"kein Student mit der Matrikelnummer gefunden\";\n\t}", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public int getListSnId(int index) {\n return listSnId_.getInt(index);\n }", "public int getM_Production_ID();", "@Override\n\tpublic String getGlCodeId(final String glCode, final Connection connection)\n\t{\n\t\tString glCodeId = \"null\";\n\t\ttry {\n\t\t\tfinal String query = \"select id from chartofaccounts where glCode like ?\";\n\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\tLOGGER.info(\" query \" + query);\n\t\t\tQuery pst = persistenceService.getSession().createSQLQuery(query);\n\t\t\tpst.setString(0, glCode);\n\t\t\tList<Object[]> rset = pst.list();\n\t\t\tfor (final Object[] element : rset) {\n\t\t\t\tglCodeId = element[0].toString();\n\t\t\t\tif (LOGGER.isDebugEnabled())\n\t\t\t\t\tLOGGER.debug(\" glCodeId \" + glCodeId);\n\t\t\t}\n\t\t\tif (rset == null || rset.size() == 0)\n\t\t\t\tthrow new NullPointerException(\"id not found\");\n\t\t} catch (final HibernateException e) {\n\t\t\tLOGGER.error(\" id not found \" + e.toString(), e);\n\t\t\tthrow new HibernateException(e.toString());\n\t\t}\n\t\treturn glCodeId;\n\t}", "public int getC_BPartner_ID();", "public TeamStudentPK getId() {\r\n\t\treturn this.id;\r\n\t\t\r\n\t}", "public String getCustomerId(int k) {\n\t\treturn prescriptionList.get(k).getCustomerId();\n\t}", "public static int getCustomerId(String customerName)\n {\n int customerID = 0;\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String customerIdQuery = \"SELECT Customer_ID FROM customers WHERE Customer_Name='\" + customerName + \"'\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(customerIdQuery);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n customerID = rs.getInt(\"Customer_ID\");\n return customerID;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return customerID;\n }", "public SelectId<String> retrieveCalendarId() {\n return calendarId;\n }", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "java.util.List<java.lang.Integer> getListSnIdList();", "public Integer getCrowdId() {\n return crowdId;\n }", "public static int getCollectionId(Connection c, String name) throws SQLException {\r\n\t\tPreparedStatement s = c.prepareStatement(\"select \"+quote(FC_ID_FIELD.name)+\" from \"+quote(FC_TABLE_NAME)+\" where \"+quote(FC_NAME_FIELD.name)+\"=\"+\"?\");\r\n\t\ts.setString(1, name);\r\n\t\tResultSet rs = s.executeQuery();\r\n\t\trs.next();\r\n\t\tint id = rs.getInt(1);\r\n\t\ts.close();\r\n\t\treturn id;\r\n\t}", "public abstract Integer getCompteId();", "public Integer getCustomerId()\n {\n return customerId;\n }", "private static int getComponentIdFromCompName(String compName){\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcomponentCriteria.add(Restrictions.eq(\"componentName\",compName));\n\t\tcomponentCriteria.add(Restrictions.eq(\"delInd\", 0));\n\t\tcomponentCriteria.setMaxResults(1);\n\t\tComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();\n\t\tint compId = 0;\n\t\tif(com != null){\n\t\t\tcompId = com.getComponentId();\n\t\t}\n\t\ttxn.commit();\n\t\treturn compId;\n\t}", "@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }", "public int getCustomerID(int customer_id) {\n int id = 0;\n try {\n checkCustomerID.setInt(1, customer_id);\n ResultSet resultset = checkCustomerID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + id);\n }\n try {\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Cannot close resultset!\");\n }\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public List<String> getListCourseId();", "public String getCollectionIdSql(String table)\r\n \t{\r\n \t\treturn \"select COLLECTION_ID from \" + table + \" where IN_COLLECTION = ?\";\r\n \t}", "public int getStudentId();", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "public BigDecimal getLstId() {\n return lstId;\n }", "public int getSeasonStatusId() {\n return seasonStatusId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}", "public List<Integer> findAllPaintersId();", "public int getId() {\n return parameter.getId();\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public abstract ArrayList<Integer> getIdList();", "private static ArrayList<Integer> getkitchenStockIdList(String kitchenName, ArrayList<OrderItemDetailsBean> orderItemDetailList){\n\t\tArrayList<Integer> kitchenStockIdList = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tSQL:{\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tString sql= \"select kitchen_stock_id from fapp_kitchen_stock \"\n\t\t\t\t\t+\" where kitchen_cuisine_id = ?\"\n\t\t\t\t\t+\" and kitchen_category_id = ?\"\n\t\t\t\t\t+\" and kitchen_id = (SELECT kitchen_id from fapp_kitchen where kitchen_name = ?)\";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tfor(OrderItemDetailsBean items : orderItemDetailList){\n\t\t\t\t\tpreparedStatement.setInt(1, items.cuisineId);\n\t\t\t\t\tpreparedStatement.setInt(2, items.categoryId);\n\t\t\t\t\tpreparedStatement.setString(3, kitchenName);\n\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\tif (resultSet.next()) {\n\t\t\t\t\t\tkitchenStockIdList.add(resultSet.getInt(\"kitchen_stock_id\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(\"ERROR DUE TO:\"+e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tif(connection != null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\n\t\t//System.out.println(\"Kitchen Stock Id list::\"+kitchenStockIdList);\n\t\treturn kitchenStockIdList;\n\t}", "public String getSeasonCode()\r\n\t{\r\n\t\treturn getSeasonCode( getSession().getSessionContext() );\r\n\t}", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "String getIdNumber();", "@Import(\"id\")\n\tint getId();", "int getSourceSnId();", "public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }", "public int getC_Decoris_PreSalesLine_ID();", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}", "public int getCustomerId() \n {\n return customerId;\n }", "public IntColumn getId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"id\", IntColumn::new) :\n getBinaryColumn(\"id\"));\n }", "public IntColumn getId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"id\", IntColumn::new) :\n getBinaryColumn(\"id\"));\n }", "public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}", "public int getId() \r\n {\r\n return studentId;\r\n }", "public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}", "public Integer getsId() {\n return sId;\n }", "public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }", "public Integer getcId() {\n return cId;\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public ArrayList<String> getBuyersId(){\n return buyersId;\n }", "public BigDecimal getLstCustManagerId() {\n return lstCustManagerId;\n }", "@SqlMapper\npublic interface PortalBeanCurdMapper {\n List<LauncherHomeApiVo> getLauncherHome(@Param(\"curdId\")Integer curdId);\n}", "public java.util.List<java.lang.Integer>\n getListSnIdList() {\n return listSnId_;\n }", "public String getConvertToId();", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public String getLstCustNo() {\n return lstCustNo;\n }", "public java.lang.Integer getVaccinId () {\n\t\treturn vaccinId;\n\t}", "public int getTeamIdBySelection(List<String> selection) {\n\t\tint id = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\n\t\tjava.sql.Date date = null;\n\t\ttry {\n\t\t\tdate = new java.sql.Date(sdf.parse(selection.get(3)).getTime());\n\t\t} catch (ParseException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tString teamIdBySelectionRecords_sql = \"SELECT id FROM \" + team_table + \" WHERE name='\" + selection.get(0)\n\t\t\t\t+ \"' AND coach='\" + selection.get(1) + \"' AND city='\" + selection.get(2) + \"' AND dateFoundation='\"\n\t\t\t\t+ date + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamIdBySelectionRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tid = rs.getInt(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "public String getIdForRow(int row);", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "String getValueId();", "java.lang.String getBusinessId();" ]
[ "0.5617551", "0.5439353", "0.53921086", "0.53571534", "0.5345535", "0.53305805", "0.53255177", "0.52288455", "0.52167255", "0.52008367", "0.52008367", "0.5200637", "0.5200637", "0.51666033", "0.51537997", "0.5134862", "0.50895983", "0.50884336", "0.50884336", "0.50865304", "0.50751543", "0.5061754", "0.5053579", "0.5053579", "0.50517106", "0.50472814", "0.5041805", "0.50096226", "0.5002647", "0.5000774", "0.4955066", "0.4947331", "0.49465343", "0.49455938", "0.49362546", "0.49304456", "0.49267328", "0.4920712", "0.49133474", "0.49043092", "0.49002624", "0.49001604", "0.48958665", "0.48741263", "0.48741263", "0.48707348", "0.4865966", "0.48545957", "0.4842292", "0.48392016", "0.48239326", "0.4818466", "0.4815661", "0.48154888", "0.480762", "0.480762", "0.47968575", "0.4788356", "0.4786972", "0.4781897", "0.4780025", "0.4778533", "0.47730395", "0.4772831", "0.4765418", "0.47641897", "0.47615725", "0.47609222", "0.47596243", "0.47596243", "0.47596243", "0.47596243", "0.47549862", "0.47526607", "0.4749311", "0.4749311", "0.47490314", "0.47485608", "0.47476166", "0.47425207", "0.4741367", "0.47413623", "0.47379762", "0.4736698", "0.4736698", "0.4736698", "0.4736698", "0.4736698", "0.47342777", "0.47306904", "0.47253343", "0.47210273", "0.47141355", "0.4710738", "0.47105142", "0.4709725", "0.47086987", "0.47074258", "0.47019526", "0.4695632", "0.46935636" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.id
public void setId(Long id) { setField("id", id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }", "public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }", "public void setM_Production_ID (int M_Production_ID);", "private void setId(int value) {\n \n id_ = value;\n }", "public void setTeamId(int value) {\n this.teamId = value;\n }", "public void setSeasonCode(final String value)\r\n\t{\r\n\t\tsetSeasonCode( getSession().getSessionContext(), value );\r\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "public void setSeasonHSPConfigurationId(int value) {\n this.seasonHSPConfigurationId = value;\n }", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public void setId(int aMonthId) {\r\n\t\tid = aMonthId;\r\n\t}", "public void setId(int value) {\r\n this.id = value;\r\n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setCountryId(int value);", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }", "public int getSeasonId() {\n return seasonId;\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "public void setCustCountryId(int v) throws TorqueException\n {\n \n if (this.custCountryId != v)\n {\n this.custCountryId = v;\n setModified(true);\n }\n \n \n if (aCountry != null && !(aCountry.getCountryId() == v))\n {\n aCountry = null;\n }\n \n }", "public void setStargateId(int val) {\n stargateId = val;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }", "public void setId(int value) {\n this.id = value;\n }", "public void setCustId(Long custId) {\n this.custId = custId;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }", "public int getCustId(){\n return this.custId;\r\n }", "public void setMsisdnId(int value) {\n this.msisdnId = value;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }", "public void setsId(Integer sId) {\n this.sId = sId;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public void assignId(int id);", "public void setId(final TeamStudentPK id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "void setIdNumber(String idNumber);", "public abstract void setCompteId(Integer pCompteId);", "public void setLeagueId(int value) {\n this.leagueId = value;\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "public void setIdSet(int idSet) {\r\n this.idSet = idSet;\r\n }", "void setId(int val);", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "@JsonSetter(\"trunkId\")\r\n public void setTrunkId (int value) { \r\n this.trunkId = value;\r\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public Builder setListSnId(\n int index, int value) {\n ensureListSnIdIsMutable();\n listSnId_.setInt(index, value);\n onChanged();\n return this;\n }", "public void setId(Integer value) {\n this.id = value;\n }", "public void setId(Integer value) {\n this.id = value;\n }", "public void setLoginId(int value) {\n this.loginId = value;\n }", "public void setId(Integer value) {\n this.id = value;\n }", "public void setID(int value) {\n this.id = value;\n }", "public static void setIdNumber(int idNumber) {\n catalogue.idNumber = idNumber;\n }", "@Override\r\n\tpublic void setId(String id) {\n\t\tmProductionId = id;\r\n\t}", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "public void setLstCustManagerId(BigDecimal lstCustManagerId) {\n this.lstCustManagerId = lstCustManagerId;\n }", "public void setId2(int value) {\n this.id2 = value;\n }", "public void setC_Currency_ID (int C_Currency_ID);", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}", "protected void setId(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString id = rs.getString(UiActionTable.COLUMN_ID);\n\t\t\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setId(id);\n\t}", "public void setSolineId(Number value) {\n setAttributeInternal(SOLINEID, value);\n }", "private void setStudentId() {\n\t id++;\n\t this.studentId=gradeYear+\"\"+id;\n }", "public void setM_PriceList_Version_ID (int M_PriceList_Version_ID);", "public void setId(int driverDBId);", "public void setSeasons(final Set<Season> value)\r\n\t{\r\n\t\tsetSeasons( getSession().getSessionContext(), value );\r\n\t}", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void assignToSeason(Season chosenSeason) {\n if (chosenSeason != null) {\n\n //TOOD: This will not work\n getSeasons().add(chosenSeason);\n }\n }", "public void setValues(PreparedStatement ps, int i) throws SQLException {\n String id = items.get(i).getTransactionId();\n ps.setString(1, id);\n\t\t\t\t}", "public void setCaseID(java.lang.String param){\n \n this.localCaseID=param;\n \n\n }", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setIdCardNo(String idCardNo) {\n this.idCardNo = idCardNo;\n }", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "public void setId(Integer value) {\n set(0, value);\n }", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);" ]
[ "0.6327811", "0.55526686", "0.5284157", "0.5239551", "0.5229858", "0.5190373", "0.513533", "0.5129579", "0.51174796", "0.5102598", "0.5097308", "0.50938994", "0.5090888", "0.50709146", "0.5069421", "0.5069421", "0.5069421", "0.5069421", "0.5069421", "0.5069421", "0.5069421", "0.50500375", "0.50471985", "0.5044438", "0.5044438", "0.50443214", "0.5042029", "0.5028142", "0.50259596", "0.5010172", "0.49976963", "0.49976963", "0.49976963", "0.49976963", "0.49976963", "0.49976963", "0.49976963", "0.49976963", "0.49976963", "0.49927402", "0.4990987", "0.49782342", "0.494858", "0.49428558", "0.49397096", "0.49353603", "0.4934147", "0.49300483", "0.4924771", "0.49225864", "0.491024", "0.4906509", "0.49059466", "0.48967534", "0.48966748", "0.48921877", "0.4889296", "0.48874128", "0.48750198", "0.4858707", "0.48549232", "0.48548517", "0.48474368", "0.48239434", "0.4815484", "0.4808404", "0.47981095", "0.47955805", "0.4794182", "0.4794182", "0.47941202", "0.47931984", "0.47905755", "0.4777246", "0.47756034", "0.47729573", "0.47718284", "0.47718284", "0.4770582", "0.47667375", "0.4763016", "0.4757932", "0.47262698", "0.4708468", "0.47075886", "0.47024405", "0.47013772", "0.4700406", "0.46919945", "0.46876222", "0.4671533", "0.4671533", "0.46663356", "0.4665725", "0.4658197", "0.46571887", "0.46566477", "0.46496305", "0.4648517", "0.46472752", "0.46472752" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.cust_name
public String getCustName() { return custName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustName() \r\n\t{\r\n\t\t\r\n\t\treturn custName;\r\n\t\t\r\n\t}", "public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}", "String getCustomerNameById(int customerId);", "public String getCustomerName() {\r\n return name.getName();\r\n }", "String getName() {\n\t\treturn customer.getName();\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn customerName;\n\t}", "public void getCustomerNames() throws SQLException {\n ResultSet rs; \n Statement st = dbConnection.dbConnect().createStatement();\n String recordQuery = (\"Select * from customer\");\n rs = st.executeQuery(recordQuery);\n while(rs.next()){\n customers.getItems().add(rs.getString(\"customerName\"));\n }\n }", "public String getCustomersName()\r\n {\r\n return customersName;\r\n }", "@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}", "public String getCustomer_Name() {\n return customer_Name;\n }", "public String getCustomerName()\n\t{\n\t\treturn name;\n\t}", "public String getName()\n {\n return customer;\n }", "public List<Customer> getCustomerByName() {\n Query query = em.createNamedQuery(\"Customer.findByName\")\r\n .setParameter(\"name\", custName);\r\n // return query result\r\n return query.getResultList();\r\n }", "public String getFormattedCustomerName(AdminCustomer cust) throws Exception\n {\n if (cust == null)\n {\n return null;\n }\n String template = getConfigurationValue(ConfigConstants.NAME_FORMAT_TEMPLATE);\n String name = com.konakart.util.Utils.formatName(template, cust.getFirstName(),\n cust.getLastName());\n return name;\n }", "public String getLstCustName() {\n return lstCustName;\n }", "public String getCustomerName() {\n\t\treturn this.customer.getCustomerName();\n\t}", "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() \n {\n return customerName;\n }", "public String getCustomerName()\n {\n return customerName;\n }", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "public void setCustName(String custName) {\n\t\tthis.custName = custName;\n\t}", "public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }", "public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }", "public String getCustomerName(){\n return customerName;\n }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String getDoubleByteCustomerName() {\n String sNameSeperator = res.getString(\"NAME_SEPERATOR\");\n if(sNameSeperator.equals(\"NAME_SEPERATOR\")) sNameSeperator = \",\";\n if (compositePOSTransaction.getCustomer() != null) {\n CMSCustomer cmsCustomer = (CMSCustomer) compositePOSTransaction.getCustomer();\n String sName = \"\";\n if(cmsCustomer.getDBFirstName()!=null &&\n cmsCustomer.getDBFirstName().indexOf(\"null\")==-1)\n sName += cmsCustomer.getDBFirstName();\n\n if(cmsCustomer.getDBLastName()!=null &&\n cmsCustomer.getDBLastName().indexOf(\"null\")==-1)\n {\n if(sName.length()>1) sName += sNameSeperator;\n sName += cmsCustomer.getDBLastName();\n }\n return sName;\n }\n return \"\";\n }", "public String getName(){\n\t\t\treturn columnName;\n\t\t}", "public String getName() { return _sqlName; }", "public StrColumn getName() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"name\", StrColumn::new) :\n getBinaryColumn(\"name\"));\n }", "public String getName() {\n return columnName;\n }", "public Customer getCustomerByName(String customerName);", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public String getRandomCustName() {\n\t\tString generatedCustName = RandomStringUtils.randomAlphanumeric(Integer.valueOf(custNameLimit));\n\t\tlog.info(\"generatedCustName: \" + generatedCustName);\n\t\treturn generatedCustName;\n\t}", "String getCustomerName(String bookingRef);", "public String getCustCode() {\n return custCode;\n }", "public String getCustCode() {\n return custCode;\n }", "@Override\n\tpublic String getNameFromCode(final String glcode, final Connection connection)\n\t{\n\n\t\tString codeName = \"null\";\n\t\ttry {\n\t\t\tfinal String query = \"select name from chartofaccounts where glcode= ?\";\n\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\tLOGGER.info(\" query \" + query);\n\t\t\tQuery pst = persistenceService.getSession().createSQLQuery(query);\n\t\t\tpst.setString(0, glcode);\n\t\t\tList<Object[]> rset = pst.list();\n\t\t\tfor (final Object[] element : rset) {\n\t\t\t\tcodeName = element[0].toString();\n\t\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\t\tLOGGER.info(\" codeName \" + codeName);\n\t\t\t}\n\t\t\tif (rset == null || rset.size() == 0)\n\t\t\t\tthrow new NullPointerException(\"code not found\");\n\t\t} catch (final HibernateException e) {\n\t\t\tLOGGER.error(\" code not found \" + e.toString(), e);\n\t\t\tthrow new HibernateException(e.toString());\n\t\t}\n\t\treturn codeName;\n\t}", "public String getCustomer(String custId);", "@Override\r\n\tpublic String selectTest() {\n\t\tString retVal = \"\";\r\n\t\t\r\n\t\tMybatisTestVo vo = mapper.selectTest();\r\n\t\t\r\n\t\tSystem.out.println(\"vo number : \" + vo.getMemberNo());\r\n\t\tSystem.out.println(\"vo name : \" + vo.getMemberName());\r\n\t\t\r\n\t\tretVal = vo.getMemberName();\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "public int getCustId(){\n return this.custId;\r\n }", "public static String getCuisineName(Integer cuisineId){\n\t\t//JSONObject cuisineName = new JSONObject();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\t\tString cuisineName =\"\";\n\t\ttry {\n\t\t\tSQL:{\n\t\t\tconnection = DBConnection.createConnection();\n\t\t\tString sql = \"SELECT cuisin_name FROM fapp_cuisins WHERE cuisin_id=?\";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tpreparedStatement.setInt(1, cuisineId);\n\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\tif(resultSet.next()){\n\t\t\t\t\tcuisineName= resultSet.getString(\"cuisin_name\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally{\n\t\t\t\tif(connection!=null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\n\t\treturn cuisineName;\n\t}", "@Override\n public String getName() {\n return columnInfo.getName();\n }", "public String getCustId() {\n return custId;\n }", "public void setCustomersName(String customersName)\r\n {\r\n this.customersName = customersName;\r\n }", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "@Override\r\n\tpublic List<TheaterVO> getTheatername() {\n\t\tList<TheaterVO> list = null;\r\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TheaterVO> cq=cb.createQuery(TheaterVO.class);\r\n\t\tRoot<TheaterVO> root = cq.from(TheaterVO.class);\r\n\t\tcq.select(root);\r\n\t\ttry{\r\n\t\t\tTypedQuery<TheaterVO> tq = entityManager.createQuery(cq);\r\n\t\t\tlist=tq.getResultList();\r\n\t\t\treturn list;\r\n\t\t}catch(Exception e){\r\n\t\t\treturn list;\r\n\t\t}\r\n\t}", "public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}", "@Override\r\n public ResultSet selectLoginName(Connection conn) throws SQLException {\n PreparedStatement preparedStatement = conn.prepareStatement(\"SELECT username FROM login where uid = ?\");\r\n preparedStatement.setString(1, \"customer\");\r\n return preparedStatement.executeQuery();\r\n }", "@ApiModelProperty(value = \"Name of the customer\")\n public String getCustomerName() {\n return customerName;\n }", "public java.lang.String getCustNo() {\n return custNo;\n }", "public void setCustomer_Name(String customer_Name) {\n this.customer_Name = customer_Name;\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "@Column(name = \"name\")\n public String getName() {\n return name;\n }", "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "@ApiModelProperty(value = \"Gets and sets the name of the column.\")\n public String getName() {\n return name;\n }", "String getCustomerLastName(String bookingRef);", "public String getCustPlateName() {\n\t\treturn custPlateName;\n\t}", "public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }", "public String getColumnName(int c) {\n\treturn columnNames[c];\n}", "public String list(){\n\t\tif(name == null) {\n\t\t\ttry {\n\t\t\t\tlist = customerBO.getAll();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tList<Customer> l = new ArrayList<Customer>();\n\t\t\ttry {\n\t\t\t\tl = customerBO.getAll();\n\t\t\t\tfor(Customer cus: l) {\n\t\t\t\t\tString CustomerName = cus.getFirstName() + \" \" + cus.getLastName();\n\t\t\t\t\tif(CustomerName.compareTo(name) == 0) {\n\t\t\t\t\t\tlist.add(cus);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tint total = list.size();\n\t\t\t\tint div = total / STATIC_ROW_MAX;\n\t\t\t\tif(div * STATIC_ROW_MAX == total) {\n\t\t\t\t\ttotalPage = div;\n\t\t\t\t} else {\n\t\t\t\t\ttotalPage = div + 1;\n\t\t\t\t}\t\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistCustomer.add(list.get(i));\t\t\t\t\n\t\t}\n\n\t\treturn \"list\";\n\t}", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "public String getCustomer() {\n return customer;\n }", "public JExpr getNameExpr() { return _nameExpr; }", "public String getLstCustNo() {\n return lstCustNo;\n }", "public String getPlayerListName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getPlayerListName ).orElse ( name );\n\t}", "Optional<String> findCustomerNameById(@Param(\"id\") Integer id);", "java.lang.String getCouponName();", "java.lang.String getCouponName();", "java.lang.String getCouponName();", "@Override\n\t@Column(name = \"leadTypeName\", length = 5, nullable = false)\n\tpublic String getName()\n\t{\n\t\treturn super.getName();\n\t}", "public String getLstCustManagerName() {\n return lstCustManagerName;\n }", "public void setCustName(String custName) {\n\t\tcustName = custName == null ? null : custName.trim();\n\n\t\tsetField(\"custName\", custName);\n\t}", "public static String getUserName(String accountNumber){\n return \"select u_name from users where u_accountnum = '\" + accountNumber +\"'\";\n }", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "public static int getCustomerId(String customerName)\n {\n int customerID = 0;\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String customerIdQuery = \"SELECT Customer_ID FROM customers WHERE Customer_Name='\" + customerName + \"'\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(customerIdQuery);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n customerID = rs.getInt(\"Customer_ID\");\n return customerID;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return customerID;\n }", "@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Customer order by lastName\", Customer.class)\n\t\t\t\t.getResultList();\n\n\t}", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<String> SSSalesCardNoList(String customerName){\r\n\t\treturn (List<String>) getHibernateTemplate().find(\"SELECT cardNo FROM CardIssue where customerName = ? and (status='Active' or status='Matured')\",customerName);\r\n\t}", "public Object getCustName() {\n\t\treturn null;\n\t}", "String getCruiseName();", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create the query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//get the result list\n\t\tList<Customer> customers = query.getResultList();\n\t\treturn customers;\n\t}", "@Basic\n @Column(name = \"name\", nullable = true, length = 30)\n public String getName() {\n return name;\n }", "@Query(\"select m from MiniStatement m where m.custId=:custId ORDER BY m.id DESC\")\n\tList<MiniStatement> findByCustId(@Param(\"custId\") Long custId);", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "public String getMappedFieldName(String cn)\n { // map old name to a new name\n return DBProvider.translateColumnName(cn);\n }", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "public void setCustomerName(String customerName) {\n this.customerName = customerName;\n }", "public Long getCustId() {\n return custId;\n }", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Customer> theQuery =\n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\treturn customers;\n\t}" ]
[ "0.65663755", "0.6271284", "0.6256634", "0.6094175", "0.6060487", "0.60604393", "0.6014186", "0.60050976", "0.5983833", "0.59287465", "0.5911838", "0.5900081", "0.58865666", "0.58710694", "0.58007175", "0.57753986", "0.57581204", "0.5751045", "0.5751045", "0.57312083", "0.57226163", "0.564782", "0.564782", "0.56426054", "0.5607175", "0.5607175", "0.55818564", "0.5443711", "0.54314834", "0.54273176", "0.5396593", "0.5390943", "0.5389694", "0.5384857", "0.53252256", "0.5319914", "0.52959394", "0.52871627", "0.52822137", "0.52822137", "0.5273504", "0.52624583", "0.5195426", "0.51905054", "0.5177525", "0.51636195", "0.5159979", "0.51369333", "0.5133013", "0.512793", "0.51243883", "0.5121557", "0.5121275", "0.51092356", "0.5105563", "0.50942653", "0.50896615", "0.50896615", "0.5084903", "0.50819755", "0.50754684", "0.50606066", "0.5048922", "0.50485295", "0.50422484", "0.5025237", "0.5022849", "0.50191915", "0.50149745", "0.5012602", "0.50011986", "0.49924916", "0.4991437", "0.4985775", "0.49826097", "0.49826097", "0.49826097", "0.4973134", "0.4971262", "0.49703535", "0.49693257", "0.4963692", "0.4957363", "0.49513814", "0.49439803", "0.49404618", "0.4939869", "0.49385488", "0.49311057", "0.49174622", "0.49144727", "0.49094447", "0.49084556", "0.4904543", "0.48928645", "0.48928645", "0.48921126", "0.48898232", "0.4886282" ]
0.6393345
2
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.cust_name
public void setCustName(String custName) { custName = custName == null ? null : custName.trim(); setField("custName", custName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustName(String custName) {\n\t\tthis.custName = custName;\n\t}", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public void setCustomersName(String customersName)\r\n {\r\n this.customersName = customersName;\r\n }", "public void setCustomerName(String customerName)\n\t{\n\t\tsetColumn(customerName, OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}", "public void setCustomer_Name(String customer_Name) {\n this.customer_Name = customer_Name;\n }", "public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }", "public void setCustomerName(\n @Nullable\n final String customerName) {\n rememberChangedField(\"CustomerName\", this.customerName);\n this.customerName = customerName;\n }", "public void setCustomerName(String customerName) {\n this.customerName = customerName;\n }", "public void setCustName(String custName) throws IllegalArgumentException\r\n\t{\r\n\t\tif(custName == null || custName.isEmpty())\r\n\t\t{\r\n\t\t\t\r\n\t\t\tthrow new IllegalArgumentException(\"Customer name must not be empty.\");\r\n\t\t\t\r\n\t\t}\t// End of if statement\r\n\t\t\r\n\t\tthis.custName = custName;\r\n\t\t\r\n\t}", "public void setCustomerName(String name) {\r\n this.name.setText(name);\r\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "public void setLstCustName(String lstCustName) {\n this.lstCustName = lstCustName == null ? null : lstCustName.trim();\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "public String getCustName() \r\n\t{\r\n\t\t\r\n\t\treturn custName;\r\n\t\t\r\n\t}", "public void setCustomerName(String customerName) {\n\t\tthis.customerName = customerName == null ? null : customerName.trim();\n\t}", "public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( name ) );\n\t}", "public void setCustCode(String custCode) {\n this.custCode = custCode == null ? null : custCode.trim();\n }", "public void setCustCode(String custCode) {\n this.custCode = custCode == null ? null : custCode.trim();\n }", "public String getCustName() {\n\t\treturn custName;\n\t}", "public String getCustName() {\n\t\treturn custName;\n\t}", "public Constraint setName(StringDt theValue) {\n\t\tmyName = theValue;\n\t\treturn this;\n\t}", "public void setCustomer(\n @Nullable\n final String customer) {\n rememberChangedField(\"Customer\", this.customer);\n this.customer = customer;\n }", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "public void setCustomerCode(String customerCode)\n\t{\n\t\tsetColumn(customerCode, OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public void setName(@Nullable String value) {\n getElement().setName(value);\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}", "public String getCustomersName()\r\n {\r\n return customersName;\r\n }", "public void setCustId(Long custId) {\n this.custId = custId;\n }", "public void setName(final String value)\n\t{\n\t\tsetName( getSession().getSessionContext(), value );\n\t}", "public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setName(String name){\n\t\tthis.tournamentName = name;\n\t}", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "@Override\n public void setBusinessBrandName(java.lang.String businessBrandName) {\n _entityCustomer.setBusinessBrandName(businessBrandName);\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public Constraint setName( String theString) {\n\t\tmyName = new StringDt(theString); \n\t\treturn this; \n\t}", "@Override\n\tpublic String getName() {\n\t\treturn customerName;\n\t}", "public void setName(String value) {\n this.name = value;\n }", "public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}", "public void setName(String new_name){\n this.name=new_name;\n }", "public String getCustomer_Name() {\n return customer_Name;\n }", "public void setName(String s) {\n this.name = s;\n }", "public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}", "private void setCustomName(String name) {\n this.name = ChatColorConverter.convert(name);\n this.getLivingEntity().setCustomName(this.name);\n this.hasCustomName = true;\n if (ConfigValues.defaultConfig.getBoolean(DefaultConfig.ALWAYS_SHOW_NAMETAGS))\n eliteMob.setCustomNameVisible(true);\n }", "public void getCustomerNames() throws SQLException {\n ResultSet rs; \n Statement st = dbConnection.dbConnect().createStatement();\n String recordQuery = (\"Select * from customer\");\n rs = st.executeQuery(recordQuery);\n while(rs.next()){\n customers.getItems().add(rs.getString(\"customerName\"));\n }\n }", "@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_expandoColumn.setName(name);\n\t}", "public void update(String custNo, CstCustomer cstCustomer2) {\n\t\tcstCustomerDao.update(custNo,cstCustomer2);\n\t}", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$26);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public void setLstCustManagerName(String lstCustManagerName) {\n this.lstCustManagerName = lstCustManagerName == null ? null : lstCustManagerName.trim();\n }", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "@JSProperty(\"name\")\n void setName(@Nullable String value);", "public void setName(String inName)\n {\n\tname = inName;\n }", "public void setName(String newName){\n\n //assigns the value newName to the name field\n this.name = newName;\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "public void setName(String name)\r\n\t{\r\n\t\tthis.name = name.trim();\r\n\t\tif(name.length() > 0)\r\n\t\t{\r\n\t\t this.sponsorFirstChar = Character.toLowerCase(name.charAt(0));\r\n\t\t}\r\n\t\t\r\n\t}", "public void setName(String name) {\n\t\tm_name = (name != null) ? name : \"\";\n\t}", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "public void setName(String inName)\n {\n name = inName;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(final String name) {\n\t\tGuard.ArgumentNotNullOrEmpty(name, \"name\");\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\tif (bukkitPlayer != null) {\n\t\t\tbukkitPlayer.setDisplayName(name);\n\t\t\tbukkitPlayer.setCustomName(name);\n\t\t\tbukkitPlayer.setPlayerListName(name);\n\t\t}\n\t\tdb.updateField(this, \"name\", name);\n\t}", "public void setCName(String aValue) {\n String oldValue = cName;\n cName = aValue;\n changeSupport.firePropertyChange(\"cName\", oldValue, aValue);\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "@VTID(18)\n void setName(\n java.lang.String rhs);", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setCompanyname(java.lang.String newCompanyname) {\n\tcompanyname = newCompanyname;\n}", "public void setColName(String colName) {\r\n\t\tthis.colName = colName == null ? null : colName.trim();\r\n\t}", "@JsonSetter(\"name\")\r\n public void setName (String value) { \r\n this.name = value;\r\n }", "public void setName(String doctorName) {\n\t\tname = doctorName;\n\t}", "public void setName(String name){\n\t\tif(name != null){\n\t\t\tthis.name = name;\n\t\t}\n\t}", "public String getCustomerName() \n {\n return customerName;\n }", "public void setName(String name) {\n monsterName = name;\n }", "public void setName(String name) {\n monsterName = name;\n }", "public void setCustId(Long custId) {\n\t\tsetField(\"custId\", custId);\n\t}", "public void setName(String newname){\n name = newname; \n }", "@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}", "public void setName(String n) {\r\n name = n;\r\n }", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public String getLstCustName() {\n return lstCustName;\n }", "public void setName(java.lang.String name)\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(NAME$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(NAME_PROP.get(), value);\n }", "public void setName(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(NAME_PROP.get(), value);\n }", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setCountryName(String value);", "@JsonProperty(\"vendorName\")\r\n public void setVendorName(String vendorName) {\r\n this.vendorName = vendorName;\r\n }", "public ElementDefinitionDt setName(StringDt theValue) {\n\t\tmyName = theValue;\n\t\treturn this;\n\t}", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String name) \n {\n this.name = name;\n }", "public CstCustomer toupdate(String custNo) {\n\t\tCstCustomer cstCustomer=cstCustomerDao.toupdate(custNo);\n\t\treturn cstCustomer;\n\t}", "public void setName(java.lang.String name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\n }\n target.setStringValue(name);\n }\n }", "public void setName(java.lang.String name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\n }\n target.setStringValue(name);\n }\n }", "public void setName(String name){\r\n this.name = name;\r\n }" ]
[ "0.64214724", "0.6110823", "0.6092629", "0.6007337", "0.595093", "0.57974464", "0.5795941", "0.57525206", "0.5748166", "0.5662381", "0.56463295", "0.56434083", "0.54570365", "0.5451532", "0.54461384", "0.5435399", "0.5405949", "0.5405949", "0.53288734", "0.53288734", "0.5323366", "0.5268507", "0.52570146", "0.52396715", "0.52353495", "0.52244", "0.5187139", "0.5179604", "0.5142613", "0.51283973", "0.5121984", "0.5119333", "0.51152396", "0.51152396", "0.51152396", "0.50973654", "0.5068027", "0.50259167", "0.50132674", "0.5005835", "0.4995982", "0.49932915", "0.4990815", "0.4982886", "0.49827552", "0.49821433", "0.49786466", "0.49710494", "0.4954976", "0.49544865", "0.4953209", "0.49483135", "0.49477807", "0.49226844", "0.49141702", "0.49141702", "0.49132562", "0.4906423", "0.49060532", "0.49005532", "0.49005532", "0.48982516", "0.48972437", "0.4892361", "0.48889163", "0.48881853", "0.48829842", "0.48818752", "0.4880839", "0.48806602", "0.4876855", "0.48720214", "0.48690483", "0.4867257", "0.4863241", "0.48505825", "0.4850521", "0.48480868", "0.4847685", "0.48475116", "0.48475116", "0.4847323", "0.48447454", "0.48445454", "0.48410466", "0.4840704", "0.48404843", "0.4840335", "0.48384127", "0.48371658", "0.48364785", "0.48290053", "0.4826721", "0.48252928", "0.4823867", "0.48172694", "0.48169515", "0.4816647", "0.4816647", "0.48164025" ]
0.62915486
1
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.url
public String getUrl() { return url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUrl() {\n return jdbcUrl;\n }", "@Column(length = 2048)\r\n @PlaceHolder(key = \"schema\")\r\n public String getUrlPath() {\r\n return urlPath;\r\n }", "public String getJdbcUrl()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_URL);\n }", "public String getUrl() {\n\t\tif (null != this.url) {\n\t\t\treturn this.url;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"url\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public NameValue<String, String> getSourceURL(boolean random) {\n return getURL(mSourceMap, random);\n }", "@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }", "public String getURLMenu(String usuario) \n {\n String url = \"\";\n try \n {\n PreparedStatement pstm = null; \n ResultSet rs = null;\n String query = \"SELECT url FROM Roles as r INNER JOIN Usuario as u ON u.ID_Rol = r.ID_Rol WHERE u.username = ?\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, usuario);\n rs = pstm.executeQuery();\n if(rs.next())\n { \n url = rs.getString(\"url\");\n }\n }catch(Exception ex){\n ex.printStackTrace(); \n } \n return url;\n }", "@Schema(description = \"Link to get list of users with this role\")\n public String getUsersUrl() {\n return usersUrl;\n }", "public NameValue<String, String> getSourceURL() {\n return getSourceURL(false);\n }", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "@Override\n\tpublic List<AllcodeModel> get_url_nganluong() {\n\t\treturn allcode.get_url_nganluong();\n\t}", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "public String getUrl() {\n return this.Url;\n }", "private String getSeriePageUrlWithSeason(String seriePageUrl, int season) {\n\t\tif (seriePageUrl == null || seriePageUrl.equals(\"\")) {\n\t\t\treturn null;\n\t\t}\n\t\tint pos = seriePageUrl.lastIndexOf(\".\");\n\t\tif (pos == -1) {\n\t\t\treturn seriePageUrl;\n\t\t}\n\t\telse {\t\t\t\n\t\t\treturn seriePageUrl.substring(0, pos) + \"-\" + season + seriePageUrl.substring(pos);\n\t\t}\n\t}", "public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}", "public String getUrl() {\n\t\treturn this.url;\n\t}", "public String getUrl() {\n return this.url;\n }", "public java.lang.String getUrl(){\r\n return this.url;\r\n }", "public static String getUrl() {\n return annotation != null ? annotation.url() : \"Unknown\";\n }", "public CimString getVendorUrl() {\n return vendorUrl;\n }", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "public String getUrl()\n {\n return this.url;\n }", "public String getJdbcUrl()\n {\n return m_jdbcUrl;\n }", "public String getUrl(){\n \treturn url;\n }", "public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}", "public String getURL(int series, int item) {\n/* 110 */ String result = null;\n/* 111 */ if (series < getListCount()) {\n/* 112 */ List urls = (List)this.urlSeries.get(series);\n/* 113 */ if (urls != null && \n/* 114 */ item < urls.size()) {\n/* 115 */ result = (String)urls.get(item);\n/* */ }\n/* */ } \n/* */ \n/* 119 */ return result;\n/* */ }", "public String getItemURL() {\n String shownAt = jsonParent.getString(\"isShownAt\");\n println(shownAt);\n return shownAt;\n }", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}", "private NameValue<String, String> getURL(\n Map<String, List<ReplicaCatalogEntry>> m, boolean random) {\n if (m == null || m.keySet().isEmpty()) {\n return null;\n }\n\n // Return the first url from the EntrySet\n Iterator it = m.entrySet().iterator();\n Map.Entry entry = (Map.Entry) it.next();\n List<ReplicaCatalogEntry> urls = (List) entry.getValue();\n String site = (String) entry.getKey();\n\n ReplicaCatalogEntry rce =\n (random)\n ?\n // pick a random value\n urls.get(PegRandom.getInteger(0, urls.size() - 1))\n :\n // returning the first element. No need for a check as\n // population of the list is controlled\n urls.get(0);\n\n return (rce == null) ? null : new NameValue(rce.getResourceHandle(), rce.getPFN());\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public String getUrl() { /* (readonly) */\n return mUrl;\n }", "public String getURL() {\r\n return url;\r\n }", "public String getUrl() { return url; }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n\t\t\treturn url;\n\t\t}", "public String getURL() {\r\n\t\treturn url;\r\n\t}", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}", "@JsonProperty(\"url\")\n public String getUrl() {\n return url;\n }", "@JsonProperty(\"url\")\n public String getUrl() {\n return url;\n }", "@ApiModelProperty(value = \"website or ecommerce URL\")\n @JsonProperty(\"url\")\n public String getUrl() {\n return url;\n }", "public String getUrl()\n {\n return url;\n }", "public String getURL() { return url; }", "public String getcompanyURL() {\n return companyURL;\n }", "public String getUrl(final String sourceURL) {\n\n String result = null;\n\n if (sourceURL == null) {\n // if only one URL is configured, \"default URL\" should mean that\n // URL.\n List<String> urls = descriptor().getUrls();\n if (!urls.isEmpty()) {\n result = urls.get(0);\n }\n return result;\n }\n for (String j : descriptor().getUrls()) {\n if (j.equals(sourceURL)) {\n result = j;\n break;\n }\n }\n return result;\n }", "public String getURL() {\n return url;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "public String getURL() {\n\t\treturn url;\n\t}", "public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}", "@Override\r\n public String getURL() {\n return url;\r\n }", "public java.lang.String getUrl() {\n return url;\n }", "public String getCompanyLicenseUrl()\n/* */ {\n/* 125 */ return this.companyLicenseUrl;\n/* */ }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@JsonProperty(\"url\")\n public String getUrl() {\n return url;\n }", "public String url() {\n return this.url;\n }" ]
[ "0.55716026", "0.52336097", "0.52037567", "0.5143866", "0.512989", "0.5092416", "0.506144", "0.50259185", "0.495634", "0.49131507", "0.49131507", "0.49131507", "0.49025103", "0.49005306", "0.49000803", "0.48985127", "0.4883189", "0.48733985", "0.48686755", "0.48680943", "0.48652452", "0.4856212", "0.48552933", "0.48523247", "0.48460627", "0.48291636", "0.48247054", "0.48196787", "0.48157015", "0.48139653", "0.48009562", "0.48009562", "0.47958407", "0.47937137", "0.47927487", "0.47927487", "0.47927487", "0.47927487", "0.47927487", "0.47927487", "0.47927487", "0.47855997", "0.47623178", "0.47586328", "0.47545612", "0.47358984", "0.47358984", "0.47295517", "0.47211456", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.47111043", "0.4710404", "0.47024557", "0.46932104", "0.46932104", "0.46923995", "0.4688496", "0.46873", "0.4687282", "0.468617", "0.46856642", "0.46848273", "0.46848273", "0.46710935", "0.46641028", "0.4660961", "0.4658046", "0.46433628", "0.46405035", "0.46405035", "0.46350402", "0.46346268" ]
0.47599247
48
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.url
public void setUrl(String url) { url = url == null ? null : url.trim(); setField("url", url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setURL(int index, URL value) throws SQLException;", "public void setUrl(String url) throws BuildException {\n jdbcUrl = url;\n }", "public void setJdbcUrl(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_URL, val);\n }", "protected void setLinkToUrl(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString linkToUrl = rs.getString(UiActionTable.COLUMN_LINK_TO_URL);\n\t\t\n\t\tif(linkToUrl == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setLinkToUrl(linkToUrl);\n\t}", "public void setUrl(String newUrl) {\r\n\t\turl = newUrl;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif (cn != null) {\r\n\t\t\t\tcn.close();\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcn = null;\r\n\t\tinit();\r\n\t}", "public void setURL(String url);", "public ImagingStudy setUrl(UriDt theValue) {\n\t\tmyUrl = theValue;\n\t\treturn this;\n\t}", "public void setURL(int parameterIndex, URL x) throws SQLException {\n currentPreparedStatement.setURL(parameterIndex, x);\n\n }", "public Series setUrl(UriDt theValue) {\n\t\tmyUrl = theValue;\n\t\treturn this;\n\t}", "public void setUrl(String url);", "public void setUrl(String url);", "public SeriesInstance setUrl(UriDt theValue) {\n\t\tmyUrl = theValue;\n\t\treturn this;\n\t}", "public void setUrl(String url) {\n if(url != null && !url.endsWith(\"/\")){\n url += \"/\";\n }\n this.url = url;\n }", "public void setInputUrlValue(String value){\n WebElement urlField = driver.findElement(inputUrlLocator); \n setValue(urlField, value);\n \n }", "public void setURL(String _url) { url = _url; }", "public void setURL(String url)\n throws ConfigException\n {\n DriverConfig driver;\n \n if (_driverList.size() > 0)\n driver = _driverList.get(0);\n else\n throw new ConfigException(L.l(\"The driver must be assigned before the URL.\"));\n \n driver.setURL(url);\n }", "public URL setURL(URL url) {\r\n if (url == null)\r\n throw new IllegalArgumentException(\r\n \"A null url is not an acceptable value for a PackageSite\");\r\n URL oldURL = url;\r\n myURL = url;\r\n return oldURL;\r\n }", "public void setCompanyLicenseUrl(String companyLicenseUrl)\n/* */ {\n/* 134 */ this.companyLicenseUrl = (companyLicenseUrl == null ? null : companyLicenseUrl.trim());\n/* */ }", "public void setUrl(String url){\n this.URL3 = url;\n }", "public void setUrl(String url){\n\t\t_url=url;\n\t}", "public SeriesInstance setUrl( String theUri) {\n\t\tmyUrl = new UriDt(theUri); \n\t\treturn this; \n\t}", "public void setUrl(URL url)\n {\n this.url = url;\n }", "public Series setUrl( String theUri) {\n\t\tmyUrl = new UriDt(theUri); \n\t\treturn this; \n\t}", "public static void setDatabaseURL(String url){\n databaseURL=url;\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "void setUrl(String url) {\n this.url = Uri.parse(url);\n }", "@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public void setURL(@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n String inURL);", "public void setServerUrl(String newUrl) {\n if(newUrl == null){\n return;\n }\n props.setProperty(\"url\", newUrl);\n saveProps();\n }", "public void setParameter(PreparedStatement preparedStatement,\n int i, ArrayList<LabelledURI> labelledURIs,\n JdbcType jdbcType) throws SQLException {\n Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation()\n .create();\n\n Type listType = new TypeToken<ArrayList<LabelledURI>>() {}.getType();\n String jsonString = \"\";\n jsonString = gson.toJson(labelledURIs, listType);\n preparedStatement.setString(i, jsonString);\n }", "public final native void setUrl(String url) /*-{\n this.setUrl(url);\n }-*/;", "public void setSeasonCode(final String value)\r\n\t{\r\n\t\tsetSeasonCode( getSession().getSessionContext(), value );\r\n\t}", "public void setUrlValue(org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlValue.Enum urlValue)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(URLVALUE$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(URLVALUE$2);\r\n }\r\n target.setEnumValue(urlValue);\r\n }\r\n }", "public void setSeasons(final SessionContext ctx, final Set<Season> value)\r\n\t{\r\n\t\tsetLinkedItems( \r\n\t\t\tctx,\r\n\t\t\ttrue,\r\n\t\t\tSslCoreConstants.Relations.DBS2SEASONRELATION,\r\n\t\t\tnull,\r\n\t\t\tvalue,\r\n\t\t\tfalse,\r\n\t\t\tfalse,\r\n\t\t\tUtilities.getMarkModifiedOverride(DBS2SEASONRELATION_MARKMODIFIED)\r\n\t\t);\r\n\t}", "public void setClUrl(String clUrl) {\r\n this.clUrl = clUrl;\r\n }", "@JsonIgnore\n public void setDataUrl(String dataUrl) {\n this.dataUrl = dataUrl;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "protected void setImageUrl(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString imageUrl = rs.getString(UiActionTable.COLUMN_IMAGE_URL);\n\t\t\n\t\tif(imageUrl == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setImageUrl(imageUrl);\n\t}", "public void setURL(String url) {\n \t\tblueURL = url;\n\t}", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public StockEvent setUrl(String url) {\n this.url = url;\n return this;\n }", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t\tthis.handleConfig(\"url\", url);\n\t}", "public void setURL(java.lang.CharSequence value) {\n this.URL = value;\n }", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }", "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public void setUrl(String Url) {\n this.Url = Url;\n }", "public void setUrl(Uri url) {\n this.urlString = url.toString();\n }", "public void setUrl(String url)\n {\n this.url = url;\n }", "public void setURL(String URL) {\n mURL = URL;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic String addNewValueToGlobalURLList(String longUrl){\n\t\t\n\t\tString shortUrl = shortenUrl(longUrl);\n\t\tString SQL = \"insert into GlobalUrlDB (shortUrl, longUrl, visitCount) values (?, ?, ?)\";\n\t\tObject[] params = new Object[] { shortUrl, longUrl, 0 };\n\t\ttry{\n\t\t\tjdbcTemplateObject.update( SQL, params);\n\t\t\treturn shortUrl;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Exception occured while user tried to shorten URL\");\n\t\t\t/*Put Stack trace into logger file*/\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public void setUrl(String url) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Directory manager \" + directoryManager);\n }\n try {\n super.setUrl(directoryManager.replacePath(url));\n } catch (Exception e) {\n LOGGER.error(\"Exception thrown when setting URL \", e);\n throw new IllegalStateException(e);\n }\n }", "public void setUrl(String url) {\n\t\tthis.url = url == null ? null : url.trim();\n\t}", "public native final void setUrl(String url)/*-{\n this.url = url;\n }-*/;", "public void setURL(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = utf8URLencode(url);\n\t}", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public static void geturl(String url) {\n PlayList_ID = url;\n }", "Builder addUrl(String value);", "public void SetUrl(String url)\n\t{\n\t if (video_view.isPlaying())\n\t {\n\t video_view.stopPlayback();\n\t }\n\t \n Uri uri = Uri.parse(url);\n video_view.setVideoURI(uri);\n\t}", "public void setServer(URL url) {\n\n\t}", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "void setSourceRepoUrl(String sourceRepoUrl);", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public Builder setSchemaUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n schemaUrl_ = value;\n onChanged();\n return this;\n }", "public String getUrl() {\n return jdbcUrl;\n }", "@Test\n void setUrl() {\n g.setUrl(url);\n assertEquals(url, g.getUrl(), \"URL mismatch\");\n }", "@Override\n public void setPlayerBrainList(Player player, ArrayList<Brain> brains) {\n DatabaseReference currentRef = database.getReference(gameCodeRef).child(\"Players\").child(player.getUsername());\n currentRef.child(\"BrainList\").setValue(brains);\n }", "public void setURL(java.lang.String URL) {\n this.URL = URL;\n }", "void setConnectorByJsonLd(@Nullable String jsonLd);", "public void setSeasons(final Set<Season> value)\r\n\t{\r\n\t\tsetSeasons( getSession().getSessionContext(), value );\r\n\t}", "public void setDatasource(String val)\r\n\t{\r\n\t\t_dataSource = val;\r\n\t}" ]
[ "0.6020362", "0.54906034", "0.5358892", "0.5356801", "0.5273646", "0.5220748", "0.51307416", "0.5127267", "0.51187295", "0.51110494", "0.51110494", "0.5110162", "0.50498366", "0.50139844", "0.49581346", "0.4935542", "0.49145555", "0.49098983", "0.49032786", "0.49021384", "0.49006033", "0.48866498", "0.485328", "0.4842895", "0.48421416", "0.48421416", "0.48368683", "0.48366264", "0.48346868", "0.4834182", "0.4829134", "0.4824668", "0.48185176", "0.4807739", "0.47898197", "0.47885525", "0.47783285", "0.47763556", "0.4775439", "0.47703958", "0.47543818", "0.47543818", "0.47543818", "0.4748695", "0.47448805", "0.47284135", "0.47230476", "0.47226655", "0.47226655", "0.47195047", "0.4716147", "0.47109604", "0.47089627", "0.47047967", "0.4703585", "0.4703585", "0.47027406", "0.47023922", "0.46925384", "0.46902233", "0.4686973", "0.4682333", "0.46723795", "0.46723795", "0.46723795", "0.46723795", "0.46723795", "0.46723795", "0.46723795", "0.46723795", "0.4655208", "0.46513838", "0.46513838", "0.46513838", "0.46513838", "0.46498793", "0.46477765", "0.46170366", "0.46161056", "0.46058026", "0.46058026", "0.4598347", "0.4598347", "0.4598347", "0.4590418", "0.45897296", "0.45897296", "0.45897296", "0.45897296", "0.45897296", "0.45897296", "0.45897296", "0.45897296", "0.45859563", "0.456977", "0.45627967", "0.4561596", "0.45519972", "0.45505017", "0.4548492", "0.45475814" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.cust_id
public Long getCustId() { return custId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCustId(){\n return this.custId;\r\n }", "public Long getCustId() {\n return custId;\n }", "public String getCustId() {\n return custId;\n }", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "public Integer getCustomerId()\n {\n return customerId;\n }", "public int getCustomerID(int customer_id) {\n int id = 0;\n try {\n checkCustomerID.setInt(1, customer_id);\n ResultSet resultset = checkCustomerID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + id);\n }\n try {\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Cannot close resultset!\");\n }\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public static int getCustomerId(String customerName)\n {\n int customerID = 0;\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String customerIdQuery = \"SELECT Customer_ID FROM customers WHERE Customer_Name='\" + customerName + \"'\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(customerIdQuery);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n customerID = rs.getInt(\"Customer_ID\");\n return customerID;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return customerID;\n }", "public Integer getCustomerID() {\n return customerID;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public static int getCustomerId(String customer) throws SQLException {\n query = \"SELECT * FROM customer WHERE customerName = ?\";\n model.DBQueryPrepared.setPreparedStatement(CONN, query);\n ps = DBQueryPrepared.getPreparedStatement();\n \n ps.setString(1, customer);\n ps.execute();\n rs = ps.getResultSet();\n \n // rs.first() will return true if it found the value, false if it didn't\n if(rs.first())\n return rs.getInt(\"customerId\");\n else {\n return 0;\n }\n }", "public Long getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public void setCustId(Long custId) {\n this.custId = custId;\n }", "@Override\n\tpublic Customer findById(Long cust_id) throws Exception {\n\t\tList<Customer> lists = (List<Customer>) this.getHibernateTemplate().find(\"from Customer where cust_id = ?\",\n\t\t\t\tcust_id);\n\t\tgetHibernateTemplate().get(Customer.class, cust_id);\n\t\tif (lists.size() > 0) {\n\n\t\t\treturn lists.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public int getCustomerId() \n {\n return customerId;\n }", "public int getCustomerID() {\n return customerID;\n }", "private static int getCustomerIndex(List<Integer> customer){\n return customer.get(0);\n }", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustomerid() {\n return customerid;\n }", "public String getCustomerId(int k) {\n\t\treturn prescriptionList.get(k).getCustomerId();\n\t}", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}", "String getCustomerID();", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "public int getCustomerID() {\n\t\treturn 0;\n\t}", "public int getAgentCustomers(int agent_id) {\n int id = 0;\n try {\n checkAgentCustomers.setInt(1, agent_id);\n ResultSet resultset = checkAgentCustomers.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID is: \" + id + \"\\n\");\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Agent Doesn't Manage Any Customers Yet!\");\n }\n return id;\n }", "public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }", "public java.lang.String getCustIdNbr() {\n return custIdNbr;\n }", "public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}", "@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}", "public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }", "public void setCustId(Long custId) {\n\t\tsetField(\"custId\", custId);\n\t}", "public static Customer getCustomer(int id_cust) {\n Connection c = connection();\n PreparedStatement stmt;\n int id = 0;\n String name = null;\n String email = null;\n String password = null;\n Customer customer = null;\n try {\n String sql = \"SELECT * FROM customer WHERE id=?;\";\n stmt = c.prepareStatement(sql);\n stmt.setInt(1, id_cust);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n id = rs.getInt(\"id\");\n name = rs.getString(\"name\");\n email = rs.getString(\"email\");\n password = rs.getString(\"password\");\n }\n stmt.close();\n c.close();\n customer = new Customer(id, name, email, password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return customer;\n }", "public static Customer getCustomer(int _customerID) throws SQLException{\n ResultSet rs = ConnectionManager.selectAllColumns(\"Tbl_Customer_GroupNo\", \"CustomerID= \"+_customerID);\n if(rs.next()){\n Customer cus = new Customer(rs.getInt(\"CustomerId\"), rs.getString(\"FirstName\"), rs.getString(\"LastName\"), rs.getString(\"Address\"), rs.getString(\"Email\"), rs.getString(\"Phone\"));\n return cus;\n }else{\n return null;\n }\n }", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }", "@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "@Override\n public int getClientId() {\n return _entityCustomer.getClientId();\n }", "public java.lang.String getCustNo() {\n return custNo;\n }", "@Override\r\n\tpublic int getCustomerIdCustomerDistribution(int CostomerorId) {\n\t\tList<?> resultList = null;\r\n\t\tString sql1= \"SELECT DISTINCT company_id FROM companiesusers where user_id='\"+CostomerorId+\"'\";\r\n\t\tresultList= dao.executeSQLQuery(sql1);\r\n\t\tObject l = resultList.get(0);\r\n\t\tint Customer_ID = Integer.valueOf(String.valueOf(l));\t\r\n\t\t\r\n\t\t\r\n\t\treturn Customer_ID;\r\n\t}", "public String getCustomer(String custId);", "public String getCustCode() {\n return custCode;\n }", "public String getCustCode() {\n return custCode;\n }", "public String getCustIdNbr()\n\t{\n\t\treturn mCustIdNbr;\t\n\t}", "@Override\n\tpublic CustomerLogin findCustomerLoginById(int crn) {\n\t\treturn dao.getByCRN(crn);\n\t}", "public Integer getCustomer() {\n return customer;\n }", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public int currentCustomerId() {\n if (this.currentCustomerAuthenticated()) {\n return this.currentCustomer.getId();\n }\n return 0;\n }", "public Long getRelCustId() {\n return relCustId;\n }", "public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "io.dstore.values.IntegerValue getCampaignId();", "io.dstore.values.IntegerValue getCampaignId();", "public Integer getCrowdId() {\n return crowdId;\n }", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "public String getLstCustNo() {\n return lstCustNo;\n }", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "public Customer findCustomerById(long id) throws DatabaseOperationException;", "@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}", "@Override\n public String getCustomerIDFromDB(String email) {\n String sql = \"select CUSTOMER_ID from CUSTOMER where \" +\n \"EMAIL = '\" + email + \"' \";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"CUSTOMER_ID\").toString();\n }", "@Query(\"select m from MiniStatement m where m.custId=:custId ORDER BY m.id DESC\")\n\tList<MiniStatement> findByCustId(@Param(\"custId\") Long custId);", "public int getNextCustomerId() {\n return database.getNextCustomerId();\n }", "public Collection ejbFindByCustomerId(final Integer customerId)\n {\n PreparedStatement ps = null;\n try \n {\n ps = getConnection().prepareStatement(\"SELECT ID FROM CCBMPACCOUNT WHERE CUSTOMERID = ?\");\n ps.setInt(1, customerId.intValue());\n ResultSet rs = ps.executeQuery();\n Collection result = new ArrayList();\n while (rs.next()) \n {\n result.add(new Integer(rs.getInt(1)));\n } // end of if ()\n rs.close();\n return result;\n }\n catch (Exception e)\n {\n Category.getInstance(getClass().getName()).info(\"Exception in findbyCustomerID\", e);\n throw new EJBException(e);\n } // end of try-catch\n finally\n {\n try \n {\n if (ps != null) {ps.close();}\n }\n catch (Exception e)\n {\n Category.getInstance(getClass().getName()).info(\"Exception closing ps: \" + e);\n } // end of try-catch\n } // end of finally\n }", "@Override\n\tpublic List<Customer> getCustomerById(int customerid) {\n\t\treturn null;\n\t}", "int getDoctorId();", "int getDoctorId();", "public List<String> getCustomerIds() {\r\n\t\treturn getSingleColWithMultipleRowsList(GET_CUSTOMER_IDS);\r\n\t}", "public Integer getCreditid() {\n return creditid;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Wx_BindCustomer getWx_BindCustomerByid(String wx_BindCustomer_id) {\n\t\treturn shopuserDao.getWx_BindCustomerByid(wx_BindCustomer_id);\r\n\t}", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "String getCustomerNameById(int customerId);", "public int getCustomerref() {\n\t\treturn custref;\n\t}", "public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }", "public List<ConsultVO> selectByCusNo(int customerNo) {\n\t\treturn sqlSessionTemplate.selectList(\"consult.ConsultDAO.select\", customerNo);\n\t}", "public Integer getcId() {\n return cId;\n }" ]
[ "0.6749003", "0.6629678", "0.64048725", "0.633102", "0.62983125", "0.62983125", "0.61940336", "0.61425805", "0.61076456", "0.60164106", "0.5939703", "0.5939703", "0.5917981", "0.5892949", "0.5847164", "0.58463544", "0.58450955", "0.58240783", "0.5820449", "0.582006", "0.5817918", "0.5808973", "0.57900685", "0.57841235", "0.57739544", "0.57569665", "0.57369757", "0.5724766", "0.5724766", "0.5724107", "0.56992435", "0.5679564", "0.56791335", "0.5677174", "0.5677174", "0.5657755", "0.56218785", "0.561872", "0.5608231", "0.5589559", "0.55829793", "0.5560182", "0.55379885", "0.5505128", "0.5409297", "0.540317", "0.5402325", "0.537571", "0.53441703", "0.53081125", "0.5301961", "0.52873373", "0.52769476", "0.52753687", "0.5263287", "0.52615225", "0.5260341", "0.5253426", "0.5252885", "0.5243945", "0.523977", "0.523977", "0.52181506", "0.5174775", "0.51737773", "0.51678646", "0.5167438", "0.5163709", "0.51632386", "0.5143199", "0.5143199", "0.5128092", "0.5123874", "0.51218194", "0.51161385", "0.51116407", "0.51055217", "0.5096781", "0.50941306", "0.5094079", "0.50785905", "0.5076838", "0.50742644", "0.5070046", "0.5067067", "0.50653553", "0.5055273", "0.5055273", "0.5053909", "0.5039595", "0.50349545", "0.50264597", "0.5025395", "0.49997184", "0.49973854", "0.4990339", "0.49851426", "0.49791703", "0.49791205" ]
0.6489231
3
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.cust_id
public void setCustId(Long custId) { setField("custId", custId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustId(Long custId) {\n this.custId = custId;\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public int getCustId(){\n return this.custId;\r\n }", "public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }", "public void setCustCountryId(int v) throws TorqueException\n {\n \n if (this.custCountryId != v)\n {\n this.custCountryId = v;\n setModified(true);\n }\n \n \n if (aCountry != null && !(aCountry.getCountryId() == v))\n {\n aCountry = null;\n }\n \n }", "public void setCustomerId(long value) {\n this.customerId = value;\n }", "public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }", "public Long getCustId() {\n return custId;\n }", "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }", "public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }", "public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }", "public void setCustomer(Integer customer) {\n this.customer = customer;\n }", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public String getCustId() {\n return custId;\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}", "public void setCustomer(au.gov.asic.types.AccountIdentifierType customer)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n }\n target.set(customer);\n }\n }", "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }", "public void setCustPid(Long custPid) {\n\t\tthis.custPid = custPid;\n\t}", "public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }", "public void setExternalCustomerId(Long externalCustomerId) {\r\n this.externalCustomerId = externalCustomerId;\r\n }", "public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}", "@Override\n public void setClientId(int clientId) {\n _entityCustomer.setClientId(clientId);\n }", "public void setCustCode(String custCode) {\n this.custCode = custCode == null ? null : custCode.trim();\n }", "public void setCustCode(String custCode) {\n this.custCode = custCode == null ? null : custCode.trim();\n }", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setCustomerCatId(int v) throws TorqueException\n {\n \n if (this.customerCatId != v)\n {\n this.customerCatId = v;\n setModified(true);\n }\n \n \n if (aCustomerCategory != null && !(aCustomerCategory.getCustomerCatId() == v))\n {\n aCustomerCategory = null;\n }\n \n }", "public void setCustIdNbr(java.lang.String custIdNbr) {\n this.custIdNbr = custIdNbr;\n }", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "public Integer getCustomerId()\n {\n return customerId;\n }", "public CstCustomer toupdate(String custNo) {\n\t\tCstCustomer cstCustomer=cstCustomerDao.toupdate(custNo);\n\t\treturn cstCustomer;\n\t}", "public void update(String custNo, CstCustomer cstCustomer2) {\n\t\tcstCustomerDao.update(custNo,cstCustomer2);\n\t}", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}", "public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}", "public void setCustomerid(String customerid) {\n this.customerid = customerid == null ? null : customerid.trim();\n }", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setCustIdNbr(String custIdNbr) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_ID_NBR, custIdNbr, \n\t\t\tMIN_PARM_LEN_ID_NBR, EXC_CD_ID_NBR);\n\n\t\tmCustIdNbr = custIdNbr;\n\t}", "public void setCustShow(org.openxmlformats.schemas.presentationml.x2006.main.CTCustomShowId custShow)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTCustomShowId target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTCustomShowId)get_store().find_element_user(CUSTSHOW$10, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTCustomShowId)get_store().add_element_user(CUSTSHOW$10);\n }\n target.set(custShow);\n }\n }", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setCustomer(Customer customer) {\r\n \r\n this.customer = customer;\r\n \r\n if (customer != null) {\r\n // Fill the labels with info from the Customer object\r\n custIdTextField.setText(Integer.toString(customer.getCustomerId()));\r\n custFirstNameTextField.setText(customer.getCustFirstName());\r\n custLastNameTextField.setText(customer.getCustLastName());\r\n custAddressTextField.setText(customer.getCustAddress());\r\n custCityTextField.setText(customer.getCustCity());\r\n custProvinceTextField.setText(customer.getCustProv());\r\n custPostalCodeTextField.setText(customer.getCustPostal());\r\n custCountryTextField.setText(customer.getCustCountry());\r\n custHomePhoneTextField.setText(customer.getCustHomePhone());\r\n custBusinessPhoneTextField.setText(customer.getCustBusPhone());\r\n custEmailTextField.setText(customer.getCustEmail());\r\n if (cboAgentId.getItems().contains(customer.getAgentId())){\r\n cboAgentId.setValue(customer.getAgentId());\r\n }\r\n else{\r\n cboAgentId.getSelectionModel().selectFirst();\r\n }\r\n } else {\r\n custIdTextField.setText(\"\");\r\n custFirstNameTextField.setText(\"\");\r\n custLastNameTextField.setText(\"\");\r\n custAddressTextField.setText(\"\");\r\n custCityTextField.setText(\"\");\r\n custProvinceTextField.setText(\"\");\r\n custPostalCodeTextField.setText(\"\");\r\n custCountryTextField.setText(\"\");\r\n custHomePhoneTextField.setText(\"\");\r\n custBusinessPhoneTextField.setText(\"\");\r\n custEmailTextField.setText(\"\");\r\n cboAgentId.getSelectionModel().selectFirst();\r\n } \r\n }", "public void setCountryId(int value);", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public void setLstCustManagerId(BigDecimal lstCustManagerId) {\n this.lstCustManagerId = lstCustManagerId;\n }", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "void setCustomerDao(CustomerDao customerDao);", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "public io.confluent.developer.InterceptTest.Builder setReqCustid(int value) {\n validate(fields()[0], value);\n this.req_custid = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "protected void setCustomer(Customer customer) {\n this.customer = customer;\n }", "public int getCustomerId() \n {\n return customerId;\n }", "public void setCustomerCode(String customerCode)\n\t{\n\t\tsetColumn(customerCode, OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}", "public void setMsisdnId(int value) {\n this.msisdnId = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}", "public void setCustomer(Customer customer) {\r\n\r\n this.customer = customer;\r\n ObservableList<Order> orders = getAllCustomerOrders(customer.getCustomerId());\r\n ordersTable.setItems(orders);\r\n }", "@Override\n\tpublic Customer findById(Long cust_id) throws Exception {\n\t\tList<Customer> lists = (List<Customer>) this.getHibernateTemplate().find(\"from Customer where cust_id = ?\",\n\t\t\t\tcust_id);\n\t\tgetHibernateTemplate().get(Customer.class, cust_id);\n\t\tif (lists.size() > 0) {\n\n\t\t\treturn lists.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "public Long getCustomerId() {\n return customerId;\n }", "public void setCreditid(Integer creditid) {\n this.creditid = creditid;\n }", "@Override\n\tpublic Customers update(Customers updatecust) {\n\t\tCustomers custpersist= search(updatecust.getId());\n\t\tif (custpersist==null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers upcust = CustRepo.save(updatecust);\n\t\treturn upcust;\n\t}", "public void setCustName(String custName) {\n\t\tthis.custName = custName;\n\t}", "public void setC_BPartner_ID (int C_BPartner_ID);", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public void setReqCustid(java.lang.Integer value) {\n this.req_custid = value;\n }", "public void setCustLanguageId(int v) throws TorqueException\n {\n \n if (this.custLanguageId != v)\n {\n this.custLanguageId = v;\n setModified(true);\n }\n \n \n if (aLanguageRelatedByCustLanguageId != null && !(aLanguageRelatedByCustLanguageId.getLanguageId() == v))\n {\n aLanguageRelatedByCustLanguageId = null;\n }\n \n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "public void setCustomerIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier customerIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n }\n target.set(customerIdentifier);\n }\n }", "public void setId(int aMonthId) {\r\n\t\tid = aMonthId;\r\n\t}", "public void setLoginId(int value) {\n this.loginId = value;\n }", "public void updateCustomer(String id) {\n\t\t\n\t}", "public void setCurrentCustomer(Customer customer) {\n this.currentCustomer = customer;\n }", "public void setLstCustNo(String lstCustNo) {\n this.lstCustNo = lstCustNo == null ? null : lstCustNo.trim();\n }", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "public Integer getCustomerID() {\n return customerID;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }" ]
[ "0.6525163", "0.6358611", "0.6280479", "0.61436903", "0.61362404", "0.599218", "0.5805831", "0.57188004", "0.5714299", "0.5667117", "0.56527954", "0.56437594", "0.56121063", "0.55816096", "0.55761296", "0.55761296", "0.55730695", "0.55543303", "0.54982144", "0.5481408", "0.5472704", "0.5461122", "0.5461122", "0.54353833", "0.53797907", "0.5371923", "0.5318353", "0.5256476", "0.5245182", "0.5242246", "0.5227515", "0.5225813", "0.519648", "0.519648", "0.5183903", "0.51798946", "0.51798946", "0.5176393", "0.51687306", "0.5168589", "0.5156564", "0.5141035", "0.5139504", "0.51393104", "0.5135596", "0.5111358", "0.51089346", "0.5108152", "0.5084224", "0.50683343", "0.50667006", "0.50667006", "0.5066609", "0.50468147", "0.50455654", "0.5029256", "0.50261885", "0.50242734", "0.501352", "0.5008938", "0.50032574", "0.4984464", "0.4981073", "0.49779814", "0.49767256", "0.49730483", "0.49709558", "0.4968286", "0.49645483", "0.49543628", "0.49455667", "0.49413842", "0.49388152", "0.49386987", "0.49338362", "0.4932967", "0.4932646", "0.49320152", "0.49320152", "0.4928304", "0.4924745", "0.4918201", "0.49171653", "0.4900152", "0.48996276", "0.48959857", "0.48922735", "0.48891187", "0.48827603", "0.48827603", "0.4881269", "0.48725146", "0.4862343", "0.48612154", "0.485795", "0.48524156", "0.48503852", "0.48465744", "0.48414692", "0.48404676" ]
0.6041245
5
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.pos_id
public Long getPosId() { return posId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getPosId()\n\t{\n\t\treturn posId;\n\t}", "public Long getPosId() {\n return posId;\n }", "public int getIdCadastroSelecionado(int listPosition, String condition){\n \tif (listPosition == -1){\r\n \t\treturn 0;\r\n \r\n \t}else{\r\n \treturn Integer.parseInt(Controlador.getInstancia().getCadastroDataManipulator().selectIdImoveis(condition).get(listPosition));\r\n \t}\r\n }", "public java.lang.Long getPosId () {\r\n\t\treturn posId;\r\n\t}", "public Integer getPositionId() {\n return positionId;\n }", "public java.lang.String getPositionid() {\n\treturn positionid;\n}", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public int getPosition()\n {\n return getInt(\"Position\");\n }", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "@JsonProperty(\"PoSId\")\n public String getPoSId() {\n return posId;\n }", "public int getCustId(){\n return this.custId;\r\n }", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public int getInteger(int pos) {\n return Tuples.toInteger(getObject(pos));\n }", "public Integer getIdLocacion();", "public int pegaIndicePosicao(PosicaoMapa posicao) \n\t{\n\t\treturn posicoes.indexOf(posicao);\n\t}", "@Override\n\tpublic int getPrimaryKey() {\n\t\treturn _locMstLocation.getPrimaryKey();\n\t}", "public int getM_Production_ID();", "public int getC_Decoris_PreSalesLine_ID();", "private int getPlayerIDByGroupPosition(int clientPosition, int sessionID){\n\t\tif(sessionID != NO_LOBBY_ID && lobbyMap.get(sessionID) != null){\n\t\t\treturn lobbyMap.get(sessionID).getPlayerIDByPosition(clientPosition);\n\t\t}\n\t\treturn -1;\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dmGTShipPosition.getPrimaryKey();\n\t}", "Integer getSOLid();", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "public Integer getPositionnum() {\n\t\treturn positionnum;\n\t}", "public List<Integer> selectPosAllId() {\n\t\treturn postDao.selectPosAllId();\r\n\t}", "public java.lang.String getPosCode () {\r\n\t\treturn posCode;\r\n\t}", "int getListSnId(int index);", "@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }", "@Override\n\tpublic long getId() {\n\t\treturn _dmGTShipPosition.getId();\n\t}", "@Override\n public int getVisaIdByName(String name) throws SQLException, ClassNotFoundException {\n return dao.getId(name);\n }", "public int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "private static int getComponentIdFromCompName(String compName){\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcomponentCriteria.add(Restrictions.eq(\"componentName\",compName));\n\t\tcomponentCriteria.add(Restrictions.eq(\"delInd\", 0));\n\t\tcomponentCriteria.setMaxResults(1);\n\t\tComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();\n\t\tint compId = 0;\n\t\tif(com != null){\n\t\t\tcompId = com.getComponentId();\n\t\t}\n\t\ttxn.commit();\n\t\treturn compId;\n\t}", "public void setPosId(Long posId) {\n this.posId = posId;\n }", "public String getPositionCode() {\n\t\treturn positionCode;\n\t}", "public Number getSolineId() {\n return (Number)getAttributeInternal(SOLINEID);\n }", "private String obtenerNid(int posicion) {\n if (propuestas != null) {\n return propuestas[posicion].getNid();\n }\n return null;\n }", "public abstract Integer getCompteId();", "Position selectByPrimaryKey(Integer id);", "public IntColumn getSeqNum() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"seq_num\", IntColumn::new) :\n getBinaryColumn(\"seq_num\"));\n }", "@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "int getReprojectedModisId(String project, DataDate date) throws SQLException;", "public int getSeasonId() {\n return seasonId;\n }", "public Integer getProductionstatementid() {\n return productionstatementid;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public String getCodigoPosse() {\n return codigoPosse;\n }", "BannerPosition selectBannerPositionByPrimaryKey(Integer id) throws SQLException;", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}", "public Position1 getSinglePositionById(Integer posId) {\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from Position1 as position where position.position1Id = ?\",\n new Object[]{posId},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\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 if (results.isEmpty()) {\n return null;\n } else {\n return (Position1) results.get(0);\n }\n\n }", "@Override\n public Long nextSequenceValue() {\n return (Long)getHibernateTemplate().execute(\n new HibernateCallback() {\n @Override\n public Object doInHibernate(Session session) throws HibernateException {\n //return (Long) session.createSQLQuery(\"select SGSWEB.SEQ_CUESTIONARIO.NEXTVAL as id from dual\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }\n });\n }", "@Override\n\tpublic java.lang.String getPositionCode() {\n\t\treturn _dmGTShipPosition.getPositionCode();\n\t}", "public int getCampoIdentificacao() {\r\n return campoIdentificacao;\r\n }", "private static Integer getSeq()throws SQLException{\r\n String selectSql = \"SELECT max(idArt) from Artigo\";\r\n Statement statement = dbConnection.createStatement();\r\n ResultSet rs = statement.executeQuery(selectSql);\r\n int seqIdPe = -1;\r\n if(rs.next()){\r\n seqIdPe = rs.getInt(1);\r\n }\r\n return seqIdPe + 1; \r\n }", "public Integer getSpId() {\n\t\treturn this.spId;\n\t}", "public abstract java.lang.Long getId_causal_peticion();", "public Integer getPosition() {\n return this.position;\n }", "@Override\r\n\tpublic int getSeq() {\n\t\treturn pdsdao.getSeq();\r\n\t}", "public int getPosicaoX() {\r\n\t\treturn posicaoX;\r\n\t}", "public static Integer busca_posicao(List<Funcionario_lista> list, int id) {\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i).getId() == id) {\n return i;\n }\n }\n return null;\n }", "public Optional<Integer> getPosition() {\n return this.placement.getAlleles().stream()\n .map(p -> p.getAllele().getSpdi().getPosition())\n .findFirst();\n }", "@Override\r\n\tpublic Integer getIdRol(String usuario) {\t\r\n\t\tInteger rolId = null;\r\n\t\t\r\n\t\ttry\r\n\t\t{\t\t\t\r\n\t\t\trolId = jdbcTemplate.queryForObject(\r\n\t\t\t\t\tSQL_SELECT_ROL_USUARIO, \r\n\t\t\t\t\tnew RowMapper<Integer>() {\r\n\t\t\t\t public Integer mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\t\t\t return rs.getInt(\"id\");\r\n\t\t\t\t }\r\n\t\t\t\t },\r\n\t\t\t\t\tusuario);\r\n\t\t}\r\n\t\tcatch(EmptyResultDataAccessException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn rolId;\t\r\n\t}", "public IntColumn getParentId() {\n return delegate.getColumn(\"parent_id\", DelegatingIntColumn::new);\n }", "private static int getCustomerIndex(List<Integer> customer){\n return customer.get(0);\n }", "public int getSeasonStatusId() {\n return seasonStatusId;\n }", "public Long getIdVieSociale() {\r\n\t\treturn idVieSociale.get();\r\n\t}", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY, generator=\"TB_PRODUTO_ID_SEQ\")\n\t@SequenceGenerator(allocationSize=1, initialValue=1, name=\"TB_PRODUTO_ID_SEQ\", sequenceName=\"TB_PRODUTO_ID_SEQ\")\n\t@Column(name=\"id\",length=11, unique=true)\n\tpublic Integer getIdProduto() {\n\t\treturn idProduto;\n\t}", "public Integer getPosition()\n {\n return position;\n }", "int getStatementId();", "int getStatementId();", "int getStatementId();", "public Integer getColId() {\r\n\t\treturn colId;\r\n\t}", "public long getSalesID() {\n return salesID;\n }", "int getXpos(int pos) {\n\t\treturn pos % Game.ROWLENGTH;\n\t}", "public void setPosId (java.lang.Long posId) {\r\n\t\tthis.posId = posId;\r\n\t}", "public int getDocpositioncode() {\n\treturn docpositioncode;\n}", "public java.lang.Integer getPosition() {\n return position;\n }", "public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }", "public String getPos(){\r\n\t\t return pos;\r\n\t }", "public String getSeasonCode()\r\n\t{\r\n\t\treturn getSeasonCode( getSession().getSessionContext() );\r\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfTournament.getPrimaryKey();\n\t}", "@Override\n\tpublic long getColumnId() {\n\t\treturn _expandoColumn.getColumnId();\n\t}", "@Override\r\n\tpublic Integer getId() {\n\t\treturn codigoCliente;\r\n\t}", "public Integer getOpportunityID() {\n return opportunityID;\n }", "public int getListId()\n {\n return listId;\n }", "public int getPosX(){\n\t\treturn this.posX; \n\t}", "public IntColumn getId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"id\", IntColumn::new) :\n getBinaryColumn(\"id\"));\n }", "public IntColumn getId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"id\", IntColumn::new) :\n getBinaryColumn(\"id\"));\n }", "int getSourceSnId();", "public java.lang.Integer getPosition() {\n return position;\n }", "public int getPositionColumn(){return this.positionColumn;}", "@Override\n\tpublic IPosicion getPosicion() {\n\t\treturn this.posicion;\n\t}", "public String getSQLVariableAt(int pos) {\n\t\treturn sqlVariables[pos]; \n\t}", "public BigDecimal getLstId() {\n return lstId;\n }" ]
[ "0.61129516", "0.60925066", "0.5912217", "0.58743083", "0.58486426", "0.5391441", "0.5331486", "0.5331486", "0.5303401", "0.5208061", "0.5188199", "0.5187888", "0.5155503", "0.5139721", "0.51254135", "0.511283", "0.5101596", "0.50992936", "0.50984395", "0.509377", "0.50914663", "0.50791377", "0.5061664", "0.5055108", "0.50448716", "0.50405663", "0.5037803", "0.50329936", "0.5004663", "0.5000412", "0.49899405", "0.49829912", "0.49808824", "0.49795765", "0.49668747", "0.49653435", "0.4961479", "0.4959807", "0.49451312", "0.49445716", "0.49408808", "0.49378392", "0.49330416", "0.49222916", "0.49179676", "0.49130794", "0.49105108", "0.490597", "0.4884438", "0.48698965", "0.48657867", "0.4859668", "0.4849241", "0.48429403", "0.48379925", "0.48310587", "0.48292238", "0.48275778", "0.48249984", "0.48236564", "0.48226583", "0.48061576", "0.4805898", "0.48044172", "0.48038763", "0.4797615", "0.4797071", "0.47924584", "0.47924584", "0.47924584", "0.47924584", "0.47924584", "0.47889993", "0.47843054", "0.47842196", "0.47842196", "0.47842196", "0.47808895", "0.47783872", "0.4777163", "0.4776677", "0.47757092", "0.47756386", "0.47711498", "0.47530192", "0.47526795", "0.47524533", "0.4751626", "0.47515675", "0.47506273", "0.4750424", "0.47496352", "0.47495475", "0.47495475", "0.47494078", "0.47452384", "0.47394082", "0.47390327", "0.47335634", "0.47312996" ]
0.59605086
2
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.pos_id
public void setPosId(Long posId) { setField("posId", posId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPosId(Long posId) {\n this.posId = posId;\n }", "public void setPosId (java.lang.Long posId) {\r\n\t\tthis.posId = posId;\r\n\t}", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "void setPosNr(String posNr);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "public Long getPosId()\n\t{\n\t\treturn posId;\n\t}", "public Long getPosId() {\n return posId;\n }", "public void setM_Production_ID (int M_Production_ID);", "@External\r\n\t@ClientFunc\r\n\tpublic MetaVar SetPos(MetaVarVector positionVar);", "public void setPosicion(int posicion){\n _posicion = posicion;\n }", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }", "public void setPos(int pos);", "public void setPos(int pos);", "public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }", "public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }", "public Long getPosId() {\n\t\treturn posId;\n\t}", "public void setPositionId(Integer positionId) {\n this.positionId = positionId;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }", "public void setPositionid(java.lang.String newPositionid) {\n\tpositionid = newPositionid;\n}", "public void setCodigoPosse(String codigoPosse) {\n this.codigoPosse = codigoPosse;\n }", "public void setPosition(Integer position);", "public java.lang.Long getPosId () {\r\n\t\treturn posId;\r\n\t}", "public void setPosition(Position pos) {\n \tthis.position = pos;\n \t//setGrade();\n }", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public int getIdCadastroSelecionado(int listPosition, String condition){\n \tif (listPosition == -1){\r\n \t\treturn 0;\r\n \r\n \t}else{\r\n \treturn Integer.parseInt(Controlador.getInstancia().getCadastroDataManipulator().selectIdImoveis(condition).get(listPosition));\r\n \t}\r\n }", "public void setPosicaoX(int posicaoX) {\r\n\t\tthis.posicaoX = posicaoX;\r\n\t}", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }", "public void setPosX(int posX) {\n this.posX = posX;\n }", "public void setPositionIds(Iterable<? extends ObjectIdentifiable> positionIds) {\n if (positionIds == null) {\n _positionIds = null;\n } else {\n _positionIds = new ArrayList<ObjectIdentifier>();\n for (ObjectIdentifiable positionId : positionIds) {\n _positionIds.add(positionId.getObjectId());\n }\n }\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }", "public void setValues(PreparedStatement ps, int i) throws SQLException {\n String id = items.get(i).getTransactionId();\n ps.setString(1, id);\n\t\t\t\t}", "public void SetPOS (String pos) {\n pos_ = pos;\n }", "public void setSolineId(Number value) {\n setAttributeInternal(SOLINEID, value);\n }", "public void set(int pos);", "public void setPosition(Position pos);", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setPositionColumn(int value){this.positionColumn = value;}", "public void setPosition(int position);", "public void setPositionRow(int value){this.positionRow = value;}", "private void resetCompanyPositions(){\n // resets intPositions on all companies if they get messed up\n\n lisCompanies = daoImpl.getLisCompanies();\n\n String str = \"\";\n\n for (int i = 0; i < lisCompanies.size(); i++) {\n\n str = lisCompanies.get(i).getStrName() +\": \" + lisCompanies.get(i).getIntPosition();\n\n lisCompanies.get(i).setIntPosition(i);\n\n str = str + \" -> \" + lisCompanies.get(i).getIntPosition();\n Log.i(\"Reset Company Positions\", str);\n }\n\n daoImpl.executeUpdateCompanies(lisCompanies);\n }", "public void setPositionnum(Integer positionnum) {\n\t\tthis.positionnum = positionnum;\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "@PropertySetter(role = POSITION)\n\t<E extends CtElement> E setPosition(SourcePosition position);", "public void setPosition(int position)\n {\n put(\"Position\", position);\n }", "public void setPosX(int posX) {\n\t\tthis.posX = posX;\n\t}", "public void setPosition(int position) {\r\r\r\r\r\r\n this.position = position;\r\r\r\r\r\r\n }", "public void setPosX(final int posX) {\n\t\tthis.posX = posX;\n\t}", "public void setIdLocacion(Integer idLocacion);", "public abstract void setCompteId(Integer pCompteId);", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }", "public Integer getPositionId() {\n return positionId;\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setPosition(int position)\r\n {\r\n this.position = position;\r\n }", "public void setPosition(Position pos) {\n position = new Position(pos);\n }", "public void setIdProducto(int value) {\n this.idProducto = value;\n }", "public void setPos(Punto pos) {\n\t\tthis.pos = pos;\n\t}", "public void setPosCode (java.lang.String posCode) {\r\n\t\tthis.posCode = posCode;\r\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "@Override\n\tpublic void setPosition(Vector3 pos) {\n\t\t\n\t}", "public void setPosition(java.util.List position)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(POSITION$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(POSITION$0);\n }\n target.setListValue(position);\n }\n }", "public void setIdCliente(int value) {\n this.idCliente = value;\n }", "public void setPos(java.lang.Integer value) {\n\t\tsetValue(org.openforis.collect.persistence.jooq.tables.OfcLogo.OFC_LOGO.POS, value);\n\t}", "public ResponseEntity<?> setPosition(PositionDto pos) {\n\t\t\t\tinitializeSystemIfNull();\n\t\t\t\t// get the system config\n\t\t\t\tPlaylistMetadataEntity se = systemRepo.findAll().get(0);\n\n\t\t\t\tSystem.out.println(pos.getPosition());\n\t\t\t\t// if there is a song with the specified position\n\t\t\t\tif (trackRepo.existsByPosition(pos.getPosition())) {\n\t\t\t\t\t// then get the song, and save the systementity\n\t\t\t\t\tse.setPositionInPlaylist(pos.getPosition());\n\t\t\t\t\tSystem.out.println(\"here\");\n\t\t\t\t\tse.setSecondsPlayed(0);\n\t\t\t\t\tsystemRepo.save(se);\n\t\t\t\t}\n\t\t\t\t// if no song was found, there is no next song, bad request\n\t\t\t\tList<TrackEntity> tes = trackRepo.findAll(Sort.by(Sort.Direction.ASC, \"position\"));\n\t\t\t\tList<TrackEntity> teReturn = new ArrayList<>();\n\t\t\t\tfor(TrackEntity t: tes) {\n\t\t\t\t\tif(t.getPosition()!=null) {\n\t\t\t\t\t\tteReturn.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tPlaylistDTO pdto = new PlaylistDTO();\n\t\t\t\tpdto.setPosition(se.getPositionInPlaylist());\n\t\t\t\tpdto.setSecondsPlayed(se.getSecondsPlayed());\n\t\t\t\tpdto.setTrackEntities(teReturn);\n\t\t\t\treturn new ResponseEntity<>(pdto, HttpStatus.OK);\n\t}", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setPosition(Vector2 pos) {\n\t\tsetX(pos.x);\n\t\tsetY(pos.y);\n\t}", "public void setCoordinates(int pos){\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE-pos;}\n else{\n this.coordinates[0]=pos;}\n if(this.pIndex%3==0){\n this.coordinates[1]=pos;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE-pos;}\n }", "public void setPos(PVector pos) {\n\t\tlog.finest(\"Updating position to \" + pos);\n\t\tthis.pos = pos;\n\t}", "public void setPosX(double posX) {\n\t\tthis.PosX = posX;\r\n\t}", "public void setStargateId(int val) {\n stargateId = val;\n }", "public void setSalesorderId(Number value) {\n setAttributeInternal(SALESORDERID, value);\n }", "public void setSalesOrderId(Number value) {\n setAttributeInternal(SALESORDERID, value);\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public void setPosition(Integer position) {\n this.position = position;\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public int getSeasonId() {\n return seasonId;\n }", "@JsonProperty(\"PoSId\")\n public String getPoSId() {\n return posId;\n }", "public void setSeasonCode(final String value)\r\n\t{\r\n\t\tsetSeasonCode( getSession().getSessionContext(), value );\r\n\t}", "public void setPosition(int position) {\r\n this.position = position;\r\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_dmGTShipPosition.setId(id);\n\t}", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void PositionSet(int position);", "public void setPosition(com.hps.july.persistence.Position arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setPosition(arg0);\n }", "public void setPosX(float posX) {\n this.posX = posX;\n }", "private void set_position(int pos[])\r\n\t{\r\n\t\tthis.position = pos;\r\n\t}", "public void setPosEnSaliente(Position<Arco<E>> pos){\r\n\t\tposV1 = pos;\r\n\t}", "@Override\n\tpublic void setNonNullParameter(PreparedStatement ps, int i,\n\t Chromosome parameter, JdbcType jdbcType) throws SQLException\n\t{\n\t\tps.setInt(i, parameter.getChr());\n\t}", "public void setM_PriceList_Version_ID (int M_PriceList_Version_ID);", "public void setSymbolPosition(CurrencySymbolPosition posn)\r\n {\r\n m_symbolPosition = posn;\r\n }" ]
[ "0.5903674", "0.5721424", "0.56868553", "0.5579885", "0.54590106", "0.54590106", "0.5401485", "0.5374716", "0.53725326", "0.5358354", "0.5350984", "0.5317039", "0.5286065", "0.5276702", "0.52754706", "0.52754706", "0.5266133", "0.52660745", "0.5265103", "0.52542686", "0.5229649", "0.5178516", "0.51607436", "0.5124394", "0.51238006", "0.51094884", "0.50872755", "0.50846875", "0.50620055", "0.5040227", "0.5033189", "0.5016264", "0.50151974", "0.49889782", "0.49777478", "0.497616", "0.49639007", "0.494845", "0.49464926", "0.4946431", "0.49458212", "0.49442828", "0.49440262", "0.4940733", "0.493004", "0.49275348", "0.49249995", "0.49210453", "0.49059126", "0.4901558", "0.48960423", "0.48942345", "0.4891198", "0.48905218", "0.4875806", "0.4842486", "0.4842334", "0.48339885", "0.48235044", "0.48156872", "0.48125988", "0.48124787", "0.47951567", "0.47908226", "0.47820538", "0.47746828", "0.47620705", "0.47619691", "0.47613508", "0.47612712", "0.47612712", "0.47612712", "0.47612712", "0.47612712", "0.47612712", "0.47612712", "0.47564277", "0.4750262", "0.47475716", "0.47304058", "0.47301364", "0.4721553", "0.47168064", "0.47143948", "0.4712383", "0.47023866", "0.47017357", "0.46922076", "0.4690173", "0.46786016", "0.46780652", "0.46767047", "0.46766633", "0.46741617", "0.46739864", "0.46602303", "0.4656608", "0.46546412", "0.46518356", "0.46514386" ]
0.55913585
3
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.create_id
public Long getCreateId() { return createId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCreateId() {\n\t\treturn createId;\n\t}", "public String getCreateId() {\n\t\treturn createId;\n\t}", "public Integer getCreateUserId() {\n return createUserId;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Long getCreateUserid() {\r\n\t\treturn createUserid;\r\n\t}", "private int save_InsertGetInsertId() {\n\t\t\n\t\tfinal String INSERT_SQL = \"INSERT INTO project__insert_id_tbl ( ) VALUES ( )\";\n\t\t\n\t\t// Use Spring JdbcTemplate so Transactions work properly\n\t\t\n\t\t// How to get the auto-increment primary key for the inserted record\n\t\t\n\t\ttry {\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\t\tint rowsUpdated = this.getJdbcTemplate().update(\n\t\t\t\t\tnew PreparedStatementCreator() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n\n\t\t\t\t\t\t\tPreparedStatement pstmt =\n\t\t\t\t\t\t\t\t\tconnection.prepareStatement( INSERT_SQL, Statement.RETURN_GENERATED_KEYS );\n\n\t\t\t\t\t\t\treturn pstmt;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tkeyHolder);\n\n\t\t\tNumber insertedKey = keyHolder.getKey();\n\t\t\t\n\t\t\tlong insertedKeyLong = insertedKey.longValue();\n\t\t\t\n\t\t\tif ( insertedKeyLong > Integer.MAX_VALUE ) {\n\t\t\t\tString msg = \"Inserted key is too large, is > Integer.MAX_VALUE. insertedKey: \" + insertedKey;\n\t\t\t\tlog.error( msg );\n\t\t\t\tthrow new LimelightInternalErrorException( msg );\n\t\t\t}\n\t\t\t\n\t\t\tint insertedKeyInt = (int) insertedKeyLong; // Inserted auto-increment primary key for the inserted record\n\t\t\t\n\t\t\treturn insertedKeyInt;\n\t\t\t\n\t\t} catch ( RuntimeException e ) {\n\t\t\tString msg = \"SQL: \" + INSERT_SQL;\n\t\t\tlog.error( msg, e );\n\t\t\tthrow e;\n\t\t}\n\t}", "public Integer getCreateUserid() {\n return createUserid;\n }", "public String getCreateUserId() {\r\n return createUserId;\r\n }", "public Integer getCreatePersonId() {\n return createPersonId;\n }", "@Override\r\n\tpublic String createID() {\r\n\t\t \r\n\t\t\t\treturn transCode.toString();\r\n\t\t\t\t}", "String getCreatorId();", "public Integer getCreateEmpId() {\n return createEmpId;\n }", "public String getCreateEmpId() {\n return createEmpId;\n }", "public String getCreatepersonid() {\r\n return createpersonid;\r\n }", "public String generateCustomer_Id() {\n\t\tString customer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkCustomerIdIfExist(customer_Id)) {\n\t\t\tcustomer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn customer_Id;\n\t}", "public int generateId(){\n return repository.getCount()+1;\n }", "public int getCreateType() {\n\t\treturn createType;\n\t}", "private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }", "public int getCustId(){\n return this.custId;\r\n }", "public Integer getCreateby() {\n return createby;\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Integer getCreateUser() {\n return createUser;\n }", "public Integer getCreateUser() {\n return createUser;\n }", "@Override\r\n\tpublic Integer getCurrentInsertID() throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getLastInsertID\");\r\n\t}", "public Long getCustId() {\n return custId;\n }", "String getExistingId();", "public void setCreateUserid(Integer createUserid) {\n this.createUserid = createUserid;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Integer getCreateuser() {\n return createuser;\n }", "public int insert(){\n\t\tif (jdbcTemplate==null) createJdbcTemplate();\n\t\t jdbcTemplate.update(insertStatement, ticketId,locationNumber);\n\t\treturn ticketId;\n\t}", "private Long createId() {\n return System.currentTimeMillis() % 1000;\n }", "public String getNewLoginId() {\n\t\tString newLoginId=null;\n\t\tString login_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll3.find().sort(new BasicDBObject(\"login_id\", -1)).limit(1);\n\t\tLoginInfo login = new LoginInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tlogin_id = obj.get(\"login_id\").toString();\n\t\t\tlogin.setLogin_id(login_id);\n\t\t\tSystem.out.println(\"NEXT Login ID=\"+login.getLogin_id());\n\t\t }\n\t \n\t newLoginId= login_id;\n\t long tempLong= Long.parseLong(newLoginId);\n\t tempLong=tempLong+1;\n\t \n\t newLoginId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newLoginId);\n\t return newLoginId;\t\t\n\t\t\n\t}", "public String getClCreateUserId() {\r\n return clCreateUserId;\r\n }", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "public void setCreateId(String createId) {\n\t\tthis.createId = createId == null ? null : createId.trim();\n\t}", "public void setCreateId(String createId) {\n\t\tthis.createId = createId == null ? null : createId.trim();\n\t}", "public void setCreateEmpId(Integer createEmpId) {\n this.createEmpId = createEmpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public void setCreateId(Long createId) {\n\t\tsetField(\"createId\", createId);\n\t}", "@Override\n public Long getLastInsertId() {\n Long lastId = 0L;\n Map<String, Object> paramMap = new HashMap<>();\n paramMap.put(\"lastID\", lastId);\n jdbc.query(SELECT_LAST_INSERT_ID, paramMap, rowMapper);\n return lastId;\n }", "public void setCreateUserId(Integer createUserId) {\n this.createUserId = createUserId;\n }", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public String getCreateMemberCode() {\n return createMemberCode;\n }", "public String getCreateFid() {\n return createFid;\n }", "public String getCreateDate(int position) {\n HashMap<String, String> map = list.get(position);\n return map.get(CREATE_DATE_COLUMN);\n }", "public long addReturnGeneratedId(ChildbirthVisit cv) throws DBException;", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "public java.lang.String getCreateuserid () {\n\t\treturn createuserid;\n\t}", "private int generateNewId() {\n int size = userListCtrl.getUsers().size();\n \n if (size == 0) {\n return 1;\n } else {\n return userListCtrl.getUsers().get(size-1).getUserID()+1;\n }\n }", "public Integer getCreatedUserId() {\n return (Integer) get(4);\n }", "@Override\n public boolean createCustomerBySales(SalesCustomerBean salescustomer) {\n // TODO Auto-generated method stub\n salescustomer.setGendate(C_Util_Date.generateDate());\n salescustomer.setStatus(\"NEW\");\n insertorupdate = in_salescustdao.createSalesCustomer(salescustomer);\n return insertorupdate;\n }", "@Insert({ \"insert into iiot_app_list (app_id, app_name, \", \"node, status, restart_times, \", \"up_time, template, \",\n\t\t\t\"owner, note, rest3, \", \"rest4, rest5, create_time, \", \"uuid)\",\n\t\t\t\"values (#{appId,jdbcType=INTEGER}, #{appName,jdbcType=VARCHAR}, \",\n\t\t\t\"#{node,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{restartTimes,jdbcType=CHAR}, \",\n\t\t\t\"#{upTime,jdbcType=VARCHAR}, #{template,jdbcType=VARCHAR}, \",\n\t\t\t\"#{owner,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{rest3,jdbcType=VARCHAR}, \",\n\t\t\t\"#{rest4,jdbcType=VARCHAR}, #{rest5,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{uuid,jdbcType=CHAR})\" })\n\t@Options(useGeneratedKeys = true, keyProperty = \"appId\",keyColumn=\"app_id\" )\n\tint insertAndGetId(IiotAppList record);", "public Long getUserCreate() {\n return userCreate;\n }", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "@Insert({\n \"insert into SWMS_stock_out_record_detail (stock_out_record_id, stock_out_record_head_id, \",\n \"stock_out_record_head_code, group_name, \",\n \"stock_in_record_account_id, material_code, \",\n \"material_batch, material_type_id, \",\n \"material_sub_type_id, material_workshop_id, \",\n \"material_name_code, material_supplier_code, \",\n \"material_name, bag_num, \",\n \"weight, measure_unit, \",\n \"created_time, completion_flag)\",\n \"values (#{stockOutRecordId,jdbcType=BIGINT}, #{stockOutRecordHeadId,jdbcType=BIGINT}, \",\n \"#{stockOutRecordHeadCode,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, \",\n \"#{stockInRecordAccountId,jdbcType=BIGINT}, #{materialCode,jdbcType=VARCHAR}, \",\n \"#{materialBatch,jdbcType=VARCHAR}, #{materialTypeId,jdbcType=INTEGER}, \",\n \"#{materialSubTypeId,jdbcType=INTEGER}, #{materialWorkshopId,jdbcType=INTEGER}, \",\n \"#{materialNameCode,jdbcType=INTEGER}, #{materialSupplierCode,jdbcType=INTEGER}, \",\n \"#{materialName,jdbcType=VARCHAR}, #{bagNum,jdbcType=INTEGER}, \",\n \"#{weight,jdbcType=REAL}, #{measureUnit,jdbcType=VARCHAR}, \",\n \"#{createdTime,jdbcType=TIMESTAMP}, #{completionFlag,jdbcType=BIT})\"\n })\n @SelectKey(statement=\"SELECT LAST_INSERT_ID()\", keyProperty=\"id\", before=false, resultType=Long.class)\n int insert(SwmsStockOutRecordDetail record);", "public int db_cl_insert(int sy_id){\n\n ContentValues values = new ContentValues();\n values.put(\"sy_id\", sy_id);\n\n\n int id= (int) db.insert(CLTABLE_NAME, null, values);\n\n\n\n return id;\n }", "public long create(Tbl_campo tbl_campo) {\n\t\tcurrentSession().persist(tbl_campo);\n\t\treturn persist(tbl_campo).getId_campo();\n\t}", "public Integer createRecord(Customer customer) {\n\t\treturn (Integer)sessionFactory.getCurrentSession().save(customer);\r\n\r\n\t}", "public String getCustId() {\n return custId;\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public String getCreatedCode() {\n\t\treturn createdCode;\n\t}", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}", "public void setCreateUserid(Long createUserid) {\r\n\t\tthis.createUserid = createUserid;\r\n\t}", "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }", "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }", "@Query(value = \"select last_insert_id() from orden limit 1;\",nativeQuery = true)\n\tpublic Integer getLastId();", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "int getDoctorId();", "int getDoctorId();", "public Integer generateID(){\n String sqlSelect = \"SELECT max(id) from friends\";\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n int maxId=0;\n try {\n connection = new DBConnection().connect();\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sqlSelect);\n while (resultSet.next())\n maxId = resultSet.getInt(1);\n \n } catch (SQLException e) {\n System.err.print(\"err in select \" + e);\n } finally {\n try {\n if (resultSet != null) {\n resultSet.close();\n }\n if (statement != null) {\n statement.close();\n }\n if (connection != null) {\n connection.close();\n }\n } catch (SQLException e) {\n System.err.print(\"err in close select \" + e);\n }\n }\n\n return ++maxId;\n }", "@VTID(13)\r\n int getCreator();", "public int getM_Production_ID();", "@Override\r\n\tpublic int selectNewId() {\n\t\treturn messageMapper.selectNewId();\r\n\t}", "@Override\n\tpublic String generaId(String date) {\n\t\tg=new GenerateId();\n\t\treturn g.generateDocumentId(date, \"paymentlist\");\n\t}", "public void setCreateEmpId(String createEmpId) {\n this.createEmpId = createEmpId;\n }", "public long getMinId(MigrationType type);", "@Override\n\tpublic long getCreateBy() {\n\t\treturn _candidate.getCreateBy();\n\t}", "Id createId();", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }" ]
[ "0.64833486", "0.64833486", "0.58016497", "0.57821643", "0.57821643", "0.57821643", "0.57821643", "0.57821643", "0.5668914", "0.5660683", "0.5650343", "0.5638361", "0.5595589", "0.557947", "0.5562924", "0.54944783", "0.53092223", "0.5307371", "0.53024167", "0.5290805", "0.5191651", "0.5177096", "0.517422", "0.5172785", "0.51619107", "0.51619107", "0.51552135", "0.51552135", "0.51552135", "0.51552135", "0.51340216", "0.51340216", "0.51319516", "0.5128167", "0.51271117", "0.51267123", "0.51254445", "0.51254445", "0.51254445", "0.5124855", "0.51243776", "0.5118514", "0.51033247", "0.5093758", "0.50927323", "0.50909376", "0.50909376", "0.5087816", "0.5076641", "0.5076641", "0.5076641", "0.50684714", "0.50598145", "0.505274", "0.5043122", "0.5043122", "0.5031464", "0.50096923", "0.5006729", "0.4995285", "0.49935123", "0.49787134", "0.497422", "0.49706218", "0.49601066", "0.49598417", "0.49491498", "0.49450234", "0.49419233", "0.49327016", "0.4921973", "0.49189752", "0.49138173", "0.4905728", "0.4905728", "0.4904361", "0.49028027", "0.49023923", "0.48906446", "0.48842463", "0.48842463", "0.4880516", "0.4875334", "0.4875334", "0.48748437", "0.48748437", "0.48727846", "0.48712212", "0.4866781", "0.48596928", "0.4857366", "0.48568413", "0.4855156", "0.48533458", "0.48485476", "0.48405287", "0.48405287", "0.48405287", "0.48405287", "0.48405287" ]
0.6472739
2
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.create_id
public void setCreateId(Long createId) { setField("createId", createId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreateId(String createId) {\n\t\tthis.createId = createId == null ? null : createId.trim();\n\t}", "public void setCreateId(String createId) {\n\t\tthis.createId = createId == null ? null : createId.trim();\n\t}", "public void setCreateUserid(Integer createUserid) {\n this.createUserid = createUserid;\n }", "public String getCreateId() {\n\t\treturn createId;\n\t}", "public String getCreateId() {\n\t\treturn createId;\n\t}", "public void setCreateUserId(Integer createUserId) {\n this.createUserId = createUserId;\n }", "public Long getCreateId() {\n\t\treturn createId;\n\t}", "public void setCreateEmpId(Integer createEmpId) {\n this.createEmpId = createEmpId;\n }", "public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }", "public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }", "public void setCreateUserid(Long createUserid) {\r\n\t\tthis.createUserid = createUserid;\r\n\t}", "public void setCreateuser(Integer createuser) {\n this.createuser = createuser;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "@Override\n public boolean createCustomerBySales(SalesCustomerBean salescustomer) {\n // TODO Auto-generated method stub\n salescustomer.setGendate(C_Util_Date.generateDate());\n salescustomer.setStatus(\"NEW\");\n insertorupdate = in_salescustdao.createSalesCustomer(salescustomer);\n return insertorupdate;\n }", "public void setCreateUserId(String createUserId) {\r\n this.createUserId = createUserId;\r\n }", "public void setCreateEmpId(String createEmpId) {\n this.createEmpId = createEmpId;\n }", "public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }", "public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }", "public void setCreatepersonid(String createpersonid) {\r\n this.createpersonid = createpersonid;\r\n }", "public void setCreateType(int createType) {\n\t\tthis.createType = createType;\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "@Override\r\n\tpublic String createID() {\r\n\t\t \r\n\t\t\t\treturn transCode.toString();\r\n\t\t\t\t}", "public Long getCreateUserid() {\r\n\t\treturn createUserid;\r\n\t}", "public Integer getCreateUserId() {\n return createUserId;\n }", "public void setCreateby(Integer createby) {\n this.createby = createby;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public Integer getCreateUserid() {\n return createUserid;\n }", "public void setCreatePersonId(Integer createPersonId) {\n this.createPersonId = createPersonId;\n }", "public void setCreate_date(Date create_date) {\n this.create_date = create_date;\n }", "public String getCreateUserId() {\r\n return createUserId;\r\n }", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "public void setCreateDt(Date createDt) {\n this.createDt = createDt;\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser;\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser;\n }", "public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }", "public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }", "public void setCreateUser(String createUser)\r\n\t{\r\n\t\tthis.createUser = createUser;\r\n\t}", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_esfTournament.setCreateDate(createDate);\n\t}", "public void autoID(){\n try {\n \n System.out.println(\"trying connection\");\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n con=DriverManager.getConnection (\"jdbc:mysql://localhost:3306/airlines\",\"root\",\"root\");\n Statement s=con.createStatement();\n System.out.println(\"connection sucessful\");\n ResultSet rs=s.executeQuery(\"select MAX(ID)from customer\");\n rs.next();\n rs.getString(\"MAX(ID)\");\n if(rs.getString(\"MAX(ID)\")==null)\n {\n txtcustid.setText(\"CS001\");\n }\n else\n {\n long id=Long.parseLong(rs.getString(\"MAX(ID)\").substring(2,rs.getString(\"MAX(ID)\").length()));\n id++;\n txtcustid.setText(\"CS\"+String.format(\"%03d\", id));\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(searchCustomer.class.getName()).log(Level.SEVERE, null, ex);\n \n } catch (SQLException ex) {\n Logger.getLogger(searchCustomer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setCreatedUserId(Integer value) {\n set(4, value);\n }", "public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }", "public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void setStargateId(int val) {\n stargateId = val;\n }", "public void setCreateDate(String createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(String createDate) {\n this.createDate = createDate;\n }", "public void setCreateAt(Long createAt) {\n this.createAt = createAt;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setCreateUser (String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "public void setCreateUser(String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setCreateUser(String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setId(int value) {\n this.id = value;\n }", "@Insert({ \"insert into iiot_app_list (app_id, app_name, \", \"node, status, restart_times, \", \"up_time, template, \",\n\t\t\t\"owner, note, rest3, \", \"rest4, rest5, create_time, \", \"uuid)\",\n\t\t\t\"values (#{appId,jdbcType=INTEGER}, #{appName,jdbcType=VARCHAR}, \",\n\t\t\t\"#{node,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{restartTimes,jdbcType=CHAR}, \",\n\t\t\t\"#{upTime,jdbcType=VARCHAR}, #{template,jdbcType=VARCHAR}, \",\n\t\t\t\"#{owner,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{rest3,jdbcType=VARCHAR}, \",\n\t\t\t\"#{rest4,jdbcType=VARCHAR}, #{rest5,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{uuid,jdbcType=CHAR})\" })\n\t@Options(useGeneratedKeys = true, keyProperty = \"appId\",keyColumn=\"app_id\" )\n\tint insertAndGetId(IiotAppList record);", "public Builder createId(String createId) {\n obj.setCreateId(createId);\n return this;\n }", "public Builder createId(String createId) {\n obj.setCreateId(createId);\n return this;\n }", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "protected void setId(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString id = rs.getString(UiActionTable.COLUMN_ID);\n\t\t\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setId(id);\n\t}", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public int getCustId(){\n return this.custId;\r\n }", "@PrePersist\n public void generateId() {\n if (this.id == null) {\n this.id = UUID.randomUUID().toString();\n }\n }", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setUserCreate(Long userCreate) {\n this.userCreate = userCreate;\n }", "public void setCreateDt(Date createDt) {\n\t\tthis.createDt = createDt;\n\t}", "public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }", "public void setCreateDate(String createDate) {\r\n\t\tthis.createDate = createDate;\r\n\t}", "@Insert({\n \"insert into SWMS_stock_out_record_detail (stock_out_record_id, stock_out_record_head_id, \",\n \"stock_out_record_head_code, group_name, \",\n \"stock_in_record_account_id, material_code, \",\n \"material_batch, material_type_id, \",\n \"material_sub_type_id, material_workshop_id, \",\n \"material_name_code, material_supplier_code, \",\n \"material_name, bag_num, \",\n \"weight, measure_unit, \",\n \"created_time, completion_flag)\",\n \"values (#{stockOutRecordId,jdbcType=BIGINT}, #{stockOutRecordHeadId,jdbcType=BIGINT}, \",\n \"#{stockOutRecordHeadCode,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, \",\n \"#{stockInRecordAccountId,jdbcType=BIGINT}, #{materialCode,jdbcType=VARCHAR}, \",\n \"#{materialBatch,jdbcType=VARCHAR}, #{materialTypeId,jdbcType=INTEGER}, \",\n \"#{materialSubTypeId,jdbcType=INTEGER}, #{materialWorkshopId,jdbcType=INTEGER}, \",\n \"#{materialNameCode,jdbcType=INTEGER}, #{materialSupplierCode,jdbcType=INTEGER}, \",\n \"#{materialName,jdbcType=VARCHAR}, #{bagNum,jdbcType=INTEGER}, \",\n \"#{weight,jdbcType=REAL}, #{measureUnit,jdbcType=VARCHAR}, \",\n \"#{createdTime,jdbcType=TIMESTAMP}, #{completionFlag,jdbcType=BIT})\"\n })\n @SelectKey(statement=\"SELECT LAST_INSERT_ID()\", keyProperty=\"id\", before=false, resultType=Long.class)\n int insert(SwmsStockOutRecordDetail record);", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setClCreateUserId(String clCreateUserId) {\r\n this.clCreateUserId = clCreateUserId;\r\n }", "public void setAUTO_CREATE_SETTLEMENT(String AUTO_CREATE_SETTLEMENT) {\r\n this.AUTO_CREATE_SETTLEMENT = AUTO_CREATE_SETTLEMENT == null ? null : AUTO_CREATE_SETTLEMENT.trim();\r\n }", "public void setCreateEmp(String createEmp) {\n this.createEmp = createEmp;\n }", "public void setCreateDate( Date createDate ) {\n this.createDate = createDate;\n }" ]
[ "0.5669922", "0.5669922", "0.5621062", "0.5501099", "0.5501099", "0.54822385", "0.54534054", "0.5439913", "0.53996146", "0.53996146", "0.5314837", "0.53025204", "0.5279902", "0.5279902", "0.5279902", "0.5279902", "0.5279902", "0.5251039", "0.51968", "0.5139118", "0.5095024", "0.5095024", "0.5063993", "0.5047069", "0.5020811", "0.50012773", "0.49519196", "0.49374658", "0.49333122", "0.49324206", "0.49324206", "0.49324206", "0.49324206", "0.49324206", "0.49324206", "0.49324206", "0.49261615", "0.49085182", "0.48800918", "0.48699874", "0.4854577", "0.48257703", "0.48176125", "0.48164716", "0.48164716", "0.48142081", "0.48142081", "0.48138043", "0.48107973", "0.48078817", "0.48039025", "0.47986457", "0.47986457", "0.47955906", "0.47917354", "0.47738516", "0.47738516", "0.47693378", "0.47592592", "0.47592592", "0.47592592", "0.47592592", "0.47592592", "0.47561058", "0.4748603", "0.47473818", "0.4732315", "0.4732315", "0.47310156", "0.47272438", "0.47238135", "0.47238135", "0.47199717", "0.471912", "0.47070724", "0.47070724", "0.47070724", "0.47070724", "0.47070724", "0.47070724", "0.47070724", "0.47070724", "0.47070724", "0.47061294", "0.470405", "0.47002423", "0.46987706", "0.46987706", "0.469635", "0.469635", "0.46953505", "0.4693219", "0.46868095", "0.46802205", "0.4679138", "0.46736166", "0.46733046", "0.46726018", "0.46682936", "0.46664605" ]
0.55890435
3
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.create_time
public Date getCreateTime() { return createTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreatetime() {\n return createtime;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public String getCreatetime() {\r\n return createtime;\r\n }", "public String getCreatetime() {\n return createtime;\n }", "public String getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public String getCreatetime() {\n\t\treturn createtime;\n\t}", "public String getCreatetime() {\n\t\treturn createtime;\n\t}", "public Integer getCreateTime() {\r\n return createTime;\r\n }", "public java.lang.String getCreatetime () {\n\t\treturn createtime;\n\t}", "public Integer getCreateTime() {\n return createTime;\n }", "public java.sql.Timestamp getCreateTime () {\r\n\t\treturn createTime;\r\n\t}", "public Long getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public long getCreateTime() {\n return this.createTime;\n }", "public Long getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn this.createTime;\n\t}", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }" ]
[ "0.6797918", "0.6794182", "0.6794182", "0.6725998", "0.6683412", "0.6683412", "0.66501355", "0.66501355", "0.66501355", "0.662934", "0.662934", "0.662934", "0.662934", "0.662934", "0.662934", "0.662934", "0.662934", "0.6625251", "0.6625251", "0.6607043", "0.6578175", "0.65756017", "0.6541251", "0.6538452", "0.6537702", "0.6537702", "0.6520384", "0.65106887", "0.649161", "0.649161", "0.649161", "0.649161", "0.649161", "0.649161", "0.6481989", "0.6468788", "0.6468788", "0.6468788", "0.6468788", "0.6468788", "0.6465617", "0.646478", "0.6462172", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229", "0.6459229" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.create_time
public void setCreateTime(Date createTime) { setField("createTime", createTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }", "public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }", "public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }", "public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(String createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(String createtime) {\n this.createtime = createtime;\n }", "private void setCreateTime(long createTime) {\n this.createTime = createTime;\n }", "public void setCreatetime(Long createtime) {\n this.createtime = createtime;\n }", "public void setTimeCreate(Date timeCreate) {\n this.timeCreate = timeCreate;\n }", "public void setCreateTime (java.sql.Timestamp createTime) {\r\n\t\tthis.createTime = createTime;\r\n\t}", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Integer createTime) {\r\n this.createTime = createTime;\r\n }", "private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public void setCreatetime (java.lang.String createtime) {\n\t\tthis.createtime = createtime;\n\t}", "private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }", "public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }", "public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }", "public void setCreateTime(Integer createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }" ]
[ "0.68310666", "0.68310666", "0.6663539", "0.6663539", "0.6663539", "0.662962", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.64946043", "0.64946043", "0.6492447", "0.64675826", "0.6445892", "0.63811296", "0.636232", "0.636232", "0.636232", "0.636232", "0.636232", "0.636232", "0.6357317", "0.6348413", "0.6324334", "0.632143", "0.6287392", "0.6285837", "0.6285837", "0.6284778", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047", "0.6278047" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.update_id
public Long getUpdateId() { return updateId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "public String getUpdateUserId() {\r\n return updateUserId;\r\n }", "public Integer getUpdateUserid() {\n return updateUserid;\n }", "public String getUpdatedId()\r\n {\r\n return updatedId;\r\n }", "public Long getUpdateUserid() {\r\n\t\treturn updateUserid;\r\n\t}", "private long getLastUpdateId() throws SQLException {\n\t\tlong result = 0;\n\t\tResultSet resultset = null;\n\t\tStatement statement = this.connection.createStatement();\n\t\tresultset = statement.executeQuery(\"SELECT LAST_INSERT_ID()\");\n\t\twhile (resultset.next()) {\n\t\t\tresult = resultset.getInt(1);\n\t\t}\n\t\tresultset.close();\n\t\tstatement.close();\n\t\treturn result;\n\t}", "public void setUpdateId(String updateId) {\r\n this.updateId = updateId;\r\n }", "public void setUpdateId(String updateId) {\r\n this.updateId = updateId;\r\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Integer getUpdatedPersonId() {\n return updatedPersonId;\n }", "@Override\n\tpublic long getId() {\n\t\treturn _contentupdate.getId();\n\t}", "public Integer getUpdateby() {\n return updateby;\n }", "public static int updateCustomer(Banker banker) {\n\tint rowstatus = 0;\n\tString query = null;\n\tConnection con = null;\n\tPreparedStatement ps = null;\n\tResultSet rs = null;\n\tStatement stmt = null;\t\t\n\t\n\ttry {\t\t\n\t\tcon = DatabaseUtil.getConnection();\n\t\tps=con.prepareStatement(\"Update CustomerAccount_RBM SET Customer_Name=?,Customer_Age=?,Customer_Address=?, Status='Active', Message='Customer updated successfully', Last_updated=CURRENT_TIMESTAMP where SSN_ID=? \");\n\t\tps.setString(1, banker.getCustName());\n\t\tps.setInt(2, banker.getCustAge());\n\t\tps.setString(3, banker.getCustAddress());\n\t\tps.setString(4, banker.getCssnid());\t\t\n\t\t\t\n\t\trowstatus = ps.executeUpdate(); \n\t\tSystem.out.println(rowstatus);\n\t\t/*query = \"Select MAX(Customer_ID) from CustomerAccount_RBM\";\n\t\tstmt = con.createStatement();\n\t\trs = stmt.executeQuery(query);\n\t\twhile(rs.next()) \n\t\t{\n\t\t\tcustomerId = (Integer)rs.getInt(1);\n\t\t\tSystem.out.println(\"Customer Id :\" +customerId);\n\t\t}\n\t\t//banker.setCid(customerId.toString());*/\n\t\t\t\t\t\n\t} \n\tcatch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\tfinally {\n\t\ttry {\n\t\t\tps.close();\n\t\t\t}\n\t\tcatch (SQLException e) {\n\t\t\t}\n\t}\n\treturn rowstatus;\n}", "public long getUpdatedContestId() {\r\n return updatedContestId;\r\n }", "@Update({\n \"update SWMS_stock_out_record_detail\",\n \"set stock_out_record_id = #{stockOutRecordId,jdbcType=BIGINT},\",\n \"stock_out_record_head_id = #{stockOutRecordHeadId,jdbcType=BIGINT},\",\n \"stock_out_record_head_code = #{stockOutRecordHeadCode,jdbcType=BIGINT},\",\n \"group_name = #{groupName,jdbcType=VARCHAR},\",\n \"stock_in_record_account_id = #{stockInRecordAccountId,jdbcType=BIGINT},\",\n \"material_code = #{materialCode,jdbcType=VARCHAR},\",\n \"material_batch = #{materialBatch,jdbcType=VARCHAR},\",\n \"material_type_id = #{materialTypeId,jdbcType=INTEGER},\",\n \"material_sub_type_id = #{materialSubTypeId,jdbcType=INTEGER},\",\n \"material_workshop_id = #{materialWorkshopId,jdbcType=INTEGER},\",\n \"material_name_code = #{materialNameCode,jdbcType=INTEGER},\",\n \"material_supplier_code = #{materialSupplierCode,jdbcType=INTEGER},\",\n \"material_name = #{materialName,jdbcType=VARCHAR},\",\n \"bag_num = #{bagNum,jdbcType=INTEGER},\",\n \"weight = #{weight,jdbcType=REAL},\",\n \"measure_unit = #{measureUnit,jdbcType=VARCHAR},\",\n \"created_time = #{createdTime,jdbcType=TIMESTAMP},\",\n \"completion_flag = #{completionFlag,jdbcType=BIT}\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(SwmsStockOutRecordDetail record);", "protected String getUpdateSQL() {\n\t\treturn queryData.getString(\"UpdateSQL\");\n\t}", "public int getCustId(){\n return this.custId;\r\n }", "public Integer getUpdateUser() {\n return updateUser;\n }", "public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}", "private int save_InsertGetInsertId() {\n\t\t\n\t\tfinal String INSERT_SQL = \"INSERT INTO project__insert_id_tbl ( ) VALUES ( )\";\n\t\t\n\t\t// Use Spring JdbcTemplate so Transactions work properly\n\t\t\n\t\t// How to get the auto-increment primary key for the inserted record\n\t\t\n\t\ttry {\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\t\tint rowsUpdated = this.getJdbcTemplate().update(\n\t\t\t\t\tnew PreparedStatementCreator() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n\n\t\t\t\t\t\t\tPreparedStatement pstmt =\n\t\t\t\t\t\t\t\t\tconnection.prepareStatement( INSERT_SQL, Statement.RETURN_GENERATED_KEYS );\n\n\t\t\t\t\t\t\treturn pstmt;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tkeyHolder);\n\n\t\t\tNumber insertedKey = keyHolder.getKey();\n\t\t\t\n\t\t\tlong insertedKeyLong = insertedKey.longValue();\n\t\t\t\n\t\t\tif ( insertedKeyLong > Integer.MAX_VALUE ) {\n\t\t\t\tString msg = \"Inserted key is too large, is > Integer.MAX_VALUE. insertedKey: \" + insertedKey;\n\t\t\t\tlog.error( msg );\n\t\t\t\tthrow new LimelightInternalErrorException( msg );\n\t\t\t}\n\t\t\t\n\t\t\tint insertedKeyInt = (int) insertedKeyLong; // Inserted auto-increment primary key for the inserted record\n\t\t\t\n\t\t\treturn insertedKeyInt;\n\t\t\t\n\t\t} catch ( RuntimeException e ) {\n\t\t\tString msg = \"SQL: \" + INSERT_SQL;\n\t\t\tlog.error( msg, e );\n\t\t\tthrow e;\n\t\t}\n\t}", "public Long getUpdateUser() {\n return updateUser;\n }", "public int updateCustomerIncomeSource(HashMap<String, String> map) {\r\n\t\tSystem.out.println(\"CustomerBAL.updateCustomerIncomeSource()\");\r\n\t\tSystem.out.println(map);\r\n\t\tint isupdated = 0;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\t\t\tcom.mysql.jdbc.PreparedStatement prepareStatement = (com.mysql.jdbc.PreparedStatement) connection\r\n\t\t\t\t\t.prepareStatement(\"UPDATE \" + \" `customer` \" + \" SET \"\r\n\t\t\t\t\t\t\t+ \" `salary_or_pension` = ?, \"\r\n\t\t\t\t\t\t\t+ \" `business_income` = ?, \"\r\n\t\t\t\t\t\t\t+ \" `farming` = ?, \"\r\n\t\t\t\t\t\t\t+ \" `family_contribution` = ?\"\r\n\t\t\t\t\t\t\t+ \" WHERE `customer_id` = ? ;\");\r\n\t\t\tprepareStatement.setString(\r\n\t\t\t\t\t1,\r\n\t\t\t\t\tmap.get(\"salaryOrPension\").isEmpty() ? \"0\" : map\r\n\t\t\t\t\t\t\t.get(\"salaryOrPension\"));\r\n\t\t\tprepareStatement.setString(\r\n\t\t\t\t\t2,\r\n\t\t\t\t\tmap.get(\"businessIncome\").isEmpty() ? \"0\" : map\r\n\t\t\t\t\t\t\t.get(\"businessIncome\"));\r\n\t\t\tprepareStatement.setString(\r\n\t\t\t\t\t3,\r\n\t\t\t\t\tmap.get(\"farmingIncome\").isEmpty() ? \"0\" : map\r\n\t\t\t\t\t\t\t.get(\"farmingIncome\"));\r\n\t\t\tprepareStatement.setString(4, map.get(\"familyContribution\")\r\n\t\t\t\t\t.isEmpty() ? \"0\" : map.get(\"familyContribution\"));\r\n\t\t\tprepareStatement.setInt(5, Integer.parseInt(map.get(\"customerId\")));\r\n\r\n\t\t\tprepareStatement.executeUpdate();\r\n\t\t\tSystem.out.println(prepareStatement.getPreparedSql());\r\n\t\t\tcom.mysql.jdbc.PreparedStatement updateStatement = (com.mysql.jdbc.PreparedStatement) connection\r\n\t\t\t\t\t.prepareStatement(\"UPDATE form_wizard SET form_wizard_step = 2, updated_date = NOW() WHERE customer_id = ?\");\r\n\t\t\tupdateStatement.setString(1, map.get(\"customerId\"));\r\n\t\t\tisupdated = updateStatement.executeUpdate();\r\n\t\t\tSystem.out.println(updateStatement.asSql());\r\n\t\t\tconnection.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn isupdated;\r\n\t}", "@Override\r\n\tpublic int getLastId() {\n\t\treturn adminDAO.getLastId();\r\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _contentupdate.getPrimaryKey();\n\t}", "long getLastUpdate(long inId);", "public static String getUpdateStatement() {\n return UPDATE_STATEMENT;\n }", "int getStatementId();", "int getStatementId();", "int getStatementId();", "public String getUpdateBy() {\r\n return updateBy;\r\n }", "@Override\n public Long getLastInsertId() {\n Long lastId = 0L;\n Map<String, Object> paramMap = new HashMap<>();\n paramMap.put(\"lastID\", lastId);\n jdbc.query(SELECT_LAST_INSERT_ID, paramMap, rowMapper);\n return lastId;\n }", "@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }", "public String getClUpdateUserId() {\r\n return clUpdateUserId;\r\n }", "public int getM_Production_ID();", "@Insert({\n \"insert into SWMS_stock_out_record_detail (stock_out_record_id, stock_out_record_head_id, \",\n \"stock_out_record_head_code, group_name, \",\n \"stock_in_record_account_id, material_code, \",\n \"material_batch, material_type_id, \",\n \"material_sub_type_id, material_workshop_id, \",\n \"material_name_code, material_supplier_code, \",\n \"material_name, bag_num, \",\n \"weight, measure_unit, \",\n \"created_time, completion_flag)\",\n \"values (#{stockOutRecordId,jdbcType=BIGINT}, #{stockOutRecordHeadId,jdbcType=BIGINT}, \",\n \"#{stockOutRecordHeadCode,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, \",\n \"#{stockInRecordAccountId,jdbcType=BIGINT}, #{materialCode,jdbcType=VARCHAR}, \",\n \"#{materialBatch,jdbcType=VARCHAR}, #{materialTypeId,jdbcType=INTEGER}, \",\n \"#{materialSubTypeId,jdbcType=INTEGER}, #{materialWorkshopId,jdbcType=INTEGER}, \",\n \"#{materialNameCode,jdbcType=INTEGER}, #{materialSupplierCode,jdbcType=INTEGER}, \",\n \"#{materialName,jdbcType=VARCHAR}, #{bagNum,jdbcType=INTEGER}, \",\n \"#{weight,jdbcType=REAL}, #{measureUnit,jdbcType=VARCHAR}, \",\n \"#{createdTime,jdbcType=TIMESTAMP}, #{completionFlag,jdbcType=BIT})\"\n })\n @SelectKey(statement=\"SELECT LAST_INSERT_ID()\", keyProperty=\"id\", before=false, resultType=Long.class)\n int insert(SwmsStockOutRecordDetail record);", "public CustomSql getCustomSqlUpdate();", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public long getUpdate();", "@Query(value = \"select last_insert_id() from orden limit 1;\",nativeQuery = true)\n\tpublic Integer getLastId();", "@Override\r\n\tpublic Integer getCurrentInsertID() throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getLastInsertID\");\r\n\t}", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "public void setUpdateId(String updateId) {\n\t\tthis.updateId = updateId == null ? null : updateId.trim();\n\t}", "public void setUpdateId(String updateId) {\n\t\tthis.updateId = updateId == null ? null : updateId.trim();\n\t}", "public Long getCustId() {\n return custId;\n }", "public void setUpdateId(Long updateId) {\n\t\tsetField(\"updateId\", updateId);\n\t}", "public int getLastSavedId() {\n\t\tNativeQuery query = session.createNativeQuery(\"SELECT Id FROM terms ORDER BY Id DESC LIMIT 1\");\n\t\t// int lastUpdatedValue=(int)query;\n\t\tint lastUpdatedValue = ((Number) query.getSingleResult()).intValue();\n\t\tSystem.out.println(\"the result is\" + lastUpdatedValue);\n\t\treturn lastUpdatedValue;\n\t}", "public String getUpdaterId() {\n return updaterId;\n }", "public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "@Override\n\tpublic Customers update(Customers updatecust) {\n\t\tCustomers custpersist= search(updatecust.getId());\n\t\tif (custpersist==null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers upcust = CustRepo.save(updatecust);\n\t\treturn upcust;\n\t}", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public static int getMaxID() {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tString query = \"SELECT MAX(salesman_id) FROM salesman\";\r\n\t\tint id = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tst = con.createStatement();\r\n\t\t\trs = st.executeQuery(query);\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tid = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn id;\r\n\t}", "public String getUpdateBy() {\n\t\treturn updateBy;\n\t}", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public java.lang.String getUpdatedById() {\n return updatedById;\n }", "@Override\n\tpublic int saveUpdate(MstCustomerDto mstCustomerDto) {\n\t\tMstCustomer b=mstCustomerDao.getOne(mstCustomerDto.getKodeCustomer());\n\t\tif(!(b==null)){\n\t\t\ttry{\n\t\t\t\tMstCustomer mstCustomer=mapperFacade.map(mstCustomerDto, MstCustomer.class);\n\t\t\t\tmstCustomerDao.save(mstCustomer);\t\t\t\n\t\t\t\treturn 2;\n\t\t\t}catch(Exception e){\n\t\t\t\treturn CommonConstants.ERROR_REST_STATUS;\n\t\t\t}\t\t\t\n\t\t}else{\n\t\t\ttry{\n\t\t\t\tMstCustomer mstCustomer= mapperFacade.map(mstCustomerDto, MstCustomer.class);\n\t\t\t\tmstCustomerDao.save(mstCustomer);\n\t\t\t\treturn CommonConstants.OK_REST_STATUS;\n\t\t\t}catch(Exception e){\n\t\t\t\treturn CommonConstants.ERROR_REST_STATUS;\n\t\t\t}\n\t\t}\n\t}", "public void setUpdateUserid(Integer updateUserid) {\n this.updateUserid = updateUserid;\n }", "public Integer getsId() {\n return sId;\n }", "public String getUpdateIndividualDropboxChangeSql() \r\n \t{\r\n \t\treturn \"update CONTENT_DROPBOX_CHANGES set (IN_COLLECTION = ?, LAST_UPDATE = ?) where (DROPBOX_ID = ?)\";\r\n \t}", "public String getUpdateEmp() {\n return updateEmp;\n }", "public long getUpdatedStatusId() {\r\n return updatedStatusId;\r\n }", "public Integer getModifyEmpId() {\n return modifyEmpId;\n }", "public StrColumn getReplacedEntryId() {\n return delegate.getColumn(\"replaced_entry_id\", DelegatingStrColumn::new);\n }", "public String getIndividualDropboxChangeSql() \r\n \t{\r\n \t\treturn \"select LAST_UPDATE from CONTENT_DROPBOX_CHANGES where (DROPBOX_ID = ?)\";\r\n \t}", "@Update({\n \"update payment_t_weixin_callback_records\",\n \"set OUT_TRADE_NO = #{outTradeNo,jdbcType=VARCHAR},\",\n \"TRANSACTION_ID = #{transactionId,jdbcType=VARCHAR},\",\n \"RESULT_CODE = #{resultCode,jdbcType=VARCHAR},\",\n \"PARAMETER_LIST = #{parameterList,jdbcType=VARCHAR},\",\n \"CALLBACK_TIME = #{callbackTime,jdbcType=TIMESTAMP}\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(WeixinCallbackRecordsGenerateBean record);", "public String getUpdatePropRegNo() {\n\t\treturn updatePropRegNo;\n\t}", "int updateByPrimaryKey(DO_Merchants record);", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public void setUpdateUserId(String updateUserId) {\r\n this.updateUserId = updateUserId;\r\n }", "public int getCustomerID(int customer_id) {\n int id = 0;\n try {\n checkCustomerID.setInt(1, customer_id);\n ResultSet resultset = checkCustomerID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + id);\n }\n try {\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Cannot close resultset!\");\n }\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public void autoID(){\n try {\n \n System.out.println(\"trying connection\");\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n con=DriverManager.getConnection (\"jdbc:mysql://localhost:3306/airlines\",\"root\",\"root\");\n Statement s=con.createStatement();\n System.out.println(\"connection sucessful\");\n ResultSet rs=s.executeQuery(\"select MAX(ID)from customer\");\n rs.next();\n rs.getString(\"MAX(ID)\");\n if(rs.getString(\"MAX(ID)\")==null)\n {\n txtcustid.setText(\"CS001\");\n }\n else\n {\n long id=Long.parseLong(rs.getString(\"MAX(ID)\").substring(2,rs.getString(\"MAX(ID)\").length()));\n id++;\n txtcustid.setText(\"CS\"+String.format(\"%03d\", id));\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(searchCustomer.class.getName()).log(Level.SEVERE, null, ex);\n \n } catch (SQLException ex) {\n Logger.getLogger(searchCustomer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public int getId() {\n return parameter.getId();\n }", "private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "public int getStatementId() {\n return statementId_;\n }" ]
[ "0.6462685", "0.6462685", "0.6338156", "0.6338156", "0.58161676", "0.57919776", "0.5750976", "0.5669699", "0.55413795", "0.53881407", "0.53881407", "0.5344734", "0.5344734", "0.5344734", "0.5297418", "0.52915806", "0.52732265", "0.5231706", "0.5211935", "0.51519245", "0.51446706", "0.51348", "0.510701", "0.5099188", "0.50810957", "0.50703025", "0.5066518", "0.5040766", "0.5006075", "0.49846625", "0.49789116", "0.49645722", "0.49645722", "0.49645722", "0.4960374", "0.49472362", "0.49394783", "0.49320376", "0.49274155", "0.4920112", "0.49141622", "0.48862883", "0.48862883", "0.48862883", "0.487234", "0.4870055", "0.48689976", "0.48667938", "0.48654446", "0.48654446", "0.48579958", "0.4838706", "0.48354042", "0.482289", "0.481207", "0.47939795", "0.47939795", "0.479325", "0.47907934", "0.47905773", "0.4790078", "0.47900236", "0.4784499", "0.47804293", "0.4778074", "0.47761935", "0.47744426", "0.4769779", "0.47690964", "0.47670266", "0.47581217", "0.47564003", "0.4735747", "0.473058", "0.47104496", "0.47059378", "0.47059378", "0.47059378", "0.47043154", "0.47043154", "0.46969342", "0.4695325", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46923813", "0.46899503", "0.46897385", "0.46886805", "0.46802777", "0.46764797" ]
0.63942015
2
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.update_id
public void setUpdateId(Long updateId) { setField("updateId", updateId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdateId(String updateId) {\r\n this.updateId = updateId;\r\n }", "public void setUpdateId(String updateId) {\r\n this.updateId = updateId;\r\n }", "public void setUpdateId(String updateId) {\n\t\tthis.updateId = updateId == null ? null : updateId.trim();\n\t}", "public void setUpdateId(String updateId) {\n\t\tthis.updateId = updateId == null ? null : updateId.trim();\n\t}", "public void setUpdateUserid(Integer updateUserid) {\n this.updateUserid = updateUserid;\n }", "@Update({\n \"update SWMS_stock_out_record_detail\",\n \"set stock_out_record_id = #{stockOutRecordId,jdbcType=BIGINT},\",\n \"stock_out_record_head_id = #{stockOutRecordHeadId,jdbcType=BIGINT},\",\n \"stock_out_record_head_code = #{stockOutRecordHeadCode,jdbcType=BIGINT},\",\n \"group_name = #{groupName,jdbcType=VARCHAR},\",\n \"stock_in_record_account_id = #{stockInRecordAccountId,jdbcType=BIGINT},\",\n \"material_code = #{materialCode,jdbcType=VARCHAR},\",\n \"material_batch = #{materialBatch,jdbcType=VARCHAR},\",\n \"material_type_id = #{materialTypeId,jdbcType=INTEGER},\",\n \"material_sub_type_id = #{materialSubTypeId,jdbcType=INTEGER},\",\n \"material_workshop_id = #{materialWorkshopId,jdbcType=INTEGER},\",\n \"material_name_code = #{materialNameCode,jdbcType=INTEGER},\",\n \"material_supplier_code = #{materialSupplierCode,jdbcType=INTEGER},\",\n \"material_name = #{materialName,jdbcType=VARCHAR},\",\n \"bag_num = #{bagNum,jdbcType=INTEGER},\",\n \"weight = #{weight,jdbcType=REAL},\",\n \"measure_unit = #{measureUnit,jdbcType=VARCHAR},\",\n \"created_time = #{createdTime,jdbcType=TIMESTAMP},\",\n \"completion_flag = #{completionFlag,jdbcType=BIT}\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(SwmsStockOutRecordDetail record);", "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\r\n return updateId;\r\n }", "public void setUpdateUserId(String updateUserId) {\r\n this.updateUserId = updateUserId;\r\n }", "public Long getUpdateId() {\n\t\treturn updateId;\n\t}", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "public void setUpdateUserid(Long updateUserid) {\r\n\t\tthis.updateUserid = updateUserid;\r\n\t}", "@Override\n\tpublic Customers update(Customers updatecust) {\n\t\tCustomers custpersist= search(updatecust.getId());\n\t\tif (custpersist==null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers upcust = CustRepo.save(updatecust);\n\t\treturn upcust;\n\t}", "int updateByPrimaryKey(DO_Merchants record);", "public void setSql_updateStudent(String sql_updateStudent) {\n\t\tthis.sql_updateStudent = sql_updateStudent;\n\t}", "public void setUpdateDateMachine(Integer updateDateMachine) {\r\n this.updateDateMachine = updateDateMachine;\r\n }", "@Override\n\tpublic boolean update(int customerId,String c) {\n\t\tString query=\"UPDATE Customer SET city=? where Customer_ID=?\";\n\t\ttry {\n\t\t\tPreparedStatement preparedStatement=DatabaseConnectionDAO.geConnection().prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, customerId);\n\t\t\tpreparedStatement.setString(2, c);\n\t\t\tint n=preparedStatement.executeUpdate();\n\t\t\tif(n>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"updated\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"enter valid data\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn false;\n\t}", "public void setUpdateDt(Date updateDt) {\n this.updateDt = updateDt;\n }", "public void setUpdateDt(Date updateDt) {\n this.updateDt = updateDt;\n }", "public void updateCustomer(String id) {\n\t\t\n\t}", "public void setM_Production_ID (int M_Production_ID);", "int updateByPrimaryKeySelective(DO_Merchants record);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "abstract void setUpdateStatementId(@NotNull PreparedStatement preparedStatement, @NotNull T object) throws SQLException;", "public void setUpdateDatetime(Long updateDatetime) {\n this.updateDatetime = updateDatetime;\n }", "public int updateCustomerIncomeSource(HashMap<String, String> map) {\r\n\t\tSystem.out.println(\"CustomerBAL.updateCustomerIncomeSource()\");\r\n\t\tSystem.out.println(map);\r\n\t\tint isupdated = 0;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\t\t\tcom.mysql.jdbc.PreparedStatement prepareStatement = (com.mysql.jdbc.PreparedStatement) connection\r\n\t\t\t\t\t.prepareStatement(\"UPDATE \" + \" `customer` \" + \" SET \"\r\n\t\t\t\t\t\t\t+ \" `salary_or_pension` = ?, \"\r\n\t\t\t\t\t\t\t+ \" `business_income` = ?, \"\r\n\t\t\t\t\t\t\t+ \" `farming` = ?, \"\r\n\t\t\t\t\t\t\t+ \" `family_contribution` = ?\"\r\n\t\t\t\t\t\t\t+ \" WHERE `customer_id` = ? ;\");\r\n\t\t\tprepareStatement.setString(\r\n\t\t\t\t\t1,\r\n\t\t\t\t\tmap.get(\"salaryOrPension\").isEmpty() ? \"0\" : map\r\n\t\t\t\t\t\t\t.get(\"salaryOrPension\"));\r\n\t\t\tprepareStatement.setString(\r\n\t\t\t\t\t2,\r\n\t\t\t\t\tmap.get(\"businessIncome\").isEmpty() ? \"0\" : map\r\n\t\t\t\t\t\t\t.get(\"businessIncome\"));\r\n\t\t\tprepareStatement.setString(\r\n\t\t\t\t\t3,\r\n\t\t\t\t\tmap.get(\"farmingIncome\").isEmpty() ? \"0\" : map\r\n\t\t\t\t\t\t\t.get(\"farmingIncome\"));\r\n\t\t\tprepareStatement.setString(4, map.get(\"familyContribution\")\r\n\t\t\t\t\t.isEmpty() ? \"0\" : map.get(\"familyContribution\"));\r\n\t\t\tprepareStatement.setInt(5, Integer.parseInt(map.get(\"customerId\")));\r\n\r\n\t\t\tprepareStatement.executeUpdate();\r\n\t\t\tSystem.out.println(prepareStatement.getPreparedSql());\r\n\t\t\tcom.mysql.jdbc.PreparedStatement updateStatement = (com.mysql.jdbc.PreparedStatement) connection\r\n\t\t\t\t\t.prepareStatement(\"UPDATE form_wizard SET form_wizard_step = 2, updated_date = NOW() WHERE customer_id = ?\");\r\n\t\t\tupdateStatement.setString(1, map.get(\"customerId\"));\r\n\t\t\tisupdated = updateStatement.executeUpdate();\r\n\t\t\tSystem.out.println(updateStatement.asSql());\r\n\t\t\tconnection.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn isupdated;\r\n\t}", "public void setNewsletterId(int v) \n {\n \n if (this.newsletterId != v)\n {\n this.newsletterId = v;\n setModified(true);\n }\n \n \n }", "public void setUpdateUser(Integer updateUser) {\n this.updateUser = updateUser;\n }", "@Update({\n \"update dept\",\n \"set dept_name = #{deptName,jdbcType=VARCHAR}\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(Dept record);", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "int updateByPrimaryKey(EcsSupplierRebate record);", "public static int updateCustomer(Banker banker) {\n\tint rowstatus = 0;\n\tString query = null;\n\tConnection con = null;\n\tPreparedStatement ps = null;\n\tResultSet rs = null;\n\tStatement stmt = null;\t\t\n\t\n\ttry {\t\t\n\t\tcon = DatabaseUtil.getConnection();\n\t\tps=con.prepareStatement(\"Update CustomerAccount_RBM SET Customer_Name=?,Customer_Age=?,Customer_Address=?, Status='Active', Message='Customer updated successfully', Last_updated=CURRENT_TIMESTAMP where SSN_ID=? \");\n\t\tps.setString(1, banker.getCustName());\n\t\tps.setInt(2, banker.getCustAge());\n\t\tps.setString(3, banker.getCustAddress());\n\t\tps.setString(4, banker.getCssnid());\t\t\n\t\t\t\n\t\trowstatus = ps.executeUpdate(); \n\t\tSystem.out.println(rowstatus);\n\t\t/*query = \"Select MAX(Customer_ID) from CustomerAccount_RBM\";\n\t\tstmt = con.createStatement();\n\t\trs = stmt.executeQuery(query);\n\t\twhile(rs.next()) \n\t\t{\n\t\t\tcustomerId = (Integer)rs.getInt(1);\n\t\t\tSystem.out.println(\"Customer Id :\" +customerId);\n\t\t}\n\t\t//banker.setCid(customerId.toString());*/\n\t\t\t\t\t\n\t} \n\tcatch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\tfinally {\n\t\ttry {\n\t\t\tps.close();\n\t\t\t}\n\t\tcatch (SQLException e) {\n\t\t\t}\n\t}\n\treturn rowstatus;\n}", "int updateByPrimaryKey(CrmDept record);", "public String getUpdateUserId() {\r\n return updateUserId;\r\n }", "Update withIdProvider(String idProvider);", "public void update(String custNo, CstCustomer cstCustomer2) {\n\t\tcstCustomerDao.update(custNo,cstCustomer2);\n\t}", "@Update({\r\n \"update umajin.user_master\",\r\n \"set nickname = #{nickname,jdbcType=VARCHAR},\",\r\n \"sex = #{sex,jdbcType=INTEGER},\",\r\n \"age = #{age,jdbcType=INTEGER},\",\r\n \"birthday = #{birthday,jdbcType=DATE},\",\r\n \"regist_date = #{regist_date,jdbcType=TIMESTAMP},\",\r\n \"update_date = #{update_date,jdbcType=TIMESTAMP},\",\r\n \"disable = #{disable,jdbcType=INTEGER}\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n int updateByPrimaryKey(UserMaster record);", "public void update(ScahaDatabase _db) throws SQLException {\n\t\t// Lets update the person here.\r\n\t\t//\r\n\t\tsuper.update(_db);\r\n\t\t\r\n\t\t//\r\n\t\t// now.. we have to update the pertinat parts of the player table \r\n\t\t// to add the player extension data..\r\n\t\t\r\n\t\t// \r\n\t\t// is it an object that is not in the database yet..\r\n\t\t//\r\n\t\t//\r\n\t\tCallableStatement cs = _db.prepareCall(\"call scaha.updateManager(?,?,?,?)\");\r\n\t\t\r\n\t\t//LOGGER.info(\"HERE IS THE PERSON ID for manager:\" + super.ID);\r\n\t\t//LOGGER.info(\"HERE IS THE manager ID for manager:\" + this.ID);\r\n\t\t\r\n\t\tint i = 1;\r\n\t\tcs.registerOutParameter(1, java.sql.Types.INTEGER);\r\n\t\tcs.setInt(i++, this.ID);\r\n\t\tcs.setInt(i++, super.ID);\r\n\t\tcs.setInt(i++,1);\r\n\t\tcs.setString(i++,null);\r\n\t\tcs.execute();\r\n\t\t\t\t\r\n\t\t//\r\n\t\t// Update the new ID from the database...\r\n\t\t//\r\n\t\tthis.ID = cs.getInt(1);\r\n\t\tcs.close();\r\n\t\t//LOGGER.info(\"HERE IS THE New Manager ID:\" + this.ID);\r\n\t\t\r\n\t}", "int updateByPrimaryKey(ResPartnerBankEntity record);", "public void updateEmployee(final Employee update) {\r\n\t\t sessionFactory.getCurrentSession().saveOrUpdate(update);\r\n\t }", "@Override\n\tpublic int saveUpdate(MstCustomerDto mstCustomerDto) {\n\t\tMstCustomer b=mstCustomerDao.getOne(mstCustomerDto.getKodeCustomer());\n\t\tif(!(b==null)){\n\t\t\ttry{\n\t\t\t\tMstCustomer mstCustomer=mapperFacade.map(mstCustomerDto, MstCustomer.class);\n\t\t\t\tmstCustomerDao.save(mstCustomer);\t\t\t\n\t\t\t\treturn 2;\n\t\t\t}catch(Exception e){\n\t\t\t\treturn CommonConstants.ERROR_REST_STATUS;\n\t\t\t}\t\t\t\n\t\t}else{\n\t\t\ttry{\n\t\t\t\tMstCustomer mstCustomer= mapperFacade.map(mstCustomerDto, MstCustomer.class);\n\t\t\t\tmstCustomerDao.save(mstCustomer);\n\t\t\t\treturn CommonConstants.OK_REST_STATUS;\n\t\t\t}catch(Exception e){\n\t\t\t\treturn CommonConstants.ERROR_REST_STATUS;\n\t\t\t}\n\t\t}\n\t}", "@Update({\n \"update payment_t_weixin_callback_records\",\n \"set OUT_TRADE_NO = #{outTradeNo,jdbcType=VARCHAR},\",\n \"TRANSACTION_ID = #{transactionId,jdbcType=VARCHAR},\",\n \"RESULT_CODE = #{resultCode,jdbcType=VARCHAR},\",\n \"PARAMETER_LIST = #{parameterList,jdbcType=VARCHAR},\",\n \"CALLBACK_TIME = #{callbackTime,jdbcType=TIMESTAMP}\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(WeixinCallbackRecordsGenerateBean record);", "public void update (int ID, String frist_name, String lastName, String nationality, \n int age, Date commingDate, Date checkOutDate){\n String qury = \"update customer\\n\" +\n \"set First_name = '\"+frist_name+\"', Last_name = '\"+lastName+\"', nationality = '\"+\n nationality+\"', age = \"+age+\", coming_date = '\"\n +commingDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(2)+\n \"', check_out_date = '\"+checkOutDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(2)+\"'\\n\" +\n \"where customer_id = \"+ID;\n try {\n statement.executeUpdate(qury);\n }catch (SQLException e)\n {\n e.printStackTrace();\n }finally{\n setQuery(DEFUALT_QUERY);\n }\n }", "int updateByPrimaryKey(SmsEmployeeTeam record);", "int updateByPrimaryKey(SysTeam record);", "public Integer getUpdateUserid() {\n return updateUserid;\n }", "public int updateByPrimaryKey(DyMscMgwSccp record) {\r\n int rows = getSqlMapClientTemplate().update(\"DY_MSC_MGW_SCCP.ibatorgenerated_updateByPrimaryKey\", record);\r\n return rows;\r\n }", "public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}", "public void updateSupplier(int id, String cvr) throws SQLException {\n\t\tupdateSupplierById.setString(1, cvr);\n\t\tupdateSupplierById.setInt(2, id);\n\t\tupdateSupplierById.executeUpdate();\n\t}", "public void setUpdateBy(int updateBy) {\n inputParameters.Update_By = updateBy;\n\n }", "public void setUpdateDate(Date updateDate) {\r\n this.updateDate = updateDate;\r\n }", "public void setUpdateDate(String updateDate) {\r\n this.updateDate = updateDate;\r\n }", "public void updateSCId(int sCid){\n\t\tthis.sCiD = sCid;\n\t}", "@Update(\n \"UPDATE \" + ServeInfoSqlProvider.TABLE_NAME +\n \" SET owner_id = #{ownerId} \" +\n \" WHERE id = #{serveId}\"\n )\n int changeServeOwner(@Param(\"serveId\") Long serveId, @Param(\"ownerId\") Long ownerId);", "@Update({\n \"update SALEORDERDETAIL\",\n \"set MID = #{mid,jdbcType=VARCHAR},\",\n \"MNAME = #{mname,jdbcType=VARCHAR},\",\n \"STANDARD = #{standard,jdbcType=VARCHAR},\",\n \"UNITID = #{unitid,jdbcType=VARCHAR},\",\n \"UNITNAME = #{unitname,jdbcType=VARCHAR},\",\n \"NUM = #{num,jdbcType=DECIMAL},\",\n \"BEFOREDISCOUNT = #{beforediscount,jdbcType=DECIMAL},\",\n \"DISCOUNT = #{discount,jdbcType=DECIMAL},\",\n \"PRICE = #{price,jdbcType=DECIMAL},\",\n \"TOTALPRICE = #{totalprice,jdbcType=DECIMAL},\",\n \"TAXRATE = #{taxrate,jdbcType=DECIMAL},\",\n \"TOTALTAX = #{totaltax,jdbcType=DECIMAL},\",\n \"TOTALMONEY = #{totalmoney,jdbcType=DECIMAL},\",\n \"BEFOREOUT = #{beforeout,jdbcType=DECIMAL},\",\n \"ESTIMATEDATE = #{estimatedate,jdbcType=TIMESTAMP},\",\n \"LEFTNUM = #{leftnum,jdbcType=DECIMAL},\",\n \"ISGIFT = #{isgift,jdbcType=DECIMAL},\",\n \"FROMBILLTYPE = #{frombilltype,jdbcType=DECIMAL},\",\n \"FROMBILLID = #{frombillid,jdbcType=VARCHAR}\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Saleorderdetail record);", "@Test\n public void update2()\n {\n int zzz = getJdbcTemplate().update(\"UPDATE account SET NAME =?,money=money-? WHERE id =?\", \"ros\", \"100\", 2);\n System.out.println(zzz);\n }", "@Update({\n \"update test_module\",\n \"set title = #{title,jdbcType=VARCHAR},\",\n \"create_time = #{createTime,jdbcType=TIMESTAMP},\",\n \"create_id = #{createId,jdbcType=VARCHAR},\",\n \"update_time = #{updateTime,jdbcType=TIMESTAMP},\",\n \"update_id = #{updateId,jdbcType=VARCHAR}\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(TestModule record);", "void updateCustomer(int id, String[] updateInfo);", "public Long getUpdateUserid() {\r\n\t\treturn updateUserid;\r\n\t}", "public void update(OpportunitiesPk pk, Opportunities dto) throws OpportunitiesDaoException\r\n\t{\r\n\t\tlong t1 = System.currentTimeMillis();\r\n\t\t// declare variables\r\n\t\tfinal boolean isConnSupplied = (userConn != null);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\r\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\r\n\t\t\r\n\t\t\tStringBuffer sql = new StringBuffer();\r\n\t\t\tsql.append( \"UPDATE \" + getTableName() + \" SET \" );\r\n\t\t\tboolean modified = false;\r\n\t\t\tif (dto.isIdModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"id=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isSupplierIdModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"supplier_id=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isUniqueProductsModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"unique_products=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isPortfolioModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"portfolio=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isRecongnisationModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"recongnisation=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isKeyWordsModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"key_words=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isDateCreationModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"date_creation=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isDateModificationModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"date_modification=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (!modified) {\r\n\t\t\t\t// nothing to update\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tsql.append( \" WHERE id=?\" );\r\n\t\t\tSystem.out.println( \"Executing \" + sql.toString() + \" with values: \" + dto );\r\n\t\t\tstmt = conn.prepareStatement( sql.toString() );\r\n\t\t\tint index = 1;\r\n\t\t\tif (dto.isIdModified()) {\r\n\t\t\t\tstmt.setInt( index++, dto.getId() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isSupplierIdModified()) {\r\n\t\t\t\tstmt.setInt( index++, dto.getSupplierId() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isUniqueProductsModified()) {\r\n\t\t\t\tstmt.setString( index++, dto.getUniqueProducts() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isPortfolioModified()) {\r\n\t\t\t\tstmt.setString( index++, dto.getPortfolio() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isRecongnisationModified()) {\r\n\t\t\t\tstmt.setString( index++, dto.getRecongnisation() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isKeyWordsModified()) {\r\n\t\t\t\tstmt.setString( index++, dto.getKeyWords() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isDateCreationModified()) {\r\n\t\t\t\tstmt.setTimestamp(index++, dto.getDateCreation()==null ? null : new java.sql.Timestamp( dto.getDateCreation().getTime() ) );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isDateModificationModified()) {\r\n\t\t\t\tstmt.setTimestamp(index++, dto.getDateModification()==null ? null : new java.sql.Timestamp( dto.getDateModification().getTime() ) );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tstmt.setInt( index++, pk.getId() );\r\n\t\t\tint rows = stmt.executeUpdate();\r\n\t\t\treset(dto);\r\n\t\t\tlong t2 = System.currentTimeMillis();\r\n\t\t\tSystem.out.println( rows + \" rows affected (\" + (t2-t1) + \" ms)\" );\r\n\t\t}\r\n\t\tcatch (Exception _e) {\r\n\t\t\t_e.printStackTrace();\r\n\t\t\tthrow new OpportunitiesDaoException( \"Exception: \" + _e.getMessage(), _e );\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tResourceManager.close(stmt);\r\n\t\t\tif (!isConnSupplied) {\r\n\t\t\t\tResourceManager.close(conn);\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private void updateCustomer(Customer customer) {\n List<String> args = Arrays.asList(\n customer.getCustomerName(),\n customer.getAddress(),\n customer.getPostalCode(),\n customer.getPhone(),\n customer.getLastUpdate().toString(),\n customer.getLastUpdatedBy(),\n String.valueOf(customer.getDivisionID()),\n String.valueOf(customer.getCustomerID())\n );\n DatabaseConnection.performUpdate(\n session.getConn(),\n Path.of(Constants.UPDATE_SCRIPT_PATH_BASE + \"UpdateCustomer.sql\"),\n args\n );\n }", "public void setUpdaterId(String updaterId) {\n this.updaterId = updaterId == null ? null : updaterId.trim();\n }", "public String getUpdatedId()\r\n {\r\n return updatedId;\r\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void prepareUpdate() {\r\n\t\tlog.info(\"prepare for update customer...\");\r\n\t\tMap<String, String> params = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getRequestParameterMap();\r\n\t\tString id = params.get(\"customerIdParam\");\r\n\t\tlog.info(\"ID==\" + id);\r\n\t\tCustomer customer = customerService.searchCustomerById(new Long(id));\r\n\t\tcurrent.setCustomerId(customer.getCustomerId());\r\n\t\tcurrent.setCustomerCode(customer.getCustomerCode());\r\n\t\tcurrent.setCustomerName(customer.getCustomerName());\r\n\t\tcurrent.setTermOfPayment(customer.getTermOfPayment());\r\n\t\tcurrent.setCustomerGrade(customer.getCustomerGrade() != null ? customer.getCustomerGrade() : \"\");\r\n\t\tcurrent.setAddress(customer.getAddress());\r\n\t\tlog.info(\"prepare for update customer end...\");\r\n\t}", "public void setUpdateEmp(String updateEmp) {\n this.updateEmp = updateEmp == null ? null : updateEmp.trim();\n }", "public void updateStudent(int id,int teamId, String role){\r\n\t\t\r\n\t\tMySQLConnector.executeMySQL(\"update\", \"UPDATE `is480-matching`.`students` SET `team_id`=\" + teamId + \" WHERE `id`=\" + id );\r\n\t\tMySQLConnector.executeMySQL(\"update\", \"UPDATE `is480-matching`.`students` SET `role_id`=\" + Integer.parseInt(role) + \" WHERE `id`=\" + id);\r\n\t\t//fix this statement.\r\n\t}", "int updateExencion(final Long srvcId);", "public void setUpdateUser(Long updateUser) {\n this.updateUser = updateUser;\n }", "public void setUpdateby(Integer updateby) {\n this.updateby = updateby;\n }", "int updateByPrimaryKey(CCustomer record);", "@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}", "@Override\n\tpublic int update(int id) {\n\t\treturn rolDao.update(id);\n\t}", "protected void setId(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString id = rs.getString(UiActionTable.COLUMN_ID);\n\t\t\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setId(id);\n\t}", "@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}", "int updateByPrimaryKey(OcCustContract record);", "public void autoID(){\n try {\n \n System.out.println(\"trying connection\");\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n con=DriverManager.getConnection (\"jdbc:mysql://localhost:3306/airlines\",\"root\",\"root\");\n Statement s=con.createStatement();\n System.out.println(\"connection sucessful\");\n ResultSet rs=s.executeQuery(\"select MAX(ID)from customer\");\n rs.next();\n rs.getString(\"MAX(ID)\");\n if(rs.getString(\"MAX(ID)\")==null)\n {\n txtcustid.setText(\"CS001\");\n }\n else\n {\n long id=Long.parseLong(rs.getString(\"MAX(ID)\").substring(2,rs.getString(\"MAX(ID)\").length()));\n id++;\n txtcustid.setText(\"CS\"+String.format(\"%03d\", id));\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(searchCustomer.class.getName()).log(Level.SEVERE, null, ex);\n \n } catch (SQLException ex) {\n Logger.getLogger(searchCustomer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "int updateByPrimaryKey(DangerMerchant record);", "int updateByPrimaryKey(FinancialManagement record);", "public void setM_PriceList_Version_ID (int M_PriceList_Version_ID);", "public void setUpdateDate( Date updateDate ) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate( Date updateDate ) {\n this.updateDate = updateDate;\n }", "public void update(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"UPDATE customer SET name = ?, id = ?, phone = ? WHERE customer_key = ?\");\n ppst.setString(1, c.getName());\n ppst.setString(2, c.getId());\n ppst.setString(3, c.getPhone());\n ppst.setInt(4, c.getCustomerKey());\n ppst.executeUpdate();\n System.out.println(\"Updated successfully.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Update error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }", "@Update(\"UPDATE patients SET id_firstcontact_doctor=#{newDoctorId} WHERE id_patient=#{patient.id}\")\n void updatePatientFirstcontactDoctor(@Param(\"patient\") Patient patient,\n @Param(\"newDoctorId\") int newDoctorId);", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "@Update({\n \"update user_lessons\",\n \"set user_id = #{userId,jdbcType=INTEGER},\",\n \"class_id = #{classId,jdbcType=INTEGER},\",\n \"lessons_number = #{lessonsNumber,jdbcType=INTEGER},\",\n \"lessons_name = #{lessonsName,jdbcType=VARCHAR},\",\n \"lessons_teacher = #{lessonsTeacher,jdbcType=VARCHAR},\",\n \"lessons_address = #{lessonsAddress,jdbcType=VARCHAR},\",\n \"is_delete = #{isDelete,jdbcType=TINYINT},\",\n \"create_time = #{createTime,jdbcType=TIMESTAMP},\",\n \"update_time = #{updateTime,jdbcType=TIMESTAMP}\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(UserLessons record);", "@Override\n public void updateOne(int id, Booking itemToUpdate) {\n String sql = \"UPDATE bookings SET customer_phone_number = ? WHERE id = ?\";\n jdbc.update(sql, itemToUpdate.getCustomerPhoneNumber(), id);\n }", "public com.sgs.portlet.generatetemplateid.model.IdGenerated update(\r\n com.sgs.portlet.generatetemplateid.model.IdGenerated idGenerated,\r\n boolean merge) throws com.liferay.portal.SystemException;", "public void setId(int value) {\r\n this.id = value;\r\n }" ]
[ "0.58571607", "0.58571607", "0.5629258", "0.5629258", "0.54743576", "0.5444193", "0.53720987", "0.53720987", "0.5298059", "0.5276967", "0.5220333", "0.5220333", "0.51843846", "0.51770365", "0.51675195", "0.5100366", "0.50862813", "0.50497234", "0.50440687", "0.50440687", "0.50211316", "0.5000064", "0.49921456", "0.49899083", "0.49899083", "0.4987416", "0.49797627", "0.49787474", "0.49708933", "0.49645516", "0.4956568", "0.495198", "0.49495807", "0.4926767", "0.48991236", "0.48989242", "0.48981833", "0.48972392", "0.48739785", "0.48736382", "0.48679838", "0.48651233", "0.48586512", "0.48575398", "0.4836629", "0.4836032", "0.4834838", "0.48303914", "0.48303193", "0.48289973", "0.48227754", "0.48182008", "0.4792136", "0.47915998", "0.47905788", "0.4787787", "0.4786486", "0.4783641", "0.478276", "0.47690564", "0.47614953", "0.47590017", "0.47499815", "0.47462988", "0.47456548", "0.47446203", "0.47446203", "0.47446203", "0.47446203", "0.47446203", "0.47446203", "0.47446203", "0.47446203", "0.47446203", "0.47425842", "0.4737757", "0.4736568", "0.47339907", "0.47338837", "0.4732006", "0.47263923", "0.4725955", "0.4718935", "0.47178668", "0.47000057", "0.46988976", "0.46953005", "0.46903083", "0.46902758", "0.4687064", "0.46863618", "0.46837506", "0.46837506", "0.46821457", "0.46815655", "0.46800008", "0.4677735", "0.46727994", "0.46655524", "0.46640515" ]
0.5501969
4
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.update_time
public Date getUpdateTime() { return updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "public Date getUpdateDatetime();", "long getTsUpdate();", "public com.flexnet.opsembedded.webservices.DateTimeQueryType getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}", "public java.lang.Long getTsUpdate() {\n return ts_update;\n }", "public java.lang.Long getTsUpdate() {\n return ts_update;\n }", "int getUpdateTriggerTime();", "public Date getUpdateTime()\n {\n return data.updateTime;\n }", "public Date getUpdateTime()\n/* */ {\n/* 191 */ return this.updateTime;\n/* */ }", "public Date getTimeUpdate() {\n return timeUpdate;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public String getUpdateTime() {\r\n return updateTime;\r\n }", "public long getTsUpdate() {\n return tsUpdate_;\n }", "public Integer getUpdateTime() {\n return updateTime;\n }", "public long getTsUpdate() {\n return tsUpdate_;\n }", "@ApiModelProperty(value = \"修改时间\")\n public Date getRowUpdateTime() {\n return rowUpdateTime;\n }", "public int getUpdateTriggerTime() {\n return instance.getUpdateTriggerTime();\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public int getUpdateTriggerTime() {\n return updateTriggerTime_;\n }", "public Timestamp getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return this.updateTime;\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public String getUpdateTime() {\n\t\t\treturn updateTime;\n\t\t}", "public Long getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Long getUpdateTime() {\n return updateTime;\n }", "public Long getUpdateTime() {\n return updateTime;\n }", "public String getUpdTime() {\n return updTime;\n }", "public Date getUpdateTime() {\n\t\treturn this.updateTime;\n\t}", "public Date getUpdateTime() {\r\n\t\treturn this.updatedTime;\r\n\t}", "public Date getUpdateTime() {\r\n\t\treturn updateTime;\r\n\t}", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateTimeDb() {\r\n\t\treturn updateTimeDb;\r\n\t}", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}" ]
[ "0.6885688", "0.6885688", "0.6852171", "0.67586654", "0.6747034", "0.6747034", "0.67279816", "0.67279816", "0.659645", "0.65584666", "0.64938897", "0.64700955", "0.6465787", "0.6465787", "0.64572066", "0.6451899", "0.64432174", "0.64346915", "0.6413196", "0.6373589", "0.6366465", "0.6335073", "0.6335073", "0.6335073", "0.631619", "0.6295338", "0.628263", "0.62816405", "0.62756354", "0.62638223", "0.6261442", "0.6261442", "0.6261442", "0.6261442", "0.62583494", "0.62377435", "0.62248224", "0.62113863", "0.62113863", "0.62113863", "0.62113863", "0.62064254", "0.6205091", "0.62042636", "0.62042636", "0.61988294", "0.6195092", "0.6189619", "0.6154764", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.61528647", "0.6096904", "0.60885847", "0.6085924", "0.60822034", "0.6055005" ]
0.61214703
95
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.update_time
public void setUpdateTime(Date updateTime) { setField("updateTime", updateTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdatetime(Date updatetime) {\r\n this.updatetime = updatetime;\r\n }", "public void setUpdatetime(Date updatetime) {\n this.updatetime = updatetime;\n }", "public void setUpdatetime(Date updatetime) {\n this.updatetime = updatetime;\n }", "public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ }", "public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }", "public void setUpdateDatetime(Long updateDatetime) {\n this.updateDatetime = updateDatetime;\n }", "public void setUpdateDatetime(Date updateDatetime);", "public void setUpdateTime (java.sql.Timestamp updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}", "public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }", "public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(DateTime updateTime) {\n this.updated = updateTime;\n }", "@Override\n\tpublic void setUpdateTime(Date updateTime) {\n\t\t\n\t}", "private void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }", "public void setUpdateDatetime(Date updateDatetime) {\r\n\t\tthis.updateDatetime = updateDatetime;\r\n\t}", "public void setUpdateTime(Date updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Integer updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTimeDb(Date updateTimeDb) {\r\n\t\tthis.updateTimeDb = updateTimeDb;\r\n\t}", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "public void setUpdateTime(com.flexnet.opsembedded.webservices.DateTimeQueryType updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }", "public void setUpdateTime(String updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(String updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdTime(String updTime) {\n this.updTime = updTime;\n }", "public void updateLecture_Time(Class c) {\n\t\tSqlSession sqlSession = MyBatisUtil.getSqlSessionFactory()\n\t\t\t\t.openSession();\n\t\ttry {\n\t\t\tClassMapper classMapper = sqlSession.getMapper(ClassMapper.class);\n\t\t\tclassMapper.updateLecture_Time(c);\n\t\t\tsqlSession.commit();\n\t\t} finally {\n\t\t\tsqlSession.close();\n\t\t}\n\t}", "public void setUpdateTime(Long updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Long updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(java.util.Date updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Timestamp updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Long updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "void setLastUpdatedTime();", "public Builder setUpdateTriggerTime(int value) {\n copyOnWrite();\n instance.setUpdateTriggerTime(value);\n return this;\n }", "public void setUpdateTime(String updateTime) {\n\t\t\tthis.updateTime = updateTime;\n\t\t}", "public void setUpdateTime(java.util.Calendar updateTime) {\n this.updateTime = updateTime;\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public void setClUpdateTime(Date clUpdateTime) {\r\n this.clUpdateTime = clUpdateTime;\r\n }", "public void setTsUpdate(java.lang.Long value) {\n this.ts_update = value;\n }", "public void setUpdateDt(Date updateDt) {\n this.updateDt = updateDt;\n }", "public void setUpdateDt(Date updateDt) {\n this.updateDt = updateDt;\n }", "public void setUpdatetime(String updatetime) {\n\t\tthis.updatetime = updatetime == null ? null : updatetime.trim();\n\t}", "public void setUpdatetime(String updatetime) {\n\t\tthis.updatetime = updatetime == null ? null : updatetime.trim();\n\t}", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }" ]
[ "0.68130237", "0.68130237", "0.66249514", "0.6565557", "0.6565557", "0.65182906", "0.64189816", "0.63045925", "0.62925583", "0.6278959", "0.6241891", "0.6241891", "0.61807257", "0.61807257", "0.61807257", "0.61807257", "0.61558485", "0.6154188", "0.6136116", "0.60968906", "0.60881174", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60810745", "0.60144705", "0.6006524", "0.6006524", "0.6006524", "0.59847164", "0.59408695", "0.59408695", "0.59408695", "0.5939145", "0.5933933", "0.5924101", "0.5924101", "0.5921146", "0.5912797", "0.58932334", "0.58932334", "0.5882493", "0.5882493", "0.5882493", "0.5861238", "0.58523595", "0.5830224", "0.58227277", "0.5818974", "0.58133185", "0.579129", "0.577312", "0.5763186", "0.5758123", "0.57435364", "0.57435364", "0.5740764", "0.5740764", "0.5738792", "0.5738792" ]
0.5805473
90
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.del_flag
public Short getDelFlag() { return delFlag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public Integer getDeleteflag() {\n return deleteflag;\n }", "public String getDeleteFlag() {\r\n return deleteFlag;\r\n }", "public String getDeleteFlag() {\n return deleteFlag;\n }", "public Integer getIsDel() {\n return isDel;\n }", "public Integer getIsDel() {\n return isDel;\n }", "public void setDelFlag(String delFlag) {\n this.delFlag = delFlag;\n }", "public void setDelFlag(boolean delFlag) {\n this.delFlag = delFlag;\n }", "public String getDeleteFlag() {\r\n\t\treturn deleteFlag;\r\n\t}", "public Boolean getDelflag() {\r\n return delflag;\r\n }", "public Integer getIsdeleted() {\n return isdeleted;\n }", "public Boolean getIsDel() {\n return isDel;\n }", "public Byte getDeleteFlag() {\n return deleteFlag;\n }", "public Long deleted() {\n return this.deleted;\n }", "io.dstore.values.BooleanValue getDeleteCampaign();", "public boolean isDelFlag() {\n return delFlag;\n }", "public Integer getIsdelete() {\r\n return isdelete;\r\n }", "public java.lang.Boolean getDeleted();", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGtStatus.getIsDelete();\n\t}", "public void setDelFlag(Short delFlag) {\n\t\tsetField(\"delFlag\", delFlag);\n\t}", "public Integer getIsdelete() {\n return isdelete;\n }", "public String getIs_delete() {\n return is_delete;\n }", "public Integer getIsDeleted() {\n return isDeleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\r\n\t\treturn deleted;\r\n\t}", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public CustomSql getCustomSqlDelete();", "public void setDelFlag(String delFlag) {\n this.delFlag = delFlag == null ? null : delFlag.trim();\n }", "public void setDelFlag(String delFlag) {\n this.delFlag = delFlag == null ? null : delFlag.trim();\n }", "public String getIsDeleted() {\n return isDeleted;\n }", "public String getIsDeleted() {\n return isDeleted;\n }", "public void delete(MakerBean maker) {\n\t\ttry {\r\n\r\n\t\t\tString query = \"update tb_maker set activeFlag = 2, updateBy=?, updateDate=getdate() Where maker_ID=?\";\r\n\t\t\t\r\n\t\t\tint updateRecord = jdbcTemplate.update(query,\r\n\t\t\t\t\tnew Object[] { \r\n\t\t\t\t\t\t\tmaker.getUpdateBy(),\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tmaker.getMaker_ID()\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "public void setIsDel(Integer isDel) {\n this.isDel = isDel;\n }", "public void setIsDel(Integer isDel) {\n this.isDel = isDel;\n }", "public void setDeleteflag(Integer deleteflag) {\n this.deleteflag = deleteflag;\n }", "public String getIsdelete() {\n return isdelete;\n }", "public String getIsdelete() {\n return isdelete;\n }", "@Column(name = \"isDelete\")\r\n\tpublic Boolean getIsDelete() {\r\n\t\treturn this.isDelete;\r\n\t}", "public Integer getDelmark() {\n return delmark;\n }", "public int getIsDelete() {\n\t\treturn _dmHistoryMaritime.getIsDelete();\n\t}", "public boolean getDeleted() {\n\t\treturn _primarySchoolStudent.getDeleted();\n\t}", "public Boolean getIsdelete() {\r\n return isdelete;\r\n }", "public Integer getDel() {\r\n\t\treturn del;\r\n\t}", "public Boolean getIsDeleted() {\r\n return isDeleted;\r\n }", "public Integer getDeleted() {\n return deleted;\n }", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGTShipPosition.getIsDelete();\n\t}", "public Boolean getDeleted() {\n return mDeleted;\n }", "public void setIsDel(Boolean isDel) {\n this.isDel = isDel;\n }", "public boolean getDeleted() {\n return deleted;\n }", "public Boolean getIsDeleted() {\n return isDeleted;\n }", "public boolean isDeleted()\r\n {\r\n return getSemanticObject().getBooleanProperty(swb_deleted);\r\n }", "public Integer getIsDeleted() {\r\n\t\treturn isDeleted;\r\n\t}", "public void setDeleteFlag(String deleteFlag) {\r\n this.deleteFlag = deleteFlag;\r\n }", "public Integer getIsdelete() {\n\t\treturn isdelete;\n\t}", "io.dstore.values.BooleanValue getDeleteCharacteristic();", "public Byte getIsDeleted() {\r\n return isDeleted;\r\n }", "public boolean getDelete() {\n\t\treturn delete;\n\t}", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public String getIsDeleted() {\n\t\treturn isDeleted;\n\t}", "public String eliminarDetalleFacturaSRI()\r\n/* 425: */ {\r\n/* 426:428 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleFacturaProveedorSRI.getRowData();\r\n/* 427:429 */ detalleFacturaProveedorSRI.setEliminado(true);\r\n/* 428: */ \r\n/* 429:431 */ return \"\";\r\n/* 430: */ }", "public Date getDELETED_DATE() {\r\n return DELETED_DATE;\r\n }", "public List<StationBean> getDelStationBeans() {\n\t\treturn mDeList;\n\t}", "public boolean getDelete() {\n\t\t\treturn delete.get();\n\t\t}", "public String calfordelete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result;\r\n\t\tresult = model.calfordelete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(getText(\"Record Deleted Successfully.\"));\r\n\t\t\tvendorMaster.setVendorCode(\"\");\r\n\t\t\tvendorMaster.setVendorName(\"\");\r\n\t\t\tvendorMaster.setVendorAdd(\"\");\r\n\t\t\tvendorMaster.setVendorCon(\"\");\r\n\t\t\tvendorMaster.setVendorEmail(\"\");\r\n\t\t\tvendorMaster.setCtyId(\"\");\r\n\t\t\tvendorMaster.setStateId(\"\");\r\n\t\t\tvendorMaster.setVendorCty(\"\");\r\n\t\t\tvendorMaster.setVendorState(\"\");\r\n\t\t\tvendorMaster.setMyPage(\"\");\r\n\t\t\tvendorMaster.setHiddencode(\"\");\r\n\t\t\tvendorMaster.setShow(\"\");\r\n\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"Record can not be deleted.\");\r\n\t\t}// end of else\r\n\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\r\n\t\treturn \"success\";\r\n\t}", "public void setDeleteFlag(String deleteFlag) {\r\n\t\tthis.deleteFlag = deleteFlag;\r\n\t}", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "public io.dstore.values.BooleanValue getDeleteCharacteristic() {\n if (deleteCharacteristicBuilder_ == null) {\n return deleteCharacteristic_ == null ? io.dstore.values.BooleanValue.getDefaultInstance() : deleteCharacteristic_;\n } else {\n return deleteCharacteristicBuilder_.getMessage();\n }\n }", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "public io.dstore.values.BooleanValueOrBuilder getDeleteCharacteristicOrBuilder() {\n return getDeleteCharacteristic();\n }", "public void setIsdeleted( Boolean isdeleted )\n {\n this.isdeleted = isdeleted;\n }", "public String eliminarDetalle()\r\n/* 340: */ {\r\n/* 341:400 */ this.cuentaContableDimensionContable = ((CuentaContableDimensionContable)this.dtCuentaContable.getRowData());\r\n/* 342:401 */ this.cuentaContableDimensionContable.setEliminado(true);\r\n/* 343:402 */ return \"\";\r\n/* 344: */ }", "@Transient\n\tpublic String getToDeleteFlg() {\n\t\treturn toDeleteFlg;\n\t}", "public String getDeleteStatus() {\n return deleteStatus;\n }", "public Boolean getIsDeleted() {\n\t\treturn isDeleted;\n\t}", "io.dstore.values.BooleanValueOrBuilder getDeleteCharacteristicOrBuilder();", "@Override\n\t public CrudFlag getCrudFlag() {\n // Check if CRUDFlag is null, if so return NONE enumeration\n if (super.getCrudFlag() == null) {\n return CrudFlag.NONE;\n }\n return super.getCrudFlag();\n\t }", "protected String getDeleteSQL() {\n\t\treturn queryData.getString(\"DeleteSQL\");\n\t}", "public void setDelflag(Boolean delflag) {\r\n this.delflag = delflag;\r\n }", "@Nullable\n public TupleExpr getDeleteExpr() {\n return this.deleteExpr;\n }", "public boolean isDeleted()\r\n\t{\r\n\t\treturn deletedFlag;\r\n\t}", "public String getDelChallanNo() {\n return (String) getAttributeInternal(DELCHALLANNO);\n }", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "public StrColumn getUnpublishedFlag() {\n return delegate.getColumn(\"unpublished_flag\", DelegatingStrColumn::new);\n }", "public void setDEL(boolean DEL) {\n this.DEL = DEL;\n }", "@Transactional\r\n\t@Override\r\n\tpublic long deleteCode(Map<String, String[]> map) throws SQLException {\n\r\n\t\tQCode code = QCode.code;\r\n\t\t\r\n\t\tJPADeleteClause deleteClause = new JPADeleteClause(entityManager, code);\r\n\t\tlong result = 0;\r\n\t\tif(map.get(\"gbn\")[0].equals(\"upr\")) {\r\n\t\t\tresult = deleteClause.where(code.upr_cd.eq(\"*\").and(code.cd.eq(map.get(\"cd\")[0]))).execute();\r\n\t\t} else {\r\n\t\t\tresult = deleteClause.where(code.upr_cd.eq(map.get(\"upr_cd\")[0]).and(code.cd.eq(map.get(\"cd\")[0]))).execute();\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public void setIsdeleted(Integer isdeleted) {\n this.isdeleted = isdeleted;\n }", "@ApiModelProperty(value = \"True if this gift certificate was deleted.\")\n public Boolean isDeleted() {\n return deleted;\n }", "@Field(11) \n\tpublic byte CombOffsetFlag() {\n\t\treturn this.io.getByteField(this, 11);\n\t}", "public boolean isDeleted() {\r\n\treturn isDeleted;\r\n}", "public boolean deleteOperator (java.lang.String auth_dpt_cde, \n java.lang.String auth_opr_cde, \n java.lang.String del_opr_cde, \n java.lang.String rcsv_del_flg) throws com.mcip.orb.CoException {\n return this._delegate.deleteOperator(auth_dpt_cde, auth_opr_cde, del_opr_cde, \n rcsv_del_flg);\n }", "@Override\n\tpublic int getMarkedAsDelete() {\n\t\treturn _dmGtStatus.getMarkedAsDelete();\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.DELETED)\n public void setDeleted(final boolean val) {\n deleted = val;\n }" ]
[ "0.6263052", "0.6263052", "0.6263052", "0.59291", "0.57531536", "0.56757534", "0.5661363", "0.5661363", "0.56324697", "0.5598577", "0.55847484", "0.55637044", "0.55632204", "0.5508137", "0.53259504", "0.52659065", "0.5262826", "0.51887214", "0.514317", "0.514033", "0.51321065", "0.51205057", "0.5114437", "0.511279", "0.5102202", "0.50886935", "0.5076152", "0.5075728", "0.5075728", "0.5075728", "0.5075728", "0.50701934", "0.5067943", "0.5067943", "0.50622773", "0.50622773", "0.50561845", "0.5048802", "0.5048802", "0.5043718", "0.5041999", "0.5041999", "0.504127", "0.50286466", "0.5026119", "0.5025051", "0.5017925", "0.49949694", "0.49767727", "0.4948956", "0.49446067", "0.49396852", "0.49392173", "0.49142697", "0.49016505", "0.4898643", "0.48806375", "0.48748022", "0.48660994", "0.483128", "0.48226747", "0.48215124", "0.48073947", "0.48073947", "0.48048997", "0.47783345", "0.47745398", "0.476913", "0.47668916", "0.4760677", "0.47427836", "0.47226137", "0.47215936", "0.4703376", "0.47023702", "0.46947667", "0.46928325", "0.46880382", "0.4678376", "0.46745995", "0.46739882", "0.46621454", "0.46569973", "0.46562317", "0.4631291", "0.46271437", "0.46228883", "0.4610629", "0.4610629", "0.4610629", "0.46086687", "0.45932043", "0.4591282", "0.45841238", "0.45804745", "0.45794663", "0.45715663", "0.4563374", "0.45592877", "0.4559062" ]
0.5836541
4
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.del_flag
public void setDelFlag(Short delFlag) { setField("delFlag", delFlag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDelFlag(boolean delFlag) {\n this.delFlag = delFlag;\n }", "public void setDelFlag(String delFlag) {\n this.delFlag = delFlag;\n }", "public void delete(MakerBean maker) {\n\t\ttry {\r\n\r\n\t\t\tString query = \"update tb_maker set activeFlag = 2, updateBy=?, updateDate=getdate() Where maker_ID=?\";\r\n\t\t\t\r\n\t\t\tint updateRecord = jdbcTemplate.update(query,\r\n\t\t\t\t\tnew Object[] { \r\n\t\t\t\t\t\t\tmaker.getUpdateBy(),\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tmaker.getMaker_ID()\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "public void setIsDel(Integer isDel) {\n this.isDel = isDel;\n }", "public void setIsDel(Integer isDel) {\n this.isDel = isDel;\n }", "public void setIsDel(Boolean isDel) {\n this.isDel = isDel;\n }", "public void setDelFlag(String delFlag) {\n this.delFlag = delFlag == null ? null : delFlag.trim();\n }", "public void setDelFlag(String delFlag) {\n this.delFlag = delFlag == null ? null : delFlag.trim();\n }", "public void setIsdeleted( Boolean isdeleted )\n {\n this.isdeleted = isdeleted;\n }", "public void setDeleteflag(Integer deleteflag) {\n this.deleteflag = deleteflag;\n }", "public void setDeleted(boolean value)\r\n {\r\n getSemanticObject().setBooleanProperty(swb_deleted, value);\r\n }", "public void setIsdeleted(Integer isdeleted) {\n this.isdeleted = isdeleted;\n }", "public void setDeleteFlag(String deleteFlag) {\r\n this.deleteFlag = deleteFlag;\r\n }", "@IcalProperty(pindex = PropertyInfoIndex.DELETED)\n public void setDeleted(final boolean val) {\n deleted = val;\n }", "public void setDelflag(Boolean delflag) {\r\n this.delflag = delflag;\r\n }", "public void delete(String custNo) {\n\t\tcstCustomerDao.update(custNo);\n\t\t\n\t}", "public void setDeleted(boolean deleted);", "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public void setDeleteFlag(String deleteFlag) {\r\n\t\tthis.deleteFlag = deleteFlag;\r\n\t}", "public void setDEL(boolean DEL) {\n this.DEL = DEL;\n }", "public void setIsDelete( Integer isDelete ) {\n this.isDelete = isDelete;\n }", "public void setDeleted(java.lang.Boolean deleted);", "public void setIsDeleted(Integer isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setDelmark(Integer delmark) {\n this.delmark = delmark;\n }", "public void setIsDeleted(Boolean isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "@Override\n\tpublic void setIsDelete(int isDelete) {\n\t\t_dmGtStatus.setIsDelete(isDelete);\n\t}", "public void setIsDelete(int isDelete) {\n\t\t_dmHistoryMaritime.setIsDelete(isDelete);\n\t}", "public void setIsDeleted(Integer isDeleted) {\r\n\t\tthis.isDeleted = isDeleted;\r\n\t}", "@Override\n\tpublic void setIsDelete(int isDelete) {\n\t\t_dmGTShipPosition.setIsDelete(isDelete);\n\t}", "public void setIsDeleted(String isDeleted) {\n this.isDeleted = isDeleted;\n }", "public Integer getDeleteflag() {\n return deleteflag;\n }", "public void setDeleteFlag(String deleteFlag) {\n this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();\n }", "public void setIsDeleted(Byte isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public void setIsDeleted(java.lang.Boolean isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public void setIsDeleted(Boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsdelete(Integer isdelete) {\r\n this.isdelete = isdelete;\r\n }", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "@Override\r\n\tpublic void delete(ConventionStage obj) {\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement();\r\n\t\t\trequest.executeUpdate(\"DELETE FROM \" + ConventionStageDAO.TABLE +\" WHERE NO_CONVENTION= \" +obj.getNumeroConvention());\r\n\t\t\trequest.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void deleteByCustomerListId(Long customerListId);", "public void setDeleted(boolean deleted) {\n\t\t_primarySchoolStudent.setDeleted(deleted);\n\t}", "public void setDeleted();", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(24)\n\tvoid deleted(boolean pVal);", "public void setDel(Integer del) {\r\n\t\tthis.del = del;\r\n\t}", "public void setIsDeleted(boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(String isDeleted) {\n\t\tthis.isDeleted = isDeleted;\n\t}", "public void setIsdelete(Boolean isdelete) {\r\n this.isdelete = isdelete;\r\n }", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsdelete(Integer isdelete) {\n this.isdelete = isdelete;\n }", "public void setIs_delete(String is_delete) {\n this.is_delete = is_delete;\n }", "private static void setDelIndOfComponent(final int componentId, final int delInd) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query =session.createQuery(HQLConstants.DB_QUERY_UPDATE_COMPONENT_DELIND);\n\t\tquery.setLong(\"delInd\", delInd);\n\t\tquery.setLong(\"componentId\", componentId);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}", "public void setIsDeleted(Boolean isDeleted) {\n\t\tthis.isDeleted = isDeleted;\n\t}", "public String getDeleteFlag() {\r\n return deleteFlag;\r\n }", "@Override\r\n public int deptDelete(int dept_seq) {\n return sqlSession.delete(\"deptDAO.deptDelete\", dept_seq);\r\n }", "public void setIsDelete(Byte isDelete) {\n this.isDelete = isDelete;\n }", "public void setIsDelete(Byte isDelete) {\n this.isDelete = isDelete;\n }", "public Short getDelFlag() {\n\t\treturn delFlag;\n\t}", "@PreRemove\r\n public void preRemove(){\r\n this.isDeleted=true;\r\n }", "public void setDelete(boolean d) {\n\t\t\tdelete.set(d);\n\t\t}", "public void setIsdelete(Integer isdelete) {\n\t\tthis.isdelete = isdelete;\n\t}", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "public void setIsDelete(Boolean isDelete) {\r\n\t\tthis.isDelete = isDelete;\r\n\t}", "public String getDeleteFlag() {\n return deleteFlag;\n }", "public void setIsDelete(boolean isDelete) {\n this.isDelete = isDelete;\n }", "public void updateSalerCustomerByDel(int uid) {\n\t\tthis.salerCustomerMapper.updateSalerCustomerByDel(uid);\n\t}", "public void setNullable(boolean isNullable) throws DBException {\n _isNullable = isNullable;\n }", "public void setNullable(boolean isNullable) throws DBException {\n _isNullable = isNullable;\n }", "public Boolean deleteGroupCustomer(GroupCustomer sm){\n\t\tTblGroupCustomer tblsm = new TblGroupCustomer();\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\ttblsm.convertToTable(sm);\n\t\t\ttx = session.beginTransaction();\n\t\t\tsession.delete(tblsm);\n\t\t\ttx.commit();\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\tif (tx!= null) tx.rollback();\n\t\t\te.printStackTrace();\n\t\t\tsession.close();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(boolean deleted) {\n this.deleted = deleted;\n }", "public String getDeleteFlag() {\r\n\t\treturn deleteFlag;\r\n\t}", "@Override\n\tpublic void dbDelete(PreparedStatement pstmt) {\n\n\t\ttry \n\t\t{\n\t\t\tpstmt.setInt(1, getParent());\n\t\t\tpstmt.setInt(2, getParentType().getValue()); \t\t\t// owner_type\n\t\t\tpstmt.setString(3, this.predefinedPeriod.getKey() ); \t\t\t// period key\n\n\t\t\tpstmt.addBatch();\n\n\t\t} catch (SQLException e) {\n\t\t\tLogger logger = LogManager.getLogger(StateInterval.class.getName());\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\n\t}", "public void setDeleted(Boolean deleted) {\r\n\t\tthis.deleted = deleted;\r\n\t}", "@Override\n\tpublic boolean deleteAdminUnitEntitysetFlagFalse(Integer slc,\n\t\t\tInteger adminUnitCode, int entityType) throws Exception {\n\t\t// TODO Auto-generated method stub\n\t\treturn organizationDAO.deleteAdminUnitEntitysetFlagFalse(slc, adminUnitCode, entityType);\n\t}", "public void deleteDAmtInvoValidAmount()\r\n {\r\n this._has_dAmtInvoValidAmount= false;\r\n }", "CamelJpaConsumerBindingModel setConsumeDelete(Boolean consumeDelete);", "public Boolean getIsDel() {\n return isDel;\n }", "public Boolean getDelflag() {\r\n return delflag;\r\n }", "public void setDELETED_DATE(Date DELETED_DATE) {\r\n this.DELETED_DATE = DELETED_DATE;\r\n }", "@Override\n\tpublic int deleteMonth(Month11DTO mon) {\n\t\treturn getSqlSession().delete(\"monDelete\", mon);\n\t}", "public int DelCompany(Long cid, String compname, Long shareamt, Long getnoShare) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from company where comp_id=\"+cid+\"\");\r\n\treturn i;\r\n}", "public void deleteFromCondition(String liste_del, String colonne, String condition) {\r\n if (TestInt(condition) == true) {\r\n this.executeUpdate(\"DELETE FROM \" + liste_del + \" WHERE \" + colonne + \" = \" + condition);\r\n } else {\r\n this.executeUpdate(\"DELETE FROM \" + liste_del + \" WHERE \" + colonne + \" = '\" + condition + \"'\");\r\n }\r\n }", "@Test\r\n\tpublic void deleteTeamCustomerByManagerCustFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamCustomerByManagerCustFk \r\n\t\tInteger team_teamId_2 = 0;\r\n\t\tInteger related_customerbymanagercustfk_customerId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamCustomerByManagerCustFk(team_teamId_2, related_customerbymanagercustfk_customerId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamCustomerByManagerCustFk\r\n\t}", "public void setIsDeleted(String isDeleted) {\n this.isDeleted = isDeleted == null ? null : isDeleted.trim();\n }", "public void deleteResultSet(BackendDeleteDTO del_req) {\n log.debug(\"JZKitBackend::deleteResultSet\");\n del_req.assoc.notifyDeleteResult(del_req);\n }", "public void setDelChallanNo(String value) {\n setAttributeInternal(DELCHALLANNO, value);\n }", "public void setDeleted(boolean deleted) {\n\t\tthis.deleted = deleted;\n\t}", "public String calfordelete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result;\r\n\t\tresult = model.calfordelete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(getText(\"Record Deleted Successfully.\"));\r\n\t\t\tvendorMaster.setVendorCode(\"\");\r\n\t\t\tvendorMaster.setVendorName(\"\");\r\n\t\t\tvendorMaster.setVendorAdd(\"\");\r\n\t\t\tvendorMaster.setVendorCon(\"\");\r\n\t\t\tvendorMaster.setVendorEmail(\"\");\r\n\t\t\tvendorMaster.setCtyId(\"\");\r\n\t\t\tvendorMaster.setStateId(\"\");\r\n\t\t\tvendorMaster.setVendorCty(\"\");\r\n\t\t\tvendorMaster.setVendorState(\"\");\r\n\t\t\tvendorMaster.setMyPage(\"\");\r\n\t\t\tvendorMaster.setHiddencode(\"\");\r\n\t\t\tvendorMaster.setShow(\"\");\r\n\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"Record can not be deleted.\");\r\n\t\t}// end of else\r\n\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\r\n\t\treturn \"success\";\r\n\t}", "public final native void setForDelete(boolean del) /*-{\n\t\tthis.forDelete = del;\n\t}-*/;", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "@Override\r\n\tpublic int removemobiledata(int delid) {\n\t\tQuery queryOne=entitymanager.createQuery(\"DELETE FROM Mobile where mobileId=:mobile_id\");\r\n\t\tqueryOne.setParameter(\"mobile_id\", delid);\r\n\t\tint status=queryOne.executeUpdate();\r\n\t\treturn status;\r\n\t\t\r\n\t\t\r\n\t}", "public Integer getIsDel() {\n return isDel;\n }" ]
[ "0.5925455", "0.5894239", "0.55989563", "0.5538799", "0.5538799", "0.5467866", "0.5429154", "0.5429154", "0.5407215", "0.5379424", "0.52948326", "0.52499235", "0.5187607", "0.5125748", "0.50682455", "0.5067742", "0.5060254", "0.50528467", "0.50528467", "0.50528467", "0.5024882", "0.49953228", "0.49894112", "0.49858204", "0.49475452", "0.49434942", "0.49390593", "0.49241382", "0.49182048", "0.49049106", "0.48709252", "0.4855897", "0.4828003", "0.48051363", "0.48027351", "0.47990018", "0.47957122", "0.4794386", "0.47854015", "0.47848693", "0.4782837", "0.4770883", "0.47689623", "0.4764521", "0.4762056", "0.47618654", "0.47614297", "0.47463623", "0.47406211", "0.47406211", "0.47296184", "0.4718069", "0.47092494", "0.47090545", "0.47030187", "0.47013205", "0.46917585", "0.46917585", "0.46884245", "0.4687145", "0.46825522", "0.4674257", "0.46713048", "0.46713048", "0.46713048", "0.46346742", "0.4597866", "0.45886526", "0.45840093", "0.458251", "0.458251", "0.45745397", "0.45744756", "0.45744756", "0.45744756", "0.45744756", "0.45744756", "0.45722947", "0.4570401", "0.45575398", "0.45431677", "0.45364046", "0.4527464", "0.45204163", "0.45187354", "0.45155123", "0.45099956", "0.450899", "0.44923228", "0.4490921", "0.44885215", "0.4486196", "0.4484748", "0.44845134", "0.4463994", "0.44625047", "0.44574565", "0.44538352", "0.44530162", "0.44460273" ]
0.53853804
9
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.domain
public String getDomain() { return domain; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDomainCd() {\n return this.domainCd;\n }", "public String getDomainNm() {\n return this.domainNm;\n }", "public List<String> getDomain() {\n\t\treturn null;\n\t}", "public Long getDomain()\n\t{\n\t\treturn domain;\n\t}", "public String getDomainId() {\n return domain;\n }", "public YangString getDomainNameValue() throws JNCException {\n return (YangString)getValue(\"domain-name\");\n }", "public String getServiceDomain() {\r\n\t\treturn getTextValue(this.serviceDomainList);\r\n\t}", "public String getDomainName(){\n return this.domainName;\n }", "public String getDomain() {\n return getProperty(DOMAIN);\n }", "public String getDomain() {\r\n return domain;\r\n }", "public String getDomainId() {\n return this.domainId;\n }", "public String domainId() {\n return this.domainId;\n }", "public String getDomain() {\n return domain;\n }", "public String getDomain() {\n return domain;\n }", "public Domain getDomain() {\n return this.domain;\n }", "public Long getDomainId() {\n return domainId;\n }", "public Long getDomainId() {\n return domainId;\n }", "public String getDomainName() {\n return domainName;\n }", "public Domain getDomain() {\n return domain;\n }", "public java.lang.String getDomainName() {\r\n return domainName;\r\n }", "public static List<String> getDatasourceNames(GrailsDomainClass domainClass, AbstractGrailsDomainBinder binder) {\n Mapping mapping = isMappedWithHibernate(domainClass) ? binder.evaluateMapping(domainClass, null, false) : null;\n if (mapping == null) {\n mapping = new Mapping();\n }\n return mapping.getDatasources();\n }", "public String getAcsDomain() {\n return acsDomain;\n }", "public java.lang.String getDomainName() {\n return domainName;\n }", "List<AdminDomain> getDomains();", "@Override\n\tpublic final native String getDomain() /*-{\n return this.domain;\n\t}-*/;", "public StrColumn getOrganisation() {\n return delegate.getColumn(\"organisation\", DelegatingStrColumn::new);\n }", "public String getDomainLabel() {\n return domainLabel;\n }", "@JsonProperty(\"domain\")\n public String getDomain() {\n return domain;\n }", "public ArrayList<Domain> GetDomain()\r\n\t\t{\r\n\t\t\tArrayList<Domain> res = null;\r\n query.settype(MsgId.GET_DOMAIN);\r\n query.setdomlist(null);\r\n query.setrettype(RetID.INVALID);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t scon.sendmsg(query);\r\n\t\t\t MessageObject result = (MessageObject) scon.getmsg(query);\r\n\t\t\t \r\n\t\t\t if (result.getrettype() == RetID.DOMAIN_LIST) {\r\n\t\t\t \t res = result.getdomlist();\r\n\t\t\t }\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tHandleException(e, MsgId.GET_DOMAIN);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn res;\r\n\t\t}", "public ASPBuffer getLogonDomainList()\n {\n return configfile.domain_list;\n }", "String getDomain();", "@ZAttr(id=19)\n public String getDomainName() {\n return getAttr(Provisioning.A_zimbraDomainName, null);\n }", "public String toString()\n {\n return JSHOP2.getDomain().getConstant(index);\n }", "@XmlElement(name = \"domain\")\n public String getDomainId() {\n return domainId;\n }", "@Override\n public String domain() {\n return null;\n }", "@Override\n @Transactional(readOnly = true)\n public MultilingualJsonType getDomainValue(String value,String domainCode) {\n\n Optional<DomainDTO> domain = domainService.findOne(domainCode);\n\n if(!domain.isPresent()) {\n return null;\n }\n Optional<DomainValueDTO> domainValue = domainValueRepository.findByValueAndDomain_Id(value,domain.get().getId())\n .map(domainValueMapper::toDto);\n\n if(!domainValue.isPresent()) {\n return null;\n }\n\n return domainValue.get().getDescription();\n }", "com.google.ads.googleads.v6.resources.DomainCategory getDomainCategory();", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "@ZAttr(id=535)\n public ZAttrProvisioning.DomainStatus getDomainStatus() {\n try { String v = getAttr(Provisioning.A_zimbraDomainStatus); return v == null ? null : ZAttrProvisioning.DomainStatus.fromString(v); } catch(com.zimbra.common.service.ServiceException e) { return null; }\n }", "public Object getDomain ();", "Integer getDomainTemplateColumn();", "public StrColumn getDepositSite() {\n return delegate.getColumn(\"deposit_site\", DelegatingStrColumn::new);\n }", "public static String get() {\n\t\treturn \"ldapntlmdomain get\" + delimiter + \"ldapntlmdomain get \";\n\t}", "public void setDomainCd(String domainCd) {\n this.domainCd = domainCd;\n }", "public YangString getFullDomainNameValue() throws JNCException {\n return (YangString)getValue(\"full-domain-name\");\n }", "protected String getDomain() {\n return \"\";\n }", "public RepositoryDomainType getRepositoryDomain(String domainName) {\n \t\treturn domains.get(domainName.trim());\n \t}", "@Override\n public String getDomain() {\n // return this.userDomain;\n return null; // to support create principal for different domains\n }", "private String getDnsDomainDn(String lDnsDomain)\r\n {\r\n // get dns domain DN\r\n StringBuilder lDnsDomainDnBuilder = new StringBuilder();\r\n boolean lFirst = true;\r\n for ( String lName : lDnsDomain.split( \"[.]\" ) ) {\r\n if ( lFirst )\r\n lFirst = false;\r\n else\r\n lDnsDomainDnBuilder.append( \",\" );\r\n lDnsDomainDnBuilder.append( \"DC=\" );\r\n lDnsDomainDnBuilder.append( lName );\r\n }\r\n String lDnsDomainDn = lDnsDomainDnBuilder.toString();\r\n\r\n return (lDnsDomainDn);\r\n }", "public static Set<String> getDomainNames() {\n return domains.keySet();\n }", "public java.lang.String couponDC()\n\t{\n\t\treturn _lsPeriod.get (0).periods().get (0).couponDC();\n\t}", "public Concept getDomain() { return domain; }", "public String getSmsDomain() {\n return smsDomain;\n }", "public String getCorpDistrict() {\n return corpDistrict;\n }", "public String getDsCode() {\n return dsCode;\n }", "public void getDomain(){\n String requestDomain = IPAddressTextField.getText();\n Connection conn = new Connection();\n\n String ip = conn.getDomain(requestDomain);\n\n output.writeln(requestDomain + \" --> \" + ip);\n }", "@ZAttr(id=212)\n public ZAttrProvisioning.DomainType getDomainType() {\n try { String v = getAttr(Provisioning.A_zimbraDomainType); return v == null ? null : ZAttrProvisioning.DomainType.fromString(v); } catch(com.zimbra.common.service.ServiceException e) { return null; }\n }", "public void setDomain(String domain) {\r\n this.domain = domain;\r\n }", "public String getCompany()\n {\n return (String) getProperty(PropertyIDMap.PID_COMPANY);\n }", "@Query(\"{domain:'?0'}\")\n Domain findCustomByDomain(String domain);", "String getSearchDomainName();", "public StrColumn getDatabaseIdCSD() {\n return delegate.getColumn(\"database_id_CSD\", DelegatingStrColumn::new);\n }", "public String getDc()\n {\n return dc;\n }", "public List<ApplicationDomain> findAllApplicationDomains() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?applicationDomain WHERE {?applicationDomain rdfs:subClassOf onto:Healthcare.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllApplicationDomains:\" + 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<ApplicationDomain> list = new ArrayList<ApplicationDomain>();\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\tApplicationDomain applicationDomain = new ApplicationDomain();\r\n\t\t\t\tif (jsonObject.has(\"applicationDomain\")) {\r\n\t\t\t\t\tapplicationDomain.setApplicationDomainName(\r\n\t\t\t\t\t\t\tjsonObject.getJSONObject(\"applicationDomain\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(applicationDomain);\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 String getDistrictName(String orgCode) {\n\t\tHashMap<String, String> districtReference = loadDistricts();\n\t\treturn districtReference.get(orgCode);\n\t\t\n\t}", "public String getJdCompany() {\r\n\t\treturn jdCompany;\r\n\t}", "public static String getEngineDomainId() {\n\t return null;\r\n }", "public java.lang.String getDsCidade() {\n return dsCidade;\n }", "public String getDistrict() {\r\n return district;\r\n }", "public String getDistrict() {\r\n return district;\r\n }", "@Transient\n\tpublic String getMsisdn() {\n\t\treturn mMsisdn;\n\t}", "@ZAttr(id=535)\n public String getDomainStatusAsString() {\n return getAttr(Provisioning.A_zimbraDomainStatus, null);\n }", "@ZAttr(id=212)\n public String getDomainTypeAsString() {\n return getAttr(Provisioning.A_zimbraDomainType, null);\n }", "@Override\r\n\tpublic Domain map(int index, ResultSet rs,\r\n\t\t\tStatementContext statementContext) throws SQLException {\r\n\t\treturn new Domain(Integer.toString(rs.getInt(\"dmn_dk\")), rs.getString(\"dmn_nm\"), null);\r\n\t}", "public String getCompany()\n\t{\n\t\treturn getCompany( getSession().getSessionContext() );\n\t}", "@Override\r\n\tpublic List<Object[]> getWorkCenterName() {\n\t\ttry {\r\n\t\t\tlist = productionOrderProcessDao.getWorkCenterName();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public String getDistrict() {\n\t\treturn district;\n\t}", "public String getSeasonCode()\r\n\t{\r\n\t\treturn getSeasonCode( getSession().getSessionContext() );\r\n\t}", "public String getDatasourceName()\n {\n return m_dsName;\n }", "@Override\n\tpublic Collection<String> getCompanyList() {\n\t\treturn getHibernateTemplate().execute(new HibernateCallback<String, Collection<String>>(\"getCompanyList\") {\n\t\t\t@Override\n\t\t\tpublic Collection<String> doInHibernate(final Session session) {\n\t\t\t\tfinal Criteria criteria = session.createCriteria(getEntityClass());\n\t\t\t\tcriteria.setProjection(Projections.property(\"name\"));\n\t\t\t\tcriteria.addOrder(Order.asc(\"name\"));\n\t\t\t\treturn criteria.list();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public String getTransDomainId() {\n return transDomainId;\n }", "public String getSeasonGroupCode()\r\n\t{\r\n\t\treturn getSeasonGroupCode( getSession().getSessionContext() );\r\n\t}", "public String getDistrict() {\n return district;\n }", "String getOrganization();", "public IDomain[] getDomainComponents();", "@Override\n public String getFullyQualifiedNamespace() {\n return this.namespace == null ? extractFqdnFromConnectionString() : (this.namespace + \".\" + domainName);\n }", "public String getApplicationDomain()\n {\n ASPManager mgr = getASPManager();\n String curr_host = mgr.getCurrentHost();\n if(mgr.isDifferentApplicationPath())\n {\n int host_no = mgr.getCurrentHostIndex()+1;\n String[] data =Str.split((String)configfile.hosts.get(host_no+\"\"),\",\");\n \n if(!\"NONE\".equals(data[1]))\n curr_host = data[1];\n }\n\n return curr_host;\n }", "@Override\r\n\tpublic List<String> getPlexnumber() {\n\t\tList<String> list = null;\r\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery<String> cq=cb.createQuery(String.class);\r\n\t\tRoot<PlexVO> root = cq.from(PlexVO.class);\r\n\t\tcq.select(root.get(\"plex_number\"));\r\n\t\ttry{\r\n\t\t\tTypedQuery<String> tq = entityManager.createQuery(cq);\r\n\t\t\tlist=tq.getResultList();\r\n\t\t\treturn list;\r\n\t\t}catch(Exception e){\r\n\t\t\treturn list;\r\n\t\t}\r\n\t}", "@Override \n\tpublic List<Organization> getOrganizationDetailbySlcCode(Integer slcCode)\n\t\t\tthrows Exception {\n\t\treturn organizationDAO.getOrganizationDetailbySlcCode(slcCode);\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "List<OrganizationMaster> getOrganizationList();", "public static List<Domain> getDefinedDomains(Connect libvirt) {\n try {\n List<Domain> domains = new ArrayList<>();\n String[] domainNames = libvirt.listDefinedDomains();\n for (String name : domainNames) {\n domains.add(libvirt.domainLookupByName(name));\n }\n return domains;\n } catch (LibvirtException e) {\n throw new LibvirtRuntimeException(\"Unable to list defined domains\", e);\n }\n }", "public String getTotalDomainStudents() {\n return this.totalDomainStudents;\n }", "List<Company> getCompaniesByEmailDomain(String domain);", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "public String l3IsolationDomainId() {\n return this.innerProperties() == null ? null : this.innerProperties().l3IsolationDomainId();\n }", "public String getcompanyMappingLocation() {\n return companyMappingLocation;\n }", "public String getSeasonGroupCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SEASONGROUPCODE);\r\n\t}", "public String getCompanyCode() {\r\n return companyCode;\r\n }" ]
[ "0.6356161", "0.6100429", "0.60556644", "0.6048384", "0.59187984", "0.58410627", "0.5798997", "0.578683", "0.57648635", "0.5760895", "0.57480264", "0.5684201", "0.56592995", "0.56592995", "0.55870724", "0.55132705", "0.55132705", "0.5508111", "0.5421909", "0.5405762", "0.5396646", "0.53556544", "0.53455025", "0.5329266", "0.5315881", "0.53056407", "0.52995753", "0.5270845", "0.52183646", "0.520573", "0.52045697", "0.5174227", "0.51669765", "0.51446086", "0.5115642", "0.51100254", "0.5107374", "0.50543934", "0.50543934", "0.50483775", "0.4995345", "0.49908543", "0.49907333", "0.49791235", "0.49649993", "0.4956642", "0.49430412", "0.49357945", "0.49295795", "0.49282336", "0.49092045", "0.4905659", "0.48764762", "0.4860059", "0.48585603", "0.48574662", "0.4852522", "0.48507696", "0.48447368", "0.48428857", "0.48397", "0.48237047", "0.48216796", "0.48123202", "0.47920164", "0.475879", "0.47543287", "0.47312066", "0.47181782", "0.4715161", "0.4715161", "0.47012755", "0.4691075", "0.46866882", "0.46841925", "0.4672503", "0.46716374", "0.46711695", "0.46571854", "0.46523142", "0.46498242", "0.46496364", "0.46447617", "0.46352878", "0.4633463", "0.4631001", "0.46292397", "0.46260318", "0.46181098", "0.46127477", "0.461003", "0.46064457", "0.45971382", "0.45944723", "0.4590603", "0.4590603", "0.45888522", "0.45882457", "0.45826757", "0.4580666" ]
0.57380193
11
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.domain
public void setDomain(String domain) { domain = domain == null ? null : domain.trim(); setField("domain", domain); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDomain(String domain) {\r\n this.domain = domain;\r\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "public void setDomain(String value) {\n\t\tapp.setSetting(\"domain\", value);\n\t}", "protected void setDomain(String domain) {\n this.domain = domain;\n }", "public void setDomainNameValue(YangString domainNameValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n domainNameValue,\n childrenNames());\n }", "public void setDomainCd(String domainCd) {\n this.domainCd = domainCd;\n }", "public void changeDomain(String newDomain);", "public void setDomain(String domain) {\n setProperty(DOMAIN, domain);\n }", "public void setDomain(Concept _domain) { domain = _domain; }", "public String getDomainCd() {\n return this.domainCd;\n }", "public void setAcsDomain(String acsDomain) {\n this.acsDomain = acsDomain;\n }", "public final void setDomain(String domain) {\n Validate.notNull(domain, \"domain can't be NULL\");\n this.domain = domain;\n }", "public void setDomainNameValue(String domainNameValue) throws JNCException {\n setDomainNameValue(new YangString(domainNameValue));\n }", "@ZAttr(id=19)\n public Map<String,Object> setDomainName(String zimbraDomainName, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainName, zimbraDomainName);\n return attrs;\n }", "public void setCompany(final String value)\n\t{\n\t\tsetCompany( getSession().getSessionContext(), value );\n\t}", "public void setDomain(String domain) {\n this.domain = domain == null ? null : domain.trim();\n }", "public void setDomainName(java.lang.String domainName) {\r\n this.domainName = domainName;\r\n }", "@JsonProperty(\"domain\")\n public void setDomain(String domain) {\n this.domain = domain;\n }", "public void setDomainName(java.lang.String domainName) {\n this.domainName = domainName;\n }", "public String getDomainId() {\n return domain;\n }", "public final void setOrganisation(String value) {\n organisation = value;\n }", "public Long getDomain()\n\t{\n\t\treturn domain;\n\t}", "public void setDomainNm(String domainNm) {\n this.domainNm = domainNm;\n }", "public void setSeasonCode(final String value)\r\n\t{\r\n\t\tsetSeasonCode( getSession().getSessionContext(), value );\r\n\t}", "@ZAttr(id=19)\n public void setDomainName(String zimbraDomainName) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainName, zimbraDomainName);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public String getDomain() {\r\n return domain;\r\n }", "public String getDomainNm() {\n return this.domainNm;\n }", "public void setSeasonGroupCode(final String value)\r\n\t{\r\n\t\tsetSeasonGroupCode( getSession().getSessionContext(), value );\r\n\t}", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "public void setSmsDomain(String smsDomain) {\n this.smsDomain = smsDomain;\n }", "public List<String> getDomain() {\n\t\treturn null;\n\t}", "public void setDomainId(String domainId) {\n this.domainId = domainId;\n }", "public String getDomainName(){\n return this.domainName;\n }", "public void setDomainName(String domainName) {\n this.domainName = domainName == null ? null : domainName.trim();\n }", "public void setDc( String dc )\n {\n this.dc = dc;\n }", "public String getDomain() {\n\t\treturn domain;\n\t}", "public void setUWCompany(entity.UWCompany value);", "public String getDomain() {\n return domain;\n }", "public String getDomain() {\n return domain;\n }", "public String getDomainId() {\n return this.domainId;\n }", "public void setDepartmentCode(final String value)\r\n\t{\r\n\t\tsetDepartmentCode( getSession().getSessionContext(), value );\r\n\t}", "public void setDomainId(String domainId) {\n this.domainId = domainId;\n }", "public void setDistrictCodes(DistrictCodes aDistrictCodes) {\n districtCodes = aDistrictCodes;\n }", "public void setSrcCompany(String value) {\r\n setAttributeInternal(SRCCOMPANY, value);\r\n }", "public void setSeasonGroupCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SEASONGROUPCODE,value);\r\n\t}", "protected void setManagementControllerDomain() {\n \tmanagementCurrent = managementDomain;\n }", "public Long getDomainId() {\n return domainId;\n }", "public Long getDomainId() {\n return domainId;\n }", "public NcrackClient onDomain(String domain) {\n this.domain = Optional.of(domain);\n return this;\n }", "private void renameOriginalDomainConfig() {\n File domXml = getDASDomainXML();\n movedDomXml = new File(domXml.getParentFile(), \"domain.xml.moved\");\n report(\"moved-domain\", domXml.renameTo(movedDomXml));\n }", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public void setDomainId(Long domainId) {\n this.domainId = domainId;\n }", "public void setDomainId(Long domainId) {\n this.domainId = domainId;\n }", "public Domain getDomain() {\n return this.domain;\n }", "void setDomicilio(java.lang.String domicilio);", "public void setFullDomainNameValue(YangString fullDomainNameValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"full-domain-name\",\n fullDomainNameValue,\n childrenNames());\n }", "@JsonProperty(\"domain\")\n public String getDomain() {\n return domain;\n }", "public String getAcsDomain() {\n return acsDomain;\n }", "public void setSecurityDomain(final java.lang.String securityDomain)\n {\n this.securityDomain = securityDomain;\n }", "public void selectDomain(int index) {\n selectedDomain = whitelistedDomains.get(index).getID();\n selectedUsername = null; //if option for filtering by domain is selected, discard username filter\n }", "public void setDomainEntryPoint(DomainEntryPoint domainEntryPoint) {\n this.domainEntryPoint = domainEntryPoint;\n }", "public void setSeasons(final Set<Season> value)\r\n\t{\r\n\t\tsetSeasons( getSession().getSessionContext(), value );\r\n\t}", "@Autowired\n public void setDomainRepository(DomainRepository domainRepo) \n {\n this.domainRepo = domainRepo;\n }", "public void setSeasons(final SessionContext ctx, final Set<Season> value)\r\n\t{\r\n\t\tsetLinkedItems( \r\n\t\t\tctx,\r\n\t\t\ttrue,\r\n\t\t\tSslCoreConstants.Relations.DBS2SEASONRELATION,\r\n\t\t\tnull,\r\n\t\t\tvalue,\r\n\t\t\tfalse,\r\n\t\t\tfalse,\r\n\t\t\tUtilities.getMarkModifiedOverride(DBS2SEASONRELATION_MARKMODIFIED)\r\n\t\t);\r\n\t}", "public void addDomainName() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n null,\n childrenNames());\n }", "private void setServerList() {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n\n int selectedServerIdx = Integer.parseInt(mSharedPreference.getString(ExoConstants.EXO_PRF_DOMAIN_INDEX, \"-1\"));\n mSetting.setDomainIndex(String.valueOf(selectedServerIdx));\n mSetting.setCurrentServer((selectedServerIdx == -1) ? null : _serverList.get(selectedServerIdx));\n }", "public Domain getDomain() {\n return domain;\n }", "public void setDC(String dc) {\n\t\tthis.dc = dc;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_DC,null,dc);\r\n\t}", "public void setSeasonCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SEASONCODE,value);\r\n\t}", "public void setDepartmentCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, DEPARTMENTCODE,value);\r\n\t}", "public Target setDomainId(String domain) {\n if (Strings.isValid(domain)) {\n this.domain = domain;\n }\n logger.trace(\"target '{}' is under domain '{}'\", id, this.domain);\n return this;\n }", "@iri(\"http://persistent.name/rdf/2010/purl#domainOf\")\n\tvoid setPurlDomainOf(Set<? extends Domain> purlDomainOf);", "public String domainId() {\n return this.domainId;\n }", "@Override\n public String domain() {\n return null;\n }", "public MBeanDomainData(String domainName) {\n this.domainName = domainName;\n }", "public void setSrcVendors(String value) {\r\n setAttributeInternal(SRCVENDORS, value);\r\n }", "private void setSrsDimension(DirectPositionList posList, SrsDimensionInfo dimInfo, int parentDimension) throws GeometryParseException, SrsParseException {\n\t\tif (posList.isSetSrsName()) {\n\t\t\tDatabaseSrs srs = srsNameParser.getDatabaseSrs(posList.getSrsName());\n\t\t\tif (dimInfo.targetSrs == null)\n\t\t\t\tdimInfo.targetSrs = srs;\n\t\t\telse if (dimInfo.targetSrs.getSrid() != srs.getSrid())\n\t\t\t\tthrow new GeometryParseException(\"Mixing different spatial reference systems in one geometry operand is not allowed.\");\n\t\t}\n\n\t\tif (!posList.isSetSrsDimension())\n\t\t\tposList.setSrsDimension(parentDimension);\n\t\telse if (posList.getSrsDimension() == 3)\n\t\t\tdimInfo.is2d = false;\n\t}", "@ZAttr(id=212)\n public void setDomainType(ZAttrProvisioning.DomainType zimbraDomainType) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainType, zimbraDomainType.toString());\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setSubDepartmentCode(final String value)\r\n\t{\r\n\t\tsetSubDepartmentCode( getSession().getSessionContext(), value );\r\n\t}", "@Override\n\tpublic void setPattern(String domain) {\n\t\t\n\t}", "public String getDomainName() {\n return domainName;\n }", "public void setValueDs(String valueDs) {\n this.valueDs = valueDs;\n }", "@Override\n\tpublic final native String getDomain() /*-{\n return this.domain;\n\t}-*/;", "List<AdminDomain> getDomains();", "public void setJmxDomainName(String jmxDomainName) {\n\t\tthis.jmxDomainName = jmxDomainName;\n\t}", "public void setDsCode(String dsCode) {\n this.dsCode = dsCode == null ? null : dsCode.trim();\n }", "public void setCompany(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, COMPANY,value);\n\t}", "public void setJdCompany(String jdCompany) {\r\n\t\tthis.jdCompany = jdCompany;\r\n\t}", "Builder addSourceOrganization(String value);", "public Builder setCompany(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n company_ = value;\n onChanged();\n return this;\n }", "public void setCompany(String company) {\n this.company = company;\n }", "public void setAllValues(AbstractDomainObject abstractDomain)\r\n\t{\r\n\t}", "public void setSponsoringOrganizations(List<SponsoringOrganization> list) {\r\n this.sponsoringOrganizations = list;\r\n }", "@XmlElement(name = \"domain\")\n public String getDomainId() {\n return domainId;\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setMsisdn(java.lang.String param){\n localMsisdnTracker = true;\n \n this.localMsisdn=param;\n \n\n }", "@Override\n\tpublic void selectDomain(String domainName) {\t\t\t\n\t\tDomainFactory domainFactory=new DomainFactory();\n\t\tthis.problem.setDomainName(domainFactory.getDomain(domainName));\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\t\n\t\t\n\t}", "public String getDomain() {\n return getProperty(DOMAIN);\n }" ]
[ "0.5857978", "0.5734199", "0.5734199", "0.57023925", "0.5643411", "0.5607403", "0.55176973", "0.54539806", "0.54342896", "0.5400879", "0.53888553", "0.5367047", "0.5338081", "0.5280928", "0.52553475", "0.5230993", "0.5229691", "0.5171021", "0.5155738", "0.5059939", "0.5030838", "0.50260866", "0.5013266", "0.50093144", "0.5004726", "0.49938133", "0.49898806", "0.4978883", "0.49626327", "0.49616793", "0.49616793", "0.49394566", "0.49372652", "0.49168694", "0.49148685", "0.49101323", "0.48979747", "0.4887847", "0.4847035", "0.48267376", "0.48267376", "0.48033166", "0.47943708", "0.47521776", "0.47465423", "0.4738066", "0.4737863", "0.47181296", "0.47175765", "0.47175765", "0.47133154", "0.47091085", "0.470309", "0.46874017", "0.46874017", "0.46616322", "0.4653681", "0.465196", "0.46372014", "0.46333143", "0.46306357", "0.46294641", "0.4624594", "0.46205106", "0.46194315", "0.46189544", "0.4617194", "0.46169883", "0.46140566", "0.46130082", "0.45911044", "0.459027", "0.4589755", "0.4587009", "0.457374", "0.45632958", "0.4556669", "0.45528153", "0.4547603", "0.45465556", "0.45422956", "0.4520573", "0.45199847", "0.451824", "0.45181766", "0.45145372", "0.45107126", "0.45072517", "0.45019817", "0.44932455", "0.44920614", "0.44906765", "0.44856048", "0.44791377", "0.44777617", "0.44768313", "0.44733402", "0.44728392", "0.44675252", "0.44494602" ]
0.5047695
20
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.invalidate
public Date getInvalidate() { return invalidate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<CustomerLoss> selectLossCustomer() {\n\t\treturn customerDao.selectLossCustomer();\n\t}", "@Override\n\tpublic void invalidate() {\n\n\t}", "public static ArrayList<CustomerInfoBean> getUnseenAlertsForAdmin() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> list = new ArrayList<>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, soldId, customerId, salesmanId, size, status, alertID;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, createdOn, handoverAt;\r\n\t\tboolean state;\r\n\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT distinct(cs.customer_name), cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, a.appliance_GSMno, \"\r\n\t\t\t\t\t+ \"a.appliance_status, s.salesman_name, sold.payement_option, sold.sold_to_id, a.appliance_id, sold.customer_id, sold.salesman_id, cs.customer_family_size,\"\r\n\t\t\t\t\t+ \"cs.created_on, sold.product_handover,al.status,al.alerts_id FROM sold_to sold INNER JOIN customer cs ON cs.customer_id=sold.customer_id \"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON a.appliance_id=sold.appliance_id join city c on cs.customer_city=c.city_id INNER JOIN salesman s ON s.salesman_id = sold.salesman_id INNER JOIN alerts al ON al.appliance_id=sold.appliance_id WHERE al.admin_is_seen=0 ORDER BY al.status ASC;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerName = rs.getString(1);\r\n\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\tphoneNo = rs.getString(3);\r\n\t\t\t\tdistrict = rs.getString(4);\r\n\t\t\t\tmonthlyIncome = rs.getString(5);\r\n\t\t\t\tgsmNumber = rs.getString(6);\r\n\t\t\t\tstate = rs.getBoolean(7);\r\n\t\t\t\tsalesmanName = rs.getString(8);\r\n\t\t\t\trs.getBoolean(9);\r\n\t\t\t\tsoldId = rs.getInt(10);\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tcustomerId = rs.getInt(12);\r\n\t\t\t\tsalesmanId = rs.getInt(13);\r\n\t\t\t\tsize = rs.getInt(14);\r\n\t\t\t\tcreatedOn = rs.getString(15);\r\n\t\t\t\thandoverAt = rs.getString(16);\r\n\t\t\t\tstatus = rs.getInt(17);\r\n\t\t\t\talertID = rs.getInt(18);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSoldId(soldId);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setHandoverAt(handoverAt);\r\n\t\t\t\tbean.setCreatedOn(createdOn);\r\n\t\t\t\tbean.setFamilySize(size);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setAlertId(alertID);\r\n\t\t\t\tlist.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic List<SimpleObject> getTransactionDatesListForEditingWageDeduction(Integer customerId,Integer companyId) {\n\t\treturn pfRulesDao.getTransactionDatesListForEditingWageDeduction(customerId,companyId);\n\t}", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "private void invalidateData() {\n mDashboardListAdapter.invalidateData();\n }", "void setUserStatusExpired( List<Integer> listIdUser );", "public void invalidateData() {\n Log.d(TAG, \"mama MessagesListRepository invalidateData \");\n //messagesRepository.setInitialKey(null);\n messagesRepository.invalidateData();\n }", "public void invalidate() {}", "public CstCustomer toupdate(String custNo) {\n\t\tCstCustomer cstCustomer=cstCustomerDao.toupdate(custNo);\n\t\treturn cstCustomer;\n\t}", "public static ArrayList<CustomerInfoBean> getUnseenAlerts() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> list = new ArrayList<>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, soldId, customerId, salesmanId, size, status, alertID;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, createdOn, handoverAt;\r\n\t\tboolean state;\r\n\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT distinct(cs.customer_name), cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, a.appliance_GSMno, \"\r\n\t\t\t\t\t+ \"a.appliance_status, s.salesman_name, sold.payement_option, sold.sold_to_id, a.appliance_id, sold.customer_id, sold.salesman_id, cs.customer_family_size,\"\r\n\t\t\t\t\t+ \"cs.created_on, sold.product_handover,al.status,al.alerts_id FROM sold_to sold INNER JOIN customer cs ON cs.customer_id=sold.customer_id \"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON a.appliance_id=sold.appliance_id join city c on cs.customer_city=c.city_id INNER JOIN salesman s ON s.salesman_id = sold.salesman_id INNER JOIN alerts al ON al.appliance_id=sold.appliance_id WHERE al.is_seen=0 ORDER BY al.status ASC;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerName = rs.getString(1);\r\n\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\tphoneNo = rs.getString(3);\r\n\t\t\t\tdistrict = rs.getString(4);\r\n\t\t\t\tmonthlyIncome = rs.getString(5);\r\n\t\t\t\tgsmNumber = rs.getString(6);\r\n\t\t\t\tstate = rs.getBoolean(7);\r\n\t\t\t\tsalesmanName = rs.getString(8);\r\n\t\t\t\trs.getBoolean(9);\r\n\t\t\t\tsoldId = rs.getInt(10);\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tcustomerId = rs.getInt(12);\r\n\t\t\t\tsalesmanId = rs.getInt(13);\r\n\t\t\t\tsize = rs.getInt(14);\r\n\t\t\t\tcreatedOn = rs.getString(15);\r\n\t\t\t\thandoverAt = rs.getString(16);\r\n\t\t\t\tstatus = rs.getInt(17);\r\n\t\t\t\talertID = rs.getInt(18);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSoldId(soldId);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setHandoverAt(handoverAt);\r\n\t\t\t\tbean.setCreatedOn(createdOn);\r\n\t\t\t\tbean.setFamilySize(size);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setAlertId(alertID);\r\n\t\t\t\tlist.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public void invalidate() {\n\t\t\n\t}", "@Override\n\tpublic void invalidate() {\n\t\t\n\t}", "public void refreshReservations(RoomMgr rm){\n\t\tint count=0;\n\t\tfor (Reservation r : rList){\n\t\t\tif ((r.getResvStatus() == rStatus[0] || r.getResvStatus() == rStatus[1]) && r.getDateCheckIn().isBefore(LocalDate.now())){\n\t\t\t\tr.setResvStatus(rStatus[4]);\n\t\t\t\trm.assignRoom(r.getRoomNo(),0);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (count > 0)\n\t\t\tSystem.out.println(count + \" Reservations expired!\");\n\t}", "public void invalidate() {\n\t\tthis.invalidated = true;\n\t}", "void invalidateCache();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<String> SSSalesCardNoList(String customerName){\r\n\t\treturn (List<String>) getHibernateTemplate().find(\"SELECT cardNo FROM CardIssue where customerName = ? and (status='Active' or status='Matured')\",customerName);\r\n\t}", "@RequiresLock(\"SeaLock\")\r\n protected void invalidate_internal() {\n }", "public void setInvalidate(Date invalidate) {\n\t\tsetField(\"invalidate\", invalidate);\n\t}", "public void removeClockFromStock(Clock removedClock);", "@Override\r\n public void invalidate() {\r\n }", "public void invalidateCache(){\n\t\tfor (Realm realm : realms) {\n\t\t\tif(realm instanceof IClearableRealmCache){\n\t\t\t\tIClearableRealmCache ar = (IClearableRealmCache)realm;\n\t\t\t\tar.clearAllCaches();\n\t\t} \n\t\t\t\n\t\t}\n\t}", "private void invalidateCache() {\n\t}", "public static ArrayList<CustomerInfoBean> getCutomers_notinterested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id join city c on cs.customer_city=c.city_id WHERE cs.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public void invalidate() {\n/* 327 */ if (isValid()) {\n/* 328 */ invalidateSD();\n/* 329 */ super.invalidate();\n/* */ } \n/* */ }", "public static ArrayList<CustomerInfoBean> getCutomers_Accepted() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id WHERE e.status=1 or e.status=6;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public int setInactiveForNoRebill();", "public String updateTimesheetRow() {\n\t\tboolean hasPlaceholder = false;\n\t\tTimesheetRow tempTsr = null;\n\t\tfor (TimesheetRow ts : timesheetRowList) {\n\t\t\tif (!(ts.getCompPrimaryKey().getProjectId()==0)) {\n\t\t\t\tif(service.merge(ts) == false) {\n\t\t\t\t\ttempTsr = ts;\n\t\t\t\t};\n\t\t\t}else {\n\t\t\t\thasPlaceholder = true;\n\t\t\t}\n\t\t}\n\t\tif(tempTsr != null) {\n\t\t\t//timesheetRowList.remove(tempTsr);\n\t\t}\n\t\tif (!hasPlaceholder) {\n\t\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId())); //this breaks the program somehow\n\t\t}\n\t\t//return \"CurrentTimesheetView\"; //after add/update, redirect to view page\n\t\treturn \"\";\n\t}", "protected void invalidate() {\n\n fireEvent();\n }", "@Test\n public void getTimeListsByMonth(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertNotNull(timeListResource.getTimeListsByMonth(1990,0));\n\n //clean up\n timeListDAO.removeTimeList(1990,0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "public static ArrayList<CustomerInfoBean> getDoCutomers_inactive(\r\n\t\t\tint districtId) {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status, familySize;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city_district cd ON cs.customer_city=cd.city_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id WHERE cd.district_id=\"\r\n\t\t\t\t\t+ districtId\r\n\t\t\t\t\t+ \" AND a.appliance_status =0 GROUP BY cs.customer_id\\n\";\r\n\t\t\tStatement st = con.prepareStatement(query);\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\tSystem.err.println(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tfamilySize = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setFamilySize(familySize);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public boolean updateCustomer() {\n\t\treturn false;\r\n\t}", "public static ArrayList<CustomerInfoBean> getCutomers_onInActive() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,a.appliance_status, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE a.appliance_status=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public void refresh() {\n OfficerDailyReportService officerService = new OfficerDailyReportService(sessionBean.getCompanyId());\n getClientDailyReports().clear();\n EquipmentService equipService = new EquipmentService(sessionBean.getCompanyId());\n HashMap<Integer, ClientEquipment> clientEquipHash = new HashMap<Integer, ClientEquipment>();\n try {\n if (sessionBean.getClients() != null) {\n ArrayList<Integer> clientIds = new ArrayList<Integer>();\n for (int c = 0; c < sessionBean.getClients().size(); c++) {\n clientIds.add(sessionBean.getClients().get(c).getClientId());\n }\n getClientDailyReports().addAll(officerService.getDailyReportsForClientsWithText(clientIds, numberOfDaysToGoBack, false));\n\n ArrayList<OfficerDailyReport> reports = getClientDailyReports();\n \n HashMap<Integer, Integer> clientEquipmentIds = new HashMap<Integer, Integer>();\n for (int c = 0; c < reports.size(); c++) {\n clientEquipmentIds.put(reports.get(c).getClientEquipmentId(), reports.get(c).getClientEquipmentId());\n }\n \n ArrayList<Integer> fetchClientEquipIds = new ArrayList<Integer>();\n Iterator<Integer> keyIterator = clientEquipmentIds.keySet().iterator();\n while (keyIterator.hasNext()) {\n fetchClientEquipIds.add(keyIterator.next());\n }\n ArrayList<ClientEquipment> equip = equipService.getClientEquipmentByIds(fetchClientEquipIds);\n for (int e = 0; e < equip.size(); e++) {\n clientEquipHash.put(equip.get(e).getClientEquipmentId(), equip.get(e));\n }\n \n for (int r = 0; r < getClientDailyReports().size(); r++) {\n getClientDailyReports().get(r).setClientEquipment(clientEquipHash.get(getClientDailyReports().get(r).getClientEquipmentId()));\n }\n logInLogOut = LogInLogOut.generateData(clientDailyReports, sessionBean.getCompanyId());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void invalidate(S key) {\n\t\t\n\t}", "public final void invalidate() {\r\n synchronized (f_seaLock) {\r\n if (!f_valid) {\r\n return;\r\n }\r\n invalidate_internal();\r\n\r\n f_valid = false;\r\n // inform deponent drops\r\n for (Iterator<Drop> i = f_deponents.iterator(); i.hasNext();) {\r\n Drop deponent = i.next();\r\n deponent.removeDependent(this);\r\n }\r\n f_deponents.clear(); // consistent state\r\n // inform dependents\r\n for (Iterator<Drop> i = f_dependents.iterator(); i.hasNext();) {\r\n Drop dependent = i.next();\r\n dependent.removeDeponent(this);\r\n }\r\n f_dependents.clear(); // consistent state\r\n f_mySea.notify(this, DropEvent.Invalidated);\r\n }\r\n }", "@SkipValidation\r\n\tpublic String editMR() throws Exception{\r\n\t\t\r\n\t\tSystem.out.println(\"In Edit Action Class---->>>> In editMR Method------>emp_id = \"+addMRPojo.getEmp_id());\r\n\t\tterritoryListValueRemoved = dao_impl.fetchTerritory(); \r\n\t\t\r\n\t\t\r\n\t\tmrEditList = dao_impl.editMR(addMRPojo);\t\r\n\t\tbloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t\r\n//Set date from database to string type and set the selected list of territory for edit and view page\r\n\t\t\r\n\t\tIterator<AddMRActionPojo> dsd= mrEditList.iterator();\r\n\t\twhile(dsd.hasNext()){\r\n\t\t\tAddMRActionPojo actionPojo=\t(AddMRActionPojo) dsd.next();\r\n\t\t\t//System.out.println(\"check\"+actionPojo.getDoj_db());\r\n/*\r\n * Set the date to string type \r\n */\r\n\t\t\t\r\n\t\t\tif(actionPojo.getDoj_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDoj(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDoj_db()));\r\n\t\t\t\t//addMRPojo.setDoj(actionPojo.getDoj());\r\n\t\t\t}\r\n\t\t\tif(actionPojo.getDob_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDob(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDob_db()));\r\n\t\t\t\t//addMRPojo.setDob(actionPojo.getDob());\r\n\t\t\t}\r\n\t\t\t\r\n/*\r\n * Populate the terrValues from the List which contains DB info of MR\r\n\t */\r\n\t\t\ttry{\r\n\t\t\t\tString tempTer_id = actionPojo.getTer_id();\r\n\t\t\t\tString delimiter = \",\"; \t\t\t\t\t\t//To classify string from the DB\r\n\t\t\t\t\r\n\t\t\t\tif(tempTer_id != null)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = tempTer_id.split(delimiter);\t\t\t\t//split method is used to split the string value with a string regex (here it is delimiter) coming from DB as in DB if multiple select value is stored then In DB it is stored as one string separated by a comma(,).\r\n\t\t\t\t\tfor(int i =0 ; i < temp.length ; i++){\t\t\t//for loop to check only\r\n\t\t\t\t\t\tSystem.out.println(\"temp[\"+i+\"] ---> \"+temp[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tterrValues = Arrays.asList(temp);\t\t\t\t//Convert string array to list\r\n\t\t\t\t\tSystem.out.println(\" --> After converting String Array to List <--\");\r\n\t\t\t\t\tfor (String e : terrValues) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t { \r\n\t\t\t\t System.out.println(\"terrValues : \"+e); \r\n\t\t\t\t } \r\n\t\t\t\t\t\r\n\t\t\t\t\t territoryListValueInEdit = dao_impl.searchValueOfTerr(terrValues);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*for (AddTerritoryActionPojo a : territoryListValueInEdit) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tSystem.out.println(\"territoryListValueInEdit : \"+a.getTer_id()+\" --> \"+a.getTerritory()); \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 /*\r\n * Logic to remove item from one list to another\r\n */\r\n\t\t for(Iterator<AddTerritoryActionPojo> itr = territoryListValueRemoved.iterator();itr.hasNext();) \r\n\t\t { \r\n\t\t AddTerritoryActionPojo element = itr.next(); \r\n\t\t \r\n\t\t for(Iterator<AddTerritoryActionPojo> itrWhichHasToBeRemoved = territoryListValueInEdit.iterator();itrWhichHasToBeRemoved.hasNext();) \r\n\t\t\t { \r\n\t\t\t AddTerritoryActionPojo elementToRemove = itrWhichHasToBeRemoved.next(); \r\n\t\t\t if(element.getTer_id().trim().equals(elementToRemove.getTer_id().trim())) \r\n\t\t\t { \r\n\t\t\t itr.remove();\r\n\t\t\t System.out.println(\"element --> \"+element.getTer_id());\r\n\t\t\t System.out.println(\"elementToRemove --> \"+elementToRemove.getTer_id());\r\n\t\t\t } \r\n\t\t\t }\r\n\t\t } \r\n\t\t /* for (AddTerritoryActionPojo b : territoryListValueRemoved) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tSystem.out.println(\"territoryListValueRemoved : \"+b.getTer_id()+\" --> \"+b.getTerritory()); \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}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.out.println(\"Exception While converting multiple territory to single territory\"+e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn \"SUCCESS\";\r\n\t}", "@Override\n\tpublic int updateMonth(Month11DTO mon) {\n\t\treturn getSqlSession().update(\"monUpdate\", mon);\n\t}", "void onInvalidatedModel();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<String> SSRCardNoSet(String customerName,String SchemeName){\r\n\t\tObject[] param = {customerName,SchemeName};\r\n\t\treturn (List<String>) getHibernateTemplate().find(\"SELECT DISTINCT cardNo FROM CardIssue where customerName = ? and schemeName = ? and (status='Active')\",param);\r\n\t}", "private void invalidate() {\n\r\n\t\tadapter = new ArrayAdapter<String>(this,\r\n\t\t\t\tandroid.R.layout.simple_list_item_1, jobItems);\r\n\r\n\t\tListView listview = (ListView) findViewById(R.id.ls_01);\r\n\t\tlistview.setAdapter(adapter);\r\n\r\n\t}", "public static ArrayList<CustomerInfoBean> getCutomers_notinterested_Super() {\r\n\t\tCustomerInfoBean bean = null;\r\n\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city_district cd ON cs.customer_city=cd.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id WHERE e.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tStatement st = con.prepareStatement(query);\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\tSystem.err.println(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public void renewEmployeesList(){\n employees = new ArrayList<>();\n }", "public void updateResult(){\n String lastUpdateDate = User.getLastUpdateDate(getApplicationContext());\n CheckListResultDBHelper dbHelper = new CheckListResultDBHelper(this);\n dbHelper.getReadableDatabase();\n int cnt = User.getCurrentCheckListCount(getApplicationContext());\n Log.d(\"TEST\", \"start date : \" + User.getStartDate(getApplicationContext()));\n Log.d(\"TEST\", \"last update date : \" + lastUpdateDate + \", cnt : \" + cnt);\n dbHelper.close();\n\n if(!lastUpdateDate.equals(\"\") && cnt > 0 && !lastUpdateDate.equals(nowDate)){\n ArrayList<String> list = User.getBetweenDate(lastUpdateDate, nowDate);\n save(list, null, null);\n }\n }", "@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}", "private List<String> needRefresh(){\n\t\treturn null;\n\t}", "@FXML\n void OnActionMonthlyAppointments(ActionEvent event) {\n //MSAppointmentsTableView.getItems().clear();\n getTableData();\n MSAppointmentsTableView.setItems(dbQuery.getMonthlyAppointments());\n }", "@Scheduled(fixedDelay = 60000)\n @Transactional\n public void run() {\n try {\n List<ClientLoanDetails> oldDetails = clientLoanDetailsDao.findOldEntity();\n oldDetails.forEach(clientLoanDetailsDao::delete);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void removeOldRecords();", "public void setCalendarForModel(Calendar calend) {\n this.cal = calend;\n //fireTableDataChanged();\n refresh();\n}", "void invalidate();", "void invalidate();", "@Override\n\tpublic void updateCustomerStatus() {\n\t\tfor(int i=0;i<customersInLine.size();i++) {\n\t\t\tif((customersInLine.get(i).getArrival() + customersInLine.get(i).getPatience()) <= this.getCurrentTurn()) {\n\t\t\t\tcustomersInLine.remove(i);\n\t\t\t\tcustomersInRestaurant--;\n\t\t\t\tunsatisfiedCustomers++;\n\t\t\t\ti=-1;\n\t\t\t}\n\t\t}\n\t}", "public void k() {\n List findAll = DataSupport.findAll(CateListCache.class, new long[0]);\n final String str = \"\";\n if (com.e23.ajn.d.e.b(findAll)) {\n str = ((CateListCache) findAll.get(0)).getUpdatetime();\n }\n DataSupport.deleteAllAsync(CateListCache.class, new String[0]).listen(new UpdateOrDeleteCallback() {\n public void onFinish(int i) {\n new Handler().postDelayed(new Runnable() {\n public void run() {\n CateListCache cateListCache = new CateListCache();\n cateListCache.setUpdatetime(str);\n for (CateBean cateBean : ProgramManagementFragment.this.n) {\n cateBean.clearSavedState();\n cateBean.save();\n cateListCache.getList().add(cateBean);\n }\n for (CateBean cateBean2 : ProgramManagementFragment.this.o) {\n cateBean2.clearSavedState();\n cateBean2.save();\n cateListCache.getList().add(cateBean2);\n }\n cateListCache.save();\n }\n }, 1000);\n }\n });\n }", "List<Integer> getIdUsersWithExpiredLifeTimeList( Timestamp currentTimestamp );", "@Override\n\tpublic boolean invalidateIt() {\n\t\treturn false;\n\t}", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "void invalidateOtherServersInSameDataCenter(InvalidationEvent event);", "void invalidate() {\n\t\tinvalid = true;\n\t}", "List<Integer> getIdUsersWithExpiredPasswordsList( Timestamp currentTimestamp );", "@Override\n\tpublic void invalidateAll() {\n\t\t\n\t}", "@Test\n public void getShiftListByDate(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListsByDate(new Date(2017-01-01)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "void refreshRealmOnChange(CachingRealm realm);", "public static ArrayList<CustomerInfoBean> getCutomers_onWait() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=0;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<String> SSCCardNoSet(String customerName,String SchemeName){\r\n\t\tObject[] param = {customerName,SchemeName};\r\n\t\treturn (List<String>) getHibernateTemplate().find(\"SELECT DISTINCT cardNo FROM CardIssue where customerName = ? and schemeName = ? and (status='Active' or status='Matured')\",param);\r\n\t}", "public String dissociaAuditors(){\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tDatiUtente user = (DatiUtente) request.getSession().getAttribute(\"DatiUtente\");\n\t\t\n\t\tlong idUtente=getModel().getIdAuditors();\n\t\tlong idAccesso=user.getIdSessione();\n\t\t\n\t\tAuAssUtenteSessione ass = auditService.getAssociazioneAuditors(idAccesso, idUtente);\n\t\tass.setIdSessione(idAccesso);\n\t\tass.setIdUtente(idUtente);\n\t\tass.setDataFine(new Date());\n\t\tAuAssUtenteSessione managed=(AuAssUtenteSessione)auditService.salva(ass);\n\t\t\n\t\t//auditService.dissociaAuditors(idAccesso, idUtente);\n\t\t\n\t\treturn SUCCESS;\n\t}", "private void refreshList() {\n\t\tfor (int i = 0; i < service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).size(); i++) {\n\t\t\ttimesheetRowList.add(service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).get(i));\n\t\t}\n\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId()));\n\t}", "private void invalidateVSacSession(){\n\t \tMatContext.get().getVsacapiServiceAsync().inValidateVsacUser(new AsyncCallback<Void>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(Void result) {\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t}", "public List<Boardreservation> getBoardReservations(int boardID);", "public void delete(String custNo) {\n\t\tcstCustomerDao.update(custNo);\n\t\t\n\t}", "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}", "@CacheEvict(allEntries = true, cacheNames = { \"airly_now\", \"history\" })\n @Scheduled(fixedDelay = 30000)\n public void reportCacheEvict() {\n }", "public static ArrayList<CustomerInfoBean> getCutomers_onCash() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,sld.payement_option, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" WHERE sld.payement_option=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "private void endCustomer(MyCustomer customer){ \n\tDo(\"Table \" + customer.tableNum + \" is cleared!\");\n\thost.msgTableIsFree(customer.tableNum);\n\tcustomers.remove(customer);\n\tstateChanged();\n }", "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "public void eliminarMateria() {\n ejbFacade.remove(materia);\n items = ejbFacade.findAll();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.update(\"MateriaListForm:datalist\");\n requestContext.execute(\"PF('Confirmacion').hide()\");\n departamento = new Departamento();\n materia = new Materia();\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se eliminó con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n requestContext.update(\"MateriaListForm\");\n }", "private final void m43720b() {\n m43714a().edit().remove(ManagerWebServices.PARAM_LAST_ACTIVITY_DATE).apply();\n }", "private synchronized void invalidate() {\n MoreCloseables.closeQuietly(mNewCallsCursor);\n MoreCloseables.closeQuietly(mOldCallsCursor);\n mNewCallsCursor = null;\n mOldCallsCursor = null;\n }", "public void update() {\n\t\trl = DBManager.getReservationList();\n\t}", "@Override\n public void removeCheckInDates() {\n\n List<String> theDatesToRemove = new ArrayList<>(checkInTimeList.getSelectedValuesList());\n DefaultListModel theModel = (DefaultListModel)checkInTimeList.getModel();\n \n //Remote the dates\n for( String aStr : theDatesToRemove )\n theModel.removeElement(aStr); \n \n }", "private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\n\t\tpackageMapping.clear();\n\t\tvalidCache = false;\n\t}", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "public static ArrayList<CustomerInfoBean> getDoCutomers_rejected(\r\n\t\t\tint districtId) {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status, familySize;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city_district cd ON cs.customer_city=cd.city_id\\n\"\r\n\t\t\t\t\t+ \" \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id WHERE cd.district_id=\"\r\n\t\t\t\t\t+ districtId\r\n\t\t\t\t\t+ \" AND cs.status=2 GROUP BY cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" \";\r\n\t\t\tStatement st = con.prepareStatement(query);\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\tSystem.err.println(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tfamilySize = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setFamilySize(familySize);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "List<ExamPackage> getListExpired();", "public native void invalidateCache() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.invalidateCache();\r\n }-*/;", "public void invalidateSessionobjects(){\n\n\t}", "public void stopUpdates();", "@Override\n\tpublic int updateCustomerLossState(CustomerLoss customerLoss) {\n\t\treturn customerDao.updateCustomerLossState(customerLoss);\n\t}", "long getChangeset();", "@Override\n\tpublic List<Customer> getCustomerList() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query=session.createQuery(\"Select c from Customer c\");\n\t\tList<Customer> list=(List<Customer>)query.getResultList();\n\t\t/*\n\t\t * Customer customer = (Customer)session.load(Customer.class,customerId);\n\t\t * */\n\t\treturn list;\n\t}", "@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}", "@Override\r\n\tpublic int fetchYearOfAnEmployee(int clockNum) {\n\t\treturn exemptTeamMemberDAO.fetchYearOfAnEmployee(clockNum);\r\n\t}", "public String aceptarEntregaMateriales_action() {\n try {\n\n\n if (codEstadoSolicitudMateriales.equals(\"2\") || codEstadoSolicitudMateriales.equals(\"3\")) {\n String consulta = \"UPDATE SOLICITUDES_MANTENIMIENTO SET COD_ESTADO_SOLICITUD_MANTENIMIENTO = '5'\" +\n \" WHERE COD_SOLICITUD_MANTENIMIENTO = '\" + codSolicitudMantenimiento + \"'\";\n System.out.println(\"consulta \"+consulta);\n Statement st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n st.executeUpdate(consulta);\n st.close();\n\n //redireccion a la pagina principal\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext ext = facesContext.getExternalContext();\n ext.redirect(\"navegador_solicitud_mantenimiento_usuario.jsf\");\n\n } else {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n facesContext.addMessage(alert.getClientId(facesContext),\n new FacesMessage(FacesMessage.SEVERITY_INFO, itemIteracionMateriales.getNombreMaterial() +\n \" no hubo entrega de materiales \", \"\"));\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public Object getUpdatedEmployees() {\n\t\treturn null;\n\t}", "public String updateRowCount() {\n return null;\n }", "public void refreshSalesFeedbackTable(String gasStationS)\r\n\t{\r\n\t\tResultSet rs = null;\r\n\t\tArrayList<String> brr = new ArrayList<>();\r\n\t\tObservableList<SaleReport> oblist = FXCollections.observableArrayList();\r\n\t\t\r\n\t\tString usersNumber = \"0\";\r\n\t\tInteger totalCost = 0;\r\n\t\tString discountOfSale = \"0\";\r\n\t\t\r\n\t\tString selectQuery = \"select distinct saleCode FROM salesReport WHERE gasStation = ?\";\r\n\t\tbrr.add(gasStationS);\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClientUI.chat.accept(\"\");\r\n\t\t\t\r\n\t\t\trs = ChatClient.selectWithParameters(selectQuery, brr);\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tusersNumber = getNumberOfSaleUsers(rs.getString(\"saleCode\"));\r\n\t\t\t\ttotalCost = getTotalSaleCost(rs.getString(\"saleCode\"));\r\n\t\t\t\tdiscountOfSale = getSaleDiscount(rs.getString(\"saleCode\")) + \"%\";\r\n\t\t\t\r\n\t\t\t\tif( !rs.getString(\"saleCode\").equals(\"0\") )\r\n\t\t\t\t{\r\n\t\t\t\t\toblist.add(new SaleReport(rs.getString(\"saleCode\"), usersNumber, totalCost, discountOfSale));\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error : MarketingManagerReports : client server problem\");\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tsaleCodeHeadline.setCellValueFactory(new PropertyValueFactory<SaleReport, String>(\"saleCode\"));\r\n\t\tnumberOfUsersHeadline.setCellValueFactory(new PropertyValueFactory<SaleReport, String>(\"username\"));\r\n\t\ttotalIncomeHeadline.setCellValueFactory(new PropertyValueFactory<SaleReport, Integer>(\"cost\"));\r\n\t\tsaleDiscountHeadline.setCellValueFactory(new PropertyValueFactory<SaleReport, String>(\"gasStation\"));\r\n\t\t\r\n\t\tsalesFeedbackTable.setItems(oblist);\r\n\t}", "List<Materia> listarMateriasxCarrera(Integer fcdcId, Integer crrId);", "public ArrayList<Customer> getservedCustomers()\r\n {\r\n return this.servedCustomers;\r\n }", "@RequestMapping(\"reset\")\n\tpublic @ResponseBody\n\tString resetDB() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tList<SwapItem> items = dao.findAll();\n\t\tfor (SwapItem item : items) {\n\t\t\tint result = dao.delete(item);\n\t\t\tbuffer.append(result).append(\" / \");\n\t\t}\n\t\treturn buffer.toString();\n\t}", "public Date getLstLostDate() {\n return lstLostDate;\n }" ]
[ "0.48585698", "0.47312596", "0.46802244", "0.4670175", "0.4665263", "0.46597022", "0.45854592", "0.45839268", "0.45781153", "0.45708632", "0.4568753", "0.45681214", "0.4567899", "0.4562039", "0.45609027", "0.45159", "0.4515077", "0.45139337", "0.4501089", "0.44739377", "0.44734302", "0.4466413", "0.44370112", "0.44235447", "0.44234326", "0.44112286", "0.43964452", "0.4382747", "0.4382095", "0.4373915", "0.43697208", "0.43424636", "0.43418196", "0.4337946", "0.43324333", "0.43219763", "0.432033", "0.43189958", "0.43166065", "0.43144333", "0.4290083", "0.42892858", "0.42887628", "0.4286752", "0.4282474", "0.42763638", "0.4269017", "0.42605123", "0.42593396", "0.4257539", "0.4251023", "0.4251023", "0.42433667", "0.4241188", "0.4234437", "0.42325845", "0.42063877", "0.4205206", "0.41847265", "0.4183953", "0.4182829", "0.41821197", "0.41763175", "0.41757527", "0.41705534", "0.41684923", "0.41678625", "0.41574466", "0.415737", "0.41481072", "0.41458836", "0.41420224", "0.41384313", "0.41376528", "0.4125946", "0.41203073", "0.41196033", "0.41123226", "0.41118923", "0.41055983", "0.40990338", "0.4098441", "0.40981135", "0.40959328", "0.40878966", "0.4084249", "0.40826124", "0.40752068", "0.40665892", "0.40652916", "0.40647468", "0.4064681", "0.40630367", "0.40585992", "0.40557903", "0.4055216", "0.4051599", "0.40439555", "0.40428016", "0.40420762" ]
0.45977142
6
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.invalidate
public void setInvalidate(Date invalidate) { setField("invalidate", invalidate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void invalidateData() {\n mDashboardListAdapter.invalidateData();\n }", "public void invalidate() {\n\t\tthis.invalidated = true;\n\t}", "@Override\n\tpublic void invalidate() {\n\n\t}", "void setUserStatusExpired( List<Integer> listIdUser );", "public void invalidateData() {\n Log.d(TAG, \"mama MessagesListRepository invalidateData \");\n //messagesRepository.setInitialKey(null);\n messagesRepository.invalidateData();\n }", "public void invalidate() {\n\t\t\n\t}", "public void refreshReservations(RoomMgr rm){\n\t\tint count=0;\n\t\tfor (Reservation r : rList){\n\t\t\tif ((r.getResvStatus() == rStatus[0] || r.getResvStatus() == rStatus[1]) && r.getDateCheckIn().isBefore(LocalDate.now())){\n\t\t\t\tr.setResvStatus(rStatus[4]);\n\t\t\t\trm.assignRoom(r.getRoomNo(),0);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (count > 0)\n\t\t\tSystem.out.println(count + \" Reservations expired!\");\n\t}", "public final void invalidate() {\r\n synchronized (f_seaLock) {\r\n if (!f_valid) {\r\n return;\r\n }\r\n invalidate_internal();\r\n\r\n f_valid = false;\r\n // inform deponent drops\r\n for (Iterator<Drop> i = f_deponents.iterator(); i.hasNext();) {\r\n Drop deponent = i.next();\r\n deponent.removeDependent(this);\r\n }\r\n f_deponents.clear(); // consistent state\r\n // inform dependents\r\n for (Iterator<Drop> i = f_dependents.iterator(); i.hasNext();) {\r\n Drop dependent = i.next();\r\n dependent.removeDeponent(this);\r\n }\r\n f_dependents.clear(); // consistent state\r\n f_mySea.notify(this, DropEvent.Invalidated);\r\n }\r\n }", "public void invalidate() {}", "@Override\n\tpublic void invalidate() {\n\t\t\n\t}", "public void invalidate() {\n/* 327 */ if (isValid()) {\n/* 328 */ invalidateSD();\n/* 329 */ super.invalidate();\n/* */ } \n/* */ }", "public void invalidateCache(){\n\t\tfor (Realm realm : realms) {\n\t\t\tif(realm instanceof IClearableRealmCache){\n\t\t\t\tIClearableRealmCache ar = (IClearableRealmCache)realm;\n\t\t\t\tar.clearAllCaches();\n\t\t} \n\t\t\t\n\t\t}\n\t}", "public void setCalendarForModel(Calendar calend) {\n this.cal = calend;\n //fireTableDataChanged();\n refresh();\n}", "public void renewEmployeesList(){\n employees = new ArrayList<>();\n }", "@RequiresLock(\"SeaLock\")\r\n protected void invalidate_internal() {\n }", "@Override\r\n public void invalidate() {\r\n }", "public void unAssignFromAllSeasons() {\n for (Season season : getSeasons()) {\n season.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllSeasons(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "protected void invalidate() {\n\n fireEvent();\n }", "void invalidateOtherServersInSameDataCenter(InvalidationEvent event);", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "private void invalidate() {\n\r\n\t\tadapter = new ArrayAdapter<String>(this,\r\n\t\t\t\tandroid.R.layout.simple_list_item_1, jobItems);\r\n\r\n\t\tListView listview = (ListView) findViewById(R.id.ls_01);\r\n\t\tlistview.setAdapter(adapter);\r\n\r\n\t}", "@Override\n\tpublic void invalidateAll() {\n\t\t\n\t}", "@FXML\n void OnActionMonthlyAppointments(ActionEvent event) {\n //MSAppointmentsTableView.getItems().clear();\n getTableData();\n MSAppointmentsTableView.setItems(dbQuery.getMonthlyAppointments());\n }", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "private void monthChanged(int oldMonthValue, int oldYearValue) {\r\n updateControlsFromTable();\r\n\r\n // fire property change\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, getMonth());\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n\r\n // clear selection when changing the month in view\r\n calendarTable.getSelectionModel().clearSelection();\r\n\r\n calendarTable.repaint();\r\n }", "private void updateRefreshListDate(int movieType){\n //set the date when the list needs to be refreshed, tomorrow\n Long dateRefresh = DateManager.addDaysToDate(1).getTime();\n\n //save refresh date into the database\n mRefreshValet.setRefresh(movieType, dateRefresh);\n\n //save refresh date into local buffer\n mRefreshStaff.setRefreshDate(movieType, dateRefresh);\n }", "private void invalidateCache() {\n\t}", "public CstCustomer toupdate(String custNo) {\n\t\tCstCustomer cstCustomer=cstCustomerDao.toupdate(custNo);\n\t\treturn cstCustomer;\n\t}", "@Test\n public void getTimeListsByMonth(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertNotNull(timeListResource.getTimeListsByMonth(1990,0));\n\n //clean up\n timeListDAO.removeTimeList(1990,0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "public void delete(String custNo) {\n\t\tcstCustomerDao.update(custNo);\n\t\t\n\t}", "@Override\n\tpublic int updateMonth(Month11DTO mon) {\n\t\treturn getSqlSession().update(\"monUpdate\", mon);\n\t}", "private void endCustomer(MyCustomer customer){ \n\tDo(\"Table \" + customer.tableNum + \" is cleared!\");\n\thost.msgTableIsFree(customer.tableNum);\n\tcustomers.remove(customer);\n\tstateChanged();\n }", "@Override\n\tpublic void updateCustomerStatus() {\n\t\tfor(int i=0;i<customersInLine.size();i++) {\n\t\t\tif((customersInLine.get(i).getArrival() + customersInLine.get(i).getPatience()) <= this.getCurrentTurn()) {\n\t\t\t\tcustomersInLine.remove(i);\n\t\t\t\tcustomersInRestaurant--;\n\t\t\t\tunsatisfiedCustomers++;\n\t\t\t\ti=-1;\n\t\t\t}\n\t\t}\n\t}", "public void removeClockFromStock(Clock removedClock);", "public void setLstLostDate(Date lstLostDate) {\n this.lstLostDate = lstLostDate;\n }", "void refreshRealmOnChange(CachingRealm realm);", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "private synchronized void invalidate() {\n MoreCloseables.closeQuietly(mNewCallsCursor);\n MoreCloseables.closeQuietly(mOldCallsCursor);\n mNewCallsCursor = null;\n mOldCallsCursor = null;\n }", "@Transactional\n\t@Modifying(clearAutomatically = true)\n\t@Query(\"UPDATE Users t SET t.year =:newYear WHERE t.id =:currentUser\")\n void editYear(@Param(\"newYear\") String newYear, @Param(\"currentUser\") Integer currentUser);", "@Scheduled(fixedDelay = 60000)\n @Transactional\n public void run() {\n try {\n List<ClientLoanDetails> oldDetails = clientLoanDetailsDao.findOldEntity();\n oldDetails.forEach(clientLoanDetailsDao::delete);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public int setInactiveForNoRebill();", "void invalidateOtherDataCenters(InvalidationEvent event);", "void invalidateCache();", "@Test\n public void updateShiftList(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertTrue(shiftListResource.updateShiftlist(new ShiftList(\"dummy3\", 1, true, new Date(2015-01-02), 50, false)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 1, \"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n }", "@SkipValidation\r\n\tpublic String editMR() throws Exception{\r\n\t\t\r\n\t\tSystem.out.println(\"In Edit Action Class---->>>> In editMR Method------>emp_id = \"+addMRPojo.getEmp_id());\r\n\t\tterritoryListValueRemoved = dao_impl.fetchTerritory(); \r\n\t\t\r\n\t\t\r\n\t\tmrEditList = dao_impl.editMR(addMRPojo);\t\r\n\t\tbloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t\r\n//Set date from database to string type and set the selected list of territory for edit and view page\r\n\t\t\r\n\t\tIterator<AddMRActionPojo> dsd= mrEditList.iterator();\r\n\t\twhile(dsd.hasNext()){\r\n\t\t\tAddMRActionPojo actionPojo=\t(AddMRActionPojo) dsd.next();\r\n\t\t\t//System.out.println(\"check\"+actionPojo.getDoj_db());\r\n/*\r\n * Set the date to string type \r\n */\r\n\t\t\t\r\n\t\t\tif(actionPojo.getDoj_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDoj(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDoj_db()));\r\n\t\t\t\t//addMRPojo.setDoj(actionPojo.getDoj());\r\n\t\t\t}\r\n\t\t\tif(actionPojo.getDob_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDob(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDob_db()));\r\n\t\t\t\t//addMRPojo.setDob(actionPojo.getDob());\r\n\t\t\t}\r\n\t\t\t\r\n/*\r\n * Populate the terrValues from the List which contains DB info of MR\r\n\t */\r\n\t\t\ttry{\r\n\t\t\t\tString tempTer_id = actionPojo.getTer_id();\r\n\t\t\t\tString delimiter = \",\"; \t\t\t\t\t\t//To classify string from the DB\r\n\t\t\t\t\r\n\t\t\t\tif(tempTer_id != null)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = tempTer_id.split(delimiter);\t\t\t\t//split method is used to split the string value with a string regex (here it is delimiter) coming from DB as in DB if multiple select value is stored then In DB it is stored as one string separated by a comma(,).\r\n\t\t\t\t\tfor(int i =0 ; i < temp.length ; i++){\t\t\t//for loop to check only\r\n\t\t\t\t\t\tSystem.out.println(\"temp[\"+i+\"] ---> \"+temp[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tterrValues = Arrays.asList(temp);\t\t\t\t//Convert string array to list\r\n\t\t\t\t\tSystem.out.println(\" --> After converting String Array to List <--\");\r\n\t\t\t\t\tfor (String e : terrValues) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t { \r\n\t\t\t\t System.out.println(\"terrValues : \"+e); \r\n\t\t\t\t } \r\n\t\t\t\t\t\r\n\t\t\t\t\t territoryListValueInEdit = dao_impl.searchValueOfTerr(terrValues);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*for (AddTerritoryActionPojo a : territoryListValueInEdit) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tSystem.out.println(\"territoryListValueInEdit : \"+a.getTer_id()+\" --> \"+a.getTerritory()); \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 /*\r\n * Logic to remove item from one list to another\r\n */\r\n\t\t for(Iterator<AddTerritoryActionPojo> itr = territoryListValueRemoved.iterator();itr.hasNext();) \r\n\t\t { \r\n\t\t AddTerritoryActionPojo element = itr.next(); \r\n\t\t \r\n\t\t for(Iterator<AddTerritoryActionPojo> itrWhichHasToBeRemoved = territoryListValueInEdit.iterator();itrWhichHasToBeRemoved.hasNext();) \r\n\t\t\t { \r\n\t\t\t AddTerritoryActionPojo elementToRemove = itrWhichHasToBeRemoved.next(); \r\n\t\t\t if(element.getTer_id().trim().equals(elementToRemove.getTer_id().trim())) \r\n\t\t\t { \r\n\t\t\t itr.remove();\r\n\t\t\t System.out.println(\"element --> \"+element.getTer_id());\r\n\t\t\t System.out.println(\"elementToRemove --> \"+elementToRemove.getTer_id());\r\n\t\t\t } \r\n\t\t\t }\r\n\t\t } \r\n\t\t /* for (AddTerritoryActionPojo b : territoryListValueRemoved) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tSystem.out.println(\"territoryListValueRemoved : \"+b.getTer_id()+\" --> \"+b.getTerritory()); \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}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.out.println(\"Exception While converting multiple territory to single territory\"+e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn \"SUCCESS\";\r\n\t}", "private final void m43720b() {\n m43714a().edit().remove(ManagerWebServices.PARAM_LAST_ACTIVITY_DATE).apply();\n }", "void invalidate() {\n\t\tinvalid = true;\n\t}", "@Override\n\tpublic void invalidate(S key) {\n\t\t\n\t}", "public void refreshCompanies() {\n\t\t \n\t\t mDbHelper.refreshTable(mDatabase, MySQLiteHelper.TABLE_COMPANIES);\n\t }", "@RequiresLock(\"SeaLock\")\r\n protected void deponentInvalidAction(Drop invalidDeponent) {\r\n invalidate();\r\n }", "public void update() {\n\t\trl = DBManager.getReservationList();\n\t}", "public void mraiExpire() {\n for (int tDest : this.dirtyDest) {\n this.sendUpdate(tDest);\n }\n this.dirtyDest.clear();\n }", "void invalidateAll();", "public boolean updateCustomer() {\n\t\treturn false;\r\n\t}", "private void removeList()\r\n {\n if (tableCheckBinding != null)\r\n {\r\n tableCheckBinding.dispose();\r\n tableCheckBinding = null;\r\n }\r\n\r\n // m_TableViewer.setInput(null);\r\n WritableList newList = new WritableList(SWTObservables.getRealm(Display.getDefault()));\r\n for (int i = 0; i < 10; ++i)\r\n {\r\n newList.add(this.generateNewDataModelItem());\r\n }\r\n m_TableViewer.setInput(newList);\r\n }", "void reset(){\n\t\tstatsRB.setSelected(true);\n\t\tcustTypeCB.setSelectedIndex(0);\n\t\tcustIdTF.setText(\"\");\n\t\toutputTA.setText(\"\");\n\t\t\n\t\tLong currentTime = System.currentTimeMillis();\n\t\t\n\t\t//THE TIME IN TIME SPINNERS ARE SET TO THE MAX POSSIBLE TIME WINDOW THAT IS \n\t\t//FROM THE TIME THAT THE SHOP STARTED TO THE CURRENT TIME.\n\t\t\n\t\t//THE STARTING DATE AND TIME OF SHOP OS CONSIDERED AS -- 1 JAN 2010 00:00\n\t\tstartDateS.setModel(new SpinnerDateModel(new Date(1262284200000L), new Date(1262284200000L), new Date(currentTime), Calendar.DAY_OF_MONTH));\n\t\t//AND END DATE AND TIME WILL THE THE CURRENT SYSTEM DATE AND TIME.\n\t\tendDateS.setModel(new SpinnerDateModel(new Date(currentTime), new Date(1262284200000L), new Date(currentTime), Calendar.DAY_OF_MONTH));\n\t\n\t}", "@Test\n public void getShiftListByDate(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertNotNull(shiftListResource.getShiftListsByDate(new Date(2017-01-01)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "@Override\n\tpublic List<CustomerLoss> selectLossCustomer() {\n\t\treturn customerDao.selectLossCustomer();\n\t}", "public void invalidateSessionobjects(){\n\n\t}", "public void refresh() {\n OfficerDailyReportService officerService = new OfficerDailyReportService(sessionBean.getCompanyId());\n getClientDailyReports().clear();\n EquipmentService equipService = new EquipmentService(sessionBean.getCompanyId());\n HashMap<Integer, ClientEquipment> clientEquipHash = new HashMap<Integer, ClientEquipment>();\n try {\n if (sessionBean.getClients() != null) {\n ArrayList<Integer> clientIds = new ArrayList<Integer>();\n for (int c = 0; c < sessionBean.getClients().size(); c++) {\n clientIds.add(sessionBean.getClients().get(c).getClientId());\n }\n getClientDailyReports().addAll(officerService.getDailyReportsForClientsWithText(clientIds, numberOfDaysToGoBack, false));\n\n ArrayList<OfficerDailyReport> reports = getClientDailyReports();\n \n HashMap<Integer, Integer> clientEquipmentIds = new HashMap<Integer, Integer>();\n for (int c = 0; c < reports.size(); c++) {\n clientEquipmentIds.put(reports.get(c).getClientEquipmentId(), reports.get(c).getClientEquipmentId());\n }\n \n ArrayList<Integer> fetchClientEquipIds = new ArrayList<Integer>();\n Iterator<Integer> keyIterator = clientEquipmentIds.keySet().iterator();\n while (keyIterator.hasNext()) {\n fetchClientEquipIds.add(keyIterator.next());\n }\n ArrayList<ClientEquipment> equip = equipService.getClientEquipmentByIds(fetchClientEquipIds);\n for (int e = 0; e < equip.size(); e++) {\n clientEquipHash.put(equip.get(e).getClientEquipmentId(), equip.get(e));\n }\n \n for (int r = 0; r < getClientDailyReports().size(); r++) {\n getClientDailyReports().get(r).setClientEquipment(clientEquipHash.get(getClientDailyReports().get(r).getClientEquipmentId()));\n }\n logInLogOut = LogInLogOut.generateData(clientDailyReports, sessionBean.getCompanyId());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected static void setAllMonsters(ArrayList<Monster> listMonsters) {\n allMonsters = listMonsters;\n }", "@Scheduled(fixedDelay=25000)\n\tprivate void refreshFlights(){\n\t\tflightList = generator.generateNewFlightList();\n\t}", "Boolean updateList(List<Customer> list);", "@Test\n public void updateShiftListCatch(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertFalse(shiftListResource.updateShiftlist(new ShiftList(\"notdummy3\", 1, true, new Date(2015-01-01), 50, false)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 1, \"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n }", "void invalidate();", "void invalidate();", "public static void setList(CustomerList list){\n\t\tUserInterface.list = list;\n\t}", "@Test\n public void updateTimeListCatch(){\n userDAO.createUser(new User(\"dummy2\", \"dummy2\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy2\", 1990, 0, 60, 0, 0));\n\n assertFalse(timeListResource.updateTimeList(new TimeList(\"notdummy2\", 1990, 0, 65, 1, 1)));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy2\");\n userDAO.removeUser(\"dummy2\");\n }", "public static void setAllocateInventry(String startDate, String endDate, String codeListstr, List<ForcastInventoryObj> forcastInventoryObjList){ \n\t \tString hashedKeyPart = StringUtil.getHashedValue(startDate+endDate+codeListstr);\n\t \tString key=ALL_ALLOCATE_INVENTORY_KEY+\"_\"+hashedKeyPart;\n\t\t\tlog.info(\"setAllocateInventry : memcache key:\"+key);\t\t\t\n\t\t\tif(memcache !=null && memcache.contains(key)){\n\t \t\tmemcache.delete(key);\n\t \t}\n\t \tmemcache.put(key, forcastInventoryObjList, Expiration.byDeltaSeconds(expireInDay));\n\t\t}", "private void invalidateVSacSession(){\n\t \tMatContext.get().getVsacapiServiceAsync().inValidateVsacUser(new AsyncCallback<Void>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(Void result) {\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t}", "public void setExpiredSessions(long expiredSessions);", "void onInvalidatedModel();", "@Test\n public void updateTimeList(){\n userDAO.createUser(new User(\"dummy2\", \"dummy2\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy2\", 1990, 0, 60, 0, 0));\n\n assertTrue(timeListResource.updateTimeList(new TimeList(\"dummy2\", 1990, 0, 65, 1, 1)));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy2\");\n userDAO.removeUser(\"dummy2\");\n }", "public void updateResidencias() {\n\n\t\tArrayList<Residencias> list = (ArrayList<Residencias>) hibernateController.selectResidencias();\n\t\tArrayList<ResidenciaBean> listBean = new ArrayList<ResidenciaBean>();\n\n\t\tfor (Residencias r : list) {\n\t\t\tlistBean.add(new ResidenciaBean(r));\n\t\t}\n\n\t\tObservableList<ResidenciaBean> ObsUniversidades = FXCollections.observableArrayList(listBean);\n\t\ttable.setItems(ObsUniversidades);\t\t\n\n\t}", "public void loadMonth()\r\n\t{\r\n DBUtil dbTemp=new DBUtil();\r\n\tResultSet rsMonth;\r\n\r\n\t //-----------Chack id and year==============\r\n\r\n\t if (((String)cboID.getSelectedItem()).equals(\"Select ID\") ||\r\n\t ((String)cboYear.getSelectedItem()).equals(\"Select a Year\"))\r\n\t {\r\n\t\t JOptionPane.showMessageDialog(null,\r\n\t\t \"Sorry, You must select ID and Year first !!!\");\r\n\t\t return;\r\n\t }\r\n\r\n\t try{\r\n\r\n\t\t cboMonth.removeAllItems();\r\n\t }catch(Exception ce){System.out.println(ce);}\r\n\r\n\t try{\r\n\t\t rsMonth=dbTemp.stmt.executeQuery(\"Select * from Months Where SMonth Not IN (Select SMonth From Tution Where SID='\" + (String)cboID.getSelectedItem() +\"' And SYear = '\"+(String)cboYear.getSelectedItem()+\"')\");\r\n\r\n cboMonth.addItem(\"Select Month\");\r\n\t\t while(rsMonth.next())\r\n\t\t {\r\n\r\n\t\t\tcboMonth.addItem(rsMonth.getString(2));\r\n\t\t }\r\n\r\n\t }catch(SQLException sqle)\r\n\t {System.out.println(\"Month Add Error:\"+sqle);}\r\n\r\n\t}", "public void update(String custNo, CstCustomer cstCustomer2) {\n\t\tcstCustomerDao.update(custNo,cstCustomer2);\n\t}", "public void k() {\n List findAll = DataSupport.findAll(CateListCache.class, new long[0]);\n final String str = \"\";\n if (com.e23.ajn.d.e.b(findAll)) {\n str = ((CateListCache) findAll.get(0)).getUpdatetime();\n }\n DataSupport.deleteAllAsync(CateListCache.class, new String[0]).listen(new UpdateOrDeleteCallback() {\n public void onFinish(int i) {\n new Handler().postDelayed(new Runnable() {\n public void run() {\n CateListCache cateListCache = new CateListCache();\n cateListCache.setUpdatetime(str);\n for (CateBean cateBean : ProgramManagementFragment.this.n) {\n cateBean.clearSavedState();\n cateBean.save();\n cateListCache.getList().add(cateBean);\n }\n for (CateBean cateBean2 : ProgramManagementFragment.this.o) {\n cateBean2.clearSavedState();\n cateBean2.save();\n cateListCache.getList().add(cateBean2);\n }\n cateListCache.save();\n }\n }, 1000);\n }\n });\n }", "private void refreshList() {\n\t\tfor (int i = 0; i < service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).size(); i++) {\n\t\t\ttimesheetRowList.add(service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).get(i));\n\t\t}\n\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId()));\n\t}", "@Override\n public void removeCheckInDates() {\n\n List<String> theDatesToRemove = new ArrayList<>(checkInTimeList.getSelectedValuesList());\n DefaultListModel theModel = (DefaultListModel)checkInTimeList.getModel();\n \n //Remote the dates\n for( String aStr : theDatesToRemove )\n theModel.removeElement(aStr); \n \n }", "public void Invalidate() {\n\n\t\tString[] result_money = getAccepted().split(\"(N|K|F|S)+\");\n\t\tString[] result_item = getAccepted().split(\"(a|b|y)+\");\n\t\tsetMoney(result_money[result_money.length - 1]);\n\t\tsetItem(result_item[result_item.length - 1]);\n\n\t}", "public void setLstCustNo(String lstCustNo) {\n this.lstCustNo = lstCustNo == null ? null : lstCustNo.trim();\n }", "private void validateUpdateCustomers(List<CustomersInputDTO> customers, String formatDate) {\n // inner validate\n if (customers == null || customers.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(ConstantsCustomers.CUSTOMERS, Constants.RIQUIRED_CODE));\n }\n // validate common\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n List<Map<String, Object>> customParams = new ArrayList<>();\n customers.forEach(cus -> {\n Map<String, Object> customField = new HashMap<>();\n customField.put(\"rowId\", cus.getCustomerId());\n customField.putAll(buildParamsValidateCustomersInput(cus, jsonBuilder));\n customParams.add(customField);\n });\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n customParams, formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n List<Map<String, Object>> listValidate = CustomersCommonUtil.validateCommon(validateJson, restOperationUtils,\n token, tenantName);\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<String> SSRCardNoSet(String customerName,String SchemeName){\r\n\t\tObject[] param = {customerName,SchemeName};\r\n\t\treturn (List<String>) getHibernateTemplate().find(\"SELECT DISTINCT cardNo FROM CardIssue where customerName = ? and schemeName = ? and (status='Active')\",param);\r\n\t}", "public void resetListaId()\r\n {\r\n this.listaId = null;\r\n }", "@Override\n\tpublic final void setListUsers(final IntListUsers list) {\n\t\tthis.listUsers = list;\n\t}", "private void yearChanged(int oldValue) {\r\n updateControlsFromTable();\r\n\r\n // fire property change\r\n firePropertyChange(YEAR_PROPERTY, oldValue, getYear());\r\n\r\n // clear selection when changing the month in view\r\n calendarTable.getSelectionModel().clearSelection();\r\n\r\n if (updateYearsOnChange) {\r\n updateYearMenu();\r\n }\r\n\r\n calendarTable.repaint();\r\n }", "public void msgSitCustomerAtTable(CustomerAgent customer, int tableNum){\n\tMyCustomer c = new MyCustomer(customer, tableNum);\n\tc.state = CustomerState.NEED_SEATED;\n\tcustomers.add(c);\n\tstateChanged();\n }", "@Override\n\tpublic List<SimpleObject> getTransactionDatesListForEditingWageDeduction(Integer customerId,Integer companyId) {\n\t\treturn pfRulesDao.getTransactionDatesListForEditingWageDeduction(customerId,companyId);\n\t}", "private void updateIndentityStarts(ExtendedJdbcTemplate ejt) {\r\n\t\tList<IdentityStart> starts = ejt.query(\"select t.tablename, c.columnname, c.autoincrementvalue \" + //\r\n\t\t\t\t\"from sys.syscolumns c join sys.systables t on c.referenceid = t.tableid \" + //\r\n\t\t\t\t\"where t.tabletype='T' and c.autoincrementvalue is not null\", new GenericRowMapper<IdentityStart>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic IdentityStart mapRow(ResultSet rs, int index) throws SQLException {\r\n\t\t\t\t\t\tIdentityStart is = new IdentityStart();\r\n\t\t\t\t\t\tis.table = rs.getString(1);\r\n\t\t\t\t\t\tis.column = rs.getString(2);\r\n\t\t\t\t\t\tis.aiValue = rs.getInt(3);\r\n\t\t\t\t\t\treturn is;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\tfor (IdentityStart is : starts) {\r\n\t\t\tint maxId = ejt.queryForInt(\"select max(\" + is.column + \") from \" + is.table);\r\n\t\t\tif (is.aiValue <= maxId)\r\n\t\t\t\tejt.execute(\"alter table \" + is.table + \" alter column \" + is.column + \" restart with \" + (maxId + 1));\r\n\t\t}\r\n\t}", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "@Override\n\tpublic void refresh() {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Create local copy so table not backed by map ensuring thread\n\t\t\t\t// safety. This is done as an alternative to locking customers\n\t\t\t\t// whilst refreshing due to the reduced time the lock is required.\n\t\t\t\tCollection<Customer> customers;\n\t\t\t\tsynchronized (model.customers) {\n\t\t\t\t\t// Convert collection of values to set so serialisable\n\t\t\t\t\tfinal Set<Customer> modelCustomers = new HashSet<>(model.customers.values());\n\t\t\t\t\t// Cast safe due to known functionality of deep clone\n\t\t\t\t\tcustomers = (Collection<Customer>) SerializationUtils.deepClone(modelCustomers);\n\t\t\t\t}\n\t\t\t\t// Refresh using local copy\n\t\t\t\trefreshTable(new ArrayList<>(customers));\n\t\t\t}\n\t\t});\n\t}", "private static void fillClientReserveTimeList(ResultSet resultSet\n\t\t\t, List<ClientReservedTime> clientReservedTimes) {\n\t\ttry {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tClientReservedTime clientReservedTime = new ClientReservedTime();\n\t\t\t\tfillClientReserveTime(resultSet, clientReservedTime);\n\t\t\t\t//Fill comment section\n\t\t\t\tfillClientReserveTimeCommentSection(resultSet, clientReservedTime);\n\t\t\t\tclientReservedTimes.add(clientReservedTime);\n\t\t\t}\n\t\t}catch (SQLException e) {\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}", "public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.m = l10 = (long)8;\n }\n this.requestRebind();\n }", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public void customerSell(int number) {\n \tthis.refresh(-number);\n availableNumber += number;\n }", "public void editCustomer() {\n int id = this.id;\n PersonInfo personInfo = dbHendler.getCustInfo(id);\n String name = personInfo.getName().toString().trim();\n String no = personInfo.getPhoneNumber().toString().trim();\n float custNo = personInfo.get_rootNo();\n String cUSTnO = String.valueOf(custNo);\n int fees = personInfo.get_fees();\n String fEES = Integer.toString(fees);\n int balance = personInfo.get_balance();\n String bALANCE = Integer.toString(balance);\n String nName = personInfo.get_nName().toString().trim();\n String startdate = personInfo.get_startdate();\n int areaID = personInfo.get_area();\n String area = dbHendler.getAreaName(areaID);\n person_name.setText(name);\n contact_no.setText(no);\n rootNo.setText(cUSTnO);\n monthly_fees.setText(fEES);\n balance_.setText(bALANCE);\n nickName.setText(nName);\n this.startdate.setText(startdate);\n // retrieving the index of element u\n int retval = items.indexOf(area);\n\n spinner.setSelection(retval);\n }", "public void resetSaleAndCostTracking() {\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the beanBag object at the current position is \"isSold\" bool is true.\r\n if (((BeanBag) stockList.get(i)).isSold()) {\r\n // Remove beanBag object at that position from the \"stockList\".\r\n stockList.remove(i);\r\n }\r\n }\r\n }", "private static void updateRecords() {\n for (Team t: Main.getTeams()){\n //If the team already exists\n if (SqlUtil.doesTeamRecordExist(c,TABLE_NAME,t.getIntValue(Team.NUMBER_KEY))){\n //Update team record\n updateTeamRecord(t);\n } else {\n //Create a new row in database\n addNewTeam(t);\n\n }\n }\n\n }", "private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\n\t\tpackageMapping.clear();\n\t\tvalidCache = false;\n\t}" ]
[ "0.48554987", "0.48135254", "0.47823027", "0.47292787", "0.47106975", "0.4683784", "0.46771836", "0.46748987", "0.4674888", "0.4624058", "0.46153423", "0.46117163", "0.4590351", "0.45839816", "0.4583156", "0.4577896", "0.45211813", "0.45168313", "0.45114636", "0.450432", "0.44844073", "0.44782013", "0.4474682", "0.44715956", "0.44615236", "0.44483426", "0.44346288", "0.44267058", "0.4423545", "0.44230723", "0.4393889", "0.4389263", "0.43806309", "0.43685934", "0.43655467", "0.4363486", "0.436336", "0.43537968", "0.43465403", "0.43418437", "0.43413925", "0.4340567", "0.43347713", "0.43342584", "0.43284625", "0.4327533", "0.43181774", "0.43179995", "0.4317181", "0.4300902", "0.4300387", "0.42971417", "0.4286131", "0.42836627", "0.42817786", "0.42719018", "0.42632377", "0.42616215", "0.42564982", "0.42560303", "0.42558962", "0.4251862", "0.4250688", "0.42505714", "0.4244571", "0.42444563", "0.42444563", "0.4243851", "0.42359403", "0.4232157", "0.42301282", "0.4225618", "0.42236808", "0.42207313", "0.42172512", "0.42118558", "0.42096862", "0.4206157", "0.41979548", "0.41963193", "0.41925347", "0.4189293", "0.41873878", "0.41794702", "0.41724056", "0.41682774", "0.41643253", "0.4156623", "0.4150144", "0.41495797", "0.41450548", "0.41429138", "0.41386265", "0.41385984", "0.41368705", "0.4134539", "0.41326922", "0.4130124", "0.41300473", "0.4124512" ]
0.4899119
0
Display the first 500 characters of the response string.
@Override public void onResponse(String response) { Toast.makeText(DemoLocationActivity.this,response,Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void responseHandler(StringBuilder sb)\n\t{\n\t\tString s = sb.toString();\t\t\n\t\tString[] lines = s.split(\"\\n\");\t\t\n\t\tString firstLine = \"\";\n\t\t\n\t\t// Only search through the first five lines. If it isn't \n\t\t// in the first five lines it probably isn't there.\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(lines[i].contains(\"HTTP/1\"))\n\t\t\t{\n\t\t\t\tfirstLine = lines[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Error and quit if it is still empty.\n\t\tif(firstLine.equals(\"\"))\n\t\t{\n\t\t\terrorQuit(\"Whoops something went wrong.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(firstLine.contains(\"200\"))\n\t\t\t{\n\t\t\t\tSystem.out.print(s);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(firstLine);\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void resultToPrintLimit25() {\n\t\tResultToPrint.setLimitRead(25);\n\t\t//execute\n\t\tList<ClientEntity> response = ResultToPrint.getSuspiciousClients(mapClients);\n\t\tassertEquals(1, response.size());\n\t\tassertEquals(ID_CLIENT_2, response.get(0).getId());\n\t\tassertEquals(\"2014\", response.get(0).getMonth());\n\t\tassertEquals(ID_CLIENT_READING_2, response.get(0).getReading());\n\t}", "public String handleResponse(final HttpResponse response) throws IOException{\n int status = response.getStatusLine().getStatusCode();\n if (status >= 200 && status < 300) {\n HttpEntity entity = response.getEntity();\n if(entity == null) {\n return \"\";\n } else {\n return EntityUtils.toString(entity);\n }\n } else {\n return \"\"+status;\n }\n }", "public String getResponseString() {\r\n\t\t// TODO - log message if this is ever called\r\n\t\treturn \"\";\r\n\t}", "public String showError(String errorMessage) {\n String response = \"\";\n response += showLine();\n response += errorMessage + System.lineSeparator();\n response += showLine();\n return response;\n }", "public static void printResponse(String response)\n\t{\n\t\n\t}", "private String showKitDetails(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn \"\";\n\t}", "private static String paseResponse(HttpResponse response) {\n\t\tHttpEntity entity = response.getEntity();\n\t\t\n//\t\tlog.info(\"response status: \" + response.getStatusLine());\n\t\tString charset = EntityUtils.getContentCharSet(entity);\n//\t\tlog.info(charset);\n\t\t\n\t\tString body = null;\n\t\ttry {\n if (entity != null) { \n InputStream instreams = entity.getContent(); \n body = convertStreamToString(instreams); \n// System.out.println(\"result:\" + body);\n } \n//\t\t\tlog.info(body);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn body;\n\t}", "public static String shorten(String s) {\n\t\tif (s==null) return null;\n\t\tif (s.length()>70) s=s.substring(0, 67)+\"...\";\n\t\treturn s;\n\t}", "TruncatedResponseType getTruncatedResponse();", "public String infoline()\n {\n return \" > You see delicious COFFEE being brewed from behind the starbucks counter\";}", "private static String truncate(String s, final int max) {\n if (s.length() > max)\n return s.substring(0,max) + \"&hellip;\";\n else\n return s;\n }", "@Override\n public void onResponse(String response)\n {\n httpReturn.setText(\"RESPOSTA:\\n\" + response.toString());\n httpReturn.setTextColor(Color.BLUE);\n httpReturn.setTextSize((float) 22.5);\n }", "@Override\n\t\t\t\t\tpublic void onResponse(String s) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private static String readResponse(HttpResponse response)\n throws IOException\n {\n HttpEntity responseEntity = response.getEntity();\n if (responseEntity.getContentLength() == 0)\n {\n return \"\";\n }\n byte[] content = StreamUtils.read(responseEntity.getContent());\n return new String(content, \"UTF-8\");\n }", "public String getHead(Handler handler)\n {\n return \"<html><head><title>Logging: \" \n + getTime(System.currentTimeMillis()) + \"</title></head><body><pre>\\n\";\n }", "@Test\n\tpublic void resultToPrintLimit10() {\n\t\tResultToPrint.setLimitRead(10);\n\t\t//execute\n\t\tList<ClientEntity> response = ResultToPrint.getSuspiciousClients(mapClients);\n\t\tassertEquals(3, response.size());\n\t\tassertEquals(ID_CLIENT_1, response.get(0).getId());\n\t\tassertEquals(ID_CLIENT_2, response.get(1).getId());\n\t\tassertEquals(ID_CLIENT_2, response.get(2).getId());\n\t\tassertEquals(\"2015\", response.get(0).getMonth());\n\t\tassertEquals(\"2014\", response.get(1).getMonth());\n\t\tassertEquals(\"2013\", response.get(2).getMonth());\n\t\tassertEquals(ID_CLIENT_1_READING_2, response.get(0).getReading());\n\t\tassertEquals(ID_CLIENT_READING_2, response.get(1).getReading());\n\t\tassertEquals(ID_CLIENT_2_READING_2, response.get(2).getReading());\n\t}", "public String reponse() {\n return reponseUtil.toLowerCase()\n .replace(\"[àâä]\", \"a\")\n .replace(\"[éèêë]\", \"e\")\n .replace(\"[îï]\", \"i\")\n .replace(\"[ôö]\", \"o\")\n .replace(\"[ùûü]\", \"u\")\n .replace(\"[ŷÿ]\", \"y\")\n .replace(\"[ç]\", \"c\");\n }", "private static String printSOAPResponse(SOAPMessage soapResponse) throws Exception {\n \tif(soapResponse==null)\n \t\treturn \"\";\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n Source sourceContent = soapResponse.getSOAPPart().getContent();\n System.out.print(\"\\nResponse SOAP Message = \");\n StreamResult result = new StreamResult(System.out);\n transformer.transform(sourceContent, result);\n \n System.out.println();\n StringWriter writer = new StringWriter();\n transformer.transform(sourceContent, new StreamResult(writer));\n String output = writer.toString();\n int ind = output.indexOf(\"<S\");\n System.out.println(\"NOW IS: \"+output.substring(ind));\n return output;\n }", "@AutoEscape\n\tpublic String getRespondText();", "@Override\n\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\tSystem.out.println(arg0);\n\t\t\t\t\t\n\t\t\t\t}", "private void sendErrorResponse(String aText, int aStatus, HttpServletRequest aRequest, HttpServletResponse aResponse){\n try {\n aResponse.setStatus(aStatus);\n //fLogger.fine(\"Sending response in uncompressed form, as UTF-8. Length: \" + aText.length());\n String utf8Text = new String(aText.getBytes(), ENCODING);\n aResponse.setCharacterEncoding(\"UTF-8\");\n aResponse.setContentLength(utf8Text.getBytes().length); \n aResponse.setContentType(\"application/text\");\n PrintWriter out = aResponse.getWriter();\n out.append(utf8Text);\n } \n catch (IOException ex) {\n //in practice this won't happen\n logProblem(\"Problem sending an error response.\", ex);\n }\n }", "private String stringShortener(String str) {\n if (str.length() <= 5) {\n return str;\n }\n str = str.substring(0, 5);\n str = str + \"...\";\n return str;\n }", "@Test\n public void testChunkedOutputToSingleString() throws Exception {\n final String response = target().path(\"test\").request().get(String.class);\n Assert.assertEquals(\"Unexpected value of chunked response unmarshalled as a single string.\", \"test\\r\\ntest\\r\\ntest\\r\\n\", response);\n }", "@Override\n public void onResponse(String response) {\n System.out.println(response.toString());\n }", "@Override\n public String toString() {\n if(toStringLong().length() > 28) {\n return toStringLong().substring(0, 25) + \"...\";\n }\n return toStringLong();\n }", "@GetAction(\"e500\")\n public static String backendServerError() {\n return Act.crypto().decrypt(\"bad-crypted-msg\");\n }", "public String getTail(Handler handler)\n {\n return \"</pre></body></html>\\n\";\n }", "private String cutText(int maxLength, String content) {\n\t\tif(content.length() <= maxLength){\n\t\t\treturn content;\n\t\t}\t\t\n\t\treturn content.substring(0, maxLength) + \"...\";\n\t}", "public java.lang.String getField1000() {\n java.lang.Object ref = field1000_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n field1000_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "default String toShortString() {\n return toString().substring(0, 5);\n }", "public static void cutOut(String value) {\n if (value.length() > 10) {\n System.out.println(value.substring(0, 10) + \"..\");\n } else {\n System.out.println(value);\n }\n }", "@Override\n public void onResponse(String response) {\n mTextView.setText(\"Response is: \" + response);\n }", "private String httpNotOk() {\n return \"HTTP/1.1 404 not Found\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\"\n + \"<!DOCTYPE html>\\n\"\n + \"<html>\\n\"\n + \"<head>\\n\"\n + \"<meta charset=\\\"UTF-8\\\">\\n\"\n + \"<title>Error</title>\\n\"\n + \"</head>\\n\"\n + \"<body>\\n\"\n + \"<h1>There is an error</h1>\\n\"\n + \"</body>\\n\"\n + \"</html>\\n\";\n }", "OptimizeResponse() {\n\n\t}", "public static void longInfo(String str) {\n\t\tif(str.length() > 4000) {\n\t\t\tLog.i(\"Lengthy String\", str.substring(0, 4000));\n\t\t\tlongInfo(str.substring(4000));\n\t\t} else\n\t\t\tLog.i(\"Lengthy String\", str);\n\t}", "Response mo35726n0() throws IOException;", "@Override\r\n\tpublic StringBuffer showMe(String data) {\n\t\tlogger.trace(data);\r\n\t\t//int i = 1/0;\r\n\t\treturn new StringBuffer(data);\r\n\t}", "public final static String longBody() {\n\t\treturn repeat('A', 1001);\n\t}", "private String getSentence(Context context) {\n HttpRequest httpRequest = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(ALBUM_SERVICE_URL + RANDOM.nextInt(100)))\n .setHeader(\"User-Agent\", \"Java 11 HttpClient Bot\")\n .timeout(Duration.ofMillis(1200))\n .build();\n\n try {\n HttpResponse<String> response = HTTP_CLIENT.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n if (response.statusCode() == HTTP_OK) {\n\n AlbumJson albumJson = ALBUM_JSON_PARSER.parse(response.body());\n return \", your sentence of the day: \" + albumJson.getTitle();\n }\n } catch (IOException | InterruptedException e) {\n final LambdaLogger logger = context.getLogger();\n logger.log(\"Error: \" + Arrays.toString(e.getStackTrace()));\n }\n return \"\";\n }", "private void displayMessage10(String message) {\n TextView techRepReadMore = (TextView) findViewById(R.id.read_more10);\n techRepReadMore.setTextColor(Color.BLACK);\n techRepReadMore.setText(message);\n techRepReadMore.setGravity(Gravity.CENTER);\n }", "public String showFirstRoundCards() {\n String message = \"[ Unknown \";\n message += personHand.get(1) + \" ]\";\n return message;\n }", "@SuppressWarnings(\"ThrowableNotThrown\") \n public static Response getSCIMInternalErrorResponse() {\n JSONEncoder encoder = new JSONEncoder();\n CharonException exception = new CharonException(\"Internal Error\");\n String responseStr = encoder.encodeSCIMException(exception);\n return Response.status(exception.getStatus()).entity(responseStr).build();\n }", "private String buildResponseString(String code) {\r\n StringBuilder responseString = new StringBuilder();\r\n\r\n responseString.append(ACCESS_TOKEN);\r\n responseString.append(\"?client_id=\" + CLIENT_ID);\r\n responseString.append(\"&redirect_uri=\" + REDIRECT_URI);\r\n responseString.append(\"&code=\" + code);\r\n responseString.append(\"&client_secret=\" + APP_SECRET);\r\n return responseString.toString();\r\n }", "public String toBigFancyString(){\r\n\t\t\r\n\t\tString line = \r\n\t\t\t \"\\tLast name : \" + this.getLastName() + \"\\t\"\r\n\t\t\t+ \"\\n\\tFirst name : \" + this.getFirstName() + \"\\t\"\r\n\t\t\t+ \"\\n\\tPhone number : \" + this.getPhoneNumber() + \"\\t\"\r\n\t\t\t+ \"\\n\\tAddress : \" + this.getAddress() + \"\\t\"\r\n\t\t\t+ \"\\n\\tCity : \" + this.getCity() + \"\\t\" ;\r\n\t\t\r\n\t\treturn line ;\r\n\t}", "private static String getResponseString(URLConnection conn) throws IOException {\n\t\tReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int c; (c = in.read()) >= 0; )\n\t\t\tsb.append((char) c);\n\t\treturn sb.toString();\n\t}", "public static String getShortContent(final String fullContent,\r\n\t\t\tfinal int numOfRows, final String ch) {\r\n\t\tString shortContent = \"\";\r\n\t\tif (isNullOrEmpty(fullContent)) {\r\n\t\t\tshortContent = fullContent;\r\n\t\t} else {\r\n\t\t\tshortContent = shortenContent(fullContent, ch, numOfRows, 200);\r\n\t\t}\r\n\t\treturn shortContent;\r\n\t}", "private String getStatusLine(int iStatusCode) {\n String sStatus = \"HTTP/1.1 \";\n if (iStatusCode == 200) {\n sStatus += iStatusCode + \" OK\";\n } else if (iStatusCode == 301) {\n sStatus += iStatusCode + \" Moved Permanently\";\n } else if (iStatusCode == 403) {\n sStatus += iStatusCode + \" Forbidden\";\n } else if (iStatusCode == 404) {\n sStatus += iStatusCode + \" Not Found\";\n } else if (iStatusCode == 415) {\n sStatus += iStatusCode + \" Unsupported Media Type\";\n } else if(iStatusCode == 500) {\n sStatus += iStatusCode + \" Internal Server Error\";\n }\n return sStatus;\n }", "@Override\r\n\t\t\tpublic void sendResponse(String string) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void sendResponse(String string) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void sendResponse(String string) {\n\t\t\t\t\r\n\t\t\t}", "private String getContent(HttpResponse response) throws IOException {\n return IOUtils.toString(\n response.getEntity().getContent(),\n StandardCharsets.UTF_8\n );\n }", "public String getContentReplayPrefixString(int size, Charset cs) {\n try {\n InputStreamReader isr = new InputStreamReader(getContentReplayInputStream(), cs); \n char[] chars = new char[size];\n int count = isr.read(chars);\n isr.close(); \n if (count > 0) {\n return new String(chars,0,count);\n } else {\n return \"\";\n }\n } catch (IOException e) {\n logger.log(Level.SEVERE,\"unable to get replay prefix string\", e);\n return \"\"; \n } \n }", "private void displayMessage23(String message) {\n TextView virtualBankReadMore = (TextView) findViewById(R.id.read_more23);\n virtualBankReadMore.setTextColor(Color.BLACK);\n virtualBankReadMore.setText(message);\n virtualBankReadMore.setGravity(Gravity.CENTER);\n }", "private String httpOk() {\n return \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\";\n }", "public String displayShort(){\n return \"\\tId: \" + id + \"\\n\" +\n \"\\tName: \" + name + \"\\n\" +\n \"\\tDescription: \" + description + \"\\n\";\n }", "public String toPrettyString() {\n return getByteCount() + \" bytes\";\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\r\n public Reader contentReader() {\r\n try {\r\n return okResponse.body().charStream();\r\n } catch (IOException e) {\r\n throw fail(e);\r\n }\r\n }", "private static String m31929a(String str) {\n String[] split = str.split(\"\\\\.\");\n String str2 = split.length > 0 ? split[split.length - 1] : \"\";\n return str2.length() > 100 ? str2.substring(0, 100) : str2;\n }", "private static void showToastText(String infoStr, int TOAST_LENGTH) {\n Context context = null;\n\t\ttoast = getToast(context);\n\t\tTextView textView = (TextView) toast.getView().findViewById(R.id.tv_toast);\n\t\ttextView.setText(infoStr);\n textView.setTypeface(Typeface.SANS_SERIF);\n\t\ttoast.setDuration(TOAST_LENGTH);\n\t\ttoast.show();\n\t}", "public static String getString()\n {\n \n //Prompts and reads the target string\n final int MINIMUM_SIZE = 4, MAXIMUM_SIZE = 500;\n Scanner read = new Scanner(System.in);\n String targetString = \" \";\n System.out.println(\"Please enter a phrase or sentence >= 4 and <= 500 characters: \");\n targetString = read.nextLine();\n \n //Checks for target string length and loops for proper input\n while (targetString.length() < MINIMUM_SIZE || targetString.length() > MAXIMUM_SIZE)\n {\t\t\t\n System.out.println(\"Please enter a phrase or sentence >= 4 and <= 500 characters: \");\n targetString = read.nextLine();\n }\n return targetString;\n }", "public static String createDiscoverResponseMessage(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(\"HTTP/1.1 200 OK\").append(\"\\n\");\n\t\tsb.append(\"CACHE-CONTROL: max-age=1200\").append(\"\\n\");\n\t\tsb.append(\"DATE: Tue, 05 May 2009 13:31:51 GMT\").append(\"\\n\");\n\t\tsb.append(\"LOCATION: http://142.225.35.55:5001/description/fetch\").append(\"\\n\");\n\t\tsb.append(\"SERVER: Windows_XP-x86-5.1, UPnP/1.0, PMS/1.11\").append(\"\\n\");\n\t\tsb.append(\"ST: upnp:rootdevice\").append(\"\\n\");\n\t\tsb.append(\"EXT: \").append(\"\\n\");\n\t\tsb.append(\"USN: uuid:9dcf6222-fc4b-33eb-bf49-e54643b4f416::upnp:rootdevice\").append(\"\\n\");\n\t\tsb.append(\"Content-Length: 0\").append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}", "@Test\n public void testClientWithEmptyWindowLargeResponse() throws Exception {\n sendSettings(0, false, new SettingValue(Setting.INITIAL_WINDOW_SIZE.getId(), 0));\n sendLargeGetRequest(3);\n\n // Settings\n parser.readFrame();\n // Headers\n parser.readFrame();\n\n output.clearTrace();\n\n parser.readFrame();\n Assert.assertEquals(\"3-RST-[11]\\n\", output.getTrace());\n }", "public String message()\n {\n return rawResponse.message();\n }", "private void displayMessage16(String message) {\n TextView mookhReadMore = (TextView) findViewById(R.id.read_more16);\n mookhReadMore.setTextColor(Color.BLACK);\n mookhReadMore.setText(message);\n mookhReadMore.setGravity(Gravity.CENTER);\n }", "public static void display(String s)\r\n\t{\r\n\t\t//Use to write a string to a line in the output stream without moving the cursor\r\n\t\t//to the next line.\r\n\t\toutStream.print(s);\r\n\t}", "public String toString() {\n return HTTP_VERSION + SP + code + SP + responseString;\n }", "private String checkLimitText(String s, int limit) {\n\n if (s == null) {\n s = \"\";\n }\n\n if (s.length() > limit) {\n s = s.substring(0, limit);\n s = s + \"...\";\n }\n\n return s;\n }", "@Test\n public void test001() {\n int limit = response.extract().path(\"limit\");\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The total number of limit is: \" + limit);\n System.out.println(\"------------------End of Test---------------------------\");\n\n }", "public String viewResponse(Response response) {\r\n this.currentResponse = response;\r\n return \"viewResponse\";\r\n }", "public java.lang.String getField1000() {\n java.lang.Object ref = field1000_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n field1000_ = s;\n return s;\n }\n }", "static String infiniteString(String strInput, Long n) {\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = 0; i <= n; i++) {\n //stringWriter.write( strInput );\n //stringBuilder.append( String.format(strInput));\n stringBuilder.append(strInput);\n System.out.println(\"Length:\" + String.valueOf(stringBuilder).length());\n /*if(stringBuilder.length() == n || stringBuilder.length() > 100)*/\n if (String.valueOf(stringBuilder).length() == n) {\n break;\n }\n }\n\n return String.valueOf(stringBuilder);\n }", "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 }", "@Override\n public void success(Response result, Response response) {\n BufferedReader reader = null;\n\n //An string to store output from the server\n String output = \"\";\n\n try {\n //Initializing buffered reader\n reader = new BufferedReader(new InputStreamReader(result.getBody().in()));\n\n //Reading the output in the string\n output = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //Displaying the output as a toast\n Toast.makeText(MainActivity.this, output, Toast.LENGTH_LONG).show();\n }", "public String formInternalError() \r\n {\r\n return formError(\"500 Internal server error\",\"Server broke\");\r\n }", "@Override\n\t\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\t\tparseRespense(response);\n\t\t\t\t\t\t}", "@Override\n public Object parseNetworkResponse(Response response, int i) throws Exception {\n return response.body().string();\n }", "private String responseString(HttpURLConnection con) throws IOException, NullPointerException {\r\n\t\t\t\r\n\tStringBuilder content = null;\r\n\ttry (BufferedReader in = new BufferedReader(\r\n new InputStreamReader(con.getInputStream()))) {\r\n\r\n\t\tString line;\r\n content = new StringBuilder();\r\n\r\n while ((line = in.readLine()) != null) {\r\n content.append(line);\r\n }\r\n }\r\n\treturn (content != null ? content.toString() : null);\r\n\t\r\n\t}", "public String getNoPagedMessage() {\n\t\treturn getNoPagedMessage(null);\n\t}", "private void displayMessage7(String message) {\n TextView maxReadMore = (TextView) findViewById(R.id.read_more7);\n maxReadMore.setTextColor(Color.BLACK);\n maxReadMore.setText(message);\n maxReadMore.setGravity(Gravity.CENTER);\n }", "java.lang.String getResponse();", "public static int offset_reply() {\n return (80 / 8);\n }", "private void displayMessage20(String message) {\n TextView helloDocReadMore = (TextView) findViewById(R.id.read_more20);\n helloDocReadMore.setTextColor(Color.BLACK);\n helloDocReadMore.setText(message);\n helloDocReadMore.setGravity(Gravity.CENTER);\n }", "public static String humanize (long size)\n {\n\n long b = 1;\n long Kb = b * 1024;\n long Mb = Kb * 1024;\n long Gb = Mb * 1024;\n long Tb = Gb * 1024;\n long Pb = Tb * 1024;\n long Eb = Pb * 1024;\n\n if (size < Kb) return format2( size ) + \" byte\";\n if (size >= Kb && size < Mb) return format2((double)size / Kb) + \" Kb\";\n if (size >= Mb && size < Gb) return format2((double)size / Mb) + \" Mb\";\n if (size >= Gb && size < Tb) return format2((double)size / Gb) + \" Gb\";\n if (size >= Tb && size < Pb) return format2((double)size / Tb) + \" Tb\";\n if (size >= Pb && size < Eb) return format2((double)size / Pb) + \" Pb\";\n if (size >= Eb) return format2((double)size / Eb) + \" Eb\";\n\n return \"???\";\n }", "public SimpleResponse ERROR_INTERNAL_SERVER() {\n this.state = HttpStatus.INTERNAL_SERVER_ERROR.value();\n return ERROR_CUSTOM();\n }", "public void setResponseServer(java.lang.CharSequence value) {\n this.ResponseServer = value;\n }", "public static CharSequence GetHttpResponse(String urlString) throws IOException {\n\t\tURL url = new URL(urlString);\n\t\tURLConnection connection = url.openConnection();\n\t\tif (!(connection instanceof HttpURLConnection)) {\n\t\t\tthrow new IOException(\"Not an HTTP connection\");\n\t\t}\n\t\tHttpURLConnection httpConnection = (HttpURLConnection) connection;\n\t\tint responseCode = httpConnection.getResponseCode();\n\t\tif (responseCode != HttpURLConnection.HTTP_OK) {\n\t\t\tString responseMessage = httpConnection.getResponseMessage();\n\t\t\tthrow new IOException(\"HTTP response code: \" + responseCode + \" \" + responseMessage);\n\t\t}\n\t\tInputStream inputStream = httpConnection.getInputStream();\n\t\tBufferedReader reader = null;\n\t\ttry {\n\t\t\treader = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\tint contentLength = httpConnection.getContentLength();\n\t\t\t// Some services does not include a proper Content-Length in the response:\n\t\t\tStringBuilder result = (contentLength > 0) ? new StringBuilder(contentLength) : new StringBuilder();\n\t\t\twhile (true) {\n\t\t\t\tString line = reader.readLine();\n\t\t\t\tif (line == null) break;\n\t\t\t\tresult.append(line);\n\t\t\t}\n\t\t\treturn result;\n\t\t} finally {\n\t\t\tif (reader != null) reader.close();\n\t\t}\n\t}", "private String doDogs(){\n return \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\"\n + \"<!DOCTYPE html>\\n\"\n + \"<html>\\n\"\n + \"<head>\\n\"\n + \"<meta charset=\\\"UTF-8\\\">\\n\"\n + \"<title>Dogs!!</title>\\n\"\n + \"</head>\\n\"\n + \"<body>\\n\"\n + \"<img src=\\\"https://www.happets.com/blog/wp-content/uploads/2019/08/ventajas-de-un-dispensador-de-comida-para-perros.jpg\\\" />\\n\"\n + \"</body>\\n\"\n + \"</html>\\n\";\n }", "@GET\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String sayPlainTextHello() {\r\n\t\treturn \"You have sent a text/plain request to the Expense Server. It needs to see JSON data.\";\r\n\t}", "include<stdio.h>\nint main()\n{\n printf(\"5103\");\n return 0;\n}", "public int getBufferSize() {\n return this.response.getBufferSize();\n }", "public String provideRandomResponse()\n {\n int randomN = (int) (Math.random() * 2) ;\n if (randomN == 1)\n {\n return(\"c\") ;\n }\n else\n {\n return(\"d\") ;\n }\n \n }", "public void readMore10(View view) {\n String readMore10 = \"Founder: Amanda Gicharu\" + \"\\nWebsite: http://www.techrepublicafrica.com/\";\n displayMessage10(readMore10);\n }", "@Override\n\t\t\tprotected void deliverResponse(String response) {\n\n\t\t\t}", "public String getString() {\n\t\treturn renderResult(this._result).trim();\n\t}", "public String produceResponse() {\n processData();\n return response;\n }", "public long maxResponseLength() {\n return get(MAX_RESPONSE_LENGTH);\n }", "private String \\u02ca\\u0971() {\n int n2;\n LinkedHashMap linkedHashMap;\n int n3;\n Map<String, String> map;\n try {\n map = this.\\u02ca\\u0971;\n linkedHashMap = new LinkedHashMap();\n n2 = 0;\n }\n catch (Exception exception) {\n o.\\u02ce(exception);\n return \"\";\n }\n do {\n n3 = 0;\n if (n2 >= 8) break;\n StringBuilder stringBuilder = new StringBuilder(\"moatClientLevel\");\n stringBuilder.append(n2);\n String string = stringBuilder.toString();\n if (map.containsKey((Object)string)) {\n linkedHashMap.put((Object)string, map.get((Object)string));\n }\n ++n2;\n } while (true);\n do {\n if (n3 < 8) {\n StringBuilder stringBuilder = new StringBuilder(\"moatClientSlicer\");\n stringBuilder.append(n3);\n String string = stringBuilder.toString();\n if (map.containsKey((Object)string)) {\n linkedHashMap.put((Object)string, map.get((Object)string));\n }\n } else {\n Iterator iterator = map.keySet().iterator();\n do {\n if (!iterator.hasNext()) {\n String string = new JSONObject((Map)linkedHashMap).toString();\n StringBuilder stringBuilder = new StringBuilder(\"Parsed ad ids = \");\n stringBuilder.append(string);\n a.\\u02cf(3, \"NativeDisplayTracker\", this, stringBuilder.toString());\n StringBuilder stringBuilder2 = new StringBuilder(\"{\\\"adIds\\\":\");\n stringBuilder2.append(string);\n stringBuilder2.append(\", \\\"adKey\\\":\\\"\");\n stringBuilder2.append(this.\\u02cb);\n stringBuilder2.append(\"\\\", \\\"adSize\\\":\");\n stringBuilder2.append(this.\\u141d());\n stringBuilder2.append(\"}\");\n return stringBuilder2.toString();\n }\n String string = (String)iterator.next();\n if (linkedHashMap.containsKey((Object)string)) continue;\n linkedHashMap.put((Object)string, (Object)((String)map.get((Object)string)));\n } while (true);\n }\n ++n3;\n } while (true);\n }", "@Override\r\n\tpublic void display(String s) {\n\t\tSystem.out.println(s + \"바나나입니다.\");\r\n\t}", "public void readMore16(View view) {\n String readMore16 = \"Founder: Theuri Mwangi\" + \"\\nWebsite: https://mymookh.com/\";\n displayMessage16(readMore16);\n }" ]
[ "0.6098763", "0.5462494", "0.52524203", "0.5198244", "0.5148647", "0.51042295", "0.5014053", "0.5012863", "0.5007059", "0.49552792", "0.49431968", "0.4936323", "0.49273297", "0.48955184", "0.4895279", "0.4885787", "0.48645523", "0.48620734", "0.485772", "0.4851627", "0.48338348", "0.48109716", "0.48094597", "0.47981048", "0.47772542", "0.47640032", "0.4763797", "0.47575733", "0.47521934", "0.47435832", "0.47403288", "0.47346783", "0.47327486", "0.47313148", "0.47292268", "0.472499", "0.47240117", "0.4701526", "0.46974537", "0.4688691", "0.46879494", "0.46875513", "0.46712607", "0.46660084", "0.46591341", "0.46587148", "0.46577352", "0.4653207", "0.46472186", "0.46472186", "0.46472186", "0.4636611", "0.462723", "0.46231163", "0.46128416", "0.4611055", "0.4609216", "0.46043673", "0.46009776", "0.4594835", "0.45933348", "0.4588552", "0.45874882", "0.4584995", "0.45842725", "0.4579064", "0.4572721", "0.45720264", "0.45686725", "0.45667124", "0.4566033", "0.45653054", "0.4560088", "0.45575634", "0.45531216", "0.4550267", "0.45462182", "0.45459476", "0.45459127", "0.4544178", "0.45412534", "0.4538672", "0.45331788", "0.45280468", "0.4527465", "0.45256302", "0.45239753", "0.45220143", "0.45055664", "0.45048288", "0.4499765", "0.44989786", "0.44958988", "0.4492957", "0.44895983", "0.44876555", "0.44856542", "0.4476831", "0.44719264", "0.4466279", "0.44661766" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.home, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu, menu);\r\n return true;\r\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.72497207", "0.72041494", "0.7198533", "0.71808106", "0.71110344", "0.7044596", "0.7042557", "0.7015272", "0.70119643", "0.6984017", "0.6950008", "0.6944079", "0.6937662", "0.6921333", "0.6921333", "0.6894039", "0.6887707", "0.6880534", "0.68777215", "0.6867014", "0.6867014", "0.6867014", "0.6867014", "0.68559307", "0.6852073", "0.68248004", "0.6820769", "0.68184304", "0.68184304", "0.6817935", "0.6810622", "0.6804502", "0.68026507", "0.67964166", "0.67932844", "0.6791405", "0.67871046", "0.6762318", "0.67619425", "0.67528236", "0.6749201", "0.6749201", "0.6745379", "0.6743501", "0.6731059", "0.67279845", "0.6727818", "0.6727818", "0.67251533", "0.67155576", "0.6709411", "0.6708032", "0.67033577", "0.67028654", "0.67017025", "0.669979", "0.66913515", "0.6688428", "0.6688428", "0.66866416", "0.6685591", "0.6683817", "0.6682796", "0.66729134", "0.6672762", "0.6666433", "0.66600657", "0.66600657", "0.66600657", "0.6659591", "0.6659591", "0.6659591", "0.66593474", "0.66565514", "0.6655428", "0.6654482", "0.665351", "0.665207", "0.6651319", "0.6649983", "0.66496044", "0.6649297", "0.66489553", "0.6648444", "0.6648406", "0.6645919", "0.66434747", "0.66401505", "0.66370535", "0.66367626", "0.66367304", "0.66367304", "0.66367304", "0.6633702", "0.6633666", "0.6631505", "0.6629352", "0.6629109", "0.6624368", "0.66234607", "0.66223407" ]
0.0
-1
Get extra data included in the Intent
@Override public void onReceive(Context context, Intent intent) { Log.e("i m in Broadcast recive", "i m in Broadcast recive"); Double latitude = intent.getDoubleExtra("latitude",0.0); Double longitude = intent.getDoubleExtra("longitude",0.0); int pendingPoints = intent.getIntExtra("pendingPoints",0); String timeStamp = intent.getStringExtra("lastUpdated"); boolean isBulkUpload = intent.getBooleanExtra("isBulkUpload",false); textViewLastUpdatedTime.setText("Last Updated On: "+timeStamp); textViewPointsCount.setText("Pending Points: "+pendingPoints); if(getAddress(latitude,longitude).isEmpty()){ textview_tracking_updates.setText("Updating Details: \n"+latitude+" / "+longitude ); }else{ textview_tracking_updates.setText("Updating Details: \n\nLast Updated Location is : "+getAddress(latitude,longitude)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getExtra();", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "public String[] getExtraInfo() {\n return extraInfo;\n }", "private void getIntentData() {\n\t\ttry{\n\t\t\tIN_CATEGORYID = getIntent().getStringExtra(CATEGORY_ID) == null ? \"0\" : getIntent().getStringExtra(CATEGORY_ID);\n\t\t\tIN_ARTICLENAME = getIntent().getStringExtra(ARTICLENAME) == null ? \"\" : getIntent().getStringExtra(ARTICLENAME) ;\n\t\t\tIN_ARTICLEID = getIntent().getStringExtra(ARTICLEID) == null ? \"\" : getIntent().getStringExtra(ARTICLEID);\n\t\t}catch(Exception e){\n\t\t}\n\t}", "private void getIntentData() {\n if (getIntent() != null) {\n destinationLat = getIntent().getDoubleExtra(\"destinationLat\", 48.893478);\n destinationLng = getIntent().getDoubleExtra(\"destinationLng\", 2.334595);\n }\n }", "private void getIntentData() {\r\n if (getIntent() != null && getIntent().getExtras() != null) {\r\n // Handling intent data from DirectoryDetailsActivity class\r\n if (Constant.ALBUM_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n position = getIntent().getIntExtra(Constant.POSITION, 0);\r\n nameKey = getIntent().getStringExtra(Constant.KEY_NAME);\r\n } else if (Constant.LIST_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else if (Constant.SECURE_TAB.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else {\r\n // Handling other intent data like camera intent\r\n Uri uri = getIntent().getData();\r\n GalleryHelper.getImageFolderMap(this);\r\n File file = new File(getRealPathFromURI(uri));\r\n nameKey = FileUtils.getParentName(file.getParent());\r\n GalleryHelperBaseOnId.getMediaFilesOnIdBasis(this, GalleryHelper.imageFolderMap.get(nameKey).get(0).getBucketId());\r\n }\r\n }\r\n }", "private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }", "void getBundleData(Intent intent);", "@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}", "public static Object getExtraObject(Activity context, String key) {\n \tObject param = null;\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.get(key);\n \t}\n \treturn param;\n\t}", "private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}", "public void getintent() {\n Intent intent = this.getIntent();\n acceptDetailsModel = (AcceptDetailsModel) intent.getSerializableExtra(\"menu_item\");\n }", "Map<String, Object> extras();", "void getData() {\n Intent intent = this.getIntent();\n /* Obtain String from Intent */\n Sname = intent.getExtras().getString(\"name\");\n Sbloodbank = intent.getExtras().getString(\"bloodbank\");\n Sbranch = intent.getExtras().getString(\"branch\");\n Sdate = intent.getExtras().getString(\"date\");\n Stime = intent.getExtras().getString(\"time\");\n Sphone = intent.getExtras().getString(\"phone\");\n Log.d(\"userDetails received\", Sname + \",\" + Sphone ); //Don't ignore errors!\n }", "private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }", "public java.util.Map getExtra(int status) throws android.os.RemoteException;", "@Override\n protected void getFromIntent() {\n this.groupID = getIntent().getStringExtra(\"groupId\");\n this.groupName = getIntent().getStringExtra(\"groupName\");\n }", "private void extractDataFromBundle() {\n Intent intent = getIntent();\n Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY);\n\n mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY);\n mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainActivity.GAME_PIECE_KEY);\n\n }", "private void showIntentInfo(Intent intent, TextView textView){\n StringBuilder infoBuilder = new StringBuilder();\n String action = intent.getAction();\n infoBuilder.append(\"Action=\");\n infoBuilder.append(action != null ? action : \"** NO Action **\");\n infoBuilder.append(\"\\n\");\n\n Bundle extras = intent.getExtras();\n if(extras == null){\n infoBuilder.append(\"** NO Extras **\");\n } else {\n infoBuilder.append(\"** Extras **\\n\");\n Set<String> keySet = extras.keySet();\n for(String key : keySet) {\n String value = extras.get(key).toString();\n infoBuilder.append(key);\n infoBuilder.append(\"=\");\n infoBuilder.append(value);\n infoBuilder.append(\"\\n\");\n }\n }\n textView.setText(infoBuilder.toString());\n }", "private void getDataFromIntent(Intent intent) {\n panAadharCardDetail = intent.getParcelableExtra(\"panAadharDetail\");\n card_type = intent.getIntExtra(\"card_type\", 0);\n imageFileUri = intent.getStringExtra(\"imageFile\");\n }", "public Object getExtraInformation() {\n\t\treturn extraInformation;\n\t}", "private void getDataFromIntent() {\n\t\tfinal Intent intent = getIntent();\n\t\tdata.setmUsername(intent.getStringExtra(Constants.PARAM_USERNAME));\n\t\tdata.setmPassword(intent.getStringExtra(Constants.PARAM_PASSWORD));\n\t\tdata.setmHost(intent.getStringExtra(Constants.PARAM_HOST));\n\t\tdata.setmPort(intent.getIntExtra(Constants.PARAM_PORT, 389));\n\t\tdata.setmEncryption(intent.getIntExtra(Constants.PARAM_ENCRYPTION, 0));\n\t\tdata.setmRequestNewAccount((data.getmUsername() == null));\n\t\tdata.setmConfirmCredentials(intent.getBooleanExtra(Constants.PARAM_CONFIRMCREDENTIALS, false));\n\t}", "public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }", "static long m43010a(Intent intent) {\n if (intent == null) {\n return -1;\n }\n return intent.getLongExtra(\"com.tonyodev.fetch.extra_id\", -1);\n }", "public static String getExtraString(Activity context, String key) {\n \tString param = \"\";\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.getString(key);\n \t}\n \treturn param;\n\t}", "public Bundle getExtras() {\n }", "private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }", "private void getDataFromIntent(){\n Bundle extras = getIntent().getExtras();\n //para recibir los datos de una manera segura, se hace una verificacion\n //para ver si los extras no son nulos\n if (extras!=null){\n //en caso de tener datos en el extra, se obtendran y guardaran en variables para su uso deseado\n String data = extras.getString(\"data\");\n boolean isTrue = extras.getBoolean(\"boolean\");\n if (isTrue){\n tvData.setText(data);\n Toast.makeText(this, \"Se recibio un booleano desde MainActivity.\", Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(this, \"No se recibio nada :c\", Toast.LENGTH_LONG).show();\n }\n //en caso de no tener daos dentro dle extra, entrara a esta parte de la condicion\n }else{\n Toast.makeText(this, \"No hay datos extras\", Toast.LENGTH_SHORT).show();\n }\n\n }", "com.google.protobuf.ByteString getExtra();", "public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }", "public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }", "public Bundle extra() {\n if (mExtra == null)\n mExtra = new Bundle();\n return mExtra;\n }", "public String getExtra() {\n Object ref = extra_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n extra_ = s;\n return s;\n }\n }", "private void receiveData()\n {\n Intent i = getIntent();\n loginStatus = i.getIntExtra(\"Login_Status\", 0);\n deviceStatus = i.getIntExtra(\"Device_Status\", 0);\n }", "private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }", "public Intent getIntent() {\n return mIntent;\n }", "public String getExtra() {\n Object ref = extra_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n extra_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public static Bundle m3a(Intent intent) {\n return intent.getBundleExtra(\"al_applink_data\");\n }", "private Order getIntentData(Intent intent) {\n\t\treturn intent != null ? (Order) intent\n\t\t\t\t.getSerializableExtra(TarrifActivity.TICKET_CONTIANS_ORDER_SERIALIZABLE_KEY)\n\t\t\t\t: null;\n\t}", "public Intent getIntent() {\n return mIntent;\n }", "protected abstract Intent getIntent();", "private void addExtras(Intent intent)\n\t{\n\t\tBundle extras = getIntent().getExtras();\n\t\t\n\t\t// Load in the unused extras from the\n\t\t// previous Activity.\n\t\tintent.putExtras(extras);\n\t\t\n\t\t////////////////////////////////////////\n\t\t// Add optional standings categories. //\n\t\t////////////////////////////////////////\n\t\tif (_points.isChecked())\n\t\t{\n\t\t\tintent.putExtra(\"POINTS_ACTIVE\", true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tintent.putExtra(\"POINTS_ACTIVE\", false);\n\t\t}\n\t\t\n\t\tif (_score.isChecked())\n\t\t{\n\t\t\tintent.putExtra(\"SCORE_ACTIVE\", true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tintent.putExtra(\"SCORE_ACTIVE\", false);\n\t\t}\n\t\t/////////////////////////////////////////\n\t}", "private String getStringExtra(Bundle savedInstanceState, String strWhich) {\n String strRet = (savedInstanceState != null ? savedInstanceState.getString(strWhich) : \"\");\r\n \r\n if (strRet == \"\") {\r\n \tBundle extras = getIntent().getExtras(); \r\n \tstrRet = (extras != null ? extras.getString(strWhich) : \"\");\r\n }\r\n \r\n return strRet;\r\n\r\n\t}", "public void setExtraInfo (String info) {\n\tthis.extraInfo = info;\n }", "private void logPushExtras(Intent intent) {\n Set<String> keys = intent.getExtras().keySet();\n for (String key : keys) {\n\n // ignore standard C2DM extra keys\n List<String> ignoredKeys = (List<String>) Arrays.asList(\n \"collapse_key\",// c2dm collapse key\n \"from\",// c2dm sender\n PushManager.EXTRA_NOTIFICATION_ID,// int id of generated notification (ACTION_PUSH_RECEIVED only)\n PushManager.EXTRA_PUSH_ID,// internal UA push id\n PushManager.EXTRA_ALERT);// ignore alert\n if (ignoredKeys.contains(key)) {\n continue;\n }\n Log.i(logTag,\n \"Push Notification Extra: [\" + key + \" : \"\n + intent.getStringExtra(key) + \"]\"\n );\n }\n }", "@SuppressWarnings(\"unchecked\")\n protected <V extends Parcelable> V getParcelableExtra( final String name )\n {\n return (V) getIntent().getParcelableExtra( name );\n }", "String getAdditionalInfo();", "private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }", "public Bundle getExtras() {\n return mBundle.getBundle(KEY_EXTRAS);\n }", "public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }", "void mo21580A(Intent intent);", "private void BundleData(Intent intent) {\n bundle=new Bundle();\n bundle.putString(\"FNAME\",fname);\n bundle.putString(\"LNAME\",lname);\n bundle.putString(\"LOCALITY\",locality);\n bundle.putString(\"CITY\",city);\n bundle.putInt(\"PINCODE\",pincode);\n bundle.putString(\"TIME_TO_CALL\",timers);\n bundle.putString(\"PHONE\",phone);\n bundle.putString(\"ALTPHONE\",altphone);\n bundle.putString(\"EMAIL\",emailid);\n intent.putExtras(bundle);\n }", "@Override public java.util.Map getExtra(int status) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.util.Map _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(status);\nmRemote.transact(Stub.TRANSACTION_getExtra, _data, _reply, 0);\n_reply.readException();\njava.lang.ClassLoader cl = (java.lang.ClassLoader)this.getClass().getClassLoader();\n_result = _reply.readHashMap(cl);\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public Intent getActivityIntent() {\n Intent intent = new Intent(this.context, InterstitialActivity.class);\n intent.setFlags(268435456);\n intent.addFlags(67108864);\n intent.putExtra(\"id\", getPlacementID());\n if (this.setAutoPlay) {\n intent.putExtra(\"auto_play\", this.autoPlay);\n }\n if (this.setCanClose) {\n intent.putExtra(\"can_close\", isBackButtonCanClose());\n }\n if (this.setMute) {\n intent.putExtra(\"mute\", getMute());\n }\n intent.putExtra(\"cat\", getCategories());\n intent.putExtra(\"pbk\", getPostback());\n intent.putExtra(\"b_color\", getButtonColor());\n intent.putExtra(\"skip_title\", getSkipText());\n intent.putExtra(\"creative\", getCreative());\n return intent;\n }", "public String getAdditionalData() {\n return additionalData;\n }", "@Override\n\tprotected void obtainIntentValue() {\n\n\t}", "public ListaAttributi getExtra() {\r\n return this.extra;\r\n }", "public static Bundle getExtrasBundle(Bundle intentExtras) {\n if (!Constants.IS_AMAZON) {\n return intentExtras.getBundle(Constants.APPBOY_PUSH_EXTRAS_KEY);\n } else {\n return intentExtras;\n }\n }", "@Override\n \tpublic void onReceive(Context context, Intent intent)\n \t{\n \tMediaInfoArtist = intent.getStringExtra(\"artist\");\n \tMediaInfoAlbum = intent.getStringExtra(\"album\");\n \tMediaInfoTrack = intent.getStringExtra(\"track\");\n \tMediaInfoNeedsUpdate = true;\n \tLog.d(\"OLV Music\",\"Artist: \"+MediaInfoArtist+\", Album: \"+MediaInfoAlbum+\" and Track: \"+MediaInfoTrack);\n \t}", "public static String getStringIntent(Intent intent, String name) {\n\t\tString retval = null;\n\t\tif (intent != null) {\n\t\t\tif (intent.hasExtra(name))\n\t\t\t\tretval = intent.getStringExtra(name);\n\t\t}\n\t\treturn retval;\n\t}", "public void addExtraInfo(final ArrayList<PersonInfo> extra) {\n info.addAll(extra);\n hasExtra = true;\n }", "public String getAdditionalInfo() {\n return additionalInfo;\n }", "public String getAdditionalInfo() {\n return additionalInfo;\n }", "public String getAdditionalInfo() {\r\n return additionalInfo;\r\n }", "private void getIncomingData() {\n Bundle bundle = getIntent().getExtras();\n if (bundle.containsKey(\"DOCTOR_ID\")\n && bundle.containsKey(\"DOCTOR_NAME\")\n && bundle.containsKey(\"CLINIC_ID\")\n && bundle.containsKey(\"CLINIC_NAME\")\n && bundle.containsKey(\"CLINIC_LATITUDE\")\n && bundle.containsKey(\"CLINIC_LONGITUDE\")\n && bundle.containsKey(\"CLINIC_ADDRESS\")) {\n DOCTOR_ID = bundle.getString(\"DOCTOR_ID\");\n DOCTOR_NAME = bundle.getString(\"DOCTOR_NAME\");\n CLINIC_ID = bundle.getString(\"CLINIC_ID\");\n CLINIC_NAME = bundle.getString(\"CLINIC_NAME\");\n CLINIC_LATITUDE = bundle.getDouble(\"CLINIC_LATITUDE\");\n CLINIC_LONGITUDE = bundle.getDouble(\"CLINIC_LONGITUDE\");\n CLINIC_ADDRESS = bundle.getString(\"CLINIC_ADDRESS\");\n\n if (DOCTOR_NAME != null) {\n txtDoctorName.setText(DOCTOR_NAME);\n }\n\n if (CLINIC_NAME != null) {\n txtClinicName.setText(CLINIC_NAME);\n }\n\n if (CLINIC_ADDRESS != null) {\n txtClinicAddress.setText(CLINIC_ADDRESS);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to get required info....\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "boolean hasExtra();", "private void getIntentAndDisplayData(Intent i) {\n\t\t\tif (!isCancelled()) {\n\t\t\t\tforumTopicID = i.getStringExtra(\"topicID\");\n\t\t\t\tuserID = i.getStringExtra(\"userID\");\n\t\t\t\tgetDataFromServer(forumTopicID);\n\t\t\t}\n\t\t}", "public Intent getRequestIntent() {\n return requestIntent;\n }", "@Override\n public Bundle getExtras() {\n Bundle extras = contactsCursor == null ? new Bundle() : contactsCursor.getExtras();\n extras.putInt(FAVORITES_COUNT, favoritesCount);\n return extras;\n }", "@Override\n public void dataAvailable(Intent intent) {\n String uuid = BLEService.getmCharacteristicToPass().getUuid().toString();\n }", "public interface extras {\n\n Extras getExtras();\n\n}", "protected String getBundleData() {\n Bundle bundle = getIntent().getExtras();\n StringBuilder temp = new StringBuilder();\n SessionManager session = new SessionManager(getApplicationContext());\n\n temp.append(\"User: \").append(session.getUserName()).append(\"\\r\\n\");\n temp.append(\"Layout: \").append(getBundle(bundle, \"layout\")).append(\"\\r\\n\");\n temp.append(\"Orientation: \").append(getBundle(bundle, \"orientation\")).append(\"\\r\\n\");\n temp.append(\"Variation: \").append(getBundle(bundle, \"variation\")).append(\"\\r\\n\");\n temp.append(\"Hardwareaddons: \").append(getBundle(bundle, \"hardwareaddons\")).append(\"\\r\\n\");\n temp.append(\"Input: \").append(getBundle(bundle, \"input\")).append(\"\\r\\n\");\n temp.append(\"Posture: \").append(getBundle(bundle, \"posture\")).append(\"\\r\\n\");\n temp.append(\"Externalfactors: \").append(getBundle(bundle, \"externalfactors\")).append(\"\\r\\n\").append(\"\\r\\n\");\n //data = temp.toString();\n return temp.toString();\n }", "@SuppressWarnings(\"unused\")\npublic interface Constants {\n /**\n * Extra data key. Used with intent or some others.\n */\n class Extras {\n public static final String TAG = \"ext_tag\";\n public static final String FLAG = \"ext_flag\";\n public static final String DATA = \"ext_data0\";\n public static final String DATA_1 = \"ext_data1\";\n public static final String DATA_2 = \"ext_data2\";\n public static final String DATA_3 = \"ext_data3\";\n public static final String DATA_4 = \"ext_data4\";\n public static final String DATA_5 = \"ext_data5\";\n public static final String DATA_6 = \"ext_data6\";\n public static final String DATA_7 = \"ext_data7\";\n public static final String DATA_8 = \"ext_data8\";\n public static final String GRADE_INFO = \"ext_grade_info\";\n public static final String MEMBER_VP_INFO = \"ext_member_vp_info\";\n public static final String MEMBER_VP_POSITION = \"ext_member_vp_position\";\n }\n\n\n}", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "com.google.protobuf.ByteString\n getExtraBytes();", "@NonNull\n final public Map<String, Object> getExtras() {\n return new HashMap<String, Object>(mExtras);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tputExtra();\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }", "public String getExtraOptions() {\n return this.extraOptions;\n }", "@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }", "private ArrayList<TodoData> getTodos() {\n Intent intent = (Intent) getIntent();\n return (ArrayList<TodoData>) intent.getSerializableExtra(\"todos\");\n }", "private void receiveData()\n {\n Intent i = getIntent();\n productSelected = Paper.book().read(Prevalent.currentProductKey);\n vendorID = i.getStringExtra(\"vendorID\");\n if (productSelected != null) {\n\n productName = i.getStringExtra(\"productName\");\n productImage = i.getStringExtra(\"imageUrl\");\n productLongDescription = i.getStringExtra(\"productLongDescription\");\n productCategory = i.getStringExtra(\"productCategory\");\n productPrice = i.getStringExtra(\"productPrice\");\n productSizesSmall = i.getStringExtra(\"productSizesSmall\");\n productSizesMedium = i.getStringExtra(\"productSizesMedium\");\n productSizesLarge = i.getStringExtra(\"productSizesLarge\");\n productSizesXL = i.getStringExtra(\"productSizesXL\");\n productSizesXXL = i.getStringExtra(\"productSizesXXL\");\n productSizesXXXL = i.getStringExtra(\"productSizesXXXL\");\n productQuantity = i.getStringExtra(\"productQuantity\");\n }\n }", "private String addExtra() {\n\t\t// One Parameter: ExtraName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|extra:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}", "public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }", "public String getExtra3() {\n return extra3;\n }", "static /* synthetic */ byte[] m10276k(Intent intent) {\n if (intent == null) {\n return null;\n }\n Parcel obtain = Parcel.obtain();\n obtain.setDataPosition(0);\n intent.writeToParcel(obtain, 0);\n byte[] marshall = obtain.marshall();\n obtain.recycle();\n return marshall;\n }", "public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static Bundle getBundle(Activity c) {\n\t\treturn c.getIntent().getExtras();\n\t}", "public String getExtra2() {\n return extra2;\n }", "abstract protected void addExtras();", "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context,\"静态广播:\"+intent.getAction()+\":\"+intent.getStringExtra(\"tv\"),\n Toast.LENGTH_LONG).show();\n System.out.println(intent.getStringExtra(\"tv\"));\n }", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n Intent intent = getIntent();\n if (intent != null) {\n this.Z = intent.getStringExtra(\"extra_deep_link_ots\");\n this.Y = intent.getStringExtra(\"extra_deep_link_email\");\n }\n }", "@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }", "protected List<Info> getInfo() {\n\n return (List<Info>) getExtraData().get(ProcessListener.EXTRA_DATA_INFO);\n }", "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\n\t\tString activityName = \"com.sonyericsson.media.infinite.EXTRA_ACTIVITY_NAME\";\n\n\t\tif (intent.getStringExtra(activityName) != null && intent.getStringExtra(activityName).equals(MusicPreferenceActivity.class.getName())) {\n\n\t\t\tBundle extras = new Bundle();\n\n\t\t\t// Build a URI for the string resource for the description text\n\t\t\tString description = new Uri.Builder().scheme(ContentResolver.SCHEME_ANDROID_RESOURCE).authority(context.getPackageName()).appendPath(Integer.toString(R.string.description)).build()\n\t\t\t\t\t.toString();\n\n\t\t\t// And return it to the infinite framework as an extra\n\t\t\textras.putString(\"com.sonyericsson.media.infinite.EXTRA_DESCRIPTION\", description);\n\t\t\tsetResultExtras(extras);\n\n\t\t}\n\t}", "public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static Bundle m4b(Intent intent) {\n Bundle a = m3a(intent);\n if (a == null) {\n return null;\n }\n return a.getBundle(AppLinkData.ARGUMENTS_EXTRAS_KEY);\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK && requestCode == 1) {\n // Extract name value from result extras\n site = data.getExtras().getString(\"site\");\n color = data.getExtras().getString(\"color\");\n type = data.getExtras().getString(\"type\");\n size = data.getExtras().getString(\"size\");\n // Toast the name to display temporarily on screen\n\n }\n }", "public void getDetails() {\n presenter = new SkillPresenter(this, this);\n try {\n if (getIntent().getExtras().get(\"from\").toString().equalsIgnoreCase(\"notification\")) {\n presenter.getSkillsNotification(this, getIntent().getIntExtra(\"notification_id\", 0));\n } else if (getIntent().getExtras().get(\"from\").toString().equalsIgnoreCase(\"notificationAdapter\")) {\n presenter.getSkillsNotification(this, getIntent().getIntExtra(\"notification_id\", 0));\n } else {\n presenter.getSkills(this);\n }\n }catch (Exception e){\n e.printStackTrace();\n presenter.getSkills(this);\n }\n }", "public String getExtra1() {\n return extra1;\n }", "private void handleIntent() {\n // Get the intent set on this activity\n Intent intent = getIntent();\n\n // Get the uri from the intent\n Uri uri = intent.getData();\n\n // Do not continue if the uri does not exist\n if (uri == null) {\n return;\n }\n\n // Let the deep linker do its job\n Bundle data = mDeepLinker.buildBundle(uri);\n if (data == null) {\n return;\n }\n\n // See if we have a valid link\n DeepLinker.Link link = DeepLinker.getLinkFromBundle(data);\n if (link == null) {\n return;\n }\n\n // Do something with the link\n switch (link) {\n case HOME:\n break;\n case PROFILE:\n break;\n case PROFILE_OTHER:\n break;\n case SETTINGS:\n break;\n }\n\n String msg;\n long id = DeepLinker.getIdFromBundle(data);\n if (id == 0) {\n msg = String.format(\"Link: %s\", link);\n } else {\n msg = String.format(\"Link: %s, ID: %s\", link, id);\n }\n\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }" ]
[ "0.7976446", "0.7306751", "0.7294586", "0.7218195", "0.7154684", "0.7119123", "0.69274694", "0.68558574", "0.665363", "0.6604471", "0.6603971", "0.6529888", "0.6460084", "0.64293754", "0.6410902", "0.64082104", "0.6394297", "0.6389732", "0.63541335", "0.6350085", "0.6336622", "0.6327171", "0.6326564", "0.6234799", "0.623077", "0.62253374", "0.6179544", "0.6152251", "0.6137608", "0.6112882", "0.61071277", "0.6083492", "0.60713196", "0.6061057", "0.60458875", "0.6015518", "0.60099286", "0.6001028", "0.59726495", "0.59667736", "0.596252", "0.59564203", "0.5935012", "0.59239924", "0.58941126", "0.5881095", "0.5878875", "0.5850501", "0.58301014", "0.5814611", "0.58038217", "0.5797673", "0.5794096", "0.5731925", "0.57302463", "0.57291454", "0.57118964", "0.56938666", "0.5674815", "0.5674197", "0.5669862", "0.5650707", "0.5650707", "0.5647139", "0.5638774", "0.56309", "0.56213135", "0.56007993", "0.55951864", "0.55909204", "0.55753946", "0.55704206", "0.5561137", "0.55594116", "0.55549175", "0.55533814", "0.55414957", "0.55261093", "0.55209905", "0.5518462", "0.5516228", "0.5512507", "0.5506857", "0.55049545", "0.5490202", "0.54859865", "0.5485403", "0.5480949", "0.5478128", "0.5478", "0.54721683", "0.5454495", "0.54381967", "0.54215145", "0.5413508", "0.54034346", "0.5397108", "0.5378658", "0.53764975", "0.53763366", "0.5369716" ]
0.0
-1
Can do greater than or less than with chars (for RPG)
public static void main(String[] args) { char aa = '\u0000'; char a = '\u0041'; char b = '\u0042'; char c = '\u0043'; char d = '\u0044'; char e = '\u0045'; char f = '\u0046'; char g = '\u0047'; char h = '\u0048'; char i = '\u0049'; char j = '\u004A'; char k = '\u004B'; char l = '\u004C'; char m = '\u004D'; char n = '\u004E'; char o = '\u004F'; char p = '\u0051'; char q = '\u0051'; char r = '\u0052'; char s = '\u0053'; char t = '\u0054'; char u = '\u0055'; char v = '\u0056'; char w = '\u0057'; char x = '\u0058'; char y = '\u0059'; char z = '\u0060'; System.out.println(+i+""+aa+""+w+""+i+""+s+""+h+""+aa+""+t+""+o+""+aa+""+p+""+e+""+r+""+i+""+s+""+h); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isGreater(MyChar c){\n if((content - c.content) > 0){\n return true;\n }\n return false;\n }", "private boolean isSmallLexi(String curr, String ori) {\n if (curr.length() != ori.length()) {\n return curr.length() < ori.length();\n }\n for (int i = 0; i < curr.length(); i++) {\n if (curr.charAt(i) != ori.charAt(i)) {\n return curr.charAt(i) < ori.charAt(i);\n }\n }\n return true;\n }", "private boolean RANGE(char first, char last) {\r\n if (in >= input.length()) return false;\r\n int len = input.nextLength(in);\r\n int code = input.nextChar(in, len);\r\n if (code < first || code > last) return false;\r\n in += len;\r\n return true;\r\n }", "public boolean preceeds(char a, char b) {\n int first = 0;\n int second = 0;\n \n switch (a) {\n case('+'):\n first = 1;\n break;\n case('-'):\n first = 1;\n break;\n case('*'):\n first = 2;\n break;\n case('/'):\n first = 2;\n break;\n case('%'):\n first = 2;\n break;\n case('('):\n first = 3;\n break;\n case(')'):\n first = 3;\n break;\n default:\n System.out.println(\"Problem with char a in class Operator\");\n }\n switch (b) {\n case('+'):\n second = 1;\n break;\n case('-'):\n second = 1;\n break;\n case('*'):\n second = 2;\n break;\n case('/'):\n second = 2;\n break;\n case('%'):\n second = 2;\n break;\n case('('):\n second = 3;\n break;\n case(')'):\n second = 3;\n break;\n default:\n System.out.println(\"Problem with char b in class Operator\");\n }\n \n return first <= second;\n }", "private static boolean c(char paramChar)\r\n/* 680: */ {\r\n/* 681:674 */ return ((paramChar >= '0') && (paramChar <= '9')) || ((paramChar >= 'a') && (paramChar <= 'f')) || ((paramChar >= 'A') && (paramChar <= 'F'));\r\n/* 682: */ }", "public static void main(String[] args) {\n\t\t\r\n boolean b1=10==11;\r\n System.out.println(\"b1=\"+b1);\r\n \r\n b1=10!=11;\r\n System.out.println(\"b1=\"+b1);\r\n \r\n b1=10<11;\r\n System.out.println(\"b1=\"+b1);\r\n \r\n b1=10>11;\r\n System.out.println(\"b1=\"+b1);\r\n\t\t\r\n // char => 모든 연산에서 정수로 변경됨\r\n b1=65<='A'; \r\n \r\n System.out.println(\"bi=\"+b1);\r\n \r\n b1=65>='B';\r\n System.out.println(\"b1=\"+b1);\r\n \r\n // char => 번호로 바뀐다 -> 형변환 알아보기 위함 -> ASC 코드값\r\n System.out.println((int)'A'); \r\n System.out.println((int)'0'); // 문자 '0'--> 48 '1' => 49\r\n System.out.println((int)'a'); // \r\n \r\n \r\n \r\n \r\n // 두개의 정수를 받아서 큰값을 출력하라\r\n \r\n Scanner scan=new Scanner(System.in);\r\n //new => 메모리에 저장, 생성자(new~in)까지) ==> 초기값 부여\r\n /*\r\n * scan.nextInt() ==> int\r\n * scan.nextDouble() ==> double\r\n * scan.next() ==> String\r\n * scan.nextBoolean() ==> boolean\r\n * \r\n * ==> char (x)\r\n */\r\n \r\n // 정수 두개 받기\r\n // 1. 받아서 저장할 변수\r\n int num1,num2;\r\n System.out.print(\"첫번째 정수 입력:\");\r\n //입력을 하고 = > enter ==> num1에 저장\r\n num1=scan.nextInt();\r\n \r\n System.out.println(\"두번째 정수 입력:\");\r\n num2=scan.nextInt();\r\n\t\t\r\n // ? : 피연산자 3개 삼항 연산자\r\n int result=num1<num2?num2:num1;\r\n // 참출력:거짓출력\r\n \r\n System.out.println(\"큰값은\"+result+\"입니다\");\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t}", "String getGreater();", "private boolean isOperator(char c) {\n\t\treturn c == '<' || c == '=' || c == '>' || c == '!';\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString s = \"123.5MA1C2034\";\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\tif(((int) s.charAt(i)>= 65 && (int)s.charAt(i)<= 91)||(int) s.charAt(i)>= 97 && (int)s.charAt(i)<= 122)\n\t\t\t\tSystem.out.println(s.charAt(i));\n\t\t\t\n\t}", "LengthGreater createLengthGreater();", "public boolean Digito(){\n return ((byte)this.caracter>=48 && (byte)this.caracter<=57);\n }", "public boolean preceeds(String a, String b) {\n int first = 0;\n int second = 0;\n \n switch (a.charAt(0)) {\n case('+'):\n first = 1;\n break;\n case('-'):\n first = 1;\n break;\n case('*'):\n first = 2;\n break;\n case('/'):\n first = 2;\n break;\n case('%'):\n first = 2;\n break;\n case('('):\n first = 3;\n break;\n case(')'):\n first = 3;\n break;\n default:\n System.out.println(\"Problem with char a in class Operator\");\n }\n switch (b.charAt(0)) {\n case('+'):\n second = 1;\n break;\n case('-'):\n second = 1;\n break;\n case('*'):\n second = 2;\n break;\n case('/'):\n second = 2;\n break;\n case('%'):\n second = 2;\n break;\n case('('):\n second = 3;\n break;\n case(')'):\n second = 3;\n break;\n default:\n System.out.println(\"Problem with char b in class Operator\");\n }\n \n return first <= second;\n }", "private static boolean d(char paramChar)\r\n/* 685: */ {\r\n/* 686:678 */ return ((paramChar >= 'k') && (paramChar <= 'o')) || ((paramChar >= 'K') && (paramChar <= 'O')) || (paramChar == 'r') || (paramChar == 'R');\r\n/* 687: */ }", "public boolean highOrLow(char c1, char c2) {\n\t\tc1 = test(c1);\n\t\tc2 = test(c2);\n\n\t\tif (c2 < c1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private static boolean check_if_operator(char c)\n {\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '^'|| c == 'r'\n || c == '(' || c == ')'|| c == 's' || c == 'c' || c == 't' || c == 'l';\n }", "@Override\n public int compareTo(ComparableChar comparableChar) {\n if (this.higher[comparableChar.index] == 1) return -1;\n // Checking if its higher\n if (comparableChar.higher[this.index] == 1) return 1;\n return 0;\n }", "private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }", "public boolean isLessThan(StringNum a, StringNum b) {\n\t\tif(a.getNumber().length() > b.getNumber().length()) {\n\t\t\treturn false;\n\t\t}\n\t\telse if(a.getNumber().length() < b.getNumber().length()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tfor(int i = 0; i < a.getNumber().length(); i++) {\n\t\t\t\tif(Character.getNumericValue(a.getNumber().charAt(i)) < Character.getNumericValue(b.getNumber().charAt(i))) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse if(Character.getNumericValue(a.getNumber().charAt(i)) > Character.getNumericValue(b.getNumber().charAt(i))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "boolean isLetra(char caracter){\n\r\n if(caracter=='+'||caracter=='-'||caracter=='/'||caracter=='^'||caracter=='*'||caracter=='('||caracter==')'){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n \r\n }", "public static boolean stringInBounds (String plainText) {\r\n\t\t\r\n\t\tchar[] pText = plainText.toCharArray();\r\n\t\tboolean isCorrect;\r\n\t\tfor(int i = 0; i < plainText.length(); i++) {\r\n\t\t\tdo {\r\n\t\t\t\tif (plainText.charAt(i) < LOWER_BOUND || plainText.charAt(i) > UPPER_BOUND ) {\r\n\t\t\t\t\tisCorrect = false;\r\n\t\t\t\t\t\r\n\t\t\t\t\t/**\r\n\t\t\t\t\tif(plainText.charAt(i) < LOWER_BOUND) {\r\n\t\t\t\t\t\tchar nChar = (char) (plainText.charAt(i) - RANGE);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tchar nChar = (char) (plainText.charAt(i) + RANGE);\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}else {\r\n\t\t\t\t\tisCorrect = true;\r\n\t\t\t\t}\r\n\t\t\t}while(isCorrect = false);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean greaterThan(String a, String b) {\n if (a==\"\" && b==\"\") {return false;}\n if (a==\"\") {return false;}\n if (b==\"\") {return true;}\n String[] as = a.split(\" \");\n String[] bs = b.split(\" \");\n int alen = as.length;\n int blen = bs.length; \n int[] als = new int[alen];\n int[] bls = new int[blen];\n for (int i=0; i<alen; i++) {als[i]=as[i].length();}\n for (int i=0; i<blen; i++) {bls[i]=bs[i].length();}\n Arrays.sort(als);\n Arrays.sort(bls);\n reverse(als);\n reverse(bls);\n boolean is=false;\n boolean done=false;\n for (int i=0; i<alen && i<blen && !done; i++) {\n //System.out.println(als[i]+\" \"+bls[i]+\" || \"+a+\" : \"+b);\n if (als[i]>bls[i]) {is=true; done=true;}\n if (als[i]<bls[i]) {is=false; done=true;}\n }\n return is;\n }", "public boolean ValidMoveset(String s) {\r\n\t\t\r\n\t\tif(s==null) {\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tchar[] C = s.toCharArray();\r\n\r\n\t\tint incr = 1;\r\n\t\t\r\n\t\tboolean T = false;\r\n\t\tfor(int i=0; i<C.length;i= i +incr) {\r\n\t\t\tif(i!=C.length-1) {\r\n\t\t\t\t//System.out.printf(\"str:%c%c INT VAL: %d\\n\",C[i],C[i+1],Character.getNumericValue((int)C[i+1]));\r\n\t\t\t\tT = (C[i]=='u'&&Character.getNumericValue(C[i+1])>0&&Character.getNumericValue(C[i+1])<9)||(C[i]=='r'&&Character.getNumericValue((int)C[i+1])>0&&Character.getNumericValue((int)C[i+1])<9)||(C[i]=='d'&&Character.getNumericValue((int)C[i+1])>0&&Character.getNumericValue((int)C[i+1])<9)||(C[i]=='l'&&Character.getNumericValue((int)C[i+1])>0&&Character.getNumericValue((int)C[i+1])<9)||(C[i]=='<'&&Character.getNumericValue((int)C[i+1])>0&&Character.getNumericValue((int)C[i+1])<9)||(C[i]=='>'&&Character.getNumericValue((int)C[i+1])>0&&Character.getNumericValue((int)C[i+1])<9)||(C[i]=='{'&&Character.getNumericValue((int)C[i+1])>0&&Character.getNumericValue((int)C[i+1])<9)||(C[i]=='}'&&Character.getNumericValue((int)C[i+1])>0&&Character.getNumericValue((int)C[i+1])<9)/*||(C[i]=='U')||(C[i]=='R')||(C[i]=='D')||(C[i]=='L')||(C[i]=='<'&&C[i+1]=='<')||(C[i]=='>'&&C[i+1]=='>')||(C[i]=='{'&&C[i+1]=='{')||(C[i]=='}'&&C[i+1]=='}')*/;\r\n\t\t\t\tincr = 2;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//These can be the only cases for last char\r\n\t\t\t\t//T =(C[i]=='U')||(C[i]=='R')||(C[i]=='D')||(C[i]=='L'); \r\n\t\t\t\t\r\n\t\t\t\t/////////////////////////////////////////////////////////////////ALLOW USER TO CREATE OWN PIECE\r\n\t\t\t\tT = false;\r\n\t\t\t\t///////////////////////////////////////////////////////////////// MUST MANUALLY SET ALL PIECE MOVESETS\r\n\t\t\t\t\r\n\t\t\t\tincr = 1;\r\n\t\t\t}\r\n\t\tif(!T) {\r\n\t\t\t//If Failed all cases\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public String check_talk_duration(Operator op){\n String positive = \"соблюдено\";\n String negative = \"не соблюдено\";\n int talk_duration_seconds = (int) get_seconds(op.getAverage_talk_duration());\n int talk_duration_value = (int) get_seconds(talk_duration);\n if(talk_duration_seconds<=talk_duration_value)\n return positive;\n else\n {\n op.setBonus(op.getBonus()-500);\n return negative;\n }\n\n\n }", "private static boolean above_limit(String a)\n {\n int sum = 0;\n for(int x = 0; x < a.length(); x++)\n {\n sum += (find_cost(\"\"+a.charAt(x)));\n }\n if(sum >= library.return_capacity() || sum <= library.return_lowercost())\n return false;\n return true;\n }", "public Character compop() {\n if (lexer.token != Symbol.LT && lexer.token != Symbol.GT && lexer.token != Symbol.EQUAL) {\n error.signal(\"Missing comparison operator for condition\");\n }\n Character c = lexer.getStringValue().toCharArray()[0];\n lexer.nextToken();\n return c;\n }", "private boolean isOperator(char ch)\n {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^')\n//returns true if either of the operator is found\n return true;\n//else returns false\n return false;\n }", "public void checkOperator (TextView tv){\n String s = tv.getText().toString().substring(tv.getText().length() - 1);\n if (s.equals(\")\") || s.equals(\"!\")) {\n //int a = 1;\n isOperator = false;\n } else if (Character.isDigit(tv.getText().toString().charAt(tv.getText().toString().length() - 1)))\n isOperator = false;\n else\n isOperator = true;\n }", "boolean isAfuerMayorDentro(char dentro, char afuera){\n return peso(afuera)>peso(dentro);\r\n }", "boolean test() {\n int comp = this._col1.value().compareTo(this._col2.value());\n if (comp < 0 && (this.compRep & LT) != 0\n || comp > 0 && (this.compRep & GT) != 0\n || comp == 0 && (this.compRep & EQ) != 0) {\n return true;\n }\n return false;\n }", "private static boolean less(String v, String w, int d) {\n assert v.substring(0, d).equals(w.substring(0, d));\n for (int i = d; i < Math.min(v.length(), w.length()); i++) {\n if (v.charAt(i) < w.charAt(i)) return true;\n if (v.charAt(i) > w.charAt(i)) return false;\n }\n return v.length() < w.length();\n }", "private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }", "private static boolean isOperand(char ch) {\n return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');\n }", "int getIndex(Character c)\n{\n int a = Character.getNumericValue('a');\n int z = Character.getNumericValue('z');\n int val = Character.getNumericValue(c);\n \n if (a <= val && val <= z) return val - a;\n return -1;\n}", "static String biggerIsGreater(String w) {\n int l = w.length();\n String[] strs = new String[w.length()];\n for (int i = 0; i < l; i++) {\n strs[i] = w.charAt(i)+\"\";\n }\n\n Arrays.sort(strs, Collections.reverseOrder());\n StringBuffer maxString = new StringBuffer();\n for (int i = 0; i < l; i++) {\n maxString.append(strs[i]);\n }\n StringBuffer s = new StringBuffer(w);\n if(s.toString().equals(maxString)){\n return \"no answer\";\n }\n boolean found = false;\n int i = l-1;\n int j = 0;\n while(!found && i>0 && s.toString().compareTo(maxString.toString()) <0){\n char qi = s.charAt(i);\n for (j = i-1; j >=0 ; j--) {\n char qj = s.charAt(j);\n if(qi > qj){\n s.setCharAt(i, qj);\n s.setCharAt(j, qi);\n found = true;\n break;\n }\n }\n i--;\n }\n String res = sort(s.toString(), j+1, s.length(), false);\n\n return found?res:\"no answer\";\n\n }", "public static boolean isAscii(char ch) {\n/* 403 */ return (ch < '€');\n/* */ }", "boolean operator(Character input){\r\n //detects operands\r\n if(input == '^'||input == '-'||input == '+'||input == '/'||input == '*'|| input =='('|| input ==')'){\r\n return true;\r\n }\r\n else\r\n return false;\r\n }", "public boolean isAscii()\n { \n for (int i=0; i<val.length(); ++i)\n { \n int c = val.charAt(i);\n if (c > 0x7f) return false;\n }\n return true;\n }", "public static void main(String[] args) {\nint tamil = 75;\r\nint english = 50;\r\nif((tamil>=35)||(english>=35))\r\n System.out.println(\"You are passed in english and tamil\");\r\nelse\r\n\tSystem.out.println(\"You are failed!\");\r\n\t}", "private boolean isOperator(char x) {\n return (x == '^' ||\n x == '*' ||\n x == '/' ||\n x == '+' ||\n x == '-');\n }", "private boolean isDisplayable(int c) {\n return 20 <= c && c <= 126 && c != '\"';\n }", "public boolean isOperator(char c){\n char[] operator = { '+', '-', '*', '/','^', ')', '(' };\r\n int temp = 0;\r\n for (int i = 0; i < operator.length; i++) {\r\n if (c == operator[i])\r\n temp +=1;\r\n }\r\n return temp != 0;\r\n }", "private boolean conditionSimple( String condition, String[] ligne )\r\n {\n condition = condition.replaceAll(\",\", \"\");\r\n //condition = condition.replaceAll(\"(\", \"\");\r\n //condition = condition.replaceAll(\")\", \"\");\r\n condition = condition.replaceAll(\" \", \"\");\r\n \r\n boolean result = false;\r\n \r\n // cas de <\r\n if( condition.contains(\"<\") )\r\n {\r\n String[] tmp = condition.split(\"<\");\r\n int index = this.getIndexColumn( tmp[0] );\r\n \r\n // le cas ou on a column < entier\r\n if( index != -1 )\r\n result = Integer.parseInt( ligne[index] ) < Integer.parseInt( tmp[1] );\r\n // le cas de entier < column\r\n else\r\n {\r\n index = this.getIndexColumn( tmp[1] );\r\n result = Integer.parseInt( tmp[0] )< Integer.parseInt( ligne[index] );\r\n }\r\n }\r\n // cas de >\r\n else if( condition.contains(\">\") )\r\n {\r\n String[] tmp = condition.split(\">\");\r\n int index = this.getIndexColumn( tmp[0] );\r\n \r\n // le cas ou on a column > entier\r\n if( index != -1 )\r\n result = Integer.parseInt( ligne[index] ) > Integer.parseInt( tmp[1] );\r\n // le cas de entier > column\r\n else\r\n {\r\n index = this.getIndexColumn( tmp[1] );\r\n result = Integer.parseInt( tmp[0] )> Integer.parseInt( ligne[index] );\r\n }\r\n }\r\n // cas de !=\r\n else if( condition.contains(\"!=\") )\r\n {\r\n String[] tmp = condition.split(\"!=\");\r\n int index = this.getIndexColumn( tmp[0] );\r\n \r\n // le cas ou on a column = entier\r\n if( index != -1 )\r\n result = !ligne[index].equals(tmp[1]);\r\n // le cas de entier = column\r\n else\r\n {\r\n index = this.getIndexColumn( tmp[1] );\r\n result = !tmp[0].equals(ligne[index]);\r\n }\r\n }\r\n // cas de =\r\n else if( condition.contains(\"=\") )\r\n {\r\n String[] tmp = condition.split(\"=\");\r\n int index = this.getIndexColumn( tmp[0] );\r\n \r\n // le cas ou on a column = entier\r\n if( index != -1 )\r\n result = ligne[index].equals(tmp[1]);\r\n // le cas de entier = column\r\n else\r\n {\r\n index = this.getIndexColumn( tmp[1] );\r\n result = tmp[0].equals(ligne[index]);\r\n }\r\n }\r\n \r\n return result;\r\n }", "boolean hasGt();", "public static boolean stringInBounds (String plainText) {\r\n\t\t// Variables\r\n\t\tboolean isValid = true;\r\n\t\t\r\n\t\t// Loops\r\n\t\tfor (int i = 0; i < plainText.length(); i++) {\r\n\t\t\t// Variables\r\n\t\t\tchar c = plainText.charAt(i);\r\n\t\t\t\r\n\t\t\t// Checks\r\n\t\t\tif (c < LOWER_BOUND || c > UPPER_BOUND) {\r\n\t\t\t\tisValid = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Return\r\n\t\treturn isValid;\r\n\t}", "private static int way(char charAt, char charAt2) {\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(charAt);\r\n\t\tsb.append(charAt2);\r\n\t\t\r\n\t\tif(Integer.parseInt(sb.toString()) <= 26) return 1;\r\n\t\treturn 0;\r\n\t}", "public static boolean checkOperator(String inputChar){\r\n\t\tchar tempChar = inputChar.charAt(0);\r\n\t\t\r\n\t\tswitch(tempChar){\r\n\t\t\tcase '+': return true;\r\n\t\t\tcase '-': return true;\r\n\t\t\tcase '*': return true;\r\n\t\t\tcase '/': return true;\r\n\t\t\tcase '%': return true;\r\n\t\t\tcase '&': return true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public static boolean b(String str, String str2) {\n int i2 = 0;\n while (i2 < str2.length()) {\n try {\n if (str.charAt(i2) > str2.charAt(i2)) {\n return true;\n }\n if (str.charAt(i2) < str2.charAt(i2)) {\n return false;\n }\n i2++;\n } catch (Throwable unused) {\n }\n }\n return false;\n }", "private static String[] assertCondition(String c,int andGroupNo) throws Exception {\n\t\tif (c.trim().equals(\"\")) return new String[0];\n\t\tString h=\"(?<=[\\\\d\\\\w '\\\"])\",t=\"(?=[\\\\d\\\\w '\\\"])\";\n\t\tPattern lessThen=Pattern.compile(h+\"<\"+t),greaterThen=Pattern.compile(h+\">\"+t)\n\t\t\t\t,unequal=Pattern.compile(h+\"\\\\(<>|!=\\\\)\"+t),equal=Pattern.compile(h+\"=\"+t)\n\t\t\t\t,lessEqual=Pattern.compile(h+\"<=\"+t),greaterEqual=Pattern.compile(h+\">=\"+t);\n\t\tint lt=matchCounter(lessThen.matcher(c))\n\t\t\t\t,le=matchCounter(lessEqual.matcher(c))\n\t\t\t\t,gt=matchCounter(greaterThen.matcher(c))\n\t\t\t\t,ge=matchCounter(greaterEqual.matcher(c))\n\t\t\t\t,eq=matchCounter(equal.matcher(c))\n\t\t\t\t,ue = matchCounter(unequal.matcher(c));\n\t\tif((lt+le+ge+gt+eq+ue)==1) {\n\t\t\tString[] res= new String[4],vars=c.split(h+\"=|=|!=|<=|>=|<>|>|<\"+t);\n\t\t\tif (lt==1){ res[0]=\"<\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (le==1){ res[0]=\"<=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (gt==1){ res[0]=\">\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (ge==1){ res[0]=\">=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (eq==1){ res[0]=\"=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (ue==1){ res[0]=\"!=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tres[3]= String.valueOf(andGroupNo);\n\t\t\treturn res;\n\t\t}\n\t\telse throw new Exception(\"Can't determine the condition\");\n\t}", "public static boolean compare_face(int a, int b, String c){\n if (c.equals(\"g\")){ // The less than is never actually used in this scope. But who knows what the future holds?\n if (a > b){\n return true;\n }\n return false;\n }\n if (c.equals(\"l\")){\n if (a < b){\n return true;\n }\n return false;\n }\n return false; // Something went wrong here. But logically it'll never happen, so don't worry boys and girls.\n }", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tint i =Integer.MAX_VALUE;\r\n\t\tSystem.out.println(i);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tint j=Integer.compare(15, 12);\r\n\t\tSystem.out.println(j);\r\n\r\n\t\t\r\n\t\tboolean bl=Boolean.valueOf(2<1);\r\n\t\tSystem.out.println(bl);\r\n\t\t\r\n\t\t\r\n\t\tchar ch = Character.toLowerCase('A');\r\n\t\tSystem.out.println(ch);\r\n\t}", "private boolean eval(final Item item) throws QueryException {\n if(!item.type.isStringOrUntyped()) throw diffError(item, Str.EMPTY, info);\n final byte[] s = item.string(info);\n final int mn = min == null ? 1 : Token.diff(s, min, coll);\n final int mx = max == null ? -1 : Token.diff(s, max, coll);\n return (mni ? mn >= 0 : mn > 0) && (mxi ? mx <= 0 : mx < 0);\n }", "private boolean checkValue(char v1, char v2, char v3){ \r\n\t\treturn ((v1 != '-') && (v1 == v2) && (v2==v3));\r\n\t}", "public Snippet visit(GreaterThanEqualExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t Snippet f0 = n.identifier.accept(this, argu);\n\t\t n.nodeToken.accept(this, argu);\n\t\t Snippet f2 = n.identifier1.accept(this, argu);\n\t\t _ret.returnTemp = f0.returnTemp+\" >= \"+f2.returnTemp;\n\t return _ret;\n\t }", "private Term parseComparison(final boolean required) throws ParseException {\n Term t1 = parseBitwiseOr(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '<') {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.LtD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.LtI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.LtD(t1, t2);\n } else {\n reportTypeErrorN2(\"'<'\");\n }\n } else if (tt == '>') {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.GtD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.GtI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.GtD(t1, t2);\n } else {\n reportTypeErrorN2(\"'>'\");\n }\n } else if (isSpecial(\"==\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.EqD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.EqI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.EqD(t1, t2);\n } else {\n reportTypeErrorN2(\"'=='\");\n }\n } else if (isSpecial(\"!=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.NEqD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.NEqI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.NEqD(t1, t2);\n } else {\n reportTypeErrorN2(\"'!='\");\n }\n } else if (isSpecial(\"<=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.LeD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.LeI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.LeD(t1, t2);\n } else {\n reportTypeErrorN2(\"'<='\");\n }\n } else if (isSpecial(\">=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.GeD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.GeI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.GeD(t1, t2);\n } else {\n reportTypeErrorN2(\"'>='\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public static boolean isOperator(char c){\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '%' \n || c == '(' || c == ')';\n }", "public boolean isChar(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif (((int) c > 64 && (int) c < 90) || ((int) c > 96 && (int) c < 123))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "static void cmp_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tS = val1>=val2?false:true;\n\t\tval2 = 256-val2;\n\t\tval2%=256;\n\t\tval1+=val2;\n\t\tCS = val1>255?true:false;\n\t\tString b = Integer.toBinaryString(val1);\n\t\tint ones=0;\n\t\tfor(int i=0;i<b.length();i++)\n\t\t\tif(b.charAt(i)=='1')\n\t\t\t\tones++;\n\t\tZ = ones==0?true:false;\n\t\tP = ones%2==0?true:false;\n\t}", "public String toString() {\n\t\treturn _lesserTerm.toString() + \" <= \" + _greaterTerm.toString();\n\t}", "int main()\n{\n int a,b,c;\n string d;\n cin >>a>>b>>c>>d;\n if (d == \"L1\"){\n (b<c)? cout << \"L2\" : cout << \"L3\";\n }\n else if (d == \"L2\"){\n (a<c)? cout << \"L1\" : cout << \"L3\";\n }\n else{\n (a<b)? cout << \"L1\" : cout << \"L2\";\n }\n \n return 0;\n}", "public static boolean minCharRequirementPassed(String toCheck, int limit) {\n if (toCheck == null) return false;\n return toCheck.length() >= limit;\n }", "public static boolean checkOperand(String inputChar){\r\n\t\tchar tempChar = inputChar.charAt(0);\r\n\t\t\r\n\t\tif(tempChar >= 48 && tempChar <= 57)\r\n\t\t\treturn true;\r\n\t\telse if(tempChar == 'x' || tempChar == 'X')\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public abstract boolean matches(char c);", "boolean hasHasCharacter();", "public String check_loged_time(Operator op){\n String positive = \"соблюдено\";\n String negative = \"не соблюдено\";\n int loged_time_seconds = (int) get_seconds(op.getLoged_time());\n int loged_time_value = (int) get_seconds(loged_time_9);\n int delay_seconds;\n if(op.getShift()==Shift.nine){\n delay_seconds = 32400-loged_time_seconds;\n if(delay_seconds<=loged_time_value)\n return positive;\n else {\n op.setBonus(op.getBonus()-500);\n return negative;\n }\n }\n\n if(op.getShift()==Shift.twelve){\n delay_seconds = 43200-loged_time_seconds;\n if(delay_seconds<=loged_time_value)\n return positive;\n else\n {\n op.setBonus(op.getBonus()-500);\n return negative;\n }\n }\n\n return positive;\n }", "boolean checkChar(String s1, String s2);", "private static boolean special_optimization(String a)\n {\n int sum = 0;\n for(int x = 0; x < a.length(); x++)\n {\n sum += (find_value(\"\"+a.charAt(x)));\n }\n if(sum <= library.return_uppervalue() && sum >= library.return_lowervalue())\n return false;\n return true;\n }", "public static void main(String[] args) {\n\t\n\tSystem.out.println(10>9);\n\tboolean resultA = 10> 9; \n\t\n\tSystem.out.println(resultA);\n\tSystem.out.println(10>=9); // greater or equal\n\t\n\tboolean resultB= 10>=9; \n\tSystem.out.println(resultB);\n\t\n\tboolean resultC = 10<=9; \n\tSystem.out.println(resultC);\n\t\n\tboolean resultD= 1100 <1200;\n\tSystem.out.println(resultD);\n\t\n\tboolean resultE = 1000 < 1000; \n\tSystem.out.println(resultE);\n\t\t\t\n\tboolean resultF = 1000 <= 1000; \n\tSystem.out.println(resultF);\n\t\n\t\n\t\n\t\n\tboolean A = ! false ; \n\tSystem.out.println(A);\n\t\n\tboolean B = ! true; \n\tSystem.out.println(B);\n\t\n\tboolean C = ! false !=false; \n\tSystem.out.println(C);\n\t\n\t\n\t\n\t// practice ! (not) : \n\t\n\tboolean g = false; \n\tSystem.out.println(g);\n\t\n\tSystem.out.println(! g);\n\t\n\tSystem.out.println(!true == false);\n\t\n\t\n\t\n\tboolean h = \"Batch 12\" == \"Batch13\"; \n\tSystem.out.println(h);\n\n\tSystem.out.println( \" batch12\" != \"Batch12\");\n\tSystem.out.println(\"Kuzzat\" == \"bad guy\");\n\t\n\t\n\tint Num = 198; \n\tSystem.out.println(Num %= 2);\n\t\n\tbyte byteNum = 30; \n\t// int INum = INum + byteNum ; // we must give value to local variables . \n\t\n\t\n\tString str; \n\t// System.out.println(str);\n\t\n\t\n\t\n}", "private boolean legal_lowspace_char(int b) {\n return (b < WS_INT &&\n (b == 9 || b == 10 || b == 13));\n }", "static int type_of_cmp(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}", "public static boolean isAtLeastXCharacters(String value, int x) {\r\n\t\ttry {\r\n\t\t\treturn value.length() >= x;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean ifCorrect (int number){\n boolean check_correct = false;\n String temp = Integer.toString(number);\n char [] charArr = temp.toCharArray();\n for (int k = 0; k < temp.length()-1; k++){\n if (charArr[k] <= charArr[k+1]){\n check_correct = true;\n }\n else {\n check_correct = false;\n break;\n }\n }\n return check_correct;\n }", "default boolean gt(int lhs, int rhs) {\r\n return lt(rhs,lhs);\r\n }", "public abstract boolean meetsConditions(Character cause);", "public static boolean Character(char a)\n {\n boolean valid = false;\n int convert;\n \n //converts the character a to its equivalent decimal value\n convert = (int)a;\n \n // checks if the character is within range\n // a-z or A-Z\n if (((convert >= 65) && (convert <= 90))||((convert >= 97) && (convert <= 122)))\n {\n valid = true;\n }\n else\n {\n //displays the error to the user by calling the displayError method in UserInterface class\n UserInterface.displayError(\"You have not entered a character. Enter again: \");\n }\n return valid;\n }", "private static boolean CharInClassInternal(char ch, String set, int start, int mySetLength, int myCategoryLength)\n\t{\n\t\tint min;\n\t\tint max;\n\t\tint mid;\n\t\tmin = start + SETSTART;\n\t\tmax = min + mySetLength;\n\n\t\twhile (min != max)\n\t\t{\n\t\t\tmid = (min + max) / 2;\n\t\t\tif (ch < set.charAt(mid))\n\t\t\t{\n\t\t\t\tmax = mid;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t\t}\n\n\t\t// The starting position of the set within the character class determines\n\t\t// whether what an odd or even ending position means. If the start is odd, \n\t\t// an *even* ending position means the character was in the set. With recursive \n\t\t// subtractions in the mix, the starting position = start+SETSTART. Since we know that \n\t\t// SETSTART is odd, we can simplify it out of the equation. But if it changes we need to \n\t\t// reverse this check. \n\t\tDebug.Assert((SETSTART & 0x1) == 1, \"If SETSTART is not odd, the calculation below this will be reversed\");\n\t\tif ((min & 0x1) == (start & 0x1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (myCategoryLength == 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn CharInCategory(ch, set, start, mySetLength, myCategoryLength);\n\t\t}\n\t}", "private static boolean checkChar(char c) {\n\t\tif (Character.isDigit(c)) {\n\t\t\treturn true;\n\t\t} else if (Character.isLetter(c)) {\n\t\t\tif (Character.toUpperCase(c) >= 'A' && Character.toUpperCase(c) <= 'F') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public static boolean less_or_equal(String s1, String s2) {\n if (s1.compareTo(s2) >= 0) return true;\n //f.pln(\" Util::lessThan: s1 = \"+s1+\" s2 = \"+s2+\" rtn = \"+rtn);\n return false;\n }", "private static boolean isOperator(char c) {\n return c == '+' ||\n c == '-' ||\n c == '*' ||\n c == '/';\n }", "public static boolean stringInBounds(String plainText) {\r\n\t\tchar[] val = plainText.toCharArray();\r\n\t\tfor (int i = 0; i < val.length; i++) {\r\n\t\t\tif (!(val[i]==SPACE) &&!(val[i] >= LOWER_BOUND && val[i] <= UPPER_BOUND)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isMarkup(int c) {\n return c == '<' || c == '&' || c == '%';\n }", "public static boolean less (int a, int b, String s) {\n int N = s.length();\n String v;\n String w;\n \n // construct suffix to compare\n if (a > 0) \n v = s.substring(a,N) + s.substring(0, a);\n else\n v = s.substring(a,N);\n \n // construct suffix to compare\n if (b > 0) \n w = s.substring(b,N) + s.substring(0, b);\n else\n w = s.substring(b,N);\n \n // is v less than v?\n if (v.compareTo(w) < 0)\n return true;\n else \n return false;\n }", "@Override\n\tpublic void visit(LessNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam expresiile din cei 2 fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger s2 = 0;\n\t\tInteger s1 = 0;\n\t\t/**\n\t\t * preluam rezultatele evaluarii si verificam daca primul este mai mic\n\t\t * decat la doilea ,setand corespunzator valoarea din nodul curent in\n\t\t * functie de rezultatul comparatiei\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\t\t} else {\n\t\t\ts1 = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t} else {\n\t\t\ts2 = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (s1 < s2) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\t}", "public char test(char c) {\n\t\tchar[] lower = { '-', '+' };\n\t\tchar[] higher = { '*', '/' };\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tif (lower[i] == c) {\n\t\t\t\treturn 'l';\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tif (higher[i] == c) {\n\t\t\t\treturn 'h';\n\t\t\t}\n\t\t}\n\t\t// just to make the method work , no meaning for the 'n'\n\t\treturn 'n';\n\t}", "private static boolean isHangulWithoutJamoT(char paramChar)\n/* */ {\n/* 324 */ paramChar = (char)(paramChar - 44032);\n/* 325 */ return (paramChar < '⮤') && (paramChar % '\\034' == 0);\n/* */ }", "public static boolean isVocab(char c)\r\n {\r\n int i=(int)c;\r\n return (i>=33&&i<=39)||(i>=44&&i<=45)||(i>=47&&i<=62)||(i>=64&i<=90)||(i>=94&&i<=123)||(i>=125&&i<=126);\r\n }", "private static boolean m127620a(char c) {\n return Pattern.compile(\"[一-龥]\").matcher(String.valueOf(c)).matches();\n }", "static String isValid(String s) {\n if(s.isEmpty())return \"YES\";\n int[] alphabet = new int[26];\n // char - 97 = arr location;\n for(int i = 0;i<s.length();i++){\n int location = (int)s.charAt(i) - 'a';\n alphabet[location] += 1;\n }\n for(Integer x: alphabet){\n System.out.println(x);\n }\n int i = 0;\n while(alphabet[i]==0){\n i++;\n }\n int standard = alphabet[i];\n boolean used = false;\n for(;i<26;i++){\n if(alphabet[i]!=0){\n if(Math.abs(alphabet[i]-standard)==1){\n if(used){\n System.out.println(\"equal 1\");\n return \"NO\";\n }else{\n used = true;\n }\n }else if(Math.abs(alphabet[i]-standard)>1){\n\n System.out.println(\"gtr then 1\");\n return \"NO\";\n }\n }\n }\n return \"YES\";\n\n\n\n }", "public boolean lessThan(TextPos ltPos) {\n if (isLastPosition()) {\n return false;\n }\n return this.value < ltPos.value;\n }", "private boolean isOperator(char ch) {\r\n\t\treturn (ch == '+' || ch == '-' || ch == '*' || ch == '/');\r\n\t}", "public static int checkCharType(char input){\n\n // Scanner scanner = new Scanner(System.in);\n // System.out.println(\"Enter a Character : \");\n // char input = scanner.next().charAt(0);\n //scanner.close();\n\n if(input >='a' && input <= 'z'){\n System.out.println(\"Small case Letter.\");\n return 1;\n }\n else if(input >='A' && input <= 'Z'){\n System.out.println(\"Capital Letter.\");\n return 2;\n }\n else if(input >='0' && input <= '9'){\n System.out.println(\"A Digit.\");\n return 3;\n }\n else{\n System.out.println(\"Special Character.\");\n return 4;\n }\n }", "public boolean isTextValid(CharSequence charSequence) {\n if (TextUtils.isEmpty(charSequence)) {\n return false;\n }\n try {\n int parseInt = Integer.parseInt(charSequence.toString());\n return parseInt >= 3 && parseInt <= 3600;\n } catch (NumberFormatException unused) {\n return false;\n }\n }", "public boolean isOperator(char ch) {\n\t\tString operatorPrefixes = \"=<>+*-/\";\n\t\tif (operatorPrefixes.indexOf(ch) != -1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static char getChar(char min, char max){\n char minCap = Character.toUpperCase(min);//converts min parameter to capital in order to make this method case insensitive\n char maxCap = Character.toUpperCase(max);// converts max parameter to capital in order to make this method case insensitive\n while(true){\n char var = getChar();\n char varCap = Character.toUpperCase(var);//stores converts value from getChar as capital letter for case insensitive\n if (varCap >= minCap && varCap <= maxCap) return var;\n else {\n System.out.println(\"Value does not meet the max/min criteria: \" + var + \" - please try again\");\n }\n }\n }", "public static boolean compareLetters(String romConcat, char smallNum, char bigNum) {\n\t\tint checkSmall = 0, checkBig = 0;\r\n\t\t\r\n\t\tif(romConcat.indexOf(smallNum) > -1) {\r\n\t\t\tcheckSmall = romConcat.indexOf(smallNum);\r\n\t\t}\r\n\t\t\r\n\t\tif(romConcat.indexOf(bigNum) > -1) {\r\n\t\t\tcheckBig = romConcat.indexOf(bigNum);\r\n\t\t}\r\n\t\t\r\n\t\tif(checkSmall == 0 || checkBig == 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse if(checkSmall < checkBig) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "@Test\n public void overloadingWorks() {\n assertThat(eval(\"10>5\"), equalTo(c(true)));\n assertThat(eval(\"10L>5L\"), equalTo(c(true)));\n assertThat(eval(\"TRUE>FALSE\"), equalTo(c(true)));\n assertThat(eval(\"'one' > 'zed'\"), equalTo(c(false)));\n }", "public int compare(WritableComparable o1, WritableComparable o2) {\r\n\t\tText key1 = (Text) o1;\r\n\t\tText key2 = (Text) o2;\r\n\t\tint t1char = key1.charAt(0); \r\n\t\tint t2char = key2.charAt(0); \r\n\t\tif (t1char < t2char) return 1;\r\n\t\telse if (t1char > t2char) return -1;\r\n\t\telse return 0;\r\n\t}", "private void parseRange(Node node) {\r\n if (switchTest) return;\r\n int low = node.low();\r\n int high = node.high();\r\n ok = false;\r\n if (in < input.length()) {\r\n int ch = input.codePointAt(in);\r\n ok = (ch >= low) && (ch <= high);\r\n if (ok) {\r\n int n = Character.charCount(ch);\r\n in += n;\r\n if (tracing) traceInput();\r\n }\r\n }\r\n }", "private static boolean isAlpha(char p_char) {\n return ((p_char >= 'a' && p_char <= 'z') || (p_char >= 'A' && p_char <= 'Z' ));\n }", "public boolean testSpecificChars(String str, String specificCharacters)\r\n {\r\n boolean ok=false;\r\n if(specificCharacters.length()>str.length())\r\n {\r\n return false;\r\n }\r\n else if(specificCharacters.length()==str.length())\r\n {\r\n return compare2Strings(str,specificCharacters);///daca au aceeasi lungime-> inseamn ca cele 2 str trebuie sa fie egale\r\n\r\n }\r\n else\r\n {\r\n\r\n for (int i = 0; i < str.length(); i++)\r\n {\r\n if(str.charAt(i)==specificCharacters.charAt(0)) {\r\n ///gasim primul caracter\r\n for (int j = 1; j < specificCharacters.length(); j++)\r\n {\r\n if ((str.charAt(i + j) == specificCharacters.charAt(j)))\r\n {\r\n ok=true;\r\n }\r\n else\r\n {ok=false;break;}\r\n }\r\n\r\n }\r\n }\r\n\r\n }\r\n if(ok){return true;}\r\n else {return false;}\r\n }", "private boolean containsOnlyASCII(String input) {\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) > 127) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean greaterThan(TextPos gtPos) {\n if (isLastPosition()) {\n return true;\n }\n return this.value > gtPos.value;\n }" ]
[ "0.6376555", "0.6089537", "0.5902119", "0.5890988", "0.586735", "0.5826336", "0.5811415", "0.577489", "0.57621765", "0.57053804", "0.5699328", "0.5672054", "0.56657076", "0.5601917", "0.55749285", "0.5574569", "0.5524105", "0.5498371", "0.54911184", "0.54875386", "0.5461831", "0.5460548", "0.5459013", "0.54549617", "0.5445134", "0.5444826", "0.5427696", "0.54267806", "0.541313", "0.5411113", "0.5403855", "0.5393802", "0.53809196", "0.53781366", "0.5371522", "0.5361723", "0.53570926", "0.5340222", "0.53301084", "0.53269976", "0.5317608", "0.5317065", "0.53103656", "0.53054607", "0.5302361", "0.52981675", "0.52975494", "0.52967906", "0.5292234", "0.528133", "0.5275425", "0.526264", "0.52506423", "0.5246239", "0.5242964", "0.5240719", "0.5234289", "0.52277803", "0.52264714", "0.52261645", "0.5223588", "0.5221119", "0.5219908", "0.5205302", "0.52036405", "0.5197017", "0.517169", "0.51689756", "0.51686066", "0.5163102", "0.5156021", "0.51491857", "0.51491606", "0.5148673", "0.5146693", "0.514616", "0.5145179", "0.51444227", "0.51338756", "0.5127871", "0.51241666", "0.5121056", "0.51146066", "0.511123", "0.51098615", "0.5101627", "0.50891733", "0.5081729", "0.50813186", "0.50743365", "0.5073296", "0.5070239", "0.5068072", "0.5067612", "0.5060787", "0.50551045", "0.5041555", "0.5035813", "0.50322676", "0.5028669", "0.50277966" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_crack); localWifiUtils = new WifiUtils(this); NetStateService = new Intent(this, ListenNetStateService.class); boolean isTrue = bindService( NetStateService, conn, Context.BIND_AUTO_CREATE); apiService = HttpManager.getService(); mCompositeSubscription = new CompositeSubscription(); timer = new Timer(); headerTitle.setText("挖掘免费WiFi"); pb_cracking.setMax(100); // handler.sendEmptyMessageDelayed(UpdateProgess, 500); scanResultList = (List<ScanResult>) getIntent().getSerializableExtra("ScanList"); CrackWiFi = getIntent().getStringExtra("CrackWiFi"); for(int i = 0; i < scanResultList.size(); i++){ ScanResult result = scanResultList.get(i); if(result.SSID.equals(CrackWiFi)){ BSSID = result.BSSID; SSID = result.SSID; ScanResult scanResult = result; scanResultList.clear(); scanResultList.add(scanResult); } } adapter = new CrackAdapter(this, scanResultList); listview.setAdapter(adapter); //getPsw(); timer.schedule(new TimerTask() { @Override public void run() { handler.sendEmptyMessage(TIMER); } },2000,1000); }
{ "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
Constructor Initialize a TFS client
public TFSClient(String masterIpAddress, int masterPort) { this.masterIpAddress = masterIpAddress; this.masterPort = masterPort; this.filesCache = new ArrayList<TFSClientFile>(); init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CoreHttpClientBase(final Object tfsConnection) {\r\n super(tfsConnection);\r\n }", "public static TFSTeamProjectCollection connectToTFS() throws Exception {\n \n \tlog.debug(\"connectToTFS\");\n \t//System.out.println(\"TFS_JNI_NATIVE path is: \" + tfsConfig.);\n \tif ( System.getProperty(\"com.microsoft.tfs.jni.native.base-directory\") == null ) {\n \t\tSystem.setProperty(\"com.microsoft.tfs.jni.native.base-directory\", tfsConfig.getJniNativeBaseDir());\n \t}\n \n Credentials credentials;\n\n // In case no username is provided and the current platform supports\n // default credentials, use default credentials\n if ((USERNAME == null || USERNAME.length() == 0) && CredentialsUtils.supportsDefaultCredentials()) {\n credentials = new DefaultNTCredentials();\n }\n else {\n credentials = new UsernamePasswordCredentials(USERNAME, PASSWORD);\n }\n \t \n \tTFSTeamProjectCollection tpc = new TFSTeamProjectCollection(URIUtils.newURI(COLLECTION_URL), credentials);\n \t//Check if the build server version is supported\n if (isLessThanV3BuildServer(tpc.getBuildServer()))\n {\n \t \n throw new Exception(\"Less then V3BuildServer\");\n }\n \n\t \n return tpc;\n }", "public ServiceClient() {\n\t\tsuper();\n\t}", "public TurnoVOClient() {\r\n }", "public HRModuleClient() {\n }", "public TeamServiceTest() {\r\n\t\tsetupRequestContext();\r\n\t}", "public Factory() {\n this(getInternalClient());\n }", "RESTClient(String serverName, String omasServerURL)\n {\n this.serverName = serverName;\n this.omasServerURL = omasServerURL;\n this.restTemplate = new RestTemplate();\n }", "public LocalClient() {\n\t\tsuper(\"SERVER\", Arrays.asList(new String[] {\"*\"}), null, null);\n\t\tinputThread = new Thread(this);\n\t\tinputThread.start();\n\t}", "private void createClient() {\n tc = new TestClient();\n }", "public HGDClient() {\n \n \t}", "public Ctacliente() {\n\t}", "public ClientFTP() {\n }", "public TicketClient(@Value(\"${app.ticket-catalog.url}\") String serverUrl) {\n this.serverUrl = serverUrl;\n this.restTemplate = new RestTemplate();\n var requestFactory = new SimpleClientHttpRequestFactory();\n this.restTemplate.setRequestFactory(requestFactory);\n }", "public Client() {\n }", "public LpsClient() {\n super();\n }", "public ClientCredentials() {\n }", "public EnvEntityClient(EnvEntityServer s) {\n\t\tthis(s.posX, s.posY, s.posZ, s.birthTime);\n\t}", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "RESTClient(String serverName, String omasServerURL, String userId, String password)\n {\n this.serverName = serverName;\n this.omasServerURL = omasServerURL;\n\n RestTemplateBuilder restTemplateBuilder = new RestTemplateBuilder();\n\n this.restTemplate = restTemplateBuilder.basicAuthentication(userId, password).build();\n }", "public CMSFormClientServices() {\n // Set up the configuration manager.\n config = new ConfigMgr(\"form.cfg\");\n }", "public SftpClient(SftpFilesystemListingConfig config) {\n this.config = config;\n }", "private HttpClient() {\n\t}", "public TestServerApi()\r\n\t{\r\n\t\t\r\n\t}", "public TeamCoach(){\n }", "public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public Client() {}", "private APIClient() {\n }", "private void init() {\r\n final List<VCSystem> vcs = datastore.createQuery(VCSystem.class)\r\n .field(\"url\").equal(Parameter.getInstance().getUrl())\r\n .asList();\r\n if (vcs.size() != 1) {\r\n logger.error(\"Found: \" + vcs.size() + \" instances of VCSystem. Expected 1 instance.\");\r\n System.exit(-1);\r\n }\r\n vcSystem = vcs.get(0);\r\n\r\n project = datastore.getByKey(Project.class, new Key<Project>(Project.class, \"project\", vcSystem.getProjectId()));\r\n\r\n }", "public HockeyTeamTest()\n {\n }", "private FlowWorkspaces()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "protected RestClient() {\n }", "public ClientInformationTest()\n {\n }", "private MatterAgentClient() {}", "public YelpFusionApi initClient() {\n try {\n YelpFusionApiFactory yelpBuild = new YelpFusionApiFactory();\n YelpFusionApi yelpClient = yelpBuild.createAPI(CONFIG.yelpClientID, CONFIG.yelpSecret);\n return yelpClient;\n }\n catch(IOException e) {\n Log.v(\"yelpClient\", e.getStackTrace().toString());\n return null;\n }\n }", "public GTLServiceTicket() {}", "public ClipsManager()\n {\n setClientAuth( m_clientId, m_clientSecret );\n setAuthToken( m_authToken );\n }", "protected HttpJsonTasksStub(TasksStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new HttpJsonTasksCallableFactory());\n }", "public AmazonCloudSearchClient() {\n this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());\n }", "public ClientTSap() {\n socketFactory = SocketFactory.getDefault();\n }", "public BrowseOffenceAMClient() {\r\n }", "public Client(Configuration config) {\n if (config == null)\n throw new IllegalArgumentException(\"Null argument supplied\");\n this.config = config;\n connectivityStatus = ConnectivityStatus.Initial;\n lastInteraction = new Date(0l);\n recentPeers = new PeerList();\n refreshInterval = 30000l;\n randomizedRefreshInterval = (int)(refreshInterval * (1 - 0.25 * new Random ().nextDouble()));\n myLinkLocalAdress = Inet6Address.getByAddress(,, LINKLOCAL)\n }", "public ClientDetailsEntity() {\n\t\t\n\t}", "public RestClient(){\n }", "public ClientController() {\n }", "private RestClient() {\n }", "public DriveService(){}", "public InferenceToolImpl(CycAccess client) {\n super(client);\n }", "public EO_ClientsImpl() {\n }", "public TwitterClient(Context context) {\n\t\tsuper(context, REST_API_CLASS, REST_URL, REST_CONSUMER_KEY, REST_CONSUMER_SECRET, REST_CALLBACK_URL);\n\t}", "public TopologyLib() {\n }", "public TestServiceClient(final ApiClient apiClient) {\n super(apiClient);\n }", "public Credentials()\n {\n this(null, null, null, null);\n }", "tCFT inittCFT(tCFT iTCFT)\n {\n iTCFT.updateElementValue(\"tCFT\");\n return iTCFT;\n }", "private ClientController() {\n }", "public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }", "void init() {\n CometUtils.printCometSdkVersion();\n validateInitialParams();\n this.connection = ConnectionInitializer.initConnection(\n this.apiKey, this.baseUrl, this.maxAuthRetries, this.getLogger());\n this.restApiClient = new RestApiClient(this.connection);\n // mark as initialized\n this.alive = true;\n }", "public ServiceTask() {\n\t}", "private Client() {\n solution_set = new HashSet<>();\n contentsMap = new HashMap<>();\n current_state = new HashSet<>();\n next_state = new HashSet<>();\n }", "public SftpServer() {\n this(new SftpEndpointConfiguration());\n }", "protected ClientStatus() {\n }", "public TwitterClient(Context context) {\n super(context, REST_API_CLASS, REST_URL, REST_CONSUMER_KEY, REST_CONSUMER_SECRET, REST_CALLBACK_URL);\n }", "public CreChqTrnValVerUVOClient() {\n }", "private CorrelationClient() { }", "private HttpClientInfra() {}", "public ClientServiceImpl() {\r\n\t}", "public ExampleModuleClient() {\r\n }", "private CLUtil()\n {\n }", "public FileUploadService()\r\n\t{\r\n\t\tsetAccessKey(\"\");\r\n\t\tsetSecretKey(\"\");\r\n\t\tsetBucket(\"filehavendata\");\r\n\t\tdoRefreshConnection();\r\n\t}", "@PostConstruct\n public void init() {\n ApiClient client = Config.fromToken(url, token, validateSSL);\n io.kubernetes.client.Configuration.setDefaultApiClient(client);\n }", "public BasicDriveTeleOp() {\n\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttoolsClient = galaxyApiService.getGalaxyInstance().getToolsClient();\n\t}", "public TboFlightSearchRequest() {\n}", "public TestTicket() {\n\t}", "@Override\n\tpublic synchronized void initialize(OperatorContext context) throws Exception {\n\t\tsuper.initialize(context);\n\n // Construct a new Jest client according to configuration via factory\n JestClientFactory factory = new JestClientFactory();\n factory.setHttpClientConfig(new HttpClientConfig\n .Builder(hostName + \":\" + hostPort)\n .multiThreaded(true)\n .build());\n \n client = factory.getObject();\n\t}", "public CustomEntitiesTaskParameters() {}", "public TicketBoothClient()\n {\n Thread myThread = new Thread(this);\n myThread.start();\n }", "AmazonMTurkClient(AwsSyncClientParams clientParams) {\n this(clientParams, false);\n }", "private void initialize(){\n if(uri != null)\n httpUriRequest = getHttpGet(uri);\n httpClient = HttpClients.createDefault();\n }", "public GameServerClient(){\r\n\t\tinitComponents();\r\n\t\t}", "public RiftsawServiceLocator() {\n }", "public NetboxHttpClient(NetboxProperties properties) {\n this(properties.getHost(), properties.getApiKey());\n }", "private ClientLoader() {\r\n }", "private void init(String[] args) {\n String provider = \"rackspace-clouddatabases-us\";\n\n String username = args[0];\n String apiKey = args[1];\n \n api = ContextBuilder.newBuilder(provider)\n .credentials(username, apiKey)\n .buildApi(TroveApi.class);\n \n flavorApi = api.getFlavorApiForZone(Constants.ZONE);\n }", "public ResourceClient( ResourceConfigurationBase<?> theConfiguration, String theContractRoot, String theContractVersion, String theUserAgent ) {\r\n\t\tthis( theConfiguration, theContractRoot, theContractVersion, theUserAgent, null, null );\r\n\t}", "public Client(Client client) {\n\n }", "public UtilClient(String[] args) \n {\n \n //set reference to args parameter\n this._args = args;\n this._parser = new UtilCmdParser();\n\n \n //set the restart directory\n// String restartdir = System.getProperty(Constants.PROPERTY_RESTART_DIR);\n// if (restartdir == null) \n// {\n// restartdir = System.getProperty(Constants.PROPERTY_USER_HOME);\n// if (restartdir == null)\n// restartdir = System.getProperty(\"user.home\") + File.separator\n// + Constants.RESTARTDIR;\n// }\n// this._restartDir = restartdir + File.separator + Constants.RESTARTDIR;\n// this._loginFile = this._restartDir + File.separator + Constants.LOGINFILE;\n \n \n //set the values of properties\n //this._domainFile = System.getProperty(Constants.PROPERTY_DOMAIN_FILE);\n \n this._domainFilename = System.getProperty(Constants.PROPERTY_DOMAIN_FILE);\n this._userScript = System.getProperty(Constants.PROPERTY_USER_APPLICATION);\n this._userOperation = System.getProperty(Constants.PROPERTY_USER_OPERATION);\n this._queryInterval = System.getProperty(Constants.PROPERTY_QUERY_INTERVAL);\n \n //get the action id based on the operation name\n //this._actionId = ActionTable.toId(this._userOperation);\n this._actionId = ActionTable.toId(this._userOperation);\n \n }", "public GitTFConfiguration(\r\n final URI serverURI,\r\n final String tfsPath,\r\n final String username,\r\n final String password,\r\n final boolean deep,\r\n final boolean tag,\r\n final int fileFormatVersion,\r\n final String buildDefinition)\r\n {\r\n Check.notNull(serverURI, \"serverURI\"); //$NON-NLS-1$\r\n Check.notNullOrEmpty(tfsPath, \"tfsPath\"); //$NON-NLS-1$\r\n \r\n this.serverURI = serverURI;\r\n this.tfsPath = tfsPath;\r\n this.username = username;\r\n this.password = password;\r\n this.deep = deep;\r\n this.tag = tag;\r\n this.fileFormatVersion = fileFormatVersion;\r\n this.buildDefinition = buildDefinition;\r\n }", "public CloudFileSystem(VRSContext context, ServerInfo info)\n throws VlInitializationException, VlPasswordException, VRLSyntaxException, VlIOException, VlException {\n super(context, info);\n\n if (info.getServerVRL().getScheme().endsWith(\"ssl\")) {\n init(info, context, \"https\");\n } else {\n init(info, context, \"http\");\n }\n try {\n connect();\n } catch (Exception ex) {\n if (ex instanceof VlConfigurationError && ex.getMessage().contains(\"Unrecognized SSL message, plaintext connection?\")) {\n disconnect();\n init(info, context, \"http\");\n connect();\n }\n if (ex.getMessage() != null && ex.getMessage().contains(\"Unrecognized SSL message, plaintext connection?\")) {\n } else {\n throw new nl.uva.vlet.exception.VlInitializationException(ex.getMessage());\n }\n }\n }", "private NotificationClient() { }", "public Client() {\n _host_name = DEFAULT_SERVER;\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "public FServer() {\n initComponents();\n }", "public TycoAgent() {\n\n\t\t// Initialize the Gmail, clear its emails via initialize(), initialize\n\t\t// the whole map with the init message, then initialize the new map,\n\t\t// dummy databse, auth users, and auth threads\n\t\tjciEmail = GmailAuthorize.getGmailService();\n\t\t// initialize();\n\t\trecentMailMap = new HashMap<String, Mail>();\n\n\t}", "private ResourceClient( ResourceConfigurationBase<?> theConfiguration, String theContractRoot, String theContractVersion, String theUserAgent, HttpClient theClient, JsonTranslationFacility theJsonFacility ) {\r\n\t\tPreconditions.checkNotNull( theConfiguration, \"need a configuration object so we can get our endpoint\" );\r\n \tPreconditions.checkArgument( !Strings.isNullOrEmpty( theContractRoot ), \"need a contract root\" );\r\n \tPreconditions.checkArgument( theContractRoot.startsWith( \"/\" ), \"the contract root '%s' must be a reference from the root (i.e. start with '/')\", theContractRoot );\r\n \tPreconditions.checkArgument( !Strings.isNullOrEmpty( theContractVersion ), \"need a version for contract root '%s'\", theContractRoot );\r\n \tPreconditions.checkArgument( ContractVersion.isValidVersion( theContractVersion), \"the version string '%s' for contract root '%s' is not valid\", theContractVersion, theContractRoot );\r\n\t\tPreconditions.checkArgument( !Strings.isNullOrEmpty( theUserAgent ), \"need a user agent for this client\" );\r\n\r\n\t\t// lets make sure the configuration is valid\r\n\t\ttheConfiguration.validate();\r\n\t\t\r\n\t\t// now let's start preparing the client\r\n\t\tendpoint = new HttpEndpoint( theConfiguration.getEndpoint( ) ); // this will do validation on the endpoint \r\n\t\tcontractRoot = theContractRoot; \r\n\t\tcontractVersion = theContractVersion;\r\n\t\tuserAgent = theUserAgent;\r\n\t\t\r\n\t\t// use the client if sent in, but create a working one otherwise\r\n\t\tif( theClient == null ) {\r\n\t\t\ttry {\r\n\t\t\t SslContextFactory sslContextFactory = null;\r\n\t\r\n\t\t\t if( endpoint.isSecure( ) ) {\r\n\t\t\t \tif( theConfiguration.getAllowUntrustedSsl() ) {\r\n\t\t\t \t\t// so we need SSL communication BUT we don't need to worry about it being valid, likley\r\n\t\t\t \t\t// because the caller is self-cert'ing or in early development ... we may need to do \r\n\t\t\t \t\t// more here mind you\r\n\t\t\t \t\t\r\n\t\t\t\t \t// the following code was based https://code.google.com/p/misc-utils/wiki/JavaHttpsUrl\r\n\t\t\t\t \t// if we were to look into mutual SSL and overall key handling, I probably want to\r\n\t\t\t\t \t// take a closer look\r\n\t\t\t\t \t\r\n\t\t\t\t \t// We need to create a trust manager that essentially doesn't except/fail checks\r\n\t\t\t\t\t final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\r\n\t\t\t\t\t \t// this was based on the code found here:\r\n\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void checkClientTrusted(X509Certificate[] chain,\r\n\t\t\t\t\t\t\t\t\tString authType) throws CertificateException {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] chain,\r\n\t\t\t\t\t\t\t\t\tString authType) throws CertificateException {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\r\n\t\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t } };\r\n\t\t\t\t\t \r\n\t\t\t\t\t // then we need to create an SSL context that uses lax trust manager \r\n\t\t\t\t\t SSLContext sslContext = SSLContext.getInstance( \"SSL\" );\r\n\t\t\t\t\t\tsslContext.init( null, trustAllCerts, new java.security.SecureRandom() );\r\n\t\r\n\t\t\t\t\t\t// and finally, create the SSL context that\r\n\t\t\t\t\t\tsslContextFactory = new SslContextFactory();\r\n\t\t\t\t\t\tsslContextFactory.setSslContext( sslContext );\r\n\t\t\t \t} else {\r\n\t\t\t \t\t// TODO: this needs to be tested against \r\n\t\t\t \t\t//\t\t a) real certs with real paths that aren't expired\r\n\t\t\t \t\t//\t\t b) real certs with real paths that are expired\r\n\t\t\t \t\tsslContextFactory = new SslContextFactory( );\r\n\t\t\t \t}\r\n\t\t\t\t\thttpClient = new HttpClient( sslContextFactory );\r\n\t\t\t } else {\r\n\t\t\t\t\thttpClient = new HttpClient( );\r\n\t\t\t }\r\n\t\t\t httpClient.setFollowRedirects( false ); // tales doesn't have redirects (at least not yet)\r\n\t\t\t httpClient.setStrictEventOrdering( true ); // this seems to fix an odd issue on back-to-back calls to the same service on \r\n\t\t\t\thttpClient.start( );\r\n\t\t\t displayClientConfiguration( httpClient );\r\n\t\t\t} catch (NoSuchAlgorithmException | KeyManagementException e) {\r\n\t\t\t\tthrow new IllegalStateException( \"unable to create the resource client due to a problem setting up SSL\", e );\r\n\t\t\t} catch (Exception e ) {\r\n\t\t\t\tthrow new IllegalStateException( \"unable to create the resource client due to the inability to start the HttpClient\", e );\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\thttpClient = theClient;\r\n\t\t}\r\n\t\thttpClient.setUserAgentField( new HttpField( HttpHeader.USER_AGENT, theUserAgent ) );\r\n\r\n\t\tif( theJsonFacility == null ) {\r\n\t\tjsonFacility = new JsonTranslationFacility( new DataContractTypeSource( ) );\r\n\t\t} else {\r\n\t\t\tjsonFacility = theJsonFacility;\r\n\t\t}\r\n\t\t\r\n\t\tjsonParser = new JsonParser( );\r\n\t\t\r\n\t\t// now that we have the json facility, let's \r\n\t\t// get the adapter for the result type\r\n\t\tJavaType type = new JavaType( ResourceResult.class );\r\n\t\tJsonTypeMap typeMap = jsonFacility.generateTypeMap( type ); // TODO: technically I can, if I have the type of the result, now do the full thing (need to have a field for it)\r\n\t\tresultTypeAdapter = new TypeFormatAdapter( \r\n\t\t\t\ttype,\r\n\t\t\t\ttypeMap.getReflectedType().getName(),\r\n \t\t\tnew JsonObjectToObjectTranslator( typeMap ),\r\n \t\t\tnew ObjectToJsonObjectTranslator( typeMap ) );\t\t\t\t\r\n\t}", "public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }", "public TAccountTicketFlow(){}", "public VimClient() throws UnknownHostException, IOException {\n this(\"localhost\", 8888);\n }" ]
[ "0.6447004", "0.6260855", "0.6149704", "0.5995056", "0.59351444", "0.5933583", "0.5912837", "0.5873264", "0.58637136", "0.5860133", "0.58285576", "0.5786611", "0.57688063", "0.5712321", "0.57104945", "0.5679132", "0.5655585", "0.5650005", "0.564102", "0.5639325", "0.5620554", "0.56114036", "0.559676", "0.5589191", "0.5579723", "0.5579457", "0.5575025", "0.55602914", "0.5558035", "0.5553847", "0.55517215", "0.5546514", "0.5525045", "0.55199194", "0.5516158", "0.55026495", "0.5500814", "0.548681", "0.5486584", "0.54835284", "0.54802287", "0.5479589", "0.5473397", "0.54644394", "0.54552203", "0.5449336", "0.544665", "0.5433265", "0.5427001", "0.5424342", "0.54224765", "0.5421904", "0.5419921", "0.5408519", "0.540393", "0.54018205", "0.5395212", "0.53752536", "0.5354606", "0.5353601", "0.53520334", "0.5347844", "0.5341067", "0.5340687", "0.53346854", "0.533466", "0.53327423", "0.5331222", "0.53218836", "0.53212005", "0.53201145", "0.5318127", "0.5313056", "0.5306688", "0.53010327", "0.5300639", "0.529452", "0.52936566", "0.52891606", "0.5288438", "0.5285137", "0.5280718", "0.5278628", "0.5274502", "0.5274419", "0.52666706", "0.52641374", "0.5262412", "0.52557755", "0.52510935", "0.5247124", "0.5246117", "0.5241372", "0.52379954", "0.52321696", "0.5230765", "0.5229446", "0.52244955", "0.52233446", "0.5215625" ]
0.56836396
15
Create the directory at a specified path
public int createDir(String dirName, String path) throws IOException { masterSock.write((CREATE_DIR + " " + dirName + " " + path).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = null; line = masterSock.readLine(); switch(line) { case STR_OK: return OK; case STR_EXISTED: return EXISTED; case STR_NOT_FOUND: return NOT_FOUND; case STR_CLIENT_ERROR: return CLIENT_ERROR; default: return SERVER_ERROR; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createDirectory(String path) throws IOException {\n\t\tfinal Path p = Paths.get(path);\n\t\tif (!fileExists(p)) {\n\t\t\tFiles.createDirectory(p);\n\t\t}\n\t}", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void createDirectory(Path path) throws IOException {\n\t\ttry {\n\t\t\tFiles.createDirectory(path);\n\t\t} catch (FileAlreadyExistsException e) {\n\t\t\tif (!Files.isDirectory(path)) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\t}", "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "public static void createDir(String path) {\n File dir = new File(new File(path).getParentFile().getAbsolutePath());\n dir.mkdirs();\n }", "public OutputResponse mkdirs(String path){\n String command = \"mkdir -p \" + path;\n return jobTarget.runCommand( command);\n }", "public static void mkdir(String path) {\n File directory = new File(path);\n if (directory.exists())\n return;\n directory.mkdir();\n }", "public static void mkdir(String path)\n\t{\n\t\tif(!new File(path).exists())\n\t\t\tnew File(path).mkdirs();\n\t}", "protected void createDirectory(Path path, Path destPath) {\n String rootLocation = destPath.toString();\n int index;\n if(firstTime) {\n firstTime = false;\n index = path.toFile().getPath().lastIndexOf(\"\\\\\")+1;//index where cur directory name starts\n rootFolder = path.toFile().getPath().substring(index);\n }\n else {\n index = path.toFile().getPath().indexOf(rootFolder);\n }\n\n String folderName= path.toFile().getPath().substring(index);\n Path newDirPath = Paths.get(rootLocation + DOUBLE_BKW_SLASH +folderName);\n try {\n Path newDir = Files.createDirectory(newDirPath);\n } catch(FileAlreadyExistsException e){\n // the directory already exists.\n e.printStackTrace();\n } catch (IOException e) {\n //something else went wrong\n e.printStackTrace();\n }\n }", "public OutputResponse mkdir(String path){\n String command = \"mkdir \" + path;\n return jobTarget.runCommand( command );\n }", "private static void doCreateDir() {\n String newDir = \"new_dir\";\n boolean success = (new File(newDir)).mkdir();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n // Create a directory; all non-existent ancestor directories are\n // automatically created.\n newDir = \"c:/export/home/jeffreyh/new_dir1/new_dir2/new_dir3\";\n success = (new File(newDir)).mkdirs();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n }", "public static void createOutputDirectoryPath(String path){\n \n new File(path).mkdirs();\n \n }", "public static boolean createDirectoryAtPath(String path){\n \t\tFile folder = new File(path);\n \t\tif( !folder.exists() ){\n \t\t\tfolder.mkdirs();\n \t\t}\n \t\treturn true;\n \t}", "public void mkdir(String path) throws SystemException;", "public static native void mkdirs(String path, int mode) throws IOException;", "public static void mkdirs(String owner, Path path) throws CWLException {\r\n File dir = path.toFile();\r\n if (!dir.exists() && !dir.mkdirs()) {\r\n throw new CWLException(ResourceLoader.getMessage(\"cwl.io.mkdir.failed\", path.toString(), owner), 255);\r\n }\r\n }", "@TaskAction\n public void create() {\n dir.mkdirs();\n getChmod().chmod(dir, dirMode);\n }", "public void run(State state) throws IllegalNumberOfArgumentsException,\r\n InvalidPathException {\r\n String[] parameters = state.getParameters();\r\n if (parameters.length == 0) {\r\n throw new IllegalNumberOfArgumentsException(\r\n \"Mkdir requires a path to a directory to create.\");\r\n }\r\n // make a new directory for each path parameter\r\n for (String path : parameters) {\r\n path = State.cleanDirectoryPath(path);\r\n // get the name of the new directory and the path to its parent\r\n String[] separatedPath = state.separatePathName(path);\r\n String name = separatedPath[0];\r\n String parentPath = separatedPath[1];\r\n if (name.matches(\"/*\")) {\r\n throw new InvalidPathException(path);\r\n }\r\n try {\r\n // check that the name and parent's path are valid\r\n if (name.matches(State.ILLEGAL_CHARACTERS) || name\r\n .substring(0, name.length() - 1).contains(\"/\")) {\r\n throw new IllegalNameException(name);\r\n }\r\n // get the parent directory\r\n Directory parentDir = Navigate.navigateToDirectory(state, parentPath);\r\n //System.out.println(\"parent data: \" + parentDir.getData());\r\n //System.out.println(\"name: \" + name);\r\n String newPath = parentDir.getData() + name;\r\n // check that this file does not already exist\r\n if (parentDir.getChild(newPath) == null) {\r\n // create the new directory\r\n parentDir.addChild(name);\r\n state.addMessage(\"Created directory: \" + newPath + \"\\n\");\r\n } else {\r\n state.addMessage(newPath + \" already exists\\n\");\r\n }\r\n } catch (InvalidPathException e) {\r\n state.addMessage(\"Could not add directory \" + path + \" because \"\r\n + parentPath + \" does not exist.\\n\");\r\n } catch (IllegalNameException e) {\r\n state.addMessage(\"Could not add directory \" + path\r\n + \" because it contains illegal characters.\\n\");\r\n }\r\n }\r\n }", "private File createWorkingDir( final String path )\n {\n File workDir = new File( path );\n workDir.mkdirs();\n return workDir;\n }", "public void createDirectory(SrvSession sess, TreeConnection tree, FileOpenParams params)\n throws IOException {\n\n // Access the database context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Get, or create, a file state for the new path. Initially this will indicate that the directory\n // does not exist.\n \n FileState fstate = getFileState(params.getPath(), dbCtx, false);\n if ( fstate != null && fstate.fileExists() == true)\n throw new FileExistsException(\"Path \" + params.getPath() + \" exists\");\n\n // If there is no file state check if the directory exists\n \n if ( fstate == null) {\n\n // Create a file state for the new directory\n \n fstate = getFileState(params.getPath(), dbCtx, true);\n \n // Get the file details for the directory\n \n if ( getFileDetails(params.getPath(), dbCtx, fstate) != null)\n throw new FileExistsException(\"Path \" + params.getPath() + \" exists\");\n }\n\n // Find the parent directory id for the new directory\n \n int dirId = findParentDirectoryId(dbCtx,params.getPath(),true);\n if ( dirId == -1)\n throw new IOException(\"Cannot find parent directory\");\n \n // Create the new directory entry\n \n try {\n\n // Get the directory name\n \n String[] paths = FileName.splitPath(params.getPath());\n String dname = paths[1];\n\n // Check if the directory name is too long\n \n if ( dname != null && dname.length() > MaxFileNameLen)\n throw new FileNameException(\"Directory name too long, \" + dname);\n \n // If retention is enabled check if the file is a temporary folder\n \n boolean retain = true;\n \n if ( dbCtx.hasRetentionPeriod()) {\n \n // Check if the file is marked delete on close\n \n if ( params.isDeleteOnClose())\n retain = false;\n }\n \n // Set the default NFS file mode, if not set\n \n if ( params.hasMode() == false)\n params.setMode(DefaultNFSDirMode);\n\n // Make sure the create directory option is enabled\n \n if ( params.hasCreateOption( WinNT.CreateDirectory) == false)\n throw new IOException( \"Create directory called for non-directory\");\n \n // Use the database interface to create the new file record\n \n int fid = dbCtx.getDBInterface().createFileRecord(dname, dirId, params, retain);\n\n // Indicate that the path exists\n \n fstate.setFileStatus( FileStatus.DirectoryExists);\n \n // Set the file id for the new directory\n \n fstate.setFileId(fid);\n \n // If retention is enabled get the expiry date/time\n \n if ( dbCtx.hasRetentionPeriod() && retain == true) {\n RetentionDetails retDetails = dbCtx.getDBInterface().getFileRetentionDetails(dirId, fid);\n if ( retDetails != null)\n fstate.setRetentionExpiryDateTime(retDetails.getEndTime());\n }\n \n // Check if the file loader handles create directory requests\n \n if ( fid != -1 && dbCtx.getFileLoader() instanceof NamedFileLoader) {\n \n // Create the directory in the filesystem/repository\n \n NamedFileLoader namedLoader = (NamedFileLoader) dbCtx.getFileLoader();\n namedLoader.createDirectory(params.getPath(), fid);\n }\n }\n catch (Exception ex) {\n Debug.println(ex);\n }\n }", "protected static void createDirectory(MasterProcedureEnv env, NamespaceDescriptor nsDescriptor)\n throws IOException {\n createDirectory(env.getMasterServices().getMasterFileSystem(), nsDescriptor);\n }", "public static void createDirectory(String srcDir, String nameDir) {\n try {\n Path path = Paths.get(srcDir + \"/\" + nameDir);\n\n Files.createDirectories(path);\n System.out.println(\"Directory is created\");\n } catch (IOException e) {\n System.err.println(\"ERROR CREATION! \" + e.getMessage());\n }\n\n }", "public int mkdirs(String callingPkg, String path) throws RemoteException;", "public void setAndCreateDirPath(String dirname) {\r\n\t File newPath = new File(dirname); \r\n\t \r\n\t if(!newPath.isDirectory()) {\r\n\t\t newPath.mkdirs();\r\n\t }\r\n\t \r\n\t directory = newPath;\r\n }", "public boolean createDir(String userName) {\n\t\tString path = userName;\n\n\t\tboolean success = true;\n\t\ttry{\n\t\t\tsuccess = (new File(path)).mkdirs();\n\t\t\tSystem.out.println(success);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn success;\n\n\t}", "public void createDir(File file) {\n if (!file.exists()) {\n file.mkdir();\n }\n }", "private void createFolder(String myFilesystemDirectory) {\n\r\n File file = new File(myFilesystemDirectory);\r\n try {\r\n if (!file.exists()) {\r\n //modified \r\n file.mkdirs();\r\n }\r\n } catch (SecurityException e) {\r\n Utilidades.escribeLog(\"Error al crear carpeta: \" + e.getMessage());\r\n }\r\n }", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "private File createDirectoryIfNotExisting( String dirName ) throws HarvesterIOException\n {\n \tFile path = FileHandler.getFile( dirName );\n \tif ( !path.exists() )\n \t{\n \t log.info( String.format( \"Creating directory: %s\", dirName ) );\n \t // create path:\n \t if ( !path.mkdir() )\n \t {\n \t\tString errMsg = String.format( \"Could not create necessary directory: %s\", dirName );\n \t\tlog.error( errMsg );\n \t\tthrow new HarvesterIOException( errMsg );\n \t }\n \t}\n \t\n \treturn path;\n }", "Folder createFolder();", "private void createScratchDirectory(Path rootpath) {\n\t\tprintMsg(\"running createScratchDirectory() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\tif (Files.isDirectory(rootpath)) {\n\t\t\tprintMsg(\"The \" + theRootPath + \" exists...\");\n\t\t} else {\n\t\t\tprintMsg(\"Creating \" + theRootPath);\n\t\t\ttry {\n\t\t\t\tFiles.createDirectories(rootpath);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static native boolean mkdir(String path, int mode)\n throws IOException;", "public boolean makeDirectory( String directory, FileType type );", "private static void createParents(String path) {\n\n File file = new File(path);\n if (!file.exists()) {\n file.mkdirs();\n }\n }", "private void createDirectoryIfNeeded(String directoryName)\n\t{\n\t\tFile theDir = new File(directoryName);\n\n\t\t// if the directory does not exist, create it\n\t\tif (!theDir.exists())\n\t\t{\n\t\t\t//System.out.println(\"creating directory: \" + directoryName);\n\t\t\ttheDir.mkdir();\n\t\t}\n\t}", "Directory createAsDirectory() {\n return getParentAsExistingDirectory().findOrCreateChildDirectory(name);\n }", "public void createDir(File file){\n\t\tif (!file.exists()) {\n\t\t\tif (file.mkdir()) {\n\t\t\t\tlogger.debug(\"Directory is created!\");\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"Failed to create directory!\");\n\t\t\t}\n\t\t}\n\t}", "public boolean createFolder(String path){\n\t\tValueCollection payload = new ValueCollection();\n\t\tpayload.put(\"path\", new StringPrimitive(path));\n\t\ttry {\t\n\t\t\tclient.invokeService(ThingworxEntityTypes.Things, FileThingName, \"CreateFolder\", payload, 5000);\n\t\t\tLOG.info(\"Folder {} created.\",path);\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Folder already exists. Error: {}\",e);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public createDirectory_args setPath(String path) {\n this.path = path;\n return this;\n }", "Path createPath();", "public boolean create(String path,String fileName) {\n\t\tpath = path + \"/\" + fileName;\n\n\t\tboolean success = true;\n\t\ttry{\n\t\t\tsuccess = (new File(path)).mkdirs();\n\t\t\tSystem.out.println(success);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn success;\n\n\t}", "private void createFolder(String name, String path, Long id) {\n VMDirectory newDir = new VMDirectory();\n newDir.setName(name);\n editResourceService.createDir(id, name, new AsyncCallback<Long>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.say(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Long result) {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, id), newDir, result, true);\n folderPath_idMap.put(path, result);\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n });\n }", "void createIndexDir(String indexDirPath) throws IOException {\n File indexDir = new File(indexDirPath);\n if (!indexDir.exists())\n indexDir.mkdir();\n else {\n removeIndexDir(indexDirPath);\n indexDir.mkdir(); \n }\n }", "public static void CreateFolder(String folderName, String path){\n File file = new File(path+ \"/\" + folderName);\n file.mkdirs ();\n }", "private static void makeDirPath(String targetAddr) {\n\t\tString parentPath = PathUtil.getImgBasePath() + targetAddr;\r\n\t\tFile dirPath = new File(parentPath);\r\n\t\tif (!dirPath.exists()) {\r\n\t\t\tdirPath.mkdirs();\r\n\t\t}\r\n\t}", "public static boolean create(String dirName)\r\n {\r\n Path p = Paths.get(dirName);\r\n if (Files.notExists(p))\r\n {\r\n try\r\n {\r\n Files.createDirectory(p);\r\n } catch (Exception ex)\r\n {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private void makeFolders( final File directoryToCreate )\n throws MojoExecutionException\n {\n this.logger.debug( \"Creating folder '\" + directoryToCreate.getAbsolutePath() + \"' ...\" );\n if ( directoryToCreate.mkdirs() == false )\n {\n throw new MojoExecutionException( \"Could not create folder '\" + directoryToCreate.getAbsolutePath() + \"'!\" );\n }\n }", "public static void createDirectory(String inputDirectory) {\n File file = new File(inputDirectory);\n if (file.exists()) {\n System.out.println(\"The directory is already present\");\n } else {\n //use mkdir() and check its return value\n file.mkdir();\n System.out.println(\"The directory \" + inputDirectory + \" has been created.\");\n }\n }", "public static boolean createRootdir(String parentPath, String name) {\n File dir = new File(parentPath + File.separator + name);\n if (dir.exists())\n return false;\n\n try {\n if (!readReadWriteFile())\n RootTools.remount(parentPath, \"rw\");\n\n execute(\"mkdir \" + getCommandLineString(dir.getAbsolutePath()));\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }", "private static void judeDirExists(String myPath) {\n \tFile myDir = new File(Paths.get(myPath).getParent().toString());\n if (!myDir.exists()) {\n \tmyDir.mkdirs(); \n System.out.println(\"Create path:\"+ myDir.getPath());\n }\n }", "public static boolean mkdirs(final String path) {\n return new File(path).mkdirs();\n }", "@Override\r\n\tpublic boolean createFolder(String filePath) throws FileSystemUtilException {\r\n\t\ttry{\r\n\t\t\tString userHome = getUserHome();\r\n\t\t\t//if given file path doesnot start with user home\r\n\t\t\tif(filePath == null && filePath.trim().length() < 1 && !filePath.startsWith(userHome)){\r\n\t\t\t\tthrow new FileSystemUtilException(\"EL0701\");\r\n\t\t\t}\r\n\t\t\tconnect();\r\n\t\t\tString mkDirCmd = \"mkdir -p \"+filePath;\t\t\t\r\n\t\t\tint x = executeSimpleCommand(mkDirCmd);\r\n\t\t\tif(x!=0)\r\n\t\t\t{\r\n\t\t\t\tlogger.info(\"Folder creation failed, may be file path is not correct or privileges are not there\");\r\n\t\t\t\tthrow new FileSystemUtilException(\"EL0699\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}catch(FileSystemUtilException e)\r\n\t\t{\r\n\t\t disconnect();\r\n\t\t\tthrow new FileSystemUtilException(e.getErrorCode(),e.getException());\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tthrow new FileSystemUtilException(\"F00002\",e);\r\n\t\t}\r\n\r\n\t}", "public static boolean createDirIfNotExists(String path, SourceType sourceType) throws IOException {\n return getFileSystemBySourceType(sourceType).mkdirs(new Path(path));\n }", "WithCreate withFolderPath(String folderPath);", "@Override\n public void createDirectory(File storageName) throws IOException {\n }", "private void createTDenseDirectory() {\n File dense = new File(DenseLayerPath);\n dense.mkdir();\n }", "public void mkdirP(String dirPath) {\n\n\t\t// check if you need to go anywhere further\n\t\tif (dirPath.lastIndexOf(\"/\") == 0) {\n\t\t\treturn;// done\n\t\t} else {\n\t\t\t// parse directories...\n\t\t\tArrayList<String> direcs = new ArrayList<>();\n\t\t\tString temp = dirPath;\n\t\t\tboolean cont = true;\n\t\t\ttemp = temp.substring(1);\n\t\t\twhile (temp.length() > 1 && cont) {\n\n\t\t\t\t// add the substring to the list of directories that need to be\n\t\t\t\t// checked and/or created\n\t\t\t\tdirecs.add(temp.substring(0, temp.indexOf(\"/\")));\n\t\t\t\t// if there are more \"/\"s left, repeat\n\t\t\t\tif (temp.contains(\"/\")) {\n\t\t\t\t\ttemp = temp.substring(temp.indexOf(\"/\") + 1);\n\t\t\t\t}\n\t\t\t\t// else break out of the loop\n\t\t\t\telse {\n\t\t\t\t\tcont = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// do one last check to see if there are any extra characters left\n\t\t\tif (temp.length() > 0) {\n\t\t\t\t// there is still something left\n\t\t\t\tdirecs.add(temp);\n\t\t\t}\n\n\t\t\t// go through each directory, checking if it exists. if not, create\n\t\t\t// the directory and repeat.\n\t\t\tDirectoryObjects current = directory;\n\n\t\t\tfor (String p : direcs) {\n\n\t\t\t\tif (current.getDirectoryByName(p) != null) {\n\t\t\t\t\tcurrent = current.getDirectoryByName(p);\n\t\t\t\t} else {\n\t\t\t\t\tcurrent.getSubdirectories().add(new DirectoryObjects(p));\n\t\t\t\t\tcurrent = current.getDirectoryByName(p);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "public static boolean createDBDir() {\n return (new File(path)).mkdirs();\n }", "public void createSubDirCameraTaken() {\n\t\tFile f = new File(getPFCameraTakenPath());\n\t\tf.mkdirs();\n\t}", "private boolean createFolder (Path path) {\n if (Files.notExists(path)) {\n // If the folder doesn't already exists we create it\n File f = new File(path.toString());\n try {\n // Create the folder\n f.mkdir();\n // Create an empty flow.json file\n f = new File(path + \"/flow.json\");\n f.createNewFile();\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n } else {\n return false;\n }\n }", "public void createFolder(String remotepath){\n String path = rootremotepath+remotepath;\n try {\n sardine.createDirectory(path);\n } catch (IOException e) {\n throw new NextcloudApiException(e);\n }\n }", "public void mkdir(String name) throws FileExistsException\n\t{\n\t\tcheckMakeFile(name);\n\t\tFileElement add = new FileElement(name, true);\n\t\tfileSystem.addChild(currentFileElement, add);\n\t}", "public static void CrearDirectorio (String args){\n File directorio = new File(args);\n \n if (!directorio.exists()) {\n if (directorio.mkdirs()) {\n //System.out.println(\"Directorio creado\\n\");\n } else {\n //System.out.println(\"Error al crear directorio\\n\");\n }\n }\n }", "public boolean makeDirectory(){\n File root = new File(Environment.getExternalStorageDirectory(),\"OQPS\");\n if(!root.exists()){\n return root.mkdir();\n }\n return true; //folder already exists\n }", "public static void createDirectories() \r\n\t{\r\n\t\tif(!fCertificatesDir().exists()) \r\n\t\t{\r\n\t\t\tfCertificatesDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fDbDir().exists()) \r\n\t\t{\r\n\t\t\tfDbDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsDir().exists())\r\n\t\t{\r\n\t\t\tfMibsDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsBinaryDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsBinaryDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsTextDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsTextDir().mkdir();\r\n\t\t}\r\n\t}", "private static void createSaveDirIfNotExisting() {\n\t\tFile dir = new File(\"save\");\n\t\tif (!dir.exists()) {\n\t\t\t// directory does not exist => create!\n\t\t\tdir.mkdir();\n\t\t}\n\t}", "public File createSubDirectories(String directoryPath) {\n File myFilesDir = new File(this.assetFolderPath, directoryPath);\n\n if(!myFilesDir.isDirectory()) {\n myFilesDir.mkdirs();\n }\n return myFilesDir;\n }", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "public static File createDirectoryIfNotExists(String directory) {\n if (directory == null) {\n return null;\n }\n\n // Check if the target directory exists on the input path\n File targetDirectory = new File(directory);\n if (targetDirectory.exists() != true) {\n LOG.debug(\"ics.core.io.FileUtils.createDirectoryIfNotExists(): Creating \"\n + directory);\n\n // Don't run as sudo but as a tomcat user instead\n ProcessResult result = ShellUtil.executeShellCommand(\"mkdir -p \"\n + directory);\n if (result.getExitCode() != 0) {\n LOG.error(\"ics.core.io.FileUtils.createDirectoryIfNotExists(): Process exited abnormally. Exit code: \"\n + result.getExitCode());\n //LOG.error(result.getStandardError());\n return null;\n }\n\n }\n\n return targetDirectory;\n }", "@Test\n public void testMkdirOneDirectoryAbsolutePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\", \"/directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }", "public MkdirCommand() {\r\n // The name of the mkdir command\r\n name = \"mkdir\";\r\n\r\n // The description of the mkdir command\r\n description = \"Creates a directory ar the given path. The given path can\"\r\n + \" be a full path or a path relative to the working directory\";\r\n\r\n // The parameters for the mkdir command and their description\r\n parameters.put(\"DIR\", \"The path that points to where the new directory\"\r\n + \" should be created.\");\r\n }", "@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }", "public static boolean mkdirs(String existingPath, String dirPath){\r\n\t\tif(dirPath == null || dirPath.trim().equals(\"\")) return false;\r\n\t\tString[] dirs = null;\r\n\t\tif(existingPath == null) existingPath = \"\";\r\n\t\tif(dirPath.indexOf(\"\\\\\") != -1){\r\n\t\t\tdirs = dirPath.split(\"\\\\\\\\+\");\r\n\t\t}else if (dirPath.indexOf(\"/\") != -1){\r\n\t\t\tdirs = dirPath.split(\"/+\");\r\n\t\t}\r\n\t\tfor (int i = 0; i < dirs.length; i++) {\r\n\t\t\tif(dirs[i] == null || dirs[i].trim().equals(\"\")) continue;\r\n\t\t\tFile f = new File(existingPath + \"\\\\\" + dirs[i]);\r\n\t\t\tif(!f.exists())\r\n\t\t\t\tf.mkdirs();\r\n\t\t\texistingPath += \"\\\\\" + dirs[i];\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void makeDir(String targetDir){\n\t\tchar letter = 'A';\n\t\tnew File(targetDir + \"\\\\Sorted Music\").mkdir();\n\t\t\n\t\tfor (int i = 0; i < 26; i++){\n\t\t\tnew File(targetDir + \"\\\\Sorted Music\\\\\" + letter).mkdir();\n\t\t\tletter++;\n\t\t}\n\t}", "@Test\n public void testMkdirOneDirectoryRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n }", "private void createRootDirectory(String rootDirectoryPath) throws Exception {\n\t\tlogger.traceEntry();\n\n\t\trootDirectory = new Path(rootDirectoryPath);\n\t\tif (!hadoopFileSystem.exists(rootDirectory)) {\n\t\t\tlogger.warn(\"Directory \" + rootDirectoryPath + \" does not exist, creating\");\n\t\t\thadoopFileSystem.mkdirs(rootDirectory);\n\t\t}\n\t\tlogger.traceExit();\n\t}", "@Test\n public void testMkdirMultipleDirectoriesOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"/directory2\", \"directory3\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"Directory 1 or 2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n assertEquals(myTree.hasDirectory(\"/directory3\"), true);\n }", "public void handleMissingDirectory(String path_string) throws PersistBlobException {\n\t\tPath path = Paths.get(path_string);\n\t\tSet<PosixFilePermission> perms = PosixFilePermissions.fromString(directoryPerms);\n\t\tFileAttribute<Set<PosixFilePermission>> attr =\tPosixFilePermissions.asFileAttribute(perms);\n\t\ttry {\n\t\t\tFiles.createDirectories(path, attr);\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"Unable to create path: [\"+path+\"]\",e);\n\t\t}\n\t\tlog.info(\"PersistBlobImpl: created directory: {}\",path_string);\n\t}", "private static void createDir(File f) {\n int limit = 10;\n while (!f.exists()) {\n if (!f.mkdir()) {\n createDir(f.getParentFile());\n }\n limit --;\n if(limit < 1) {\n break;\n }\n }\n if (limit == 0) {\n }\n }", "@Test\n public void testMkdirOneDirectoryAbsolutePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n }", "private final void directory() {\n\t\tif (!this.plugin.getDataFolder().isDirectory()) {\n\t\t\tif (!this.plugin.getDataFolder().mkdirs()) {\n\t\t\t\tMain.SEVERE(\"Failed to create directory\");\n\t\t\t} else {\n\t\t\t\tMain.INFO(\"Created directory sucessfully!\");\n\t\t\t}\n\t\t}\n\t}", "private static String createDir(String s) {\r\n \tint len = s.length() - 1;\r\n \tString tempBuff;\r\n \tString result;\r\n \tif (s.charAt(len) != '/') {\r\n \t\ttempBuff = String.format(\"%s/\", s);\r\n \t}\r\n \telse {\r\n \t\ttempBuff = s;\r\n \t}\r\n \tresult = tempBuff;\r\n \treturn result;\r\n }", "void createNode(String path);", "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "private Path initFolder(String folder) throws IOException {\n return Files.createDirectory(Paths.get(uploadFolder + \"/\" + folder));\n }", "static Path createBackupDirectory(Path savegame) {\r\n\t\tPath backupDirectory = Paths.get(savegame.getParent() + \"\\\\Backups\");\r\n\t\tif (!Files.isDirectory(backupDirectory)) {\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectory(backupDirectory);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error: couldn't create Backup directory\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (Files.isDirectory(backupDirectory)) {\r\n\t\t\tSystem.out.println(\"Created Backup Directory..\");\r\n\t\t}\r\n\t\treturn backupDirectory;\r\n\t}", "@Test\n public void testMkdirOneDirectoryRelativePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }", "private static void createTempFolder(String folderName) throws IOException {\n Path tempFolderPath = Paths.get(folderName);\n if (Files.notExists(tempFolderPath) || !Files.isDirectory(tempFolderPath)) {\n Files.createDirectory(tempFolderPath);\n }\n }", "@Test\n public void testMkdirMultipleDirectoriesRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory2\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 or directory2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n }", "public boolean create(boolean isFile) {\n\t\t\n\t\tboolean result = false;\n\t\t\n\t\tif(!isFile)\n\t\t{\n\t\t\tFile temp = new File(this.path);\n\t\t\ttemp.mkdirs();\n\t\t\tresult = true;\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tFile temp = new File(this.path);\n\t\t\tString folderContainingFile = \"/\";\n\t\t\t\n\t\t\tfor(int i = 0; i <= this.lenght - 2; i++)\n\t\t\t{\n\t\t\t\tfolderContainingFile += this.get(i) + \"/\";\n\t\t\t}\n\t\t\t\n\t\t\tnew File(folderContainingFile).mkdirs();\n\t\t\t\n\t\t\ttry {\n\t\t\t\ttemp.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tresult = true;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void makeFolder() throws IOException {\n\t\tclientOutput.println(\n\t\t\t\t\">>> Unesite relativnu putanju do destinacije na kojoj pravite folder zajedno sa imenom foldera: \");\n\t\tuserInput = clientInput.readLine();\n\n\t\tuserInput = \"drive/\" + username + \"/\" + userInput;\n\t\tdestinacija = new File(userInput);\n\t\tdestinacija.mkdir();\n\t}", "public String createDirectory(String parentID, String new_directory) throws CloudStorageNotEnoughSpace {\n File newFile = new File();\n newFile.setTitle(new_directory);\n newFile.setMimeType(\"application/vnd.google-apps.folder\");\n newFile.setParents(Arrays.asList(new ParentReference().setId(parentID)));\n\n try {\n File insertedFile = drive.files().insert(newFile).execute();\n return insertedFile.getId();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n\n }", "private void createServiceDirectory(String serviceID){\n \n String changedServiceID = serviceID.replaceAll(\"\\\\.\",\"&\");\n changedServiceID = changedServiceID.replaceAll(\":\",\"&\");\n \n //Create directory to store output files of service\n File dir = new File(sessionDirectory.getPath()+\"/\"+changedServiceID);\n dir.mkdir();\n \n //Add created directory to map \"servicesDirectories\"\n servicesDirectories.put(serviceID,dir);\n \n }", "public boolean createDirectoryInJarFolder(String folderName){\r\n \r\n path = getPathToJarFolder();\r\n \r\n // add folder to path and make directory\r\n path += folderName;\r\n File file = new File(path);\r\n return file.mkdir();\r\n }", "@Test\n public void testMkdirMultipleDirectoriesAbsolutePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\", \"/directory2\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 or directory2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n }", "@Override\n\tpublic void generateDirectories() {\n\t\tFile file = new File(\"Data/My Contacts/\");\n\n\t\tif (!file.exists()) {\n\t\t\tfile.mkdirs();\n\t\t}\n\t}", "private void createNewDirectory() {\n getMainWindow().addWindow(\n new TextInputDialog(\n \"Create Directory\",\n \"Create Directory\",\n \"New Folder\",\n new TextInputDialog.Callback() {\n public void onDialogResult(boolean happy, String newDirectory) {\n if ( happy\n && isValidFile(newDirectory)) {\n try {\n // Verzeichnis anlegen\n File newDir = getFile(newDirectory);\n if (!newDir.exists()) {\n newDir.mkdir(0755);\n }\n // Prüfen, ob das Verzeichnis angelegt wurde\n if (newDir.exists()) {\n loadXtreemFSData();\n showNotification(\"Success\", \"Directory \" + newDirectory + \" created.\", Notification.TYPE_TRAY_NOTIFICATION, null);\n }\n else {\n showNotification(\"Error\", \"Directory \" + newDirectory + \" could not be created.\", Notification.TYPE_WARNING_MESSAGE, null);\n }\n } catch (IOException e) {\n showNotification(\"Error\", e.toString(), Notification.TYPE_ERROR_MESSAGE, e);\n }\n }\n }\n }));\n }", "private void setUpDirectories() {\r\n\t\tFile creation = new File(\"Creations\");\r\n\t\tFile audio = new File(\"Audio\");\r\n\t\tFile quiz = new File(\"Quiz\");\r\n\t\tFile temp = new File(\"Temp\");\r\n\r\n\t\tif (!creation.isDirectory()) {\r\n\t\t\tcreation.mkdir();\r\n\t\t}\r\n\t\tif (!audio.isDirectory()) {\r\n\t\t\taudio.mkdir();\r\n\t\t}\r\n\t\tif (!quiz.isDirectory()) {\r\n\t\t\tquiz.mkdir();\r\n\t\t}\r\n\t\tif (!temp.isDirectory()) {\r\n\t\t\ttemp.mkdir();\r\n\t\t}\r\n\r\n\t}", "static void mkdirs(File f) {\n f.mkdirs();\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}" ]
[ "0.8261407", "0.8049464", "0.7983797", "0.7915905", "0.7903383", "0.7630966", "0.7568522", "0.7541224", "0.74816656", "0.7450357", "0.7425461", "0.74107647", "0.7397731", "0.7352939", "0.7138481", "0.7097913", "0.70102805", "0.69883007", "0.6965142", "0.6951629", "0.6950587", "0.68934333", "0.68376756", "0.681958", "0.6814535", "0.66894805", "0.6666488", "0.666522", "0.6645312", "0.66398484", "0.66105044", "0.6609305", "0.6571791", "0.6564918", "0.653756", "0.64647657", "0.6462952", "0.643464", "0.6427796", "0.6425224", "0.6416965", "0.64040405", "0.6351099", "0.634493", "0.6330146", "0.62890196", "0.6283642", "0.6278875", "0.6270912", "0.62658644", "0.6253683", "0.6193377", "0.6189474", "0.6172465", "0.6123349", "0.6076624", "0.6076029", "0.606095", "0.60575527", "0.6052312", "0.6048847", "0.6020577", "0.6013819", "0.60126173", "0.6010891", "0.60047394", "0.5996774", "0.59699875", "0.59596163", "0.5953047", "0.5949276", "0.5947632", "0.5945048", "0.59395784", "0.5933451", "0.59328884", "0.5911659", "0.5888382", "0.58883286", "0.5887839", "0.5876173", "0.58743244", "0.5870798", "0.586036", "0.58539426", "0.5848055", "0.584483", "0.5843722", "0.5802336", "0.5795694", "0.57954156", "0.57953364", "0.57953066", "0.57875496", "0.57732993", "0.5764237", "0.5754467", "0.5752417", "0.57490194", "0.57469493" ]
0.62682486
49
Create a file inside a path
public int createFile(String fileName, String path, int numOfReplicas) throws IOException { masterSock.write((CREATE_FILE + " " + fileName + " " + path + " " + numOfReplicas).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = null; line = masterSock.readLine(); switch (line) { case STR_EXISTED: return EXISTED; case STR_CLIENT_ERROR: return CLIENT_ERROR; case STR_SERVER_ERROR: return SERVER_ERROR; case STR_REPLICA_EXCEED: return REPLICA_EXCEED; default: if (line.contains(STR_OK)) { String[] strs = line.split(" "); // set up the file item if (trace) System.out.println("File chunkservers: "); TFSClientFile file = new TFSClientFile(path + "/" + fileName); String[] servers = new String[(strs.length - 1) / 2]; for (int i = 0; i < servers.length; i++) { servers[i] = strs[2 * i + 1] + " " + strs[2 * i + 2]; if (trace) System.out.println("\t" + servers[i]); } file.setChunkServers(servers); // add to file cache for future reference filesCache.add(file); return OK; } else return SERVER_ERROR; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }", "@Override\n public File createFile(String path) throws IOException {\n String pathStr=path+fileSeparator+\"Mail.json\";\n File file = new File(pathStr);\n file.createNewFile();\n return file;\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}", "Path createPath();", "@SuppressWarnings(\"TailRecursion\")\n // As long as the specified path does not contain files with names matching a random UUID value,\n // recursive calls should not happen.\n private static File createFileUnderPath(Path path) {\n var fileName = UUID.randomUUID().toString();\n var result = new File(path.toFile(), fileName);\n if (result.exists()) {\n return createFileUnderPath(path);\n }\n try {\n result.createNewFile();\n return result;\n } catch (IOException e) {\n throw Exceptions.newIllegalStateException(e,\n \"Could not create a temporary file in %s.\",\n path.toAbsolutePath());\n }\n }", "int createFile(String pFileNamePath, String pContent, String pPath, String pRoot, boolean pOverride) throws RemoteException;", "private void createDirectory(String path) throws IOException {\n\t\tfinal Path p = Paths.get(path);\n\t\tif (!fileExists(p)) {\n\t\t\tFiles.createDirectory(p);\n\t\t}\n\t}", "void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "public static void createFile(String path) {\n try {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter the file name :\");\n String filepath = path+\"/\"+scanner.next();\n File newFile = new File(filepath);\n newFile.createNewFile();\n System.out.println(\"File is Created Successfully\");\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public static File fileFromPathOrCreate(String path) throws IOException {\n File propFile = new File(path);\n if (!propFile.exists()) {\n propFile.createNewFile();\n }\n return propFile;\n }", "private void createFile(String fileName, String content) throws IOException {\n File file = new File(fileName);\n if (!file.exists()) {\n file.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(fileName, false);\n fileWriter.append(content);\n fileWriter.close();\n }", "@Test\n public void createFile(){\n try\n {\n URI uri = new URI(\"http://www.yu.edu/documents/doc390\");//given the complete uri\n String path = uri.getAuthority() + this.disectURI(uri);//get the Path which is www.yu.edu\\documents\n File file = new File(baseDir.getAbsolutePath() + File.separator + path);//make a File with the full class path and with the \"URI Path\"\n Files.createDirectories(file.toPath());//create the directories we didn't have before, ie not apart of the baseDir\n\n File theFile = new File(file.getAbsolutePath() + File.separator + \"doc390.txt\");//create a new File with the document as the last piece\n //wrap in a try because if the file is already there than we don't need to create a file\n if(!theFile.exists())Files.createFile(theFile.toPath());//create this file in the computer\n\n //write to the file -- in the real application this is the writing of the json\n FileWriter fileWriter = new FileWriter(theFile);\n fileWriter.write(\"HaYom sishi BShabbos\");\n fileWriter.flush();\n fileWriter.close();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "public void createFile (String filePath){\n try{\n File newFile = new File(filePath);\n if(newFile.createNewFile()){\n System.out.println(\"File created: \"+newFile.getName());\n } else {\n System.out.println(\"File already exists.\");\n }\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "public void create(String path) throws IOException {\n Path destionationPath = new Path(path);\n\n if (hdfs.exists(destionationPath)) {\n hdfs.delete(destionationPath, true);\n }\n hdfs.createNewFile(destionationPath);\n }", "private static void createTestFile(String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tFileWriter writer = new FileWriter(file);\n\t\twriter.write(\"Jenkins Test : \"+new Date() + \" ==> Writing : \" + Math.random());\n\t\twriter.flush();\n\t\twriter.close();\n\t}", "void createNode(String path);", "public void createFile(String fname) {\n\t\tprintMsg(\"running createFiles() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\t// Check if the scratch directory exists, create it if it doesn't\n\t\tPath rootpath = Paths.get(theRootPath);\n\t\tcreateScratchDirectory(rootpath);\n\n\t\t// Check if the file name is null or empty, if it is, use default name\n\t\tPath filepath = null;\n\t\tif(fname == null || fname.isEmpty()) {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + theFilename);\n\t\t} else {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + fname);\n\t\t}\n\t\t\n\t\t// Create file\n\t\ttry {\n\t\t\t// If file exists already, don't override it.\n\t\t\tif(!Files.exists(filepath)) {\n\t\t\t\tFiles.createFile(filepath);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void createFile(PonsFileFactory ponsFileFactory, Profile profile){\n moveX(profile);\n ponsFileFactory.setProfile(profile);\n String text = ponsFileFactory.createPonsFile();\n String profileName = profile.getName();\n WriteFile.write(text,pathTextField.getText() + \"/\" + profileName.substring(0,profileName.indexOf(\".\")));\n }", "public static void main(String[] args) {\n\t\tFile file = new File(\"test/a.txt\");\r\n\t\tFileUtil.createFile(file);\r\n\t\t/*if(! file.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t}", "@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }", "public void createFile(File file) throws IOException {\n if (!file.exists()) {\n file.createNewFile();\n }\n }", "private static void createDirectory(Path path) throws IOException {\n\t\ttry {\n\t\t\tFiles.createDirectory(path);\n\t\t} catch (FileAlreadyExistsException e) {\n\t\t\tif (!Files.isDirectory(path)) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\t}", "public static void createFile(File source) {\n try {\n if (!source.createNewFile()) {\n throw new IOException();\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to create file: \" + source.getAbsolutePath(), e);\n }\n }", "public static void makeNewFile(File root, String name) {\n File directory = new File(root, name);\n try {\n if (!directory.createNewFile()) {\n throw new IOException(\"Could not create \" + name + \", file already exists\");\n }\n } catch (IOException e) {\n throw new UncheckedIOException(\"Failed to create file: \" + name, e);\n }\n }", "public String createPath(String path, byte[] value) throws Exception {\n PathUtils.validatePath(path);//if bad format,here will throw some Exception;\n EnsurePath ensure = new EnsurePath(path).excludingLast();\n //parent path should be existed.\n //EnsurePath: retry + block\n ensure.ensure(zkClient); //ugly API\n return zkClient.getZooKeeper().create(path, value, ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);\n }", "public void createFile(File file) {\n\t\tif (file.exists())\n\t\t\treturn;\n\t\ttry {\n\t\t\tfile.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void checkFilePath(String filePath) {\n File file = new File(filePath);\n try {\n if (!file.getParentFile().exists()) {\n file.getParentFile().mkdirs();\n }\n if (!file.exists()) {\n file.createNewFile();\n }\n file.createNewFile();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n }", "static void createNewFile(String path) \n\t\t{\n\t\tLinkedList<String> defaultData = new LinkedList<String>();\n\t\tdefaultData.add(\"1,Frank,West,98,95,87,78,77,80\");\n\t\tdefaultData.add(\"2,Dianne,Greene,78,94,88,87,95,92\");\n\t\tdefaultData.add(\"3,Doug,Lei,78,94,88,87,95,92\");\n\t\tdefaultData.add(\"4,James,Hewlett,69,92,74,77,89,91\");\n\t\tdefaultData.add(\"5,Aroha,Wright,97,92,87,83,82,92\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tPrintWriter newFile = new PrintWriter(path, \"UTF-8\"); // Create .txt file in given path\n\t\t\t\n\t\t\tfor (String s : defaultData) \n\t\t\t{\n\t\t\t\tnewFile.println(s); // Write To file\n\t\t\t}\n\t\t\t\n\t\t\tnewFile.close(); // Close File\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"studentData.txt Created Successfully!\");\n\t\t\n\t}", "@Override\n public synchronized boolean create(Path file)\n {\n File f = file.toFile(root);\n if (file.isRoot()) {\n return false;\n }\n File parent = file.parent().toFile(root);\n parent.mkdirs();\n\n try {\n return f.createNewFile();\n } catch (IOException e) {\n \te.printStackTrace();\n return false;\n }\n }", "FileReference createFile(String fileName, String toolId);", "public static void mkdir(String path) {\n File directory = new File(path);\n if (directory.exists())\n return;\n directory.mkdir();\n }", "public static boolean createFile() throws IOException {\n String bytes = \"\";\n byte[] write = bytes.getBytes(); //Salva i bytes della stringa nel byte array\n if(!fileName.exists()){\n Path filePath = Paths.get(fileName.toString()); //Converte il percorso in stringa\n Files.write(filePath, write); // Creare il File\n Main.log(\"File \\\"parametri\\\" creato con successo in \" + fileName.toString());\n return true;\n }\n return false;\n }", "public void writeFile(String path, String name, String content)\n\t\t\tthrows Exception {\n\n\t\ttry {\n\t\t\tString ruta = path + File.separator + name;\n\n\t\t\t// Create file\n\t\t\tFileWriter fstream = new FileWriter(ruta);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t\t\tout.write(content);\n\t\t\t// Close the output stream\n\t\t\tout.close();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error escribiendo fichero\", e);\n\t\t}\n\n\t}", "public boolean create(String path,String fileName) {\n\t\tpath = path + \"/\" + fileName;\n\n\t\tboolean success = true;\n\t\ttry{\n\t\t\tsuccess = (new File(path)).mkdirs();\n\t\t\tSystem.out.println(success);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn success;\n\n\t}", "public String createFile(String name) {\t\t\n\t\tString filename = this.path + name;\n\t\tFile file = new File(filename);\n\t\t\n\t\ttry {\n\t\t\tif (file.createNewFile()) {\n\t\t System.out.println(\"Created file '\" + filename + \"'.\");\n\t\t \n\t\t // Add file to files list\n\t\t\t\tthis.files.add(name);\t\n\t\t\t\t\n\t\t } else {\n\t\t \t// Null filename to report it was NOT created\n\t\t\t\tfilename = null;\n\t\t System.out.println(\"ERROR - File name already exists!\");\n\t\t }\n\t\t} catch(IOException e) {\n\t\t\t// Null filename to report it was NOT created\n\t\t\tfilename = null;\n\t\t e.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\treturn filename;\n\t}", "public static void CreateFile(){\n try{\n new File(\"wipimages\").mkdir();\n logscommissions.createNewFile();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"CreateFile Failed\\n\");\n }\n }", "private void writeToFile(SVGGraphics2D generator, String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tif (!file.exists())\n\t\t\tfile.createNewFile();\n\t\tFileWriter fw = new FileWriter(file);\n\t\tPrintWriter writer = new PrintWriter(fw);\n\t\tgenerator.stream(writer);\n\t\twriter.close();\n\t}", "@Produces\n\tpublic Path produceFile() throws IOException{\n\t\tlogger.info(\"The path (generated by PathProducer) will be injected here - # Path : \"+path);\n\t\tif(Files.notExists(path)){\n\t\t\tFiles.createDirectory(path);\n\t\t\tlogger.info(\" Directory Created :: \" +path);\n\t\t}\n\t\t/*\n\t\t * currentTimeMillis will be injected by NumberPrefixProducer and has a seperate qualifier\n\t\t */\n\t\tPath file = path.resolve(\"myFile_\" + currentTimeMillis + \".txt\");\n\t\tlogger.info(\"FileName : \"+file);\n\t\tif(Files.notExists(file)){\n\t\t\tFiles.createFile(file);\n\t\t}\n\t\tlogger.info(\" File Created :: \" +file);\n\t\treturn file;\n\t}", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "public static void createOutputDirectoryPath(String path){\n \n new File(path).mkdirs();\n \n }", "public void createFile(View view) {\n // start the background file creation task\n CreateFileTask task = new CreateFileTask();\n task.execute();\n }", "@TaskAction\n public void create() {\n dir.mkdirs();\n getChmod().chmod(dir, dirMode);\n }", "public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void createFile(String file) throws FileNotFoundException {\n\t\tif(!file.contains(\".txt\")) {\n\t\t\tthrow new IllegalArgumentException(\"Wrong format\"); \n\t\t}\n\t\tPrintWriter pw = new PrintWriter(file);\n\t\tpw.close();\n\n\t}", "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "private static BufferedWriter createFileWriter(String filePath) {\n String[] pathComponents = filePath.split(\"/data/\");\n //to avoid heavy nesting in output, replace nested directory with filenames\n\n String output = pathComponents[0] + \"/out/rule_comparisons/\" + pathComponents[1].replace(\"/\",\"-\");\n\n File file = new File(output);\n try {\n //create file in this location if one does not exist\n if (!file.exists()) {\n file.createNewFile();\n }\n return new BufferedWriter(new FileWriter(file));\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static void CreateFile (String filename) {\r\n\t\t try {\r\n\t\t File myObj = new File(filename + \".txt\");\r\n\t\t if (myObj.createNewFile()) {\r\n\t\t System.out.println(\"File created: \" + myObj.getName());\r\n\t\t } else {\r\n\t\t System.out.println(\"File already exists.\");\r\n\t\t }\r\n\t\t } catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }", "private File createNewRotationFile(String clearName, String extension, Path parent){\n\n Path newPath = getPathRotationFile(clearName, lastCountRotation+1, extension, parent);\n try{\n File ret = Files.createFile(newPath).toFile();\n return ret;\n } catch (IOException ex){\n System.out.println(\"Ошибка в создании файла: \"+ex.getMessage());\n }\n System.out.println(\"Ошибка в создании файла: \"+newPath);\n return file;\n }", "File createFile(String name) throws IOException {\n File storageFile = File.createTempFile(FILE_PREFIX + name + \"_\", null, this.subDirectories[fileCounter.getAndIncrement()&(this.subDirectories.length-1)]); //$NON-NLS-1$\n if (LogManager.isMessageToBeRecorded(org.teiid.logging.LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {\n LogManager.logDetail(org.teiid.logging.LogConstants.CTX_BUFFER_MGR, \"Created temporary storage area file \" + storageFile.getAbsoluteFile()); //$NON-NLS-1$\n }\n return storageFile;\n }", "public ActionScriptBuilder createFile(String filecontents, String filepath){\n\t\treturn createFile(filecontents,filepath,true);\n\t}", "public void saveAsFile(String path)\n {\n call(\"SaveAsFile\", path);\n }", "private static File openFile(String path, FileSystem fs) {\n fs.updatePath();\n String fullFilePath;\n if (path.startsWith(\"/\")) {\n // path is abs\n fullFilePath = path;\n } else {\n // path is rel\n fullFilePath = fs.getCurrentPath() + path;\n }\n\n File targetFile = (File) fs.checkPath(fullFilePath, \"file\");\n if (targetFile == null) {\n // check for parent if it's null too\n String[] parentPathArr = fs.getParent(fullFilePath);\n if (!parentPathArr[0].startsWith(\"/\")) {\n // convert parent path to absolute\n parentPathArr[0] = toAbsPathStr(parentPathArr[0], fs);\n }\n Directory parentDir =\n (Directory) fs.checkPath(parentPathArr[0], \"directory\");\n if (parentDir == null) {\n // invalid parent path => the given path is invalid\n ErrorHandler.getErrorMessage(fullFilePath + \" is invalid path\");\n } else {\n // create file under the parentDir if name is okay\n if (fs.isValidNameForFileSystem(parentPathArr[1])) {\n targetFile = fs.createFileWithParent(parentPathArr[1], parentDir);\n } else {\n ErrorHandler.getErrorMessage(\"invalid file name\");\n }\n }\n }\n return targetFile;\n }", "private void createFile() {\n if (mDriveServiceHelper != null) {\n Log.d(\"error\", \"Creating a file.\");\n\n mDriveServiceHelper.createFile()\n .addOnSuccessListener(fileId -> readFile(fileId))\n .addOnFailureListener(exception ->\n Log.e(\"error\", \"Couldn't create file.\", exception));\n }\n }", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String initialFileSetup(String file_path, String user_id) {\n\n String[] path_components = file_path.split(\"/\");\n String desired_filename = path_components[path_components.length - 1];\n String absolute_path = new File(\"\").getAbsolutePath();\n absolute_path = absolute_path.concat(\"/Final\");\n new File(absolute_path).mkdirs();\n absolute_path = absolute_path.concat(\"/Pause\");\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/\".concat(user_id));\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/Pause_\".concat(desired_filename));\n\n return absolute_path;\n }", "public GridFSInputFile createFile(File f) throws IOException {\n\treturn createFile(new FileInputStream(f), f.getName(), true);\n }", "public NetworkFile createFile(SrvSession sess, TreeConnection tree, FileOpenParams params)\n throws IOException {\n\n // Access the database context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Set the session in the file open parameters\n \n params.setSession( sess);\n \n // Get, or create, a file state for the new file\n \n FileState fstate = getFileState(params.getPath(), dbCtx, true);\n if ( fstate.fileExists()) {\n \n // Check if the file creation is a new stream\n \n if ( params.isStream() == false)\n throw new FileExistsException(\"File exists, \" + params.getPath());\n \n // Create a new stream associated with the existing file\n \n return createStream(params, fstate, dbCtx);\n }\n \n // Split the path string and find the directory id to attach the file to\n \n int dirId = findParentDirectoryId(dbCtx,params.getPath(),true);\n if ( dirId == -1)\n throw new IOException(\"Cannot find parent directory\");\n\n // Check if the allocation size for the new file is greater than the maximum allowed file size\n \n if ( dbCtx.hasMaximumFileSize() && params.getAllocationSize() > dbCtx.getMaximumFileSize())\n throw new DiskFullException( \"Required allocation greater than maximum file size\");\n \n // Create a new file\n \n DBNetworkFile file = null;\n\n try {\n\n // Get the file name\n \n String[] paths = FileName.splitPath(params.getPath());\n String fname = paths[1];\n \n // Check if the file name is too long\n \n if ( fname != null && fname.length() > MaxFileNameLen)\n throw new FileNameException(\"File name too long, \" + fname);\n \n // If retention is enabled check if the file is a temporary file\n \n boolean retain = true;\n \n if ( dbCtx.hasRetentionPeriod()) {\n \n // Check if the file is marked delete on close\n \n if ( params.isDeleteOnClose())\n retain = false;\n }\n \n // Set the default NFS file mode, if not set\n \n if ( params.hasMode() == false)\n params.setMode(DefaultNFSFileMode);\n \n // Create a new file record\n \n int fid = dbCtx.getDBInterface().createFileRecord(fname, dirId, params, retain);\n\n // Indicate that the file exists\n \n fstate.setFileStatus( FileStatus.FileExists);\n\n // Save the file id\n \n fstate.setFileId(fid);\n\n // If retention is enabled get the expiry date/time\n \n if ( dbCtx.hasRetentionPeriod() && retain == true) {\n RetentionDetails retDetails = dbCtx.getDBInterface().getFileRetentionDetails(dirId, fid);\n if ( retDetails != null)\n fstate.setRetentionExpiryDateTime(retDetails.getEndTime());\n }\n \n // Create a network file to hold details of the new file entry\n\n file = (DBNetworkFile) dbCtx.getFileLoader().openFile(params, fid, 0, dirId, true, false);\n file.setFullName(params.getPath());\n file.setDirectoryId(dirId);\n file.setAttributes(params.getAttributes());\n file.setFileState(fstate);\n \n // Open the file\n \n file.openFile(true);\n }\n catch (DBException ex) {\n \n // Remove the file state for the new file\n \n dbCtx.getStateCache().removeFileState( fstate.getPath());\n \n // DEBUG\n \n Debug.println(\"Create file error: \" + ex.toString());\n// Debug.println(ex);\n }\n\n // Return the new file details\n\n if (file == null)\n throw new IOException( \"Failed to create file \" + params.getPath());\n else {\n \n // Update the file state\n \n fstate.incrementOpenCount();\n }\n\n // Return the network file\n \n return file;\n }", "private static File generateTemp(Path path) {\n File tempFile = null;\n try {\n InputStream in = Files.newInputStream(path);\n String tDir = System.getProperty(\"user.dir\") + File.separator + ASSETS_FOLDER_TEMP_NAME;\n tempFile = new File(tDir + File.separator + path.getFileName());\n try (FileOutputStream out = new FileOutputStream(tempFile)) {\n IOUtils.copy(in, out);\n }\n album.addToImageList(tempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return tempFile;\n }", "public File createFile(String fileName) throws IOException {\n File file = new File(FILES_PATH + \"/\" + fileName);\n if (!file.exists()) {\n file.createNewFile();\n }\n return file;\n }", "private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }", "public OutputResponse mkdir(String path){\n String command = \"mkdir \" + path;\n return jobTarget.runCommand( command );\n }", "public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }", "private static void writeToFile(final String message, final File toFile) {\n toFile.getParentFile().mkdirs();\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(toFile));\n writer.write(message);\n } \n catch (IOException e) {\n log.error(\"Error writing file=\"+toFile, e);\n } \n finally {\n if (writer != null) {\n try {\n writer.close();\n } \n catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public Path saveOrUpdatePath(Path path);", "public static synchronized Result makeOutputFile(URI absoluteURI) throws XPathException {\n File newFile = new File(absoluteURI);\n try {\n if (!newFile.exists()) {\n File directory = newFile.getParentFile();\n if (directory != null && !directory.exists()) {\n directory.mkdirs();\n }\n newFile.createNewFile();\n }\n return new StreamResult(newFile);\n } catch (IOException err) {\n throw new XPathException(\"Failed to create output file \" + absoluteURI, err);\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile file = new File(\"F:/Chandu/Test/Test1/Test2/Test3/Test4\");\n\t\t\n\t\t//create a directory\n\t\t\n\t\tboolean isFolderCreated =file.mkdirs();\n\t\t\n\t\tSystem.out.println(isFolderCreated);\n\t\t\n\t\t//get AbsolutePath\n\t\t\n\t\tString absolutePath =file.getAbsolutePath();\n\t\tSystem.out.println(absolutePath);\n\t\t\n\t\tString canonicalPath =file.getCanonicalPath();\n\t\tSystem.out.println(canonicalPath);\n\t\t\n\t\tboolean isDirectory =file.isDirectory();\n\t\t\n\t\tSystem.out.println(isDirectory);\n\t\t\n\t\t//how to create file\n\t\t\n\t\tFile file1 = new File(\"F:/Chandu/Test/abc.java\") ;\n\t\t\n\t\t//write data into file\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static boolean createFile(String filePath)\n\t{\n\t\tFile file = new File(filePath);\n\t\tfile.mkdirs();\n\t\ttry\n\t\t{\n\t\t\treturn file.createNewFile();\n\t\t} catch (IOException e)\n\t\t{\n\t\t}\n\t\treturn false;\n\t}", "public static void createFile(String fileString) {\n\t\tPath filePath = Paths.get(fileString);\n\t\t// this will only happen if the file is not there\n\t\tif (Files.notExists(filePath)) {\n\t\t\ttry {\n\t\t\t\tFiles.createFile(filePath);\n\t\t\t\tSystem.out.println(\"Your file was cerated successfully\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Something went wrong with file creation \");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static Path createSimpleTmpFile( final Configuration conf, boolean deleteOnExit ) throws IOException\r\n\t{\r\n\t\t/** Make a temporary File, delete it, mark the File Object as delete on exit, and create the file with data using hadoop utils. */\r\n\t\tFile localTempFile = File.createTempFile(\"tmp-file\", \"tmp\");\r\n\t\tlocalTempFile.delete();\r\n\t\tPath localTmpPath = new Path( localTempFile.getName());\r\n\t\t\r\n\t\tcreateSimpleFile(conf, localTmpPath, localTmpPath.toString());\r\n\t\tif (deleteOnExit) {\r\n\t\t\tlocalTmpPath.getFileSystem(conf).deleteOnExit(localTmpPath);\r\n\t\t}\r\n\t\treturn localTmpPath;\r\n\t}", "public static File createFile(String fileName) {\n\t\tif (fileName == null || fileName.matches(\"\") { System.out.println(\"Utils|createFile|fileName is null or empty\"); return null; }\n\t\tFile file = new File(fileName);\n\t\tfile.mkdirs();\n\t\treturn file;\n\t}", "public void mkdir(String path) throws SystemException;", "public static int creat(String pathname, short mode)\n throws Exception {\n // get the full path\n String fullPath = getFullPath(pathname);\n FileSystem fileSystem = openFileSystems[ROOT_FILE_SYSTEM];\n\n StringBuffer dirname = new StringBuffer(\"/\");\n IndexNode currIndexNode = getRootIndexNode();\n IndexNode prevIndexNode = null;\n short indexNodeNumber = FileSystem.ROOT_INDEX_NODE_NUMBER;\n\n StringTokenizer st = new StringTokenizer(fullPath, \"/\");\n String name = \".\"; // start at root node\n while (st.hasMoreTokens()) {\n name = st.nextToken();\n if (!name.equals(\"\")) {\n // check to see if the current node is a directory\n if ((currIndexNode.getMode() & S_IFMT) != S_IFDIR) {\n // return (ENOTDIR) if a needed directory is not a directory\n process.errno = ENOTDIR;\n return -1;\n }\n\n // check to see if it is readable by the user\n // ??? tbd\n // return (EACCES) if a needed directory is not readable\n\n if (st.hasMoreTokens()) {\n dirname.append(name);\n dirname.append('/');\n }\n\n // get the next inode corresponding to the token\n prevIndexNode = currIndexNode;\n currIndexNode = new IndexNode();\n indexNodeNumber = findNextIndexNode(\n fileSystem, prevIndexNode, name, currIndexNode);\n }\n }\n\n // ??? we need to set some fields in the file descriptor\n int flags = O_WRONLY; // ???\n FileDescriptor fileDescriptor = null;\n\n if (indexNodeNumber < 0) {\n // file does not exist. We check to see if we can create it.\n\n // check to see if the prevIndexNode (a directory) is writeable\n // ??? tbd\n // return (EACCES) if the file does not exist and the directory\n // in which it is to be created is not writable\n\n currIndexNode.setMode(mode);\n currIndexNode.setNlink((short) 1);\n\n // allocate the next available inode from the file system\n short newInode = fileSystem.allocateIndexNode();\n if (newInode == -1)\n return -1;\n\n fileDescriptor =\n new FileDescriptor(fileSystem, currIndexNode, flags);\n // assign inode for the new file\n fileDescriptor.setIndexNodeNumber(newInode);\n\n// System.out.println( \"newInode = \" + newInode ) ;\n fileSystem.writeIndexNode(currIndexNode, newInode);\n\n // open the directory\n // ??? it would be nice if we had an \"open\" that took an inode \n // instead of a name for the dir\n// System.out.println( \"dirname = \" + dirname.toString() ) ;\n int dir = open(dirname.toString(), O_RDWR);\n if (dir < 0) {\n Kernel.perror(PROGRAM_NAME);\n System.err.println(PROGRAM_NAME +\n \": unable to open directory for writing\");\n process.errno = ENOENT;\n return -1;\n }\n\n // scan past the directory entries less than the current entry\n // and insert the new element immediately following\n int status;\n DirectoryEntry newDirectoryEntry =\n new DirectoryEntry(newInode, name);\n DirectoryEntry currentDirectoryEntry = new DirectoryEntry();\n while (true) {\n // read an entry from the directory\n status = readdir(dir, currentDirectoryEntry);\n if (status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error reading directory in creat\");\n System.exit(EXIT_FAILURE);\n } else if (status == 0) {\n // if no entry read, write the new item at the current \n // location and break\n writedir(dir, newDirectoryEntry);\n break;\n } else {\n // if current item > new item, write the new item in \n // place of the old one and break\n if (currentDirectoryEntry.getName().compareTo(\n newDirectoryEntry.getName()) > 0) {\n int seek_status =\n lseek(dir, -DirectoryEntry.DIRECTORY_ENTRY_SIZE, 1);\n if (seek_status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error during seek in creat\");\n System.exit(EXIT_FAILURE);\n }\n writedir(dir, newDirectoryEntry);\n break;\n }\n }\n }\n // copy the rest of the directory entries out to the file\n while (status > 0) {\n DirectoryEntry nextDirectoryEntry = new DirectoryEntry();\n // read next item\n status = readdir(dir, nextDirectoryEntry);\n if (status > 0) {\n // in its place\n int seek_status =\n lseek(dir, -DirectoryEntry.DIRECTORY_ENTRY_SIZE, 1);\n if (seek_status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error during seek in creat\");\n System.exit(EXIT_FAILURE);\n }\n }\n // write current item\n writedir(dir, currentDirectoryEntry);\n // current item = next item\n currentDirectoryEntry = nextDirectoryEntry;\n }\n\n // close the directory\n close(dir);\n } else {\n // file does exist ( indexNodeNumber >= 0 )\n\n // if it's a directory, we can't truncate it\n if ((currIndexNode.getMode() & S_IFMT) == S_IFDIR) {\n // return (EISDIR) if the file is a directory\n process.errno = EISDIR;\n return -1;\n }\n\n // check to see if the file is writeable by the user\n // ??? tbd\n // return (EACCES) if the file does exist and is unwritable\n\n // free any blocks currently allocated to the file\n int blockSize = fileSystem.getBlockSize();\n int blocks = (currIndexNode.getSize() + blockSize - 1) /\n blockSize;\n for (int i = 0; i < blocks; i++) {\n int address = currIndexNode.getBlockAddress(i);\n if (address != FileSystem.NOT_A_BLOCK) {\n fileSystem.freeBlock(address);\n currIndexNode.setBlockAddress(i, FileSystem.NOT_A_BLOCK);\n }\n }\n\n // update the inode to size 0\n currIndexNode.setSize(0);\n\n // write the inode to the file system.\n fileSystem.writeIndexNode(currIndexNode, indexNodeNumber);\n\n // set up the file descriptor\n fileDescriptor =\n new FileDescriptor(fileSystem, currIndexNode, flags);\n // assign inode for the new file\n fileDescriptor.setIndexNodeNumber(indexNodeNumber);\n\n }\n\n return open(fileDescriptor);\n }", "private File loadFile() throws IOException {\r\n File file = new File(filePath);\r\n if (!file.exists()) {\r\n File dir = new File(fileDirectory);\r\n dir.mkdir();\r\n File newFile = new File(filePath);\r\n newFile.createNewFile();\r\n return newFile;\r\n } else {\r\n return file;\r\n }\r\n }", "public static void createDir(String path) {\n File dir = new File(new File(path).getParentFile().getAbsolutePath());\n dir.mkdirs();\n }", "public static void createNewFile(File file) {\n\t\ttry {\n\t\t\tfile.createNewFile();\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t}\n\t}", "private void writeFile(String path, String contents) throws IOException {\n File file = new File(dir, path);\n\n try (FileWriter writer = new FileWriter(file)) {\n writer.write(contents);\n }\n }", "@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }", "@Override\n protected void createFile(String directoryName, String fileNamePrefix) {\n }", "void getFile(String path, OutputStream stream) throws NotFoundException, IOException;", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"perfil_\" + timeStamp + \"_\";\n String outputPath = PATH;\n File storageDir = new File(outputPath);\n if(!storageDir.exists())storageDir.mkdirs();\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "public abstract T create(T file, boolean doPersist) throws IOException;", "public boolean create(boolean isFile) {\n\t\t\n\t\tboolean result = false;\n\t\t\n\t\tif(!isFile)\n\t\t{\n\t\t\tFile temp = new File(this.path);\n\t\t\ttemp.mkdirs();\n\t\t\tresult = true;\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tFile temp = new File(this.path);\n\t\t\tString folderContainingFile = \"/\";\n\t\t\t\n\t\t\tfor(int i = 0; i <= this.lenght - 2; i++)\n\t\t\t{\n\t\t\t\tfolderContainingFile += this.get(i) + \"/\";\n\t\t\t}\n\t\t\t\n\t\t\tnew File(folderContainingFile).mkdirs();\n\t\t\t\n\t\t\ttry {\n\t\t\t\ttemp.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tresult = true;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public static File saveFile(String name, String data) {\n if (name == null) {\n name = \"\";\n }\n String fullyQualifiedName = name;\n\n // if filename is not absolute use current path as base dir\n if (!new File(fullyQualifiedName).isAbsolute()) {\n fullyQualifiedName = Paths.get(\"\").toAbsolutePath() + \"/\" + name;\n }\n try {\n // create subdirs (if there any)\n if (fullyQualifiedName.contains(\"/\")) {\n File f = new File(fullyQualifiedName.substring(0, fullyQualifiedName.lastIndexOf(\"/\")));\n f.mkdirs();\n }\n File file = new File(fullyQualifiedName);\n file.createNewFile();\n FileUtils.write(file, data, \"UTF-8\");\n log.info(\"Wrote: {}\", file.getAbsolutePath());\n return file;\n } catch (IOException e) {\n log.error(\"Could not create file {}\", name, e);\n return null;\n }\n }", "private static void createFile(String fileType) throws Exception {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now();\n File xmlFile = new File(System.getProperty(\"user.dir\")+\"/data/saved/\"+dtf.format(now) + fileType + \".xml\");\n OutputFormat out = new OutputFormat();\n out.setIndent(5);\n FileOutputStream fos = new FileOutputStream(xmlFile);\n XML11Serializer serializer = new XML11Serializer(fos, out);\n serializer.serialize(xmlDoc);\n\n }", "private File createWorkingDir( final String path )\n {\n File workDir = new File( path );\n workDir.mkdirs();\n return workDir;\n }", "public static void FileWrite(String path, String content) {\n\t\tFile file = new File(path);\n\t\ttry {\n\t\t\tFileOutputStream fop = new FileOutputStream(file);\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\t// get the content in bytes\n\t\t\tbyte[] contentInBytes = content.getBytes();\n\t\t\tfop.write(contentInBytes);\n\t\t\tfop.flush();\n\t\t\tfop.close();\n\t\t\tSystem.out.println(\"Content :\\\"\" + content\n\t\t\t\t\t+ \"\\\" is written in File: \" + path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ProjectFileWriter.Result writeFilePath(Path path, Optional<String> type) {\n SourceTreePath sourceTreePath =\n new SourceTreePath(\n PBXReference.SourceTree.SOURCE_ROOT,\n pathRelativizer.outputDirToRootRelative(path),\n type);\n return writeSourceTreePathAtFullPathToProject(path, sourceTreePath);\n }", "public File createINIFile(String path, String fileName) {\n\t File dir = new File(path);\n\t String newPath = path + \"/\";\n\t if (dir.exists()) {\n\t log.debug(\"createINIFile\", \"DIRECTORY EXISTS\");\n\t } else {\n\t dir.mkdir();\n\t }\n\t newPath = newPath + \"/\";\n\t File newFile = new File(newPath + fileName);\n\t if (!newFile.exists()) {\n\t newFile.setWritable(true);\n\t try {\n\t newFile.createNewFile();\n\t } catch (IOException e) {\n\t log.warn(\"writeKeyValue\", e.getMessage());\n\t }\n\t }\n\t return newFile;\n\t }", "private void createScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"schedule.txt\");\n// FileWriter fw = new FileWriter(scheduleFile);\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"SCHEDULE:\\n\" + schedule);\n osw.close();\n\n System.out.println(\"schedule.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "WithCreate withFolderPath(String folderPath);", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n private static void fileExists(String filepath) throws IOException {\r\n File file = new File(filepath + filePath);\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n }", "public ActionScriptBuilder createFile(String filecontents,String filepath,boolean overwrite,String delimeter){\n\t\tline(\"createfile until \"+delimeter);\n\t\tlines(Arrays.asList(filecontents.split(\"\\n\")));\n\t\tline(delimeter);\n\t\tmove(\"__createfile\",filepath,overwrite);\n\t\treturn this;\n\t}", "public synchronized void newFile(String filename, String path){\n\t\tif(filePath == null){\n\t\t\tfilePath = new ConcurrentHashMap<String, String>();\n\t\t}\n\t\tfilePath.putIfAbsent(filename, path);\n\t}", "@Test\r\n public void testToPath() {\r\n System.out.println(\"toPath\");\r\n String id = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String expResult = \"c:/Dojo Workshop/test.txt\";\r\n String result = FileRestHelper.toPath(id);\r\n assertEquals(expResult, result);\r\n }", "public static File MakeNewFile(String hint) throws IOException {\n File file = new File(hint);\n String name = GetFileNameWithoutExt(hint);\n String ext = GetFileExtension(hint);\n int i = 0;\n while (file.exists()) {\n file = new File(name + i + \".\" + ext);\n ++i;\n }\n\n file.createNewFile();\n\n return file;\n }", "FileContent createFileContent();", "private static void createParents(String path) {\n\n File file = new File(path);\n if (!file.exists()) {\n file.mkdirs();\n }\n }", "private File createTempFile(TransferSongMessage message)\n throws IOException {\n File outputDir = MessagingService.this.getCacheDir(); // context being the Activity pointer\n String filePrefix = UUID.randomUUID().toString().replace(\"-\", \"\");\n int inx = message.getSongFileName().lastIndexOf(\".\");\n String extension = message.getSongFileName().substring(inx + 1);\n File outputFile = File.createTempFile(filePrefix, extension, outputDir);\n return outputFile;\n }", "public static boolean createFileIfNotExists(String path, SourceType sourceType) throws IOException {\n return getFileSystemBySourceType(sourceType).createNewFile(new Path(path));\n }", "public boolean createFolder(String path){\n\t\tValueCollection payload = new ValueCollection();\n\t\tpayload.put(\"path\", new StringPrimitive(path));\n\t\ttry {\t\n\t\t\tclient.invokeService(ThingworxEntityTypes.Things, FileThingName, \"CreateFolder\", payload, 5000);\n\t\t\tLOG.info(\"Folder {} created.\",path);\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Folder already exists. Error: {}\",e);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static File createPlayerFile(){\n try {\n playerFile = new File(System.getProperty(\"user.dir\") + \"/PlayerFiles/\" + \".txt\"); //creates player file, can it run on android?\n playerFile.createNewFile();\n }catch (IOException e){\n e.printStackTrace();\n }\n finally {\n return playerFile;\n }\n }" ]
[ "0.7301747", "0.72047186", "0.69496137", "0.6840222", "0.67195463", "0.67039216", "0.65685266", "0.65386385", "0.65248746", "0.6475424", "0.6475259", "0.64203537", "0.63329", "0.62104267", "0.6192179", "0.61804414", "0.6145259", "0.61438996", "0.61134636", "0.6082415", "0.60530144", "0.60472715", "0.6011952", "0.5987961", "0.5977896", "0.59415805", "0.5928931", "0.5894575", "0.58870757", "0.5868027", "0.58595175", "0.58594733", "0.5859032", "0.5830844", "0.5828768", "0.5822894", "0.58186257", "0.5807812", "0.5807321", "0.57837665", "0.5775102", "0.5773402", "0.57191867", "0.570419", "0.57038784", "0.569976", "0.56890136", "0.568349", "0.5681325", "0.5678993", "0.5654859", "0.5633588", "0.56335187", "0.5614888", "0.5613435", "0.5597193", "0.5595085", "0.5591424", "0.55899537", "0.55896866", "0.55816704", "0.5577543", "0.55751425", "0.55682826", "0.5557681", "0.55367446", "0.55302966", "0.55250037", "0.55246496", "0.55211645", "0.5511515", "0.549807", "0.54967004", "0.5496244", "0.5495718", "0.5493415", "0.5477323", "0.54580456", "0.54545385", "0.5451534", "0.54434705", "0.5429297", "0.5426562", "0.54250133", "0.5416484", "0.5413999", "0.54138196", "0.54120696", "0.5397831", "0.5396454", "0.53911984", "0.53875464", "0.53834593", "0.5382609", "0.5378188", "0.53690124", "0.5365042", "0.53632784", "0.53624177", "0.5360888", "0.5355634" ]
0.0
-1
Delete a file providing the filePath
public int delFile(String filePath) throws IOException { masterSock.write((DELETE_FILE + " " + filePath).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = masterSock.readLine(); switch (line) { case STR_OK: return OK; case STR_NOT_FOUND: return NOT_FOUND; default: return SERVER_ERROR; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void deleteFile(String filePath) {\n File file = getFile(filePath);\n if (file.exists()) {\n file.delete();\n }\n }", "public static void fileDelete(String filePath) {\n\t\tFile f = new File(filePath);\n\n\t\t// noinspection ResultOfMethodCallIgnored\n\t\tf.delete();\n\t}", "public void deleteFile(String filePath){\n File myFile = new File(filePath);\n if (myFile.exists()) {\n myFile.delete();\n System.out.println(\"File successfully deleted.\");\n } else {\n System.out.println(\"File does not exists\");\n }\n }", "void deleteFile(FsPath path);", "public static void deleteFile(String strFilePath) {\n File file = new File(strFilePath);\n file.delete();\n }", "@Override\n\tpublic void deleteFile(AuthenticationToken authenticationToken, String filePath) throws PermissionDeniedException, \n\t\t\tFileDeleteFailedException {\n\t\tboolean permissionResult = filePermissionService.hasWritePermission(authenticationToken, filePath);\n\t\tif(!permissionResult)\n\t\t\tthrow new PermissionDeniedException();\n\t\telse {\n\t\t\tboolean inUseResult = this.isInUse(authenticationToken, filePath);\n\t\t\tif(!inUseResult) {\n\t\t\t\tFile file = new File(filePath);\n\t\t\t\tboolean resultDelete = deleteRecursively(authenticationToken, file);\n\t\t\t\tif(!resultDelete)\n\t\t\t\t\tthrow new FileDeleteFailedException();\n\t\t\t} else {\n\t\t\t\tthrow new FileDeleteFailedException(\"Can't delete file, it \"+this.createMessageFileInUse(authenticationToken, filePath)+ \". Delete the tasks using Task Manager, then try again.\");\n\t\t\t}\n\t\t}\n\t}", "private void deleteFile() {\n\t\tFile dir = getFilesDir();\n\t\tFile file = new File(dir, FILENAME);\n\t\tfile.delete();\n\t}", "public void deleteFile(File f);", "void deleteFile(FileReference fileReferece);", "public boolean delete(String filename);", "boolean deleteFile(File f);", "public void delete_File(){\n context.deleteFile(Constant.FILE_NAME);\n }", "public static boolean deleteFile(FileSystem fs, String filePath) throws IOException {\n Path path = new Path(filePath);\n return fs.delete(path, true);\n }", "private static void deleteFile(String fileName) {\n\t\tFile f = new File(fileName);\n\n\t\t// Make sure the file or directory exists and isn't write protected\n\t\tif (!f.exists())\n\t\t\treturn;\n\t\t// throw new IllegalArgumentException(\"Delete: no such file or directory: \" + fileName);\n\n\t\tif (!f.canWrite())\n\t\t\tthrow new IllegalArgumentException(\"Delete: write protected: \"\n\t\t\t\t\t+ fileName);\n\n\t\t// If it is a directory, make sure it is empty\n\t\tif (f.isDirectory()) {\n\t\t\tString[] files = f.list();\n\t\t\tif (files.length > 0)\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Delete: directory not empty: \" + fileName);\n\t\t}\n\n\t\t// Attempt to delete it\n\t\tboolean success = f.delete();\n\n\t\tif (!success)\n\t\t\tthrow new IllegalArgumentException(\"Delete: deletion failed\");\n\t}", "private void deleteFile(@Nonnull File file) throws IOException {\n Files.delete(file.toPath());\n }", "@Override\n public void delete(File file) {\n }", "public void deleteFile(FileItem file) {\n\t\tPerformDeleteFileAsyncTask task = new PerformDeleteFileAsyncTask(this, credential);\n\t\ttask.execute(file);\n\t}", "public void deleteFile(IAttachment file)\n throws OculusException;", "@Override\r\n\tpublic boolean removeFile(String filePath) throws FileSystemUtilException {\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":deleteFile()\");\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect(); \r\n\t\t\tString command = \"rm -f \"+remoteFilePath;\r\n\t\t\t int results = executeSimpleCommand(command);\r\n\t\t\tdisconnect();\r\n\t\t\tif(stop)\r\n\t {\r\n\t \tthrow new FileSystemUtilException(\"999\");\r\n\t }\t\t\t\r\n\t\t\tlogger.debug(\"End: \"+getClass().getName()+\":deleteFile()\");\t\r\n\t\t\tif(results == 0)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(FileSystemUtilException e)\r\n\t\t{\t\t\t\r\n\t\t disconnect();\r\n\t\t throw e;\r\n\t\t}\t\r\n\t}", "public static boolean deleteFile(String filePath) throws IOException {\n File file = new File(filePath);\n if (!file.exists()) {\n return true;\n }\n if (file.isFile()) {\n return file.delete();\n }\n if (!file.isDirectory()) {\n return false;\n }\n for (File f : file.listFiles()) {\n if (f.isFile()) {\n f.delete();\n } else if (f.isDirectory()) {\n deleteFile(f.getAbsolutePath());\n }\n }\n return file.delete();\n }", "@DeleteMapping(\"/deleteFile\")\n public String deleteFile(@RequestPart(value = \"url\") String fileUrl) {\n return this.amazonClient.deleteFileFromS3Bucket(fileUrl);\n }", "void fileDeleted(String path);", "public void removeFile(FileContentType fileContentType, String fileName) throws ServiceException;", "public static void delete(File f) {\n delete_(f, false);\n }", "public static void deleteFile(String inputFile){\n File file = new File(inputFile);\n //validate the file\n if(file.isFile()){\n try{\n if(file.delete())\n System.out.println(\"File \"+inputFile+\" has been deleted.\");\n else\n System.out.println(\"Error in deleting the file.\");\n }catch(Exception e){\n e.printStackTrace();\n }\n }else{\n System.out.println(\"Invalid file path.\");\n }\n }", "public boolean deleteFile(String filePath)\n\t\t\tthrows HDFSServerManagementException {\n\n\t\tDataAccessService dataAccessService = HDFSAdminComponentManager\n\t\t\t\t.getInstance().getDataAccessService();\n\n\t\tFileSystem hdfsFS = null;\n\t\tPath path = new Path(filePath);\n\t\tboolean folderExists=true;\n\t\ttry {\n\t\t\thdfsFS = dataAccessService.mountCurrentUserFileSystem();\n\t\t} catch (IOException e) {\n\t\t\tString msg = \"Error occurred while trying to delete file. \"+ filePath;\n\t\t\thandleException(msg, e);\n\t\t}\n\t\ttry {\n\t\t\t/**\n\t\t\t * HDFS delete with recursive delete off\n\t\t\t */\n\t\t\tif(hdfsFS != null && hdfsFS.exists(path)){\n\t\t\t\treturn hdfsFS.delete(path, false);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfolderExists = false;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tString msg = \"Error occurred while trying to delete file.\";\n\t\t\thandleException(msg, e);\n\t\t}\n\t\t\n\t\thandleItemExistState(folderExists, false, true);\n\t\t\n\t\treturn false;\n\t}", "@PreAuthorize(\"hasPermission(#file, 'delete')\")\n public void delete(File file) {\n fileRepository.delete(file);\n }", "public static void delete(String filename) \n throws IOException {\n if ((filename != null) && (!filename.isEmpty())) {\n delete(new File(filename));\n }\n }", "@Override\n\tpublic void delete(File file) {\n\t\tthis.getSession().delete(file);\n\t}", "protected synchronized void delete()\n {\n if (this.file.exists())\n {\n this.file.delete();\n }\n }", "@RequestMapping(value=\"/my_files\", method = RequestMethod.DELETE)\n @ResponseBody\n public AppResponse delete(@RequestParam String path) throws IOException, InvalidValueException,FilePathAccessDeniedException {\n\n String username = CSQLUserContext.getCurrentUser().getUsername();\n if(validator.isValidAndUserHasAccess(username, path)){\n return fileSystemService.delete(path, true);\n }\n\n return AppResponse.error();\n }", "private static void removeFile(File fileDir) throws Exception {\n String fileName = getFileNameInput();\n File fileToRemove = new File(fileDir.toString() + \"\\\\\" + fileName);\n boolean fileRemoved = fileToRemove.delete();\n if (fileRemoved) {\n System.out.println(\"File removed successfully.\");\n } else {\n throw new FileNotFoundException(\"No such file under current directory.\");\n }\n }", "public static void deleteFile()\n\t{\n\t\t//Variable Declaration\n\t\tString fileName;\n\t\tScanner obj = new Scanner(System.in);\n\t\t\n\t\t//Read file name from user\n\t\tSystem.out.println(\"Enter file name to delete:\");\n\t\tfileName= obj.nextLine();\n\t\t\n\t\t//Deleting the file\n\t\tboolean isDeleted = FileManager.deleteFile(folderpath, fileName);\n\t\t\n\t\tif(isDeleted)\n\t\t\tSystem.out.println(\"File deleted successfully\");\n\t\telse\n\t\t\tSystem.out.println(\"File not found! Enter valid file name.\");\n\t}", "public File delete(File f) throws FileDAOException;", "public static int delete(String fileName) {\n return Kernel.interrupt(Kernel.INTERRUPT_SOFTWARE, Kernel.DELETE, 0, fileName);\n }", "public void delete_file(String file_name) throws Exception{\n\t\tFile file = new File(file_name);\n\t\tif (file.exists() && file.isFile()) file.delete();\n\t\telse if(file.isDirectory()){\n\t\t\tfor(File f : file.listFiles()){\n\t\t\t\tdelete_file(f.getAbsolutePath());\n\t\t\t}\n\t\t\tfile.delete();\n\t\t}\n\t}", "@Override\n public boolean deleteFile(String fileName) {\n // Check parameters\n if (fileName == null || fileName.isEmpty()) {\n return false;\n }\n\n LOGGER.info(\"Deleting File \" + fileName);\n\n // Emit event\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.Event.DELETE.getId(), Tracer.Event.DELETE.getType());\n }\n\n // Parse the file name and translate the access mode\n try {\n DataLocation loc = createLocation(fileName);\n ap.markForDeletion(loc);\n } catch (IOException ioe) {\n ErrorManager.fatal(ERROR_FILE_NAME, ioe);\n } finally {\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n }\n }\n\n // Return deletion was successful\n return true;\n }", "public boolean deleteFile(File file) {\n\t\treturn file.delete();\n\t}", "private void deleteFile(java.io.File file) {\n if (file.isDirectory()) {\n for (java.io.File f : file.listFiles()) \n deleteFile(f);\n }\n \n if (!file.delete())\n try {\n throw new FileNotFoundException(\"Failed to delete file: \" + file.getName());\n } catch (FileNotFoundException e) {\n System.err.println(\"Delete of file \" + file.getAbsolutePath() + \" failed\");\n e.printStackTrace();\n }\n }", "public int remove(String pathname) throws YAPI_Exception\n {\n byte[] json = new byte[0];\n String res;\n json = sendCommand(String.format(Locale.US, \"del&f=%s\",pathname));\n res = _json_get_key(json, \"res\");\n //noinspection DoubleNegation\n if (!(res.equals(\"ok\"))) { throw new YAPI_Exception( YAPI.IO_ERROR, \"unable to remove file\");}\n return YAPI.SUCCESS;\n }", "private void deleteFile(String runtimePropertiesFilename) {\n File f = new File(runtimePropertiesFilename);\r\n\r\n // Make sure the file or directory exists and isn't write protected\r\n if (!f.exists())\r\n return; // already gone!\r\n\r\n if (!f.canWrite())\r\n throw new IllegalArgumentException(\"Delete: write protected: \"\r\n + runtimePropertiesFilename);\r\n\r\n // If it is a directory, make sure it is empty\r\n if (f.isDirectory()) {\r\n String[] files = f.list();\r\n if (files.length > 0)\r\n throw new IllegalArgumentException(\r\n \"Delete: directory not empty: \" + runtimePropertiesFilename);\r\n }\r\n\r\n // Attempt to delete it\r\n if (!f.delete())\r\n throw new IllegalArgumentException(\"Delete: deletion failed\");\r\n }", "public JSONObject deleteFile(String projectID, String fileID) throws Exception{\n\t\tif ((projectID == null || fileID == null) || (projectID == \"\" || fileID == \"\")){\n\t\t\tthrow new Exception(\"Project ID and file ID must both be non null and non empty.\");\n\t\t}\n\t\tSBG deleteFileRequest = new SBG(authToken, \"project/\" + projectID + \"/file/\" + fileID, \"DELETE\", null, null);\n\t\treturn deleteFileRequest.checkAndRetrieveResponse(deleteFileRequest.generateRequest());\n\t}", "public final void deleteTemporaryFile()\n\t\tthrows IOException {\n\t\t\t\n // DEBUG\n \n if ( isQueued()) {\n Debug.println(\"@@ Delete queued file segment, \" + this);\n Thread.dumpStack();\n }\n \n\t\t//\tDelete the temporary file used by the file segment\n\n\t\tFile tempFile = new File(getTemporaryFile());\n\t\t\t\t\n\t\tif ( tempFile.exists() && tempFile.delete() == false) {\n\n\t\t //\tDEBUG\n\t\t \n\t\t Debug.println(\"** Failed to delete \" + toString() + \" **\");\n\t\t \n\t\t //\tThrow an exception, delete failed\n\t\t \n\t\t\tthrow new IOException(\"Failed to delete file \" + getTemporaryFile());\n\t\t}\n\t}", "public static void deleteFiles(final String _file) throws IOException {\n final File file = new File(_file);\n FileUtils.forceDelete(file);\n }", "public int deleteFile(String datastore, String filename) throws HyperVException;", "protected void deleteAttachmentFile()\n {\n try\n {\n if (deleteAttachmentAfterSend && fullAttachmentFilename != null)\n {\n File attFile = new File(fullAttachmentFilename);\n if (log.isDebugEnabled())\n {\n log.debug(\"Delete attachment file: \" + attFile.getCanonicalPath());\n }\n attFile.delete();\n }\n } catch (Exception e)\n {\n log.warn(\"Unable to delete \" + fullAttachmentFilename + \" : \" + e.getMessage());\n }\n }", "public void deleteFile(int id) {\n\t\tString sql = \"delete from file where file_id=\"+id;\n\t\tthis.getJdbcTemplate().update(sql);\n\t}", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "@Override\n public void delete(String id) {\n log.debug(\"Request to delete File : {}\", id);\n fileRepository.delete(id);\n }", "@Override\r\n\tpublic void remFile(String path) {\n\t\t\r\n\t}", "public void doDelete(HttpServletRequest req, HttpServletResponse resp, String filepath) throws IOException {\n\t\tStorage storage = StorageOptions.getDefaultInstance().getService();\n\t storage.delete(BUCKET, filepath);\n\t}", "public void deleteFile() {\n\t\tif (JOptionPane.showConfirmDialog(desktopPane,\n\t\t\t\t\"Are you sure? this action is permanent!\") != JOptionPane.YES_OPTION)\n\t\t\treturn;\n\n\t\tEllowFile file = null;\n\t\tTreePath paths[] = getSelectionModel().getSelectionPaths();\n\t\tif (paths == null)\n\t\t\treturn;\n\t\tfor (TreePath path : paths) {\n\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) path\n\t\t\t\t\t.getLastPathComponent();\n\t\t\tfile = (EllowFile) node.getUserObject();\n\t\t\tEllowynProject project = file.parentProject;\n\t\t\tfile.deleteAll();\n\t\t\tif (!file.isProjectFile && project != null)\n\t\t\t\tproject.rebuild(); // don't rebuild the project if the project\n\t\t\t\t\t\t\t\t\t// itself is deleted\n\t\t\tdesktopPane.closeFrames(file);\n\t\t\tmodel.removeNodeFromParent(node);\n\t\t}\n\t}", "public boolean remove(File fileToDelete, File repositoryDirectory)\n throws RepositoryMgtException;", "public void deleteFile(long id)\r\n \t{\r\n \t\tif (this.logger!= null) \r\n \t\t\tlogger.debug(\"calling deleteFile(\"+id+\") was called...\");\r\n \t\t\r\n \t\tExtFileObjectDAO extFileDao= externalFileMgrDao.getExtFileObj(id);\r\n \t\tString fileSrc= this.externalDataFolder + \"/\"+ extFileDao.getBranch() + \"/\"+ extFileDao.getFileName();\r\n \t\tFile dFile= new File(fileSrc);\r\n \t\tif (!dFile.delete())\r\n \t\t\tthrow new ExternalFileMgrException(ERR_DELETE + fileSrc);\r\n \t\texternalFileMgrDao.deleteExtFileObj(id);\r\n \t}", "alluxio.proto.journal.File.DeleteFileEntry getDeleteFile();", "public boolean deleteFile(String inKey) throws NuxeoException;", "abstract public void remove( String path )\r\n throws Exception;", "@SuppressWarnings(\"PMD.AvoidCatchingGenericException\")\n public void processFile(Path fileName) {\n String filePath = path + \"/\" + fileName;\n ProcessArquivo processFile = this.fileFactory.createProcessFile(fileName.toString());\n try (FileInputStream fileInputStream = new FileInputStream(filePath)) {\n processFile.processFile(fileInputStream, fileName.toString());\n } catch (Exception e) {\n Logger.getLogger(this.getClass()).error(\"Erro ao ler o arquivo: \" + filePath, e);\n }\n\n delete(filePath);\n }", "public static void delete(File file) throws IOException {\n String method = \"delete() - \";\n if ((file != null) && (file.exists())) {\n if (file.isDirectory()) {\n if (file.list().length == 0) {\n file.delete();\n }\n else {\n String files[] = file.list();\n for (String current : files) {\n File fileToDelete = new File(file, current);\n delete(fileToDelete);\n if (file.list().length == 0) {\n file.delete();\n }\n }\n }\n }\n else {\n file.delete();\n }\n }\n else {\n throw new IOException(method \n + \"The input file is null or does not exist.\");\n }\n }", "public boolean deleteFile(String fileName) {\n File file = new File(FILES_PATH + \"/\" + fileName);\n if (file == null || !file.exists() || file.isDirectory())\n return false;\n return file.delete();\n }", "public static boolean deleteFile(File file) throws IOException {\n return Files.deleteIfExists(file.toPath());\n }", "public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }", "@PreAuthorize(\"hasAuthority('file:delete')\")\n @GetMapping(\"/delete/{filename:.+}\")\n public String deleteFile(@PathVariable String filename, RedirectAttributes redirectAttributes) {\n sharingService.inValidateLink(filename); //invalidate the link if shared\n storageService.delete(filename); //delete the file from storage\n redirectAttributes.addFlashAttribute(\"message\", \"Successfully deleted : \" + filename);\n return \"redirect:/\";\n }", "public static boolean deleteFile(SourceFile sourceFile) throws IOException {\n return deleteFile(sourceFile.getPath(), sourceFile.getSourceType());\n }", "public static void deleteFilesMatchingExpression(String path,\n \t\t\tString expression) {\n \t\tdeleteFilesMatchingExpression(new File(path), expression, false);\n \t}", "private static boolean DeleteFile(String fileName) {\n boolean delete = false;\n File f = new File(fileName);\n if (f.exists()) {\n delete = f.delete();\n }\n return delete;\n }", "private static boolean deleteFile(String fileName) {\n File f = new File(fileName);\n\n // Make sure the file or directory exists and isn't write protected\n// if (!f.exists())\n// throw new IllegalArgumentException(\n// \"Delete: no such file or directory: \" + fileName);\n//\n// if (!f.canWrite())\n// throw new IllegalArgumentException(\"Delete: write protected: \"\n// + fileName);\n\n // If it is a directory, make sure it is empty\n// if (f.isDirectory()) {\n// String[] files = f.list();\n// if (files.length > 0)\n// throw new IllegalArgumentException(\n// \"Delete: directory not empty: \" + fileName);\n// }\n\n // Attempt to delete it\n boolean success = f.delete();\n\n// if (!success)\n// throw new IllegalArgumentException(\"Delete: deletion failed\");\n return success;\n }", "void delete(InformationResourceFile file);", "@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "@Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n Assert.assertFalse(start.equals(file));\n // Delete the file.\n Files.delete(file);\n logger.output(\"Deleted file \" + file);\n return FileVisitResult.CONTINUE;\n }", "public static void deleteFile(File file){\r\n if(file.isFile()){\r\n file.delete();\r\n return;\r\n }\r\n if(file.isDirectory()){\r\n File[] childFile = file.listFiles();\r\n if(childFile == null || childFile.length == 0){\r\n file.delete();\r\n return;\r\n }\r\n for(File f : childFile){\r\n deleteFile(f);\r\n }\r\n file.delete();\r\n }\r\n }", "@Override\n\tpublic void fileDelete(int file_num) {\n\t\tworkMapper.fileDelete(file_num);\n\t}", "private void delete(File file) {\n if (file.isDirectory()) {\n cleanDirectory(file);\n }\n file.delete();\n }", "public String deleteFileFromS3Bucket(String fileUrl) throws Exception {\n try {\n String fileName = fileUrl.substring(fileUrl.lastIndexOf(\"/\") + 1);\n if(s3Client.doesObjectExist(bucketName, fileName)){\n s3Client.deleteObject(bucketName,fileName);\n return \"Successfully deleted\";\n }\n throw new FileNotFoundException(\"File url dont matches with any object in the bucket\");\n } catch (SdkClientException e) {\n throw new SdkClientException(e.getMessage());\n } catch (AmazonClientException e) {\n throw new AmazonClientException(e.getMessage());\n } catch (Exception e) {\n throw new Exception(e.getMessage());\n }\n\n }", "public boolean deleteFile(String fileName, String fileextension) {\n\t\tFile f = getFile(fileName, fileextension);\n\t\tif (f.isFile()) {\n\t\t\treturn f.delete();\n\t\t}\n\t\treturn false;\n\t}", "private void deleteSelectedFile() {\r\n\t\tString sel = this.displayFileNames.getSelectedValue();\r\n\t\tif(sel != null) {\r\n\t\t\tFileModel model = FileData.getFileModel(sel);\r\n\t\t\tFileType type = model.getFileType();\r\n\t\t\tFileData.deleteFileModel(type);\r\n\t\t\tthis.setButtonEnabled(type);\r\n\t\t\tthis.loadFileNames();\r\n\t\t\tthis.updateColumnSelections(type);\r\n\t\t\tColumnData.clearMatchedCells(type);\r\n\t\t}\r\n\t}", "public static boolean deleteFile(String sFile) {\r\n\t\tboolean rtn = false;\r\n\r\n\t\tif (sFile != null) {\r\n\t\t\tFile file = new File(sFile);\r\n\t\t\tif (file.exists()) {\r\n\t\t\t\trtn = file.delete();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn rtn;\r\n\t}", "public static boolean deleteFile(String fileName) {\n // A File object to represent the filename\n File f = new File(fileName);\n\n // Make sure the file or directory exists and isn't write protected\n if (!f.exists())\n throw new IllegalArgumentException(\n \"Delete: no such file or directory: \" + fileName);\n\n if (!f.canWrite())\n throw new IllegalArgumentException(\"Delete: write protected: \"\n + fileName);\n\n // If it is a directory, make sure it is empty\n if (f.isDirectory()) {\n String[] files = f.list();\n if (files.length > 0)\n throw new IllegalArgumentException(\n \"Delete: directory not empty: \" + fileName);\n }\n\n // Attempt to delete it\n boolean success = f.delete();\n\n if (!success)\n throw new IllegalArgumentException(\"Delete: deletion failed\");\n\n return success;\n }", "public static void tryDelete(final String fileName) {\n\n final boolean deleted = FileSystem.getInstance(fileName).tryDelete(fileName);\n\n // if (!deleted) {\n // System.err.println(\"File not deleted: \" + fileName);\n // }\n }", "public static native boolean remove(String path) throws IOException;", "private void removePolicyFile(boolean granted){\n\tString fileName = getPolicyFileName(granted);\n\tFile f = new File(fileName);\n\tif(f.exists()){\n\t if (!f.delete()) {\n String defMsg = \"Failure removing policy file: \"+fileName; \n String msg=localStrings.getLocalString(\"pc.file_delete_error\", defMsg,new Object []{ fileName} );\n\t\tlogger.log(Level.SEVERE,msg);\n\t\tthrow new RuntimeException(defMsg);\n\t } else if(logger.isLoggable(Level.FINE)){\n\t\tlogger.fine(\"JACC Policy Provider: Policy file removed: \"+fileName);\n\t }\n\t}\n }", "@Override\r\n public void onClick(View view) {\n deleteFile();\r\n deleteDialog.dismiss();\r\n }", "public synchronized void removeFile(@Nonnull final VirtualFile file) {\n final HistoryEntry entry = getEntry(file);\n if (entry != null) {\n removeEntry(entry);\n }\n }", "public void delete() {\r\n Log.d(LOG_TAG, \"delete()\");\r\n for (int i = 0; i < mNumSegments; i++) {\r\n File chunk = new File(getFileNameForIndex(i));\r\n if (chunk.delete()) {\r\n Log.d(LOG_TAG, \"Deleted file \" + chunk.getAbsolutePath());\r\n }\r\n }\r\n new File(mBaseFileName + \".zip\").delete();\r\n }", "int deleteByPrimaryKey(Integer fileId);", "private void del_file() {\n\t\tFormatter f;\n\t\ttry{\n\t\t\tf = new Formatter(url2); //deleting file content\n\t\t\tf.format(\"%s\", \"\");\n\t\t\tf.close();\t\t\t\n\t\t}catch(Exception e){}\n\t}", "@Override\r\n\tpublic void qnaFileDelete(int qnaFileIdx) {\n\t\t\r\n\t}", "private void delete(String name) {\n File f = new File(name);\n if (f.exists()) {\n f.delete();\n }\n }", "protected void remove(String filename) throws IOException {\n\t\tthrow new IOException( \"not implemented\" ); //TODO map this to the FileSystem\n\t}", "public static boolean deleteFile(String path, SourceType sourceType) throws IOException {\n FileSystem fs = getFileSystemBySourceType(sourceType);\n return fs.delete(new Path(path), true);\n }", "public void deleteData(String filename, SaveType type);", "@AfterStep\n\tprivate void deleteFile(){\n\t\tif(LOGGER.isDebugEnabled()){\n\t\tLOGGER.debug(\" Entering into SalesReportByProductEmailProcessor.deleteFile() method --- >\");\n\t\t}\n\t\ttry {\n\t\t\tif(null != salesReportByProductBean){\n\t\t\tReportsUtilBO reportsUtilBO = reportBOFactory.getReportsUtilBO();\n\t\t\tList<String> fileNames = salesReportByProductBean.getFileNameList();\n\t\t\tString fileLocation = salesReportByProductBean.getFileLocation();\n\t\t\treportsUtilBO.deleteFile(fileNames, fileLocation);\n\t\t\t}\n\t\t} catch (PhotoOmniException e) {\n\t\t\tLOGGER.error(\" Error occoured at SalesReportByProductEmailProcessor.deleteFile() method ----> \" + e);\n\t\t}finally {\n\t\t\tif(LOGGER.isDebugEnabled()){\n\t\t\tLOGGER.debug(\" Exiting from SalesReportByProductEmailProcessor.deleteFile() method ---> \");\n\t\t\t}\n\t\t}\n\t}", "alluxio.proto.journal.File.DeleteFileEntryOrBuilder getDeleteFileOrBuilder();", "public void delete(String path) throws GRIDAClientException {\n\n List<String> paths = new ArrayList<String>();\n paths.add(path);\n\n delete(paths);\n }", "public String deleteCache(String fileName)\n {\n File file = new File(getCacheDir(), fileName);\n accessToken = null;\n if (file.exists())\n {\n Boolean successCheck = file.delete();\n\n if (successCheck == true)\n {\n return \"File successfully deleted.\";\n }\n } else\n {\n return \"There is no file with that name.\";\n }\n return \"The file was not deleted.\";\n }", "public void deleteImgFromDirectory1(String fileName) {\n File f = new File(fileName);\r\n\r\n // Mi assicuro che il file esista\r\n if (!f.exists()) {\r\n throw new IllegalArgumentException(\"Il File o la Directory non esiste: \" + fileName);\r\n }\r\n\r\n // Mi assicuro che il file sia scrivibile\r\n if (!f.canWrite()) {\r\n throw new IllegalArgumentException(\"Non ho il permesso di scrittura: \" + fileName);\r\n }\r\n\r\n // Se è una cartella verifico che sia vuota\r\n if (f.isDirectory()) {\r\n String[] files = f.list();\r\n if (files.length > 0) {\r\n throw new IllegalArgumentException(\"La Directory non è vuota: \" + fileName);\r\n }\r\n }\r\n\r\n // Profo a cancellare\r\n boolean success = f.delete();\r\n\r\n // Se si è verificato un errore...\r\n if (!success) {\r\n throw new IllegalArgumentException(\"Cancellazione fallita\");\r\n }\r\n }", "public void removeDoc (DocFile deletefile) throws ParseException {\n\n // Check if the file extension is valid\n if (deletefile == null) return;\n if (!isValid(deletefile)) {\n return;\n }\n\n Query query = new QueryParser(Constants.INDEX_KEY_ID, analyzer).parse(deletefile.getId());\n //System.out.println(\"delete file: \" + term.field() + \" \" + term.text());\n\n // Check if path exists\n if (FileManager.fileExists(deletefile.getId(), deletefile.getFileType()) || pathExists (deletefile.getPath())) {\n // remove doc if exits\n try {\n writer.deleteDocuments(query);\n writer.commit();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return;\n }", "public void removeFile(Note note) {\n File f = new File(SaveProperties.getPath() + \"/\" + note.getTitle() + \".txt\");\n f.delete();\n }", "public static boolean deleteFile(String string) {\n\t\tFile f=new File(string);\n\t\tlog(\"Delete: '\"+string+\"' \"+f.exists());\n\t\treturn f.delete();\n\t\t\n\t}", "public void delete(String path) throws IOException {\n Path destionationPath = new Path(path);\n\n if (!hdfs.exists(destionationPath)) {\n throw new IOException(\"File/directory doesn't exists!\");\n }\n hdfs.delete(destionationPath, true);\n }" ]
[ "0.8526604", "0.8422409", "0.8271895", "0.7857237", "0.7647414", "0.752559", "0.73777056", "0.7232794", "0.7146603", "0.71399635", "0.7079879", "0.7006471", "0.69487417", "0.6919118", "0.6846145", "0.68036574", "0.6773779", "0.67578536", "0.67508423", "0.67487377", "0.67126685", "0.6632236", "0.66309226", "0.66297287", "0.66087234", "0.6514485", "0.6481027", "0.64765155", "0.6452203", "0.6437701", "0.63957804", "0.63601744", "0.6329665", "0.62946934", "0.62747324", "0.627269", "0.62718904", "0.62614983", "0.6191588", "0.6162844", "0.61473256", "0.6135686", "0.61282206", "0.6128064", "0.6099843", "0.60533464", "0.6048976", "0.6026818", "0.6026513", "0.59920627", "0.5984035", "0.5983759", "0.5958496", "0.59181315", "0.5911687", "0.58979696", "0.5893444", "0.5892344", "0.5881079", "0.58798987", "0.58783567", "0.5878", "0.58693177", "0.58480203", "0.58470297", "0.5806172", "0.5774283", "0.5772071", "0.5766956", "0.57322747", "0.57301265", "0.5725362", "0.5721802", "0.5711875", "0.5695656", "0.5682429", "0.5682333", "0.5671198", "0.56680715", "0.5667712", "0.56648684", "0.5606403", "0.55967915", "0.559559", "0.5587798", "0.558654", "0.55752915", "0.5572961", "0.5572736", "0.5564337", "0.55638814", "0.5556096", "0.5549568", "0.55483025", "0.55333495", "0.5532399", "0.55292064", "0.5527556", "0.55100244", "0.5500838" ]
0.6951492
12
Get names of all subdirectories of a directory
public String[] getSubDirs(String dirPath) throws IOException { masterSock.write((GET_DIR_INFO + " " + dirPath).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = masterSock.readLine(); String[] subdirs = null; switch (line) { case STR_OK: line = masterSock.readLine(); // reversed line for number of subdirs and number of sub files int numdirs = Integer.parseInt(line.split(" ")[0]); if (numdirs == 0) break; line = masterSock.readLine(); // line for listing sub dirs subdirs = line.split(" "); break; case STR_NOT_FOUND: break; default: break; } return subdirs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getDirectories(String path) throws IOException;", "public abstract List<String> getDirs( );", "public String[] listDirectory( String directory, FileType type );", "public List<IDirectory> getAllChildDir() {\n return this.children;\n }", "List<String> getDirectories(String path, String searchPattern) throws IOException;", "public ArrayList<String> getDirectories() {\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\tif (m_db == null)\n\t\t\treturn list;\n\n\t\t//\n\t\t// read directories\n\t\t//\n\t\tCursor cursor = m_db.query(DIRECTORY_TABLE_NAME,\n\t\t\t\tnew String[] { DIRECTORY_FIELD_PATH }, null, null, null, null,\n\t\t\t\tnull);\n\n\t\t//\n\t\t// collect result\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// return result list\n\t\t//\n\t\treturn list;\n\t}", "List<String> getDirectories(String path, String searchPattern, String searchOption) throws IOException;", "public static ArrayList<Path> traverse(Path directory) {\r\n ArrayList<Path> filenames = new ArrayList<Path>();\r\n traverse(directory, filenames);\r\n return filenames;\r\n }", "@NonNull\n Single<List<String>> getFolderNames();", "public String[] getDirectories(String path) {\r\n\t\t// We initialise the String[].\r\n\t\tString[] directories = { \"No Directories Found\" };\r\n\r\n\t\t// We setup the path to search.\r\n\t\tFile file = new File(path);\r\n\t\tFile[] files = file.listFiles(File::isDirectory);\r\n\r\n\t\t// We check if there are any directories at all.\r\n\t\t// If there are no directories, we just return the initialised string.\r\n\t\tif (files.length != 0) {\r\n\t\t\tdirectories = new String[files.length];\r\n\r\n\t\t\t// We add the directories to the String[].\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tdirectories[i] = files[i].getName().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn directories;\r\n\t}", "public String[] getFileNamesFromDir(File dir) {\n\t\tFile[] allFiles = dir.listFiles();\n\t\tSystem.out.println(\"Total Files: \" + allFiles.length);\n\t\tString[] allFileNames = new String[allFiles.length];\n\t\tfor (int i = 0; i < allFiles.length; i++) {\n\t\t\tallFileNames[i] = allFiles[i].getName();\n//\t\t\tSystem.out.println(\"\\t\" + allFiles[i].getName());\n\t\t}\n\t\t\n\t\treturn allFileNames;\n\t}", "public void listFilesAndFilesSubDirectories(String directoryName) throws IOException{\n File directory = new File(directoryName);\n //get all the files from a directory\n System.out.println(\"List of Files and file subdirectories in: \" + directory.getCanonicalPath());\n File[] fList = directory.listFiles();\n for (File file : fList){\n if (file.isFile()){\n System.out.println(file.getAbsolutePath());\n } else if (file.isDirectory()){\n listFilesAndFilesSubDirectories(file.getAbsolutePath());\n }\n }\n }", "public static String[] readdir(String path) throws IOException {\n return readdir(path, ReadTypes.NONE).names;\n }", "private void listDirectories (Directory currentDirectory) {\n currentDirectory.printSubDirectories(\"DIRS : \");\n }", "public List<String> stringy() {\n\t\t\tList<String> temp = new ArrayList<>();\n\t\t\t// add all the file names\n\t\t\ttemp.addAll(getFileNames());\n\t\t\t// add all the directories [indicated by a \"-\"]\n\t\t\tfor (DirectoryObjects t : subdirectories) {\n\t\t\t\ttemp.add(t.name);\n\t\t\t}\n\n\t\t\treturn temp;\n\t\t}", "static String[] getRepositoryNames(File rootDirFile) {\n\t\tFile[] dirList = rootDirFile.listFiles();\n\t\tif (dirList == null) {\n\t\t\t//throw new FileNotFoundException(\"Folder \" + rootDirFile + \" not found\");\n\t\t\treturn new String[0];\n\t\t}\n\t\tArrayList<String> list = new ArrayList<>(dirList.length);\n\t\tfor (File element : dirList) {\n\t\t\tif (!element.isDirectory() ||\n\t\t\t\tLocalFileSystem.isHiddenDirName(element.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!NamingUtilities.isValidMangledName(element.getName())) {\n\t\t\t\tlog.warn(\"Ignoring repository directory with bad name: \" + element);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlist.add(NamingUtilities.demangle(element.getName()));\n\t\t}\n\t\tCollections.sort(list);\n\t\tString[] names = new String[list.size()];\n\t\treturn list.toArray(names);\n\t}", "@Override\n public List<Directory> get()\n {\n return getAllDirectories();\n }", "public List<Path> getAllPaths();", "private Vector getDirectoryEntries(File directory) {\n Vector files = new Vector();\n\n // File[] filesInDir = directory.listFiles();\n String[] filesInDir = directory.list();\n\n if (filesInDir != null) {\n int length = filesInDir.length;\n\n for (int i = 0; i < length; ++i) {\n files.addElement(new File(directory, filesInDir[i]));\n }\n }\n\n return files;\n }", "public String recursivelyTraverse(IDirectory currentDir) {\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) currentDir).getContents();\r\n ArrayList<IDirectory> subDirectories =\r\n ((Directory) currentDir).getSubDirectories();\r\n String resultList = \"\";\r\n\r\n if (contents.isEmpty()) {\r\n return resultList + \"\\n\";\r\n } else {\r\n // prints the names of the sub directories and the files\r\n for (DirectoryTreeNode content : contents) {\r\n resultList += content.getName() + \"\\n\";\r\n }\r\n resultList += \"\\n\";\r\n for (IDirectory subDir : subDirectories) {\r\n resultList += subDir.getName() + \":\\n\";\r\n resultList += this.recursivelyTraverse(subDir);\r\n }\r\n resultList += \"\\n\";\r\n }\r\n return resultList;\r\n }", "private List<Path> getChamberDirs() {\n try (Stream<Path> stream = Files.walk(chambersDir, 1)) {\n List<Path> dirs = stream.filter(path -> Files.isDirectory(path))\n .filter(path -> StringUtils.isNumeric(path.getFileName().toString()))\n .filter(path -> Files.exists(path.resolve(\"chamber.json\"))).collect(Collectors.toList());\n\n Collections.sort(dirs, new Comparator<Path>() {\n @Override\n public int compare(Path p1, Path p2) {\n int n1 = Integer.parseInt(p1.getFileName().toString());\n int n2 = Integer.parseInt(p2.getFileName().toString());\n return n1 - n2;\n }\n });\n\n return dirs;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public String getSubDirs() {\n return subDirs;\n }", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "public static List<String> getDrives(){\n root = new ArrayList<>();\n for(String temp : rootDir){\n File file = new File(temp);\n if(file.isDirectory()){\n root.add(temp);\n }\n }\n return root;\n }", "private static LinkedList<String> addAllSubDirs(File dir, LinkedList<String> list) {\n\t\tString [] dirListing = dir.list();\n\t\tfor (String subDirName : dirListing) {\n\t\t\tFile subdir = new File(dir.getPath() + System.getProperty(\"file.separator\") + subDirName);\n\t\t\tif (subdir.isDirectory()) {\n\t\t\t\tif (containsJavaFiles(subdir))\n\t\t\t\t\tlist.add(subdir.getPath());\n\t\t\t\tlist = addAllSubDirs(subdir, list);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public String[] getComboBoxList(String path) {\r\n\t\t// We setup the path to search.\r\n\t\tFile file = new File(path);\r\n\t\tFile[] files = file.listFiles(File::isDirectory);\r\n\r\n\t\t// We initialise the length of String[] to the length of all the files.\r\n\t\t// This way, we prevent any OutOfBounds exceptions as the maximum length is the\r\n\t\t// length of all the files.\r\n\t\tString[] directories = new String[files.length];\r\n\r\n\t\t// We add the directories to the String[].\r\n\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\tdirectories[i] = files[i].getName().toString();\r\n\t\t}\r\n\r\n\t\treturn directories;\r\n\t}", "public String [] listContents(File directory) throws IOException{\n\t\tFile [] dirContents = directory.listFiles();\n\t\tString [] arrOfFileNames = new String[dirContents.length];\n\t\tint i = 0;\n\t\tfor(File file: dirContents) {\n\t\t\tarrOfFileNames[i++] = file.getName();\n }\n return arrOfFileNames;\n }", "public String[] listObjectNames(String path, boolean recursive);", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "public static File[] getFilesInDirectory(String path) {\n File f = new File(path);\n File[] file = f.listFiles();\n return file;\n }", "java.lang.String getDirName();", "private ArrayList<File> getSubDirectories(String directoryPath, boolean omitHiddenDirs) {\n //---------- get all files in the provided directory ----------\n ArrayList<File> dirsInFolder = new ArrayList<>();\n\n File folder = new File(directoryPath);\n for (File f : folder.listFiles()) {\n if (f.isDirectory()) {\n if (!f.isHidden() || !omitHiddenDirs)\n dirsInFolder.add(f);\n }\n }\n return dirsInFolder;\n }", "public String[] getTreeNames();", "public String[] getFilenames(String directory) {\n File path = new File(directory);\n String[] filenames;\n if (path.exists()) {\n filenames = path.list();\n if (filenames != null) {\n Log.d(TAG, \"getFilenames: filenames length: \" + filenames.length);\n }\n else {\n Log.d(TAG, \"getFilenames: filenames length: null\" );\n }\n }\n else {\n filenames = new String[0];\n }\n return filenames;\n }", "private static String[] getAllFiles(File directory, String extension) {\n // TODO: extension has to be .txt, .doc or .docx\n File[] files = directory.listFiles(File::isFile);\n String[] filepaths = new String[files.length];\n String regex = \"^.*\" + extension + \"$\";\n for (int i = 0; i < filepaths.length; i++) {\n if (files[i].getPath().matches(regex)) {\n filepaths[i] = files[i].getPath();\n }\n }\n writeOutput(\"The folder \" + directory + \" contains \" + filepaths.length + \" \" + extension + \" file(s).\" + \"\\n\");\n return filepaths;\n }", "public List<String> ls(String path) {\n\t\treturn getDirectory(path, directory).stringy();\n\t}", "List<String> getListPaths();", "public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }", "public void listFolders(String directoryName) throws IOException{\n File directory = new File(directoryName);\n //get all the files from a directory\n System.out.println(\"List of Folders in: \" + directory.getCanonicalPath());\n\n File[] fList = directory.listFiles();\n for (File file : fList){\n if (file.isDirectory()){\n System.out.println(file.getName());\n }\n }\n }", "public String[] getSubFiles(String dirPath) throws IOException {\n\t\tmasterSock.write((GET_DIR_INFO + \" \" + dirPath).getBytes());\n\t\tmasterSock.write(\"\\r\\n\".getBytes());\n\t\tmasterSock.flush();\n\t\t\n\t\tString line = masterSock.readLine();\n\t\tString[] subfiles = null;\n\t\t\n\t\tswitch (line) {\n\t\tcase STR_OK:\n\t\t\tline = masterSock.readLine();\t// reversed line for number of subdirs and number of sub files\n\t\t\tint numfiles = Integer.parseInt(line.split(\" \")[1]);\n\t\t\tif (numfiles == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tline = masterSock.readLine();\t// line for listing sub dirs\n\t\t\tsubfiles = line.split(\" \");\n\t\t\tbreak;\n\t\tcase STR_NOT_FOUND:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\t\n\t\t}\n\t\t\n\t\treturn subfiles;\n\t}", "@Override\r\n\tpublic String[] listFolders() throws FileSystemUtilException {\r\n\t\t// getting all the files and folders in the given file path\r\n\t\tString[] files = listFiles();\r\n\t\tList foldersList = new ArrayList();\r\n\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t// all the folder are ends with '/'\r\n\t\t\tif (files[i].endsWith(\"/\") && isValidString(files[i])) {\r\n\t\t\t\tfoldersList.add(files[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] folders = new String[foldersList.size()];\r\n\t\t// getting only folders from returned array of files and folders\r\n\t\tfor (int i = 0; i < foldersList.size(); i++) {\r\n\t\t\tfolders[i] = foldersList.get(i).toString();\r\n\t\t}\r\n\t\treturn folders;\r\n\r\n\t}", "public ArrayList<String> getDirFiles(String filePath){\n ArrayList<String> results = new ArrayList<String>();\n File[] files = new File(filePath).listFiles();\n\n for (File file : files){\n if (file.isFile()) {\n results.add(file.getName());\n }\n }\n return results;\n }", "public static List<String> getRootDirectories(String... varargs) {\n\t\t// setting the default value when argument's value is omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\t// Return a list of root-directories available to sessionID\n\t\tsessionID = sessionId(sessionID);\n\t\ttry {\n\t\t\tString url = apiUrl(sessionID, false) + \"GetRootDirectories?sessionID=\" + PMA.pmaQ(sessionID);\n\t\t\tString jsonString = PMA.httpGet(url, \"application/json\");\n\t\t\tList<String> rootDirs;\n\t\t\tif (PMA.isJSONArray(jsonString)) {\n\t\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\trootDirs = new ArrayList<>();\n\t\t\t\tfor (int i = 0; i < jsonResponse.length(); i++) {\n\t\t\t\t\trootDirs.add(jsonResponse.optString(i));\n\t\t\t\t}\n\t\t\t\t// return dirs;\n\t\t\t} else {\n\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\tPMA.logger.severe(\"getrootdirectories() failed with error \" + jsonResponse.get(\"Message\"));\n\t\t\t\t\t}\n\t\t\t\t\t// throw new Exception(\"getrootdirectories() failed with error \" +\n\t\t\t\t\t// jsonResponse.get(\"Message\"));\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn rootDirs;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "public List<File> listCacheDirs() {\n List<File> cacheDirs = new ArrayList<File>();\n File file = new File(parent);\n if(file.exists()) {\n File[] files = file.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n // TODO Auto-generated method stub\n return pathname.isDirectory() && \n pathname.getName().startsWith(CacheDirectory.cacheDirNamePrefix(identity));\n }\n \n });\n cacheDirs = Arrays.asList(files);\n }\n return cacheDirs;\n }", "private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);", "public String[] getIncludedDirectories()\n {\n int count = dirsIncluded.size();\n String[] directories = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n directories[ i ] = (String)dirsIncluded.get( i );\n }\n return directories;\n }", "public List<String> listFilesForFolder(File folder) {\n\t\tList<String> fileList= new ArrayList<String>();\n\t for (final File fileEntry : folder.listFiles()) {\n\t if (fileEntry.isDirectory()) {\n\t listFilesForFolder(fileEntry);\n\t } else {\n\t \tfileList.add(fileEntry.getName());\n\t }\n\t }\n\t return fileList;\n\t}", "public static List<String> getAllFilesUnderDir(String dirName) {\n\t\tdirName = removeLastSlash(dirName);\n\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\tFile dir = new File(dirName);\n\t\tif (!dir.isDirectory()) {\n\t\t\tthrow new IllegalStateException(\"Not a dir!\");\n\t\t}\n\t\tfor (File file : dir.listFiles()) {\n\t\t\tString fileName = file.getName();\n\t\t\tDebug.println(\"dir: \" + dirName + \" file: \" + fileName);\n\t\t\tfileList.add(dirName + \"/\" + fileName);\n\t\t}\n\t\treturn fileList;\n\t}", "public List<String> paths(TreeNode root){\r\n List<String> result = new ArrayList<>();\r\n if(root!=null){\r\n binaryTreePath(root, \"\", result);\r\n }\r\n for(String s: result){\r\n System.out.println(s);\r\n }\r\n return result;\r\n }", "public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }", "public static List<CMSFile> getFolderChildren(String path){\n return CMSFile.find(\"name NOT LIKE '\" + path + \"%/%' and name like '\" + path + \"%'\").fetch();\n }", "private static Collection<File> listFiles(File directory, FilenameFilter filter, boolean recurse) {\n\t\tVector<File> files = new Vector<File>();\n\t\tFile[] entries = directory.listFiles();\n\n\t\tfor (File entry : entries) {\n\t\t\tif (filter == null || filter.accept(directory, entry.getName()))\n\t\t\t\tfiles.add(entry);\n\t\t\tif (recurse && entry.isDirectory())\n\t\t\t\tfiles.addAll(listFiles(entry, filter, recurse));\n\t\t}\n\t\treturn files;\n\t}", "public void recursiveList(String path) {\n Directory tDir = Directory.getDir(path);\n if (tDir == null) {\n str += \"Error: the input path \" + path + \" does not exist!\\n\";\n } else if (tDir.getSubContent().isEmpty()) {\n str += tDir.getName() + \"\\n\";\n } else {\n str += tDir.getName() + \":\";\n indentation += \"\\t\";\n for (int i = 0; i < tDir.getSubContent().size(); i++) {\n str += indentation;\n recursiveList(tDir.getSubContent().get(i).getAbsolutePath());\n }\n indentation = indentation.substring(0, indentation.length() - 1);\n }\n }", "private static void listChildren(Path p, List<String> list)\n throws IOException {\n for (Path c : p.getDirectoryEntries()) {\n list.add(c.getPathString());\n if (c.isDirectory()) {\n listChildren(c, list);\n }\n }\n }", "File[] getFilesInFolder(String path) {\n return new File(path).listFiles();\n }", "public LinkedList<ApfsDirectory> getSubDirectories() {\n LinkedList<ApfsDirectory> subDirectories = new LinkedList<ApfsDirectory>();\n for(ApfsElement apfse: children) {\n if(apfse.isDirectory())\n subDirectories.add((ApfsDirectory) apfse);\n }\n return subDirectories;\n }", "protected abstract String[] getFolderList() throws IOException;", "static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}", "public static void printListFilesRecursive(String startDir) {\n File dir = new File(startDir);\n File[] files = dir.listFiles();\n\n if (files != null && files.length > 0) {\n for (File file : files) {\n //Check if the file is a directory\n if (file.isDirectory()) {\n System.out.println(\"-- \" + file.getName());\n printListFilesRecursive(file.getAbsolutePath());\n } else {\n System.out.println(file.getName());\n }\n }\n }\n }", "private static void listar(Path a){\n File dir = new File(a.toString());\n if(dir.isDirectory()){\n String[] dirContents = dir.list();\n for(int i =0; i < dirContents.length; i++){\n System.out.println(dirContents[i]);\n }\n }\n }", "public void listFilesAndFolders(String directoryName) throws IOException{\n File directory = new File(directoryName);\n System.out.println(\"List of Files and folders in: \" + directory.getCanonicalPath());\n //get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList){\n System.out.println(file.getName());\n }\n }", "public List<String> _getSavingDirectories() throws CallError, InterruptedException {\n return (List<String>)service.call(\"_getSavingDirectories\").get();\n }", "private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}", "public String listPath(List<String> arg) {\n String output = \"\";\n for (int path = 0; path < arg.size(); path++) {\n Directory tDir = Directory.getDir(arg.get(path));\n if (tDir == null) {\n output +=\n \"Error: The input path \" + arg.get(path) + \" doesn't exist!\\n\\n\";\n } else if (tDir.isFile) {\n output += tDir.getName();\n } else {\n for (int j = 0; j < tDir.getSubContent().size(); j++) {\n if (!tDir.getSubContent().get(j).isFile) {\n output += tDir.getSubContent().get(j).getName();\n Directory dir = tDir.getSubContent().get(j);\n if (!dir.getSubContent().isEmpty()) {\n output += \" : \";\n for (int k = 0; k < tDir.getSubContent().get(j).getSubContent()\n .size(); k++) {\n if (k != tDir.getSubContent().get(j).getSubContent().size()\n - 1) {\n output += tDir.getSubContent().get(j).getSubContent().get(k)\n .getName() + \", \";\n } else {\n output += tDir.getSubContent().get(j).getSubContent().get(k)\n .getName() + \"\\n\";\n }\n }\n } else {\n output += \"\\n\";\n }\n } else {\n output += tDir.getSubContent().get(j).getName() + \"\\n\";\n }\n }\n }\n }\n return output;\n }", "public String getDataDirectoriesString() {\n ArrayList dataDirs = this.getDataDirectories();\n String dataDirs_str = \"\";\n\n File dir;\n for (Iterator var3 = dataDirs.iterator(); var3.hasNext(); dataDirs_str = dataDirs_str + dir.getAbsolutePath() + \"\\n\") {\n dir = (File) var3.next();\n }\n\n return dataDirs_str;\n }", "public static List<String> getFile(String path){\n File file = new File(path);\n // get the folder list\n File[] array = file.listFiles();\n\n List<String> fileName = new ArrayList<>();\n\n for(int i=0;i<array.length;i++){\n if(array[i].isFile()){\n // only take file name\n fileName.add(array[i].getName());\n }else if(array[i].isDirectory()){\n getFile(array[i].getPath());\n }\n }\n return fileName;\n }", "public Hashtable<String,String> getDirList() {\n return mDirList;\n }", "public static List<String> getAllFiles(String dirPath) {\n\n\t\tList<String> files = new ArrayList<>();\n\t\tFile folder = new File(dirPath);\n\t\tFile[] listOfFiles = folder.listFiles();\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++) {\n\t\t\tFile file = listOfFiles[i];\n\t\t\tString filePath = file.getPath();\n\t\t\tif (file.isFile()) {\n\n\t\t\t\tif (!file.isHidden() && !file.getName().startsWith(\"_\"))\n\t\t\t\t\tfiles.add(filePath);\n\t\t\t} else if (file.isDirectory()) {\n\n\t\t\t\tfiles.addAll(getAllFiles(filePath));\n\t\t\t}\n\t\t}\n\n\t\treturn files;\n\t}", "@Override\r\n public List<File> getValues(final String term) throws IOException {\n {\r\n File file = new File(term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return children(file, fileFilter);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return children(parent, normalizedFilter(term));\r\n }\r\n }\r\n // case 2: relative path\r\n {\r\n for (File path : paths) {\r\n File file = new File(path, term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return toRelativeFiles(children(file, fileFilter), path);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return toRelativeFiles(children(parent, normalizedFilter(file.getAbsolutePath())), path);\r\n }\r\n }\r\n }\r\n return Collections.emptyList();\r\n }", "public static List<String> getDirectories(String startDir, Object... varargs) {\n\t\t// setting the default values when arguments' values are omitted\n\t\tString sessionID = null;\n\t\t// we can either choose to have a non recursive call, a complete recursive call\n\t\t// or a recursive call to a certain depth, in the last case we use an integer to\n\t\t// define\n\t\t// depth\n\t\t// the following three variables intend to implement this\n\t\tBoolean recursive = false;\n\t\tInteger integerRecursive = 0;\n\t\tString booleanOrInteger = \"\";\n\t\tif (varargs.length > 0) {\n\t\t\tif (!(varargs[0] instanceof String) && varargs[0] != null) {\n\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\tPMA.logger.severe(\"getDirectories() : Invalid argument\");\n\t\t\t\t}\n\t\t\t\tthrow new IllegalArgumentException(\"...\");\n\t\t\t}\n\t\t\tsessionID = (String) varargs[0];\n\t\t}\n\t\tif (varargs.length > 1) {\n\t\t\tif ((!(varargs[1] instanceof Integer) && !(varargs[1] instanceof Boolean)) && (varargs[1] != null)) {\n\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\tPMA.logger.severe(\"getDirectories() : Invalid argument\");\n\t\t\t\t}\n\t\t\t\tthrow new IllegalArgumentException(\"...\");\n\t\t\t}\n\t\t\tif (varargs[1] instanceof Boolean) {\n\t\t\t\trecursive = (Boolean) varargs[1];\n\t\t\t\tbooleanOrInteger = \"boolean\";\n\t\t\t}\n\t\t\tif (varargs[1] instanceof Integer) {\n\t\t\t\tintegerRecursive = (Integer) varargs[1];\n\t\t\t\trecursive = ((Integer) varargs[1]) > 0 ? true : false;\n\t\t\t\tbooleanOrInteger = \"integer\";\n\t\t\t}\n\t\t}\n\n\t\t// Return a list of sub-directories available to sessionID in the startDir\n\t\t// directory\n\t\tsessionID = sessionId(sessionID);\n\t\tString url = apiUrl(sessionID, false) + \"GetDirectories?sessionID=\" + PMA.pmaQ(sessionID) + \"&path=\"\n\t\t\t\t+ PMA.pmaQ(startDir);\n\t\tif (PMA.debug) {\n\t\t\tSystem.out.println(url);\n\t\t}\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tList<String> dirs;\n\t\t\tif (PMA.isJSONObject(jsonString)) {\n\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\tPMA.logger.severe(\"get_directories to \" + startDir + \" resulted in: \"\n\t\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that startDir is case sensitive!)\");\n\t\t\t\t\t}\n\t\t\t\t\tthrow new Exception(\"get_directories to \" + startDir + \" resulted in: \"\n\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that startDir is case sensitive!)\");\n\t\t\t\t} else if (jsonResponse.has(\"d\")) {\n\t\t\t\t\tJSONArray array = jsonResponse.getJSONArray(\"d\");\n\t\t\t\t\tdirs = new ArrayList<>();\n\t\t\t\t\tfor (int i = 0; i < array.length(); i++) {\n\t\t\t\t\t\tdirs.add(array.optString(i));\n\t\t\t\t\t}\n\t\t\t\t\t// return dirs;\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\tdirs = new ArrayList<>();\n\t\t\t\tfor (int i = 0; i < jsonResponse.length(); i++) {\n\t\t\t\t\tdirs.add(jsonResponse.optString(i));\n\t\t\t\t}\n\t\t\t\t// return dirs;\n\t\t\t}\n\n\t\t\t// we test if call is recursive, and if yes to which depth\n\t\t\tif (recursive) {\n\t\t\t\tfor (String dir : getDirectories(startDir, sessionID)) {\n\t\t\t\t\tif (booleanOrInteger.equals(\"boolean\")) {\n\t\t\t\t\t\tdirs.addAll(getDirectories(dir, sessionID, recursive));\n\t\t\t\t\t}\n\t\t\t\t\tif (booleanOrInteger.equals(\"integer\")) {\n\t\t\t\t\t\tdirs.addAll(getDirectories(dir, sessionID, integerRecursive - 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn dirs;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic String globFilesDirectories(String[] args) {\r\n\t\treturn globHelper(args);\r\n\t}", "private List<String> processDirectory(Path path) {\n\t\treturn null;\r\n\t}", "public List getAllLogFileNames() {\n File folder = new File(path);\n File[] listOfFiles = folder.listFiles();\n List<String> fileList = new ArrayList<>();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n String fileName = listOfFiles[i].getName();\n if ((!fileName.contains(\".tar\")) && (!fileName.contains(\".zip\")) && (!fileName.contains(\".gz\")) && (!fileName.contains(\".lck\")))\n fileList.add(fileName);\n }\n }\n return fileList;\n }", "protected List<String> getFileNames(@NonNull ConfigQuery query, @NonNull T context) {\n val paths = interpolateVarStrings(getPaths(), query);\n log.trace(\"{} retrieving filenames for paths: {}\", this, paths);\n return paths.stream()\n .flatMap(name -> maybeListDirectory(name, context))\n .distinct()\n .collect(Collectors.toList());\n }", "List<File> list(String directory) throws FindException;", "@Override\n\tpublic Iterable<Path> getRootDirectories() {\n\t\treturn null;\n\t}", "static List<String> plainFilenamesIn(String dir) {\n return plainFilenamesIn(new File(dir));\n }", "public static File[] listFilesInTree(File dir, FileFilter filter, boolean recordDirectories) {\r\n\t\tList<File> files = new ArrayList<File>();\r\n\t\tlistFilesInTreeHelper(files, dir, filter, recordDirectories);\r\n\t\treturn (File[]) files.toArray(new File[files.size()]);\r\n\t}", "public static List<File> listFilesRecurse(File dir, FilenameFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}", "String getDir();", "private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }", "private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }", "public String[] getFoldersNames(){\n\t\tCollection<String> listNames = new ArrayList<String>();\n\t\tfor( Folder folder : m_Folders){\n\t\t\tlistNames.add(folder.m_Name);\n\t\t}\n\t\t\n\t\tString[] names = new String[listNames.size()]; \n\t\tnames = listNames.toArray(names);\n\t\treturn names;\t\t\n\t}", "public Vector<String> getProfiledirs()\r\n {\r\n Vector<String> profiles = new Vector<String>();\r\n\r\n for (int i = 0; i < _profileDir.length; i++)\r\n {\r\n File dir = new File(_profileDir[i]);\r\n String aux[] = dir.list();\r\n\r\n if (aux != null)\r\n {\r\n for (int j = 0; j < aux.length; j++)\r\n {\r\n dir = new File(_profileDir[i] + aux[j]);\r\n if (dir.isDirectory())\r\n {\r\n profiles.add(_profileDir[i] + aux[j]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return profiles;\r\n }", "public static List<File> listFilesRecurse(File dir, FileFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}", "List<DirectoryEntry> listAllDirEntries(OkHttpClient client, String token, String repo_id);", "public List<File> getCurrentDirectoryFiles(String directoryPath) {\r\n File myDir = new File(directoryPath);\r\n return new ArrayList<>(Arrays.asList(Objects.requireNonNull(myDir.listFiles())));\r\n }", "public String[] getNotIncludedDirectories()\n throws TaskException\n {\n slowScan();\n int count = dirsNotIncluded.size();\n String[] directories = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n directories[ i ] = (String)dirsNotIncluded.get( i );\n }\n return directories;\n }", "public static void listarDirectorios(File directorio) {\n if (!directorio.isDirectory()) {//bolean si no se trata de un directorio sino de un archivo\n System.out.println(directorio.getName());//dame su nombre\n } else {\n String[] dirs = directorio.list(); //list() devuelve un tab[] de strings con nombres de cada directorio dentro de directorio\n\n for (String dir : dirs) { //File(String parent, String child)\n File f = new File(directorio.getAbsolutePath(),dir);//directorio.getAbsolutePath() vendria a ser el directorio, dir el archivo dentro(hijo)\n System.out.println(f.getName());\n if (f.isDirectory()) {\n listarDirectorios(f);\n }\n }\n\n }\n }", "com.google.protobuf.ByteString\n getDirNameBytes();", "private ArrayList<String> listFilesForFolder(File folder, TaskListener listener) {\n \tArrayList<String> lista = new ArrayList<String>();\n \tif(folder.exists()){\n\t \tFile[] listOfFiles = folder.listFiles();\n\t\t\t if(listOfFiles != null){\t\n\t\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t\t if (file.isDirectory()) {\t\n\t\t\t\t \tlista.add(file.getName());\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t}\n\t\treturn lista;\n\t}", "public List<String> list(String path) throws IOException {\n Path destionationPath = new Path(path);\n\n List<String> childsList = new ArrayList<>();\n FileStatus[] childElements = hdfs.listStatus(destionationPath);\n Arrays.stream(childElements).forEach(child -> childsList.add(child.getPath().getName()));\n return childsList;\n }", "public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the method on each nested folder\r\n \t listOfFiles(file);\r\n }\r\n }\r\n }", "public List<String> binaryTreePaths(TreeNode root) {\n List<String> paths = new ArrayList<>();\n backtrack(root, new StringBuilder(), paths);\n return paths;\n }", "public String[] getFolders() throws FileSystemUtilException\r\n\t{\r\n\t\t//getting all the files and folders in the given file path\r\n\t\tString[] files = listFiles();\r\n\t\tList<String> foldersList = new ArrayList<String>();\r\n\t\tfor(int i=0;i<files.length;i++){\r\n\t\t\t//all the folder are ends with '/'\r\n\t\t\tif(files[i].endsWith(\"/\") && isValidString(files[i])){\r\n\t\t\t\tfoldersList.add(files[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] folders = new String[foldersList.size()];\r\n\t\t//getting only folders from returned array of files and folders\r\n\t\tfor(int i=0;i<foldersList.size();i++){\r\n\t\t\tfolders[i] = foldersList.get(i).toString();\r\n\t\t}\r\n\t\treturn folders;\r\n\t}", "@NonNull\n public static File[] listAllFiles(File directory) {\n if (directory == null) {\n return new File[0];\n }\n File[] files = directory.listFiles();\n return files != null ? files : new File[0];\n }", "@Test\n public void testGetSubDirectories() {\n System.out.println(\"getSubDirectories from a folder containing 2 subdirectories\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"\n +fSeparator+\"Entries\";\n \n FilesDao instance = new FilesDao();\n File entriesFile = new File(path);\n File subFolder;\n String[] children = entriesFile.list();\n File[] expResult = new File[entriesFile.list().length];\n \n for(int i=0;i<entriesFile.list().length;i++)\n {\n subFolder = new File(path+fSeparator+children[i]);\n if(subFolder.isDirectory())\n expResult[i] = subFolder; \n }\n \n File[] result = instance.getSubDirectories(path);\n \n assertArrayEquals(expResult, result);\n }", "List<Path> getFiles();", "private List<Path> listSourceFiles(Path dir) throws IOException {\n\t\tList<Path> result = new ArrayList<>();\n\t\ttry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, \"*.json\")) {\n\t\t\tfor (Path entry: stream) {\n\t\t\t\tresult.add(entry);\n\t\t\t}\n\t\t} catch (DirectoryIteratorException ex) {\n\t\t\t// I/O error encounted during the iteration, the cause is an IOException\n\t\t\tthrow ex.getCause();\n\t\t}\n\t\treturn result;\n\t}" ]
[ "0.71463037", "0.6860416", "0.661089", "0.6484999", "0.6462901", "0.63733304", "0.6199965", "0.6178992", "0.617096", "0.6101863", "0.60746443", "0.601604", "0.6015311", "0.59269696", "0.5849161", "0.5810028", "0.5802033", "0.5783996", "0.5782658", "0.5764136", "0.5739874", "0.573606", "0.57354444", "0.573449", "0.5688596", "0.56600666", "0.56593776", "0.5653259", "0.5645065", "0.56410307", "0.56404996", "0.56324387", "0.5631774", "0.5625063", "0.5616385", "0.56153476", "0.5613601", "0.56090593", "0.55963033", "0.556709", "0.55670524", "0.5565577", "0.5558097", "0.5513925", "0.55018187", "0.550163", "0.5498299", "0.5495471", "0.5494445", "0.54914045", "0.54901433", "0.5485813", "0.54850036", "0.54637355", "0.5455927", "0.5445066", "0.5440178", "0.5419265", "0.54125524", "0.54010344", "0.53972065", "0.53884727", "0.5377699", "0.5377282", "0.5375647", "0.5362943", "0.5355621", "0.5324741", "0.5320202", "0.53184897", "0.53112125", "0.5289582", "0.5276139", "0.52721995", "0.52585524", "0.5254566", "0.5238602", "0.5235654", "0.52189505", "0.51972455", "0.51926625", "0.5180095", "0.51777625", "0.5158398", "0.51547813", "0.5154173", "0.51494664", "0.51452124", "0.5143685", "0.51401603", "0.5139759", "0.5130413", "0.51199526", "0.511748", "0.5115937", "0.5107976", "0.51031685", "0.5095297", "0.50929505", "0.50904095" ]
0.59644943
13
Get names of all subfiles of a directory
public String[] getSubFiles(String dirPath) throws IOException { masterSock.write((GET_DIR_INFO + " " + dirPath).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = masterSock.readLine(); String[] subfiles = null; switch (line) { case STR_OK: line = masterSock.readLine(); // reversed line for number of subdirs and number of sub files int numfiles = Integer.parseInt(line.split(" ")[1]); if (numfiles == 0) break; line = masterSock.readLine(); // line for listing sub dirs subfiles = line.split(" "); break; case STR_NOT_FOUND: break; default: break; } return subfiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getFileNamesFromDir(File dir) {\n\t\tFile[] allFiles = dir.listFiles();\n\t\tSystem.out.println(\"Total Files: \" + allFiles.length);\n\t\tString[] allFileNames = new String[allFiles.length];\n\t\tfor (int i = 0; i < allFiles.length; i++) {\n\t\t\tallFileNames[i] = allFiles[i].getName();\n//\t\t\tSystem.out.println(\"\\t\" + allFiles[i].getName());\n\t\t}\n\t\t\n\t\treturn allFileNames;\n\t}", "private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "public String [] listContents(File directory) throws IOException{\n\t\tFile [] dirContents = directory.listFiles();\n\t\tString [] arrOfFileNames = new String[dirContents.length];\n\t\tint i = 0;\n\t\tfor(File file: dirContents) {\n\t\t\tarrOfFileNames[i++] = file.getName();\n }\n return arrOfFileNames;\n }", "private static String[] getAllFiles(File directory, String extension) {\n // TODO: extension has to be .txt, .doc or .docx\n File[] files = directory.listFiles(File::isFile);\n String[] filepaths = new String[files.length];\n String regex = \"^.*\" + extension + \"$\";\n for (int i = 0; i < filepaths.length; i++) {\n if (files[i].getPath().matches(regex)) {\n filepaths[i] = files[i].getPath();\n }\n }\n writeOutput(\"The folder \" + directory + \" contains \" + filepaths.length + \" \" + extension + \" file(s).\" + \"\\n\");\n return filepaths;\n }", "public static void getAllFiles()\n\t{\n\t\t//Getting the File Name\n\n\t\tList<String> fileNames = FileManager.getAllFiles(folderpath);\n\t\n\t\tfor(String f:fileNames)\n\t\tSystem.out.println(f);\n\t\n\t}", "static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}", "static List<String> plainFilenamesIn(String dir) {\n return plainFilenamesIn(new File(dir));\n }", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }", "public String[] GetAllFileNames() {\n \tFile dir = new File(fileStorageLocation.toString());\n \tString[] matchingFiles = dir.list(new FilenameFilter() {\n \t public boolean accept(File dir, String name) {\n \t return name.startsWith(\"1_\");\n \t }\n \t});\n \t\n \tfor (int i=0; i < matchingFiles.length; i++)\n \t{\n \t\tmatchingFiles[i] = matchingFiles[i].replaceFirst(\"1_\", \"\");\n \t}\n \t\n return matchingFiles;\n }", "public List getAllLogFileNames() {\n File folder = new File(path);\n File[] listOfFiles = folder.listFiles();\n List<String> fileList = new ArrayList<>();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n String fileName = listOfFiles[i].getName();\n if ((!fileName.contains(\".tar\")) && (!fileName.contains(\".zip\")) && (!fileName.contains(\".gz\")) && (!fileName.contains(\".lck\")))\n fileList.add(fileName);\n }\n }\n return fileList;\n }", "List<Path> getFiles();", "java.util.List<java.lang.String>\n getFileNamesList();", "java.util.List<java.lang.String>\n getFileNamesList();", "List<String> getFiles(String path) throws IOException;", "public String[] getFilenames(String directory) {\n File path = new File(directory);\n String[] filenames;\n if (path.exists()) {\n filenames = path.list();\n if (filenames != null) {\n Log.d(TAG, \"getFilenames: filenames length: \" + filenames.length);\n }\n else {\n Log.d(TAG, \"getFilenames: filenames length: null\" );\n }\n }\n else {\n filenames = new String[0];\n }\n return filenames;\n }", "public static List<String> getAllFileNames() {\n List<String> fileNames = new ArrayList();\n\n String sql = \"SELECT fileName FROM files;\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n while (rs.next()) {\n fileNames.add(rs.getString(\"fileName\"));\n }\n return fileNames;\n } catch (SQLException e) {\n System.out.println(\"getAllFileIDs: \" + e.getMessage());\n }\n return null;\n }", "public static List<String> getFile(String path){\n File file = new File(path);\n // get the folder list\n File[] array = file.listFiles();\n\n List<String> fileName = new ArrayList<>();\n\n for(int i=0;i<array.length;i++){\n if(array[i].isFile()){\n // only take file name\n fileName.add(array[i].getName());\n }else if(array[i].isDirectory()){\n getFile(array[i].getPath());\n }\n }\n return fileName;\n }", "private List<Path> listSourceFiles(Path dir) throws IOException {\n\t\tList<Path> result = new ArrayList<>();\n\t\ttry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, \"*.json\")) {\n\t\t\tfor (Path entry: stream) {\n\t\t\t\tresult.add(entry);\n\t\t\t}\n\t\t} catch (DirectoryIteratorException ex) {\n\t\t\t// I/O error encounted during the iteration, the cause is an IOException\n\t\t\tthrow ex.getCause();\n\t\t}\n\t\treturn result;\n\t}", "AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);", "private static Collection<File> listFiles(File directory, FilenameFilter filter, boolean recurse) {\n\t\tVector<File> files = new Vector<File>();\n\t\tFile[] entries = directory.listFiles();\n\n\t\tfor (File entry : entries) {\n\t\t\tif (filter == null || filter.accept(directory, entry.getName()))\n\t\t\t\tfiles.add(entry);\n\t\t\tif (recurse && entry.isDirectory())\n\t\t\t\tfiles.addAll(listFiles(entry, filter, recurse));\n\t\t}\n\t\treturn files;\n\t}", "protected List<String> getFileNames(@NonNull ConfigQuery query, @NonNull T context) {\n val paths = interpolateVarStrings(getPaths(), query);\n log.trace(\"{} retrieving filenames for paths: {}\", this, paths);\n return paths.stream()\n .flatMap(name -> maybeListDirectory(name, context))\n .distinct()\n .collect(Collectors.toList());\n }", "public static ArrayList<Path> traverse(Path directory) {\r\n ArrayList<Path> filenames = new ArrayList<Path>();\r\n traverse(directory, filenames);\r\n return filenames;\r\n }", "java.lang.String getFileNames(int index);", "java.lang.String getFileNames(int index);", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "public List<String> listFilesForFolder(File folder) {\n\t\tList<String> fileList= new ArrayList<String>();\n\t for (final File fileEntry : folder.listFiles()) {\n\t if (fileEntry.isDirectory()) {\n\t listFilesForFolder(fileEntry);\n\t } else {\n\t \tfileList.add(fileEntry.getName());\n\t }\n\t }\n\t return fileList;\n\t}", "public List listFiles(String path);", "public List<String> getFiles();", "private static ArrayList<String> getPlayerFileNames() {\n\n ArrayList<String> fileNames = new ArrayList<String>();\n\n File folder = new File(\"otterbein/pig/player\");\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n if (listOfFiles[i].getName().endsWith(\".class\")) {\n fileNames.add(listOfFiles[i].getName());\n }\n }\n }\n\n return fileNames;\n }", "public String[] listFilesString() {\n\t\tFile[] FL = listFiles();\n\t\treturn FU.listFilesString(FL);\n\t}", "File[] getFilesInFolder(String path) {\n return new File(path).listFiles();\n }", "public void listFilesAndFilesSubDirectories(String directoryName) throws IOException{\n File directory = new File(directoryName);\n //get all the files from a directory\n System.out.println(\"List of Files and file subdirectories in: \" + directory.getCanonicalPath());\n File[] fList = directory.listFiles();\n for (File file : fList){\n if (file.isFile()){\n System.out.println(file.getAbsolutePath());\n } else if (file.isDirectory()){\n listFilesAndFilesSubDirectories(file.getAbsolutePath());\n }\n }\n }", "private static String[] findFiles(String dirpath) {\n\t\tString fileSeparator = System.getProperty(\"file.separator\");\n\t\tVector<String> fileListVector = new Vector<String>();\n\t\tFile targetDir = null;\n\t\ttry {\n\t\t\ttargetDir = new File(dirpath);\n\t\t\tif (targetDir.isDirectory())\n\t\t\t\tfor (String val : targetDir.list(new JavaFilter()))\n\t\t\t\t\tfileListVector.add(dirpath + fileSeparator + val);\n\t\t} catch(Exception e) {\n\t\t\tlogger.error(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString fileList = \"\";\n\t\tfor (String filename : fileListVector) {\n\t\t\tString basename = filename.substring(filename.lastIndexOf(fileSeparator) + 1);\n\t\t\tfileList += \"\\t\" + basename;\n\t\t}\n\t\tif (fileList.equals(\"\")) \n\t\t\tfileList += \"none.\";\n\t\tlogger.trace(\"Unpackaged source files found in dir \" + dirpath + fileSeparator + \": \" + fileList);\n\t\t\n\t\treturn (String[]) fileListVector.toArray(new String[fileListVector.size()]);\n\t}", "public Vector<String> listFiles()\n {\n Vector<String> fileNames = new Vector<String>();\n\n File[] files = fileLocation.listFiles();\n\n for (File file : files)\n {\n fileNames.add(file.getName());\n }\n\n return fileNames;\n }", "List<File> list(String directory) throws FindException;", "public String[] listDirectory( String directory, FileType type );", "private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }", "private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public static String[] readdir(String path) throws IOException {\n return readdir(path, ReadTypes.NONE).names;\n }", "public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }", "protected abstract ArrayList<String> getFileNamesByPath(\n\t\t\tfinal String path);", "private static void retrieveFiles(File fileDir) {\n List<String> files = Arrays.asList(fileDir.list());\n if (files.isEmpty()) {\n System.out.println(\"There are no files under current directory.\");\n return;\n }\n Collections.sort(files);\n int numOfFiles = files.size();\n System.out.println(\"There are \" + numOfFiles + \" files under current directory.\");\n for (int i = 1; i <= numOfFiles; i++) {\n System.out.println(i + \" - \" + files.get(i - 1));\n }\n }", "public List<String> getFileNames() {\n\t\t\tList<String> names = new ArrayList<>();\n\t\t\tfor (FileObjects t : files) {\n\t\t\t\tnames.add(t.getName());\n\t\t\t}\n\n\t\t\treturn names;\n\t\t}", "private Vector getDirectoryEntries(File directory) {\n Vector files = new Vector();\n\n // File[] filesInDir = directory.listFiles();\n String[] filesInDir = directory.list();\n\n if (filesInDir != null) {\n int length = filesInDir.length;\n\n for (int i = 0; i < length; ++i) {\n files.addElement(new File(directory, filesInDir[i]));\n }\n }\n\n return files;\n }", "public List<IFile> getAllChildFiles() {\n return this.childFiles;\n }", "public static List<String> scanFileNamesInArchive(InputStream in)\r\n\t\t\tthrows IOException {\r\n\r\n\t\tfinal List<String> back = new ArrayList<String>();\r\n\r\n\t\tJarInputStream jin = new JarInputStream(in);\r\n\t\tZipEntry entry = jin.getNextEntry();\r\n\t\twhile (entry != null) {\r\n\r\n\t\t\tString fileName = entry.getName();\r\n\t\t\tif (fileName.charAt(fileName.length() - 1) == '/') {\r\n\t\t\t\tfileName = fileName.substring(0, fileName.length() - 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileName.charAt(0) == '/') {\r\n\t\t\t\tfileName = fileName.substring(1);\r\n\t\t\t}\r\n\r\n\t\t\tif (File.separatorChar != '/') {\r\n\t\t\t\tfileName = fileName.replace('/', File.separatorChar);\r\n\t\t\t}\r\n\r\n\t\t\tif (!entry.isDirectory()) {\r\n\t\t\t\tback.add(fileName);\r\n\t\t\t}\r\n\r\n\t\t\tentry = jin.getNextEntry();\r\n\t\t}\r\n\t\tjin.close();\r\n\t\treturn back;\r\n\t}", "public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}", "private ArrayList<String> listFilesForFolder(File folder, TaskListener listener) {\n \tArrayList<String> lista = new ArrayList<String>();\n \tif(folder.exists()){\n\t \tFile[] listOfFiles = folder.listFiles();\n\t\t\t if(listOfFiles != null){\t\n\t\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t\t if (file.isDirectory()) {\t\n\t\t\t\t \tlista.add(file.getName());\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t}\n\t\treturn lista;\n\t}", "@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }", "public abstract List<String> getFiles( );", "public static List<File> listFilesRecurse(File dir, FilenameFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}", "static List<String> plainFilenamesIn(File dir) {\n String[] files = dir.list(PLAIN_FILES);\n if (files == null) {\n return null;\n } else {\n Arrays.sort(files);\n return Arrays.asList(files);\n }\n }", "void getFilesInfoInFolder(String pathToFolder) {\n File[] listOfFiles = getFilesInFolder(pathToFolder);\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n System.out.println(\"File \" + listOfFiles[i].getName());\n continue;\n }\n\n if (listOfFiles[i].isDirectory()) {\n System.out.println(\"Directory \" + listOfFiles[i].getName());\n }\n }\n }", "public abstract List<LocalFile> getAllFiles();", "public static List<String> getAllFiles(String dirPath) {\n\n\t\tList<String> files = new ArrayList<>();\n\t\tFile folder = new File(dirPath);\n\t\tFile[] listOfFiles = folder.listFiles();\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++) {\n\t\t\tFile file = listOfFiles[i];\n\t\t\tString filePath = file.getPath();\n\t\t\tif (file.isFile()) {\n\n\t\t\t\tif (!file.isHidden() && !file.getName().startsWith(\"_\"))\n\t\t\t\t\tfiles.add(filePath);\n\t\t\t} else if (file.isDirectory()) {\n\n\t\t\t\tfiles.addAll(getAllFiles(filePath));\n\t\t\t}\n\t\t}\n\n\t\treturn files;\n\t}", "public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }", "public String[] listObjectNames(String path, boolean recursive);", "java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();", "protected List <WebFile> getSourceDirChildFiles()\n{\n // Iterate over source dir and add child packages and files\n List children = new ArrayList();\n for(WebFile child : getFile().getFiles()) {\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, children);\n else children.add(child);\n }\n \n return children;\n}", "public ArrayList<String> getDirFiles(String filePath){\n ArrayList<String> results = new ArrayList<String>();\n File[] files = new File(filePath).listFiles();\n\n for (File file : files){\n if (file.isFile()) {\n results.add(file.getName());\n }\n }\n return results;\n }", "private static ArrayList<String> getImagesInFileSystem() {\n\t\t// get file list in database\n\t\tArrayList<String> fileNameList = new ArrayList<String>();\n\t\t\n\t\tFile folder = new File(IMAGE_DIRECTORY);\n\t File[] listOfFiles = folder.listFiles();\n\t \n\t for (File currFile : listOfFiles) {\n\t if (currFile.isFile() && !currFile.getName().startsWith(\".\")) {\n\t \t fileNameList.add(currFile.getName());\n\t }\n\t }\n\t \n\t return fileNameList;\n\t}", "public List<String> stringy() {\n\t\t\tList<String> temp = new ArrayList<>();\n\t\t\t// add all the file names\n\t\t\ttemp.addAll(getFileNames());\n\t\t\t// add all the directories [indicated by a \"-\"]\n\t\t\tfor (DirectoryObjects t : subdirectories) {\n\t\t\t\ttemp.add(t.name);\n\t\t\t}\n\n\t\t\treturn temp;\n\t\t}", "static String[] getRepositoryNames(File rootDirFile) {\n\t\tFile[] dirList = rootDirFile.listFiles();\n\t\tif (dirList == null) {\n\t\t\t//throw new FileNotFoundException(\"Folder \" + rootDirFile + \" not found\");\n\t\t\treturn new String[0];\n\t\t}\n\t\tArrayList<String> list = new ArrayList<>(dirList.length);\n\t\tfor (File element : dirList) {\n\t\t\tif (!element.isDirectory() ||\n\t\t\t\tLocalFileSystem.isHiddenDirName(element.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!NamingUtilities.isValidMangledName(element.getName())) {\n\t\t\t\tlog.warn(\"Ignoring repository directory with bad name: \" + element);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlist.add(NamingUtilities.demangle(element.getName()));\n\t\t}\n\t\tCollections.sort(list);\n\t\tString[] names = new String[list.size()];\n\t\treturn list.toArray(names);\n\t}", "public File[] getFiles(File folder) {\n\t\treturn folder.listFiles();\n\t}", "public String[] GetAllFileNames(String sfileName) {\n \tFile dir = new File(fileStorageLocation.toString());\n \tString[] matchingFiles = dir.list(new FilenameFilter() {\n \t public boolean accept(File dir, String name) {\n \t return name.endsWith(\"_\" + sfileName);\n \t }\n \t});\n \t\n \tArrays.sort(matchingFiles);\n return matchingFiles;\n }", "private File[] getResourceFolderFiles(String folder) {\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n\t\tURL url = loader.getResource(folder);\n\t\tString path = url.getPath();\n\n\t\treturn new File(path).listFiles();\n\n\t}", "public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the method on each nested folder\r\n \t listOfFiles(file);\r\n }\r\n }\r\n }", "public String[] listFilesString(String extension) {\n\t\tFile[] FL = listFiles(extension);\n\t\treturn FU.listFilesString(FL);\n\t}", "public static List<File> listFilesRecurse(File dir, FileFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "public static ArrayList<File> getListXMLFiles(File parentDir) {\n ArrayList<File> inFiles = new ArrayList<File>();\n File[] files = parentDir.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n inFiles.addAll(getListXMLFiles(file));\n } else {\n if(file.getName().endsWith(\".xml\")){\n inFiles.add(file);\n }\n }\n }\n return inFiles;\n }", "public void printFileNames() {\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()) {\n System.out.println(f);\n }\n }", "private static ArrayList<File> getFilesFromSubfolders(String directoryName, ArrayList<File> files) {\n\n File directory = new File(directoryName);\n\n // get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList) {\n if (file.isFile() && file.getName().endsWith(\".json\")) {\n files.add(file);\n } else if (file.isDirectory()) {\n getFilesFromSubfolders(file.getAbsolutePath(), files);\n }\n }\n return files;\n }", "@NonNull\n public static File[] listAllFiles(File directory) {\n if (directory == null) {\n return new File[0];\n }\n File[] files = directory.listFiles();\n return files != null ? files : new File[0];\n }", "public static File[] getFilesInDirectory(String path) {\n File f = new File(path);\n File[] file = f.listFiles();\n return file;\n }", "public static List<String> getAllFilesUnderDir(String dirName) {\n\t\tdirName = removeLastSlash(dirName);\n\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\tFile dir = new File(dirName);\n\t\tif (!dir.isDirectory()) {\n\t\t\tthrow new IllegalStateException(\"Not a dir!\");\n\t\t}\n\t\tfor (File file : dir.listFiles()) {\n\t\t\tString fileName = file.getName();\n\t\t\tDebug.println(\"dir: \" + dirName + \" file: \" + fileName);\n\t\t\tfileList.add(dirName + \"/\" + fileName);\n\t\t}\n\t\treturn fileList;\n\t}", "public static List<File> list(File dir) {\n\t\tFile[] fileArray = dir.listFiles();\n\t\tList<File> files = Arrays.asList(fileArray);\n\t\tArrayList<File> rtn = new ArrayList<File>();\n\t\tfiles = sortByName(files);\n\t\trtn.addAll(files);\n\t\treturn rtn;\n\t}", "List<String> getFiles(String path, String searchPattern) throws IOException;", "private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}", "public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}", "public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toURI();\n\t\t String absPath = getResource(\"..\").getPath();\n\t\t\tPath myPath;\n\t\t\tif (uri.getScheme().equals(\"jar\")) {\n\t\t\t FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());\n\t\t\t myPath = fileSystem.getPath(path);\n\t\t\t \n\t\t\t} else {\n\t\t\t myPath = Paths.get(uri);\n\t\t\t}\n\t\t\t\n\t\t\t List<String> l = Files.walk(myPath)\t\n\t\t\t \t\t\t\t\t .map(filePath -> pathAbs2Rel(absPath, filePath))\n\t\t\t \t .collect(Collectors.toList());\n\t\t\t return l;\n\t\t} catch (URISyntaxException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t \n\t}", "public List<Path> getAllPaths();", "public List<File> getFiles(String dir)\r\n\t{\r\n\t\tList<File> result = null;\r\n\t\tFile folder = new File(dir);\r\n\t\tif (folder.exists() && folder.isDirectory())\r\n\t\t{\r\n\t\t\tFile[] listOfFiles = folder.listFiles(); \r\n\t\t\t \r\n\t\t\tresult = new ArrayList<File>();\r\n\t\t\tfor (File file : listOfFiles)\r\n\t\t\t{\r\n\t\t\t\tif (file.isFile())\r\n\t\t\t\t\tresult.add(file);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlogger.error(\"check to make sure that \" + dir + \" exists and you have permission to read its contents\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}", "@Override\n protected List<String> compute() {\n List<String> fileNames = new ArrayList<>();\n\n // FolderProcessor tasks to store the sub-tasks that are going to process the sub-folders stored inside folder.\n List<FolderProcessor> subTasks = new ArrayList<>();\n\n // Get the content of the folder.\n File file = new File(path);\n File content[] = file.listFiles();\n\n //For each element in the folder, if there is a subfolder, create a new FolderProcessor object\n //and execute it asynchronously using the fork() method.\n for (int i = 0; i < content.length; i++) {\n if (content[i].isDirectory()) {\n FolderProcessor task = new FolderProcessor(content[i].getAbsolutePath(), extension);\n task.fork();\n subTasks.add(task);\n } else {\n //Otherwise, compare the extension of the file with the extension you are looking for using the checkFile() method\n //and, if they are equal, store the full path of the file in the list of strings declared earlier.\n\n if (checkFile(content[i].getName())) {\n fileNames.add(content[i].getAbsolutePath());\n }\n }\n }\n\n //If the list of the FolderProcessor sub-tasks has more than 50 elements,\n //write a message to the console to indicate this circumstance.\n if (subTasks.size() > 50) {\n System.out.printf(\"%s: %d tasks ran.\\n\", file.getAbsolutePath(), subTasks.size());\n }\n\n // Add the results from the sub-tasks.\n addResultsFrommSubTasks(fileNames, subTasks);\n\n return fileNames;\n }", "public List<File> getFiles();", "List<String> getDirectories(String path) throws IOException;", "private static void iteratorFilePath(File file){\n while(file.isDirectory()){\n for(File f : file.listFiles()){\n System.out.println(f.getPath());\n iteratorFilePath(f);\n }\n break;\n }\n }", "public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}", "public Set<String> getFileNames() {\n return nameMap.keySet();\n }", "@Override\n public List<GEMFile> getLocalFiles(String directory) {\n File dir = new File(directory);\n List<GEMFile> resultList = Lists.newArrayList();\n File[] fList = dir.listFiles();\n if (fList != null) {\n for (File file : fList) {\n if (file.isFile()) {\n resultList.add(new GEMFile(file.getName(), file.getParent()));\n } else {\n resultList.addAll(getLocalFiles(file.getAbsolutePath()));\n }\n }\n gemFileState.put(STATE_SYNC_DIRECTORY, directory);\n }\n return resultList;\n }", "private String[] findFiles(String dirName, String suffix)\r\n {\r\n File dir = new File(dirName);\r\n if(dir.isDirectory()) {\r\n String[] allFiles = dir.list();\r\n if(suffix == null) {\r\n return allFiles;\r\n }\r\n else {\r\n List<String> selected = new ArrayList<String>();\r\n for(String filename : allFiles) {\r\n if(filename.endsWith(suffix)) {\r\n selected.add(filename);\r\n }\r\n }\r\n return selected.toArray(new String[selected.size()]);\r\n }\r\n }\r\n else {\r\n System.out.println(\"Error: \" + dirName + \" must be a directory\");\r\n return null;\r\n }\r\n }", "public static List<CMSFile> getFolderChildren(String path){\n return CMSFile.find(\"name NOT LIKE '\" + path + \"%/%' and name like '\" + path + \"%'\").fetch();\n }", "public File[] listFiles() {\n\n\t\tFileFilter Ff = f -> true;\n\t\treturn this.listFiles(Ff);\n\t}", "private List<String> getFiles(String path){\n workDir = Environment.getExternalStorageDirectory().getAbsolutePath() + path;\n List<String> files = new ArrayList<String>();\n File file = new File(workDir);\n File[] fs = file.listFiles();\n for(File f:fs)\n if (f.isFile())\n files.add(String.valueOf(f).substring(workDir.length()));\n return files;\n }", "public static List<String> getFileNameList(final BaseManager manager, final AxisID axisID) {\n File[] fileList = FileType.AUTOFIDSEED_DIR.getFile(manager, axisID).listFiles(\n new AutofidseedSelectionAndSorting());\n if (fileList == null || fileList.length == 0) {\n UIHarness.INSTANCE.openMessageDialog(manager, \"No \" + getDescr(manager, axisID)\n + \" files available.\", \"No Such File\", axisID);\n return null;\n }\n String subdir = FileType.AUTOFIDSEED_DIR.getFileName(manager, axisID);\n List<String> fileNameList = new ArrayList<String>();\n for (int i = 0; i < fileList.length; i++) {\n if (fileList[i] != null) {\n fileNameList.add(subdir + File.separator + fileList[i].getName());\n }\n }\n Collections.sort(fileNameList);\n return fileNameList;\n }", "public static File[] listFilesInTree(File dir, FileFilter filter, boolean recordDirectories) {\r\n\t\tList<File> files = new ArrayList<File>();\r\n\t\tlistFilesInTreeHelper(files, dir, filter, recordDirectories);\r\n\t\treturn (File[]) files.toArray(new File[files.size()]);\r\n\t}", "String transcribeFilesInDirectory(String directoryPath);" ]
[ "0.7151123", "0.6899706", "0.6829608", "0.6730263", "0.66447353", "0.65991974", "0.65977186", "0.65941507", "0.6580904", "0.6566586", "0.6527371", "0.64610934", "0.642555", "0.6401879", "0.6400605", "0.6377926", "0.63776135", "0.6311636", "0.6299346", "0.62989897", "0.6298525", "0.62807107", "0.62731594", "0.62653404", "0.62645596", "0.62645596", "0.62390906", "0.6227054", "0.62023574", "0.6174332", "0.6167539", "0.61652327", "0.6158024", "0.6157931", "0.61456007", "0.61445135", "0.6140445", "0.61399627", "0.6125817", "0.6117831", "0.60998994", "0.6085837", "0.60464936", "0.6040762", "0.6029856", "0.60250014", "0.6019141", "0.60172474", "0.60067743", "0.60052574", "0.5998705", "0.59967864", "0.5993898", "0.5985043", "0.594374", "0.5940951", "0.59337056", "0.5925491", "0.5919388", "0.59149444", "0.5913996", "0.5904894", "0.5895725", "0.58955014", "0.5894051", "0.58920294", "0.5890959", "0.58893263", "0.5880303", "0.5876375", "0.58665603", "0.5865737", "0.5853377", "0.584717", "0.58382773", "0.58313406", "0.5822502", "0.5813934", "0.580867", "0.580216", "0.5801707", "0.57967407", "0.57960373", "0.5789479", "0.5785542", "0.5783455", "0.5763969", "0.5762943", "0.5761999", "0.57530093", "0.57409173", "0.57365626", "0.57337874", "0.5721898", "0.5712945", "0.57113606", "0.5709179", "0.5702351", "0.5700596", "0.5700124" ]
0.6334617
17
Append a byte array to the end of the file.
public int append(String filePath, byte[] bytes) throws IOException { int ret; // check in file cache whether such file exists TFSClientFile file = getFileFromCache(filePath); if (file == null) { // cannot find the file, try to get file info from the master ret = getFileInfo(filePath); if (ret != OK) return NOT_FOUND; else { file = getFileFromCache(filePath); assert(file != null); } } // file info is ready now, get the first chunkserver if (file.getChunkServers().length == 0) { if (trace) System.out.println("There is no chunk servers found."); return NOT_FOUND; } String strs[] = file.getChunkServers()[0].split(" "); if (strs.length != 2) { if (trace) System.out.println("Bad chunk server address."); return CLIENT_ERROR; } String ip = strs[0]; int port = 0; try { port = Integer.parseInt(strs[1]); } catch (NumberFormatException e) { if (trace) System.out.println("Bad chunk server address (wrong port)."); return CLIENT_ERROR; } ret = writeRequest(ip, port, file.getAbsolutePath()); if (ret != OK) { return ret; } // at this time, the client knows what is the primary replica it should contact with // then it can start the write process // tell the primary replica to append Socket sock = new Socket(priReplicaIpAddress, priReplicaPort); SocketIO sockIO = new SocketIO(sock); sockIO.write((TFSClient.APPEND + " " + filePath + " " + bytes.length + "\r\n").getBytes()); sockIO.write(bytes); sockIO.flush(); String line = sockIO.readLine(); sockIO.close(); switch (line) { case STR_OK: ret = OK; break; default: ret = SERVER_ERROR; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void append(byte[] bts) {\n checkFile();\n try {\n outputStream.write(bts);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void append(byte[] bytes)\n\t{\n\t\t// create a new byte array object\n\t\tByteArray combined = combineWith(bytes);\n\t\t\n\t\t// reset the array of bytes\n\t\tthis.bytes = combined.getBytes();\n\t}", "private void append(byte[] array, int off, int len) throws IOException {\n if(buffer == null) {\n buffer = allocator.allocate(limit);\n }\n buffer.append(array, off, len);\n }", "public static final void appendBytes(@org.jetbrains.annotations.NotNull java.io.File r2, @org.jetbrains.annotations.NotNull byte[] r3) {\n /*\n java.lang.String r0 = \"$this$appendBytes\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)\n java.lang.String r0 = \"array\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\n java.io.FileOutputStream r0 = new java.io.FileOutputStream\n r1 = 1\n r0.<init>(r2, r1)\n java.io.Closeable r0 = (java.io.Closeable) r0\n r2 = 0\n r1 = r0\n java.io.FileOutputStream r1 = (java.io.FileOutputStream) r1 // Catch:{ Throwable -> 0x001f }\n r1.write(r3) // Catch:{ Throwable -> 0x001f }\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n return\n L_0x001d:\n r3 = move-exception\n goto L_0x0021\n L_0x001f:\n r2 = move-exception\n throw r2 // Catch:{ all -> 0x001d }\n L_0x0021:\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.io.i.appendBytes(java.io.File, byte[]):void\");\n }", "@Override\r\n\tpublic Buffer appendBytes(byte[] bytes) {\n\t\tthis.buffer.put( bytes );\r\n\t\treturn this;\r\n\t}", "public void add(byte b) {\n\t\tif (pointer == size)\n\t\t\twriteToFile();\n\t\tstream.set(pointer++, b);\n\t\twrittenBytes++;\n\t}", "void add(byte[] data, int offset, int length);", "public ByteArrayImplementation append(ByteArrayImplementation a) {\n byte[] result = new byte[data.length + a.getData().length];\n System.arraycopy(data, 0, result, 0, data.length);\n System.arraycopy(a, 0, result, data.length, a.getData().length);\n return new ByteArrayImplementation(result);\n }", "public int addBytes( final byte[] _bytes, final int _offset, final int _length ) {\n\n // sanity checks...\n if( _bytes == null )\n throw new IllegalArgumentException( \"Missing bytes to append\" );\n if( _length - _offset <= 0 )\n throw new IllegalArgumentException( \"Specified buffer has no bytes to append\" );\n\n // figure out how many bytes we can append...\n int appendCount = Math.min( buffer.capacity() - buffer.limit(), _length - _offset );\n\n // remember our old position, so we can put it back later...\n int pos = buffer.position();\n\n // setup to copy our bytes to the right place...\n buffer.position( buffer.limit() );\n buffer.limit( buffer.capacity() );\n\n // copy our bytes...\n buffer.put( _bytes, _offset, appendCount );\n\n // get our source and limit to the right place...\n buffer.limit( buffer.position() );\n buffer.position( pos );\n\n return appendCount;\n }", "public void append(byte b)\n\t{\n\t\tappend(new byte[]\n\t\t\t{\n\t\t\t\tb\n\t\t\t});\n\t}", "public void add(byte[] arrby) {\n ByteBuffer byteBuffer;\n ByteBuffer byteBuffer2 = byteBuffer = Blob.this.getByteBuffer();\n synchronized (byteBuffer2) {\n byteBuffer.position(Blob.this.getByteBufferPosition() + this.offset() + this.mCurrentDataSize);\n byteBuffer.put(arrby);\n this.mCurrentDataSize += arrby.length;\n return;\n }\n }", "public void write(byte b[], int off, int len) throws IOException;", "void writeByteArray(ByteArray array);", "public void AddData(byte [] data, int size)\n\t{\t\n\t\tif (mBufferIndex + size > mBufferSize)\n\t\t{\n\t\t\tUpgradeBufferSize();\n\t\t}\n\t\t\n\t\tSystem.arraycopy(data, 0, mBuffer, mBufferIndex, size);\n\t\tmBufferIndex += size;\n\t}", "public void write(byte b[]) throws IOException\n {\n checkThreshold(b.length);\n getStream().write(b);\n written += b.length;\n }", "public void write(byte b[]) throws IOException;", "public void addData(byte[] arrby) {\n if (arrby == null) return;\n {\n try {\n if (arrby.length == 0) {\n return;\n }\n if ((int)this.len.get() + arrby.length > this.buf.length) {\n Log.w(TAG, \"setData: Input size is greater than the maximum allocated ... returning! b.len = \" + arrby.length);\n return;\n }\n this.buf.add(arrby);\n this.len.set(this.len.get() + (long)arrby.length);\n return;\n }\n catch (Exception exception) {\n Log.e(TAG, \"addData exception!\");\n exception.printStackTrace();\n return;\n }\n }\n }", "public void writeBytes(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}", "public static void write(byte[] data, File file, boolean append) throws IOException {\n OutputStream os = null;\n try {\n os = new FileOutputStream(file, append);\n os.write(data);\n os.flush();\n } finally {\n close(os);\n }\n }", "public static byte[] byteAppend(byte[] buf1, byte[] buf2) {\n byte[] ret = new byte[buf1.length + buf2.length];\n System.arraycopy(buf1, 0, ret, 0, buf1.length);\n System.arraycopy(buf2, 0, ret, buf1.length, buf2.length);\n return ret;\n }", "public void write(final byte[] b) throws IOException {\n\t\twrite(b, 0, b.length);\n\t}", "public void write(byte[] data, long offset);", "public void append(IoBuffer buffer) {\n data.offerLast(buffer);\n updateBufferList();\n }", "public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;", "void appendFileInfo(byte[] key, byte[] value) throws IOException;", "public static byte[] byteAppend(byte[] buf1, byte[] buf2, int len) {\n if (len > buf2.length)\n len = buf2.length;\n byte[] ret = new byte[buf1.length + len];\n System.arraycopy(buf1, 0, ret, 0, buf1.length);\n System.arraycopy(buf2, 0, ret, buf1.length, len);\n return ret;\n }", "public void write​(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}", "@Override\r\n\tpublic void addToBuffer(byte[] buff, int len) {\r\n\t\tbios.write(buff, 0, len);\r\n\t}", "void add(byte[] element);", "public void write(byte[] buffer);", "@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }", "public DocumentMutation append(String path, byte[] value, int offset, int len);", "public int appendData(byte[] data) {\n\t\t\n\t\tsynchronized (mData) {\n\n\t\t\tif (mDataLength + data.length > mData.capacity()) {\n\t\t\t\t//the buffer will overflow... attempt to trim data\n\t\t\t\t\n\t\t\t\tif ((mDataLength + data.length)-mDataPointer <= mData.capacity()) {\n\t\t\t\t\t//we can cut off part of the data to fit the rest\n\t\t\t\t\t\n\t\t\t\t\ttrimData();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//the encoder is gagging\n\t\t\t\t\t\n\t\t\t\t\treturn (mData.capacity() - (mDataLength + data.length)); // refuse data and tell the amount of overflow\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tmData.position(mDataLength);\n\t\t\tmData.put(data);\n\n\t\t\tmDataLength += data.length;\n\t\t\t\n\t\t\tstart(); //if idle\n\t\t\t\n\t\t\treturn (mData.capacity() - mDataLength); //return the remaining amount of space in the buffer\n\t\t}\n\t}", "void write(byte b[]) throws IOException;", "public void addByteArray(String name, byte[] value) {\n BYTES.add(new SimpleMessageObjectByteArrayItem(name, value));\n }", "public static void addBytesToArray(byte[] bytes, ArrayList<Byte> array) {\n // Add each byte to the array\n // Array is an object, so passed by reference\n for (Byte b: bytes) {\n array.add(b);\n }\n }", "void writeBytes(byte[] value);", "void write(byte[] buffer, int bufferOffset, int length) throws IOException;", "public void write(byte b[]) throws IOException {\n baos.write(b, 0, b.length);\n }", "public void testAppendBytesSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String writeString = \"Hello World\";\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n filePersistence.closeFile(fileCreationId);\r\n File file = new File(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"the file should exist\", file.exists());\r\n assertEquals(\"the current file size not correct\", file.length(), writeString.getBytes().length);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "public void writeBytes(byte[] b, int length) throws IOException {\n\t\twriteBytes(b, 0, length);\n\t}", "@Override\n public void write(byte[] buf, int offset, int size) throws IOException;", "public void addBytes( final ByteBuffer _buffer ) {\n\n // sanity checks...\n if( isNull( _buffer ) )\n throw new IllegalArgumentException( \"Missing buffer to append from\" );\n if( _buffer.remaining() <= 0)\n throw new IllegalArgumentException( \"Specified buffer has no bytes to append\" );\n\n // figure out how many bytes we can append, and configure the source buffer accordingly...\n int appendCount = Math.min( buffer.capacity() - buffer.limit(), _buffer.remaining() );\n int specifiedBufferLimit = _buffer.limit();\n _buffer.limit( _buffer.position() + appendCount );\n\n // remember our old position, so we can put it back later...\n int pos = buffer.position();\n\n // setup to copy our bytes to the right place...\n buffer.position( buffer.limit() );\n buffer.limit( buffer.capacity() );\n\n // copy our bytes...\n buffer.put( _buffer );\n\n // get the specified buffer's limit back to its original state...\n _buffer.limit( specifiedBufferLimit );\n\n // get our position and limit to the right place...\n buffer.limit( buffer.position() );\n buffer.position( pos );\n }", "public abstract void write(byte[] b);", "public final void appendTo(BitArray bitArray, byte[] bArr) {\n bitArray.appendBits(this.value, this.bitCount);\n }", "public static void writeByteArrayToFile( final File file, final byte[] data ) throws IOException\n {\n writeByteArrayToFile( file, data, false );\n }", "@Override\n public void extendStream(byte[] bytes) {\n try {\n ByteArrayOutputStream outStream = new ByteArrayOutputStream();\n stream.transferTo(outStream);\n outStream.write(bytes);\n stream = new ByteArrayInputStream(outStream.toByteArray());\n } catch (IOException ex) {\n throw new RuntimeException(\"IO Exception from ByteArrayStream\");\n }\n }", "public void write(byte b[], int off, int len) throws IOException {\n baos.write(b, off, len);\n }", "private void writeBytes() {\n\t\tint needToWrite = rawBytes.length - bytesWritten;\n\t\tint actualWrit = line.write(rawBytes, bytesWritten, needToWrite);\n\t\t// if the total written is not equal to how much we needed to write\n\t\t// then we need to remember where we were so that we don't read more\n\t\t// until we finished writing our entire rawBytes array.\n\t\tif (actualWrit != needToWrite) {\n\t\t\tCCSoundIO.debug(\"writeBytes: wrote \" + actualWrit + \" of \" + needToWrite);\n\t\t\tshouldRead = false;\n\t\t\tbytesWritten += actualWrit;\n\t\t} else {\n\t\t\t// if it all got written, we should continue reading\n\t\t\t// and we reset our bytesWritten value.\n\t\t\tshouldRead = true;\n\t\t\tbytesWritten = 0;\n\t\t}\n\t}", "public void append(byte[] bytes)\n throws IndexOutOfBoundsException {\n if ( le != -1 ) // there exists already an le in byte buffer\n throw new IndexOutOfBoundsException(\"An le value exists in APDU buffer, therefore no append is possible\"); // so appending bytes makes no sense\n super.append(bytes);\n lc += bytes.length;\n }", "public static void write(byte[] data, File file) throws IOException {\n write(data, file, false);\n }", "@Override\r\n public synchronized void write(byte b[], int off, int len ) throws IOException {\r\n \tint avail = buf.length - count;\r\n\r\n \tif ( len <= avail ) {\r\n \t\tSystem.arraycopy( b, off, buf, count, len );\r\n \t\tcount += len;\r\n \t\treturn; // Over step to do flush()\r\n\t } else if ( len > avail ) {\r\n\t \tSystem.arraycopy( b, off, buf, count, avail);\r\n\t \tcount += avail;\r\n\t \tflush();\r\n\t \tSystem.arraycopy( b, avail, b, 0, (len-avail));\r\n\t \twrite(b, 0, (len-avail));\r\n\t } else {\r\n\t \twriteBuffer(b, off, len);\r\n\t }\r\n\t}", "@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}", "@Override\n public StorageOutputStream append(File file) throws IOException {\n\treturn null;\n }", "private void writeBuffer( byte b[], int offset, int length) throws IOException\r\n\t{\r\n\t\t// Write the chunk length as a hex number.\r\n\t\tfinal String size = Integer.toHexString(length);\r\n\t\tthis.out.write(size.getBytes());\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// Write the data.\r\n\t\tif (length != 0 )\r\n\t\t\tthis.out.write(b, offset, length);\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// And flush the real stream.\r\n\t\tthis.out.flush();\r\n\t}", "public void writeBinaryArr(byte[] bytes, String filename, String dest) throws IOException {\n\t\tConfiguration conf = this.getConfig();\r\n\r\n\t\tFileSystem fileSystem = FileSystem.get(conf);\r\n\t\t// Create the destination path including the filename.\r\n\t\tif (dest.charAt(dest.length() - 1) != '/') {\r\n\t\t\tdest = dest + \"/\" + filename;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdest = dest + filename;\r\n\t\t}\r\n\r\n\t\t// Check if the file already exists\r\n\t\tPath path = new Path(dest);\r\n\t\tif (fileSystem.exists(path)) {\r\n\t\t\tSystem.out.println(\"File \" + dest + \" already exists\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Create a new file and write data to it.\r\n\t\tFSDataOutputStream out = fileSystem.create(path);\r\n\r\n\t\tout.write(bytes);\r\n\t\tout.close();\r\n\t}", "public void write(byte b[], int off, int len) throws IOException\n {\n checkThreshold(len);\n getStream().write(b, off, len);\n written += len;\n }", "public void write(byte buffer[],int nrOfBytes) throws VlException\n {\n write(0,buffer,0,nrOfBytes);\n }", "public void write(byte buffer[], int bufferOffset,int nrOfBytes) throws VlException\n {\n write(0,buffer,bufferOffset,nrOfBytes);\n }", "public void addWritten(byte[] value) {\n\n writeSetLock.lock();\n writeSet.add(new TimestampValuePair(ets, value));\n writeSetLock.unlock();\n }", "@Override\n public void write(final byte[] data, final int offset, final int length)\n throws IOException {\n if (offset < 0 || length < 0 || length > data.length - offset) {\n throw new IndexOutOfBoundsException();\n }\n\n writeInternal(data, offset, length);\n }", "public synchronized void addBytes(ByteBuffer bytes) {\n\t _buffers.add(bytes);\n \n }", "public void write(byte b[], int off, int len) throws IOException\n\t{\n\t\tout.write(b, off, len);\n\t\tmd5.update(b, off, len);\n\t}", "public void write​(byte[] b, int off, int len) {\n\t\tbaos.write(b, off, len);\n\t}", "public void write(byte b[], int off, int len) \r\n {\r\n \tif ((off < 0) || (off > b.length) || (len < 0) ||\r\n ((off + len) > b.length) || ((off + len) < 0)) \r\n \t{\r\n \t\tthrow new IndexOutOfBoundsException();\r\n \t} \r\n \telse if (len == 0) \r\n \t{\r\n \t\treturn;\r\n \t}\r\n int newcount = count + len;\r\n if (newcount > buf.length) \r\n {\r\n byte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n System.arraycopy(buf, 0, newbuf, 0, count);\r\n buf = newbuf;\r\n }\r\n System.arraycopy(b, off, buf, count, len);\r\n count = newcount;\r\n }", "public void append(byte b)\n throws IndexOutOfBoundsException {\n if ( le != -1 ) // there exists already an le in byte buffer\n throw new IndexOutOfBoundsException(\"An le value exists in APDU buffer, therefore no append is possible\"); // so appending bytes makes no sense\n super.append(b);\n lc++;\n }", "@Override\n public void write(byte[] data) throws IOException {\n for (int i = 0; i < data.length; i++) {\n write(data[i]);\n }\n }", "public void addToBuffer(String filename, SensorData sensorData){\n ObjectOutputStream outstream;\n try {\n File bufferFile = new File(filename);\n //Checks to see if the buffer file already exists. \n if(bufferFile.exists())\n {\n //Create an AppendableObjectOutputStream to add the the end of the buffer file as opposed to over writeing it. \n outstream = new AppendableObjectOutputStream(new FileOutputStream (filename, true));\n } else {\n //Create an ObjectOutputStream to create a new Buffer file. \n outstream = new ObjectOutputStream(new FileOutputStream (filename)); \n }\n //Adds the SensorData to the end of the buffer file.\n outstream.writeObject(sensorData);\n outstream.close();\n } catch(IOException io) {\n System.out.println(io);\n }\n }", "public void insertNextBytes( byte[] buffer, int byteOffset, int nBytes )\n throws IndexOutOfBoundsException;", "@Override\n public void write(byte[] buf) throws IOException;", "@Override\n public void append( ByteBuffer rtnBuffer) {\n \n //Add the parent\n super.append(rtnBuffer);\n \n //Add the file id\n rtnBuffer.put( handlerId );\n \n //Add the file byte value\n rtnBuffer.put(socksBytes );\n \n }", "public void write( byte[] array, int firstIndex,\n\t\t\tint count );", "void appendTo(Appendable buff) throws IOException;", "public void put(@NonNull final String key, final byte[] value) {\n put(key, value, -1);\n }", "public synchronized void write(byte[] buf, int off, int len)\n\t\t\t\tthrows IOException {\n\t\t\tsuper.write(buf, off, len);\n\t\t}", "@Override\n public void write(byte[] data, int off, int len) throws IOException {\n for (int i = off; i < len; i++) {\n write(data[i]);\n }\n }", "private void writeBytes( ByteBuffer byteBuffer, byte[] bytes, int len )\n {\n if ( null == bytes )\n {\n bytes = new byte[]\n {};\n }\n\n byteBuffer.put( bytes, 0, Math.min( len, bytes.length ) );\n\n // pad as necessary\n int remain = len - bytes.length;\n\n while ( remain-- > 0 )\n {\n byteBuffer.put( ( byte ) 0 );\n }\n }", "@Override\n\tpublic int WriteToByteArray(byte[] data, int pos) {\n\t\treturn 0;\n\t}", "public void testAppendBytesFilePersistenceException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.appendBytes(\"NotExist\", new byte[10]);\r\n fail(\"if no open output stream associate with the fileCreationId, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "public void write(char[] charArray, int offset, int length) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(charArray, offset, length);\r\n }", "public void addData(ByteArrayList bytes) {\n data.add(bytes);\n if (data.size() == 1) {\n listeners.forEach(DataReceiveListener::hasData);\n }\n listeners.forEach(DataReceiveListener::received);\n }", "protected abstract void writeToExternal(byte[] b, int off, int len) throws IOException;", "protected void writeRecordData(RecordHeader header, byte[] data) throws IOException {\n if (data.length > header.dataCapacity) {\n throw new IOException (\"Record data does not fit\");\n }\n header.dataCount = data.length;\n file.seek(header.dataPointer);\n file.write(data, 0, data.length);\n }", "public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void write(byte[] buffer) throws IOException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tout.write(buffer);\n\t\t\tamount+=buffer.length;\n\t\t\tthis.listener.AmountTransferred(amount);\n\t\t}", "public void appendBytesTo (int offset, int length, IQueryBuffer dst) {\r\n\r\n\t\tif (isDirect || dst.isDirect())\r\n\t\t\tthrow new UnsupportedOperationException(\"error: cannot append bytes from/to a direct buffer\");\r\n\r\n\t\tdst.put(this.buffer.array(), offset, length);\r\n\t}", "public static final void writeBytes(@org.jetbrains.annotations.NotNull java.io.File r2, @org.jetbrains.annotations.NotNull byte[] r3) {\n /*\n java.lang.String r0 = \"$this$writeBytes\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)\n java.lang.String r0 = \"array\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\n java.io.FileOutputStream r0 = new java.io.FileOutputStream\n r0.<init>(r2)\n java.io.Closeable r0 = (java.io.Closeable) r0\n r2 = 0\n r1 = r0\n java.io.FileOutputStream r1 = (java.io.FileOutputStream) r1 // Catch:{ Throwable -> 0x001e }\n r1.write(r3) // Catch:{ Throwable -> 0x001e }\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n return\n L_0x001c:\n r3 = move-exception\n goto L_0x0020\n L_0x001e:\n r2 = move-exception\n throw r2 // Catch:{ all -> 0x001c }\n L_0x0020:\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.io.i.writeBytes(java.io.File, byte[]):void\");\n }", "public static void main(String[] args) throws Exception{\n\n FileOutputStream fos = new FileOutputStream(\"C:/Users/e678332/JavaProgrammingPractice/bytearrayfile.txt\");\n FileOutputStream fos1 = new FileOutputStream(\"C:/Users/e678332/JavaProgrammingPractice/bytearrayfile2.txt\");\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n String s = \"byteArrayStream\";\n byte[] b = s.getBytes();\n baos.write(b);\n baos.writeTo(fos);\n baos.writeTo(fos1);\n baos.flush();\n baos.close();\n\n }", "public static byte[] writeToByteArray(File file) throws IOException {\n return writeToByteArray(new FileInputStream(file));\n }", "public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }", "public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void write(byte[] b, int offset, int len) throws IOException {\n if (pos + len < BUFFER_SIZE) {\n System.arraycopy(b, offset, buffer, pos, len);\n pos += len;\n } else {\n flush();\n if (len < BUFFER_SIZE) {\n System.arraycopy(b, offset, buffer, 0, len);\n } else {\n ConsoleRedirect.this.flush(b, offset, len);\n }\n }\n }", "public void testAppendBytesNullPointerException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.appendBytes(null, new byte[0]);\r\n fail(\"if fileCreationId is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.appendBytes(\"valid\", null);\r\n fail(\"if bytes is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "public abstract AbstractLine newLine(byte[] data) throws IOException;", "public ByteArray combineWith(final byte[] bytesToAppend)\n\t{\n\t\t// holds the byte array to return\n\t\tbyte[] byteReturn = new byte[bytes.length + bytesToAppend.length];\n\t\t\n\t\t// copy the first array\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\tbyteReturn[i] = bytes[i];\n\t\t}\n\t\t\n\t\t// append the second array\n\t\tfor (int i = 0; i < bytesToAppend.length; i++)\n\t\t{\n\t\t\tbyteReturn[i + bytes.length] = bytesToAppend[i];\n\t\t}\n\t\t\n\t\t// return the new combined array\n\t\treturn new ByteArray(byteReturn);\n\t}", "public void do_put(byte[] data, String dirPath, int fileLength) throws RemoteException {\r\n\t\t \r\n\t\ttry {\r\n\t\t\tFile inFile = new File(dirPath);\r\n\t\t\tFileOutputStream fos = new FileOutputStream(inFile);\r\n\t\t\tbyte [] content =data;\t\r\n \t\tfos.write(content);\r\n\t\t\tfos.flush();\r\n\t \tfos.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (IOException e) { \r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t}", "public synchronized void append(K key, V val) throws IOException {\n\n\t\t\tlong pos = data.sync();\n\t\t\t// Only write an index if we've changed positions. In a block compressed\n\t\t\t// file, this means we write an entry at the start of each block\n\t\t\t// position.set(pos); // point to current eof\n\t\t\tindex.append(new Pair<K, Long>(key, keySchema, pos, Schema\n\t\t\t\t\t.create(Type.LONG)));\n\n\t\t\tdata.append(new Pair<K, V>(key, keySchema, val, valueSchema)); // append\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// key/value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to data\n\t\t\tsize++;\n\t\t}", "public void appendRecord(IndexRecord record, SHPEnvelope mbr)\n throws IOException \n {\n offset = raf.length();\n raf.seek(offset);\n raf.write(record.writeIndexRecord());\n offset = offset + INDEX_RECORD_LENGTH;\n //actualize mbr\n if (fileMBR.west > mbr.west) {\n fileMBR.west = mbr.west;\n }\n if (fileMBR.east < mbr.east) {\n fileMBR.east = mbr.east;\n }\n if (fileMBR.south > mbr.south) {\n fileMBR.south = mbr.south;\n }\n if (fileMBR.north < mbr.north) {\n fileMBR.north = mbr.north;\n }\n raf.seek(36);\n raf.write(fileMBR.writeLESHPEnvelope());\n\n //actualize file length\n filelength = (int) offset / 2;\n }", "public void addMessage(byte[] message) throws RemoteException;", "public static byte[] concatBytes(byte[] ...bytes) throws IOException\n {\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n for(byte[] b : bytes){\n output.write(b);\n }\n return output.toByteArray();\n \n }", "public void FilesBufferWrite2Append() throws IOException {\n \ttry { \t\n \t\t\n \t \t/* This logic will check whether the file\n \t \t \t * exists or not. If the file is not found\n \t \t \t * at the specified location it would create\n \t \t \t * a new file*/\n \t \t \tif (!file.exists()) {\n \t \t\t file.createNewFile();\n \t \t \t}\n \t\t\n \t \t \t//KP : java.nio.file.Files.write - NIO is buffer oriented & IO is stream oriented!]\n \t\tString str2Write = \"\\n\" + LocalDateTime.now().toString() + \"\\t\" + outPrintLn + \"\\n\";\n \t\tFiles.write(Paths.get(outFilePath), str2Write.getBytes(), StandardOpenOption.APPEND);\n \t\t\n \t}catch (IOException e) {\n\t \t// TODO Auto-generated catch block\n\t \te.printStackTrace();\t\t\n\t\t\tSystem.out.print(outPrintLn);\n\t\t\tSystem.out.println(outPrintLn);\t\n \t}\n }" ]
[ "0.7386633", "0.72251004", "0.6994746", "0.6837821", "0.66522473", "0.64624804", "0.64049125", "0.6366513", "0.6306506", "0.6305124", "0.61267745", "0.6074858", "0.6069137", "0.60156196", "0.60077006", "0.59809387", "0.5955286", "0.59534574", "0.5945583", "0.58442956", "0.5836292", "0.5821798", "0.5820662", "0.5814142", "0.5809154", "0.5806218", "0.58020604", "0.5798841", "0.5798206", "0.57863766", "0.57444686", "0.5738665", "0.57384557", "0.57213134", "0.5704965", "0.5702568", "0.5699023", "0.5696124", "0.56667686", "0.56600976", "0.56550986", "0.56527215", "0.56380576", "0.5623782", "0.5603801", "0.55890155", "0.557444", "0.5564407", "0.55615205", "0.5526468", "0.55048054", "0.55020905", "0.5495064", "0.5490691", "0.54798776", "0.54671365", "0.5455428", "0.5453153", "0.544791", "0.54450136", "0.54271513", "0.54094774", "0.5385592", "0.53831273", "0.53668684", "0.53626096", "0.53482103", "0.53443396", "0.53182805", "0.53152555", "0.5312617", "0.53036803", "0.52904415", "0.5286643", "0.52786916", "0.52446645", "0.524341", "0.5200095", "0.51745737", "0.51736724", "0.5170795", "0.5156362", "0.5145508", "0.51398844", "0.5137268", "0.51194185", "0.51170546", "0.51003474", "0.508791", "0.5086788", "0.50762403", "0.50592107", "0.5045694", "0.50429267", "0.5040621", "0.5034735", "0.5027328", "0.5024038", "0.50080585", "0.5002782", "0.49882722" ]
0.0
-1
Read the data from a file at a specific location and length
public byte[] read(String filePath, int offset, int dataLength) throws IOException { int ret; TFSClientFile file = getFileFromCache(filePath); if (file == null) { // cannot find the file, try to get file info from the master ret = getFileInfo(filePath); if (ret != OK) return null; else { file = getFileFromCache(filePath); assert(file != null); } } // now the file info is ready // pick-up a chunkserver to read from List<String> servers = new LinkedList<String>(); for (String server : file.getChunkServers()) servers.add(server); Random rand = new Random(); int index = 0; while (!servers.isEmpty()) { index = rand.nextInt(servers.size()); String[] strs = servers.get(index).split(" "); servers.remove(index); SocketIO sockIO = new SocketIO(strs[0], Integer.parseInt(strs[1])); if (dataLength > 0) sockIO.write((READ + " " + filePath + " " + offset + " " + dataLength + "\r\n").getBytes()); else sockIO.write((READ + " " + filePath + " " + offset + "\r\n").getBytes()); sockIO.flush(); String line = sockIO.readLine(); if (line.startsWith(STR_OK)) { strs = line.split(" "); int length = Integer.parseInt(strs[1]); byte[] data = new byte[length]; sockIO.read(data); sockIO.close(); return data; } else { sockIO.close(); return null; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static IRubyObject read19(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject length, IRubyObject offset, RubyHash options) {\n // FIXME: process options\n \n RubyString pathStr = RubyFile.get_path(context, path);\n Ruby runtime = context.getRuntime();\n failIfDirectory(runtime, pathStr);\n RubyIO file = newFile(context, recv, pathStr);\n \n try {\n if (!offset.isNil()) file.seek(context, offset);\n return !length.isNil() ? file.read(context, length) : file.read(context);\n } finally {\n file.close();\n }\n }", "public byte[] readfile(int pos) throws IOException\n {\n byte[] bytes = new byte[1024];\n f.seek(1024*pos);\n f.read(bytes);\n return bytes;\n }", "UnalignedRecords read(long position, int size) throws IOException;", "int read(long pos, byte[] buf)throws IOException;", "public abstract byte[] readData(int address, int length);", "public int read(ByteBuffer buf, int bufPos, int siz, long filePos)\n\t\t\tthrows IOException, DataArchivedException {\n\t\t// this.addAio();\n\t\tif (SDFSLogger.isDebug())\n\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\"reading \" + df.getMetaFile().getPath() + \" at \" + filePos\n\t\t\t\t\t\t\t+ \" \" + buf.capacity() + \" bytes\" + \" bufpos=\"\n\t\t\t\t\t\t\t+ bufPos + \" siz=\" + siz);\n\t\tLock l = df.getReadLock();\n\t\tl.lock();\n\t\ttry {\n\t\t\tif (filePos >= df.getMetaFile().length() && !Main.blockDev) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tlong currentLocation = filePos;\n\t\t\tbuf.position(bufPos);\n\t\t\tint bytesLeft = siz;\n\t\t\tlong futureFilePostion = bytesLeft + currentLocation;\n\t\t\tif (Main.blockDev && futureFilePostion > df.getMetaFile().length())\n\t\t\t\tdf.getMetaFile().setLength(futureFilePostion, false);\n\t\t\tif (futureFilePostion > df.getMetaFile().length()) {\n\t\t\t\tbytesLeft = (int) (df.getMetaFile().length() - currentLocation);\n\t\t\t}\n\t\t\tint read = 0;\n\t\t\twhile (bytesLeft > 0) {\n\t\t\t\tDedupChunkInterface readBuffer = null;\n\t\t\t\tint startPos = 0;\n\t\t\t\tbyte[] _rb = null;\n\t\t\t\ttry {\n\t\t\t\t\twhile (readBuffer == null) {\n\t\t\t\t\t\treadBuffer = df.getWriteBuffer(currentLocation);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstartPos = (int) (currentLocation - readBuffer\n\t\t\t\t\t\t\t\t\t.getFilePosition());\n\t\t\t\t\t\t\tint _len = readBuffer.getLength() - startPos;\n\t\t\t\t\t\t\tif (bytesLeft < _len)\n\t\t\t\t\t\t\t\t_len = bytesLeft;\n\t\t\t\t\t\t\t_rb = readBuffer.getReadChunk(startPos, _len);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbuf.put(_rb);\n\t\t\t\t\t\t\tdf.getMetaFile().getIOMonitor()\n\t\t\t\t\t\t\t\t\t.addBytesRead(_len, true);\n\t\t\t\t\t\t\tcurrentLocation = currentLocation + _len;\n\t\t\t\t\t\t\tbytesLeft = bytesLeft - _len;\n\t\t\t\t\t\t\tread = read + _len;\n\t\t\t\t\t\t\tif (Main.volume.isClustered())\n\t\t\t\t\t\t\t\treadBuffer.flush();\n\t\t\t\t\t\t} catch (BufferClosedException e) {\n\t\t\t\t\t\t\tif (SDFSLogger.isDebug())\n\t\t\t\t\t\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\t\t\t\t\t\"trying to write again\");\n\t\t\t\t\t\t\treadBuffer = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch(DataArchivedException e) {\n\t\t\t\t\tif(Main.checkArchiveOnRead){\n\t\t\t\t\t\tSDFSLogger.getLog().warn(\"Archived data found in \"+ df.getMetaFile().getPath()+ \" at \" + startPos + \". Recovering data from archive. This may take up to 4 hours\");\n\t\t\t\t\t\tthis.recoverArchives();\n\t\t\t\t\t\tthis.read(buf, bufPos, siz, filePos);\n\t\t\t\t\t}\n\t\t\t\t\telse throw e;\n\t\t\t\t}catch (FileClosedException e) {\n\t\t\t\t\tSDFSLogger.getLog().warn(\n\t\t\t\t\t\t\tdf.getMetaFile().getPath()\n\t\t\t\t\t\t\t\t\t+ \" is closed but still writing\");\n\t\t\t\t\tthis.closeLock.lock();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdf.registerChannel(this);\n\t\t\t\t\t\tthis.closed = false;\n\t\t\t\t\t\tthis.read(buf, bufPos, siz, filePos);\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tthis.closeLock.unlock();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSDFSLogger.getLog().fatal(\"Error while reading buffer \", e);\n\n\t\t\t\t\tthrow new IOException(\"Error reading buffer\");\n\t\t\t\t}\n\t\t\t\tif (currentLocation == df.getMetaFile().length()) {\n\t\t\t\t\treturn read;\n\t\t\t\t}\n\n\t\t\t\tthis.currentPosition = currentLocation;\n\t\t\t}\n\t\t\treturn read;\n\t\t} catch (DataArchivedException e) {\n\t\t\tthrow e;\n\t\t} catch (Exception e) {\n\t\t\tSDFSLogger.getLog().error(\n\t\t\t\t\t\"unable to read \" + df.getMetaFile().getPath(), e);\n\t\t\tMain.volume.addReadError();\n\t\t\tthrow new IOException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tdf.getMetaFile().setLastAccessed(System.currentTimeMillis());\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tl.unlock();\n\t\t\t// this.removeAio();\n\t\t}\n\n\t}", "@Override\r\n\tpublic String getSampleData(int dataLength, String charset) throws FileSystemUtilException {\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect();\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t getFileData(dataLength,charset);\r\n\t\t\t}\r\n\t\t\tcatch(Exception ee)\r\n\t\t\t{\r\n\t\t\t throw ee;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(FileSystemUtilException ee){\r\n\t\t\tif(ee.getErrorCode() != null && ee.getErrorCode().equals(\"ET0101\")){\r\n\t\t\t\tthrow new FileSystemUtilException(\"FL0070\");\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tthrow new FileSystemUtilException(ex);\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t disconnect();\r\n\t\t}\r\n\t\t\r\n\t\treturn sampleData;\r\n\r\n\t}", "@Test\n public void readPartialFile() throws Exception {\n long start = 3;\n long end = ((ReadHandlerTest.CHUNK_SIZE) * 10) - 99;\n long checksumExpected = populateInputFile(((ReadHandlerTest.CHUNK_SIZE) * 10), start, end);\n mReadHandler.onNext(buildReadRequest(start, ((end + 1) - start)));\n checkAllReadResponses(mResponses, checksumExpected);\n }", "public static String randomAccessRead() {\n String s = \"\";\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"r\");\n f.skipBytes(14);\n s = f.readLine();\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n return s;\n }", "int read(byte[] buffer, int bufferOffset, int length) throws IOException;", "void readFile(String location) throws FileNotFoundException,GPSException{\n\t\tFile file = new File(location);\n\t\tif(!file.exists()) {\n\t\t\tthrow new FileNotFoundException(\"Address doesn't exist\");\n\t\t}\n\t\t//Use scanner to get the data from the file\n\t\tScanner scanner = new Scanner(new File(location));\n\t\t//Read data line-by-line\n\t\tScanner valuescanner = new Scanner(scanner.nextLine());\n\t\tint count = 0,num1=0;//count is used to decide where the data should be put, num1 is to get the total amount of available points\n\t\tdo{\n\t\t\tvaluescanner = new Scanner(scanner.nextLine());\n\t\t\tvaluescanner.useDelimiter(\",\");//split up the line on commas\n\t\t\tZonedDateTime time=null;\n\t\t\tdouble longi=0,latit=0,eleva=0;\n\t\t\twhile(count<4) {\n\t\t\t\tString data = valuescanner.next();\n\t\t\t\t//if data doesn't finish fetching but scanner fetch no data,then there is an exception\n\t\t\t\tif(count<3&&!valuescanner.hasNext()) {\n\t\t\t\t\tthrow new GPSException(\"Missing Data\");\n\t\t\t\t}\n\t\t\t\tif(count==0) {\n\t\t\t\t\t//timetamp is put\n\t\t\t\t\ttime= ZonedDateTime.parse(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==1) {\n\t\t\t\t\t//longitude is put\n\t\t\t\t\tlongi = Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==2) {\n\t\t\t\t\t//latitude is put\n\t\t\t\t\tlatit= Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==3) {\n\t\t\t\t\t//elevation is put\n\t\t\t\t\televa= Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tPoint res = new Point(time,longi,latit,eleva);//initialize the point to be put into the sequence\n\t\t\tpoints[num1]=res;\n\t\t\tcount=0;\n\t\t\tnum1++;\n\t\t}while(scanner.hasNextLine()&&num1<=200);\n\t\tsize=num1;//get the size in advance\n\t\tscanner.close();\n\t\tvaluescanner.close();\n\t}", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "long getFileOffset();", "public ByteBuffer filedata(int pos) throws IOException\n {\n ByteBuffer buf = ByteBuffer.allocate(1024);\n \t buf.order(ByteOrder.LITTLE_ENDIAN);\n \t byte[] bytes = new byte[1024];\n f.seek(1024*pos);\n \t f.read(bytes);\n \t buf.put(bytes);\n \t return buf;\n }", "private long readUntil(long pos) throws IOException {\n/* 86 */ if (pos < this.length) {\n/* 87 */ return pos;\n/* */ }\n/* */ \n/* 90 */ if (this.foundEOS) {\n/* 91 */ return this.length;\n/* */ }\n/* */ \n/* 94 */ int sector = (int)(pos >> 9L);\n/* */ \n/* */ \n/* 97 */ int startSector = this.length >> 9;\n/* */ \n/* */ \n/* 100 */ for (int i = startSector; i <= sector; i++) {\n/* 101 */ byte[] buf = new byte[512];\n/* 102 */ this.data.add(buf);\n/* */ \n/* */ \n/* 105 */ int len = 512;\n/* 106 */ int off = 0;\n/* 107 */ while (len > 0) {\n/* 108 */ int nbytes = this.src.read(buf, off, len);\n/* */ \n/* 110 */ if (nbytes == -1) {\n/* 111 */ this.foundEOS = true;\n/* 112 */ return this.length;\n/* */ } \n/* 114 */ off += nbytes;\n/* 115 */ len -= nbytes;\n/* */ \n/* */ \n/* 118 */ this.length += nbytes;\n/* */ } \n/* */ } \n/* */ \n/* 122 */ return this.length;\n/* */ }", "protected int read(byte[] buffer, int offset, int length) throws IOException {\n return mTiffStream.read(buffer, offset, length);\n }", "public byte[] read(long pos) {\n final long tic = System.nanoTime();\n if (log.isTraceEnabled()) log.trace(\"read mapped from {} @ {}\", virtualFileNumber, pos);\n int size = readInt(pos);\n byte[] buf = new byte[size];\n super.read(pos + 4, buf);\n if (log.isTraceEnabled()) log.trace(\"read mapped {} bytes from {} @ {}\", size, virtualFileNumber, pos);\n\n blobStoreMetricsAdders.readCounter.increment();\n blobStoreMetricsAdders.bytesRead.add(recordSize(buf));\n blobStoreMetricsAdders.readTimer.add(System.nanoTime() - tic);\n return buf;\n }", "public static void readFromLongFile(){\n String line;\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(\"longFile.txt\")));\n while ((line = readLine(br)) != null) {\n //nothing is done here\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void OnFileIncoming(int length);", "private ByteList fread(RubyThread thread, int length) throws IOException, BadDescriptorException {\n Stream stream = openFile.getMainStreamSafe();\n int rest = length;\n waitReadable(stream);\n ByteList buf = blockingFRead(stream, thread, length);\n if (buf != null) {\n rest -= buf.length();\n }\n while (rest > 0) {\n waitReadable(stream);\n openFile.checkClosed(getRuntime());\n stream.clearerr();\n ByteList newBuffer = blockingFRead(stream, thread, rest);\n if (newBuffer == null) {\n // means EOF\n break;\n }\n int len = newBuffer.length();\n if (len == 0) {\n // TODO: warn?\n // rb_warning(\"nonblocking IO#read is obsolete; use IO#readpartial or IO#sysread\")\n continue;\n }\n if (buf == null) {\n buf = newBuffer;\n } else {\n buf.append(newBuffer);\n }\n rest -= len;\n }\n if (buf == null) {\n return ByteList.EMPTY_BYTELIST.dup();\n } else {\n return buf;\n }\n }", "public int readBytes(FileChannel out, long position, int length)\r\n/* 903: */ throws IOException\r\n/* 904: */ {\r\n/* 905:910 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 906:911 */ return super.readBytes(out, position, length);\r\n/* 907: */ }", "public abstract T readDataFile(String fileLine);", "public long getFileOffset();", "public int readBytes(FileChannel out, long position, int length)\r\n/* 228: */ throws IOException\r\n/* 229: */ {\r\n/* 230:248 */ checkReadableBytes(length);\r\n/* 231:249 */ int readBytes = getBytes(this.readerIndex, out, position, length, true);\r\n/* 232:250 */ this.readerIndex += readBytes;\r\n/* 233:251 */ return readBytes;\r\n/* 234: */ }", "private int fillBuffer() throws IOException {\r\n int n = super.read(buffer, 0, BUF_SIZE);\r\n if (n >= 0) {\r\n file_pos +=n;\r\n buf_end = n;\r\n buf_pos = 0;\r\n }\r\n return n;\r\n }", "public void read(final WritableByteChannel socketChanel,long offset,final long range) throws IOException {\n\t\tif(offset<this.start){\n\t\t\toffset=this.start;\n\t\t}\n\t\tlong start_off=offset-this.start;\n\t\tlong end_off=range>this.readlimit?readlimit:range;\n\t\tlogger.info(\"start_off:\"+start_off+\",end_off\"+end_off);\n\t\tthis.filePage.read(socketChanel,start_off,end_off);\n\t}", "static void read(DataInputStream f, byte[] b, int posicion, int longitud) throws Exception {\n while (longitud > 0) {\n int n = f.read(b, posicion, longitud);\n posicion += n;\n longitud -= n;\n }\n }", "private static void readNIO(File file) throws IOException {\n FileChannel channel = new RandomAccessFile(file, \"rw\").getChannel();\n //channel.position(2*N);\n ByteBuffer buf = ByteBuffer.allocateDirect(CHUNK);\n long t = System.nanoTime();\n for (int i = 0; i < N/CHUNK; i++) {\n channel.position(i * CHUNK);\n channel.read(buf);\n }\n System.out.println((System.nanoTime() - t) / 1_000_000 + \" ms \" + channel.position() + \" bytes\");\n\n channel.close();\n }", "private int readData(byte[] buf, int off, int len) throws IOException {\n\t\tint bytesRead = 0;\n\t\twhile (bytesRead < len) {\n\t\t int n = IOUtils.wrappedReadForCompressedData(in, buf, off + bytesRead,\n\t\t\t\t\t\t\t\t len - bytesRead);\n\t\t if (n < 0) {\n\t\t\treturn bytesRead;\n\t\t }\n\t\t bytesRead += n;\n\t\t}\n\t\treturn len;\n\t }", "private void readLOC() throws java.io.IOException {\n byte locbuf[] = new byte[LOCHDR];\n ZipFile zf = this.zf;\n ZipEntry ze = this.ze;\n long offset = ze.getOffset();\n if (TRACE)\n System.out.println(this +\": reading LOC, offset=\" + offset);\n zf.read(offset, locbuf, 0, LOCHDR);\n if (ZipFile.get32(locbuf, 0) != LOCSIG) {\n throw new java.util.zip.ZipException(\n \"invalid LOC header signature\");\n }\n // Get length and position of entry data\n long count = ze.getCompressedSize();\n this.count = count;\n if (TRACE)\n System.out.println(this +\": count=\" + count);\n long pos =\n ze.getOffset()\n + LOCHDR\n + ZipFile.get16(locbuf, LOCNAM)\n + ZipFile.get16(locbuf, LOCEXT);\n this.pos = pos;\n if (TRACE)\n System.out.println(this +\": pos=\" + pos);\n long cenpos = zf.cenpos;\n if (TRACE)\n System.out.println(this +\": cenpos=\" + cenpos);\n if (pos + count > cenpos) {\n throw new java.util.zip.ZipException(\n \"invalid LOC header format\");\n }\n }", "int readFrom(byte[] iStream, int pos, ORecordVersion version);", "@Override\n public void readTilePositions(BufferedRandomAccessFile braf) throws IOException {\n row0 = braf.leReadInt();\n col0 = braf.leReadInt();\n nRows = braf.leReadInt();\n nCols = braf.leReadInt();\n this.row1 = row0 + nRows - 1;\n this.col1 = col0 + nCols - 1;\n if (nCols == 0) {\n offsets = null;\n // no position records follow in file.\n } else {\n offsets = new long[nRows][];\n for (int i = 0; i < nRows; i++) {\n offsets[i] = new long[nCols];\n }\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {\n offsets[i][j] = braf.leReadLong();\n }\n }\n }\n }", "@Nonnull\n public Memory read(@Nonnegative long offset, @Nonnegative int length) {\n return this.read(this.resolvePointer(offset), length);\n }", "public ByteBuffer read(int location)\n throws DataOrderingException;", "int getLength() throws IOException;", "public int readFile(SrvSession sess, TreeConnection tree, NetworkFile file, byte[] buf, int bufPos, int siz, long pos)\n throws IOException {\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB readFile() filePos=\" + pos + \", len=\" + siz);\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n\n // Check that the network file is our type\n\n int rxsiz = 0;\n \n if (file instanceof DBNetworkFile) {\n\n // Access the JDBC network file\n \n DBNetworkFile jfile = (DBNetworkFile) file;\n\n // Check if there are any locks on the file\n \n // Check if there are any locks on the file\n \n if ( jfile.hasFileState() && jfile.getFileState().hasActiveLocks()) {\n \n // Check if this session has write access to the required section of the file\n \n if ( jfile.getFileState().canReadFile( pos, siz, sess.getProcessId()) == false)\n throw new LockConflictException();\n }\n \n // Debug\n \n if ( jfile.getFileState().getOpenCount() == 0)\n Debug.println(\"**** readFile() Open Count Is ZERO ****\");\n \n // Read from the file\n\n rxsiz = jfile.readFile(buf, siz, bufPos, pos);\n \n // Check if we have reached the end of file\n \n if ( rxsiz == -1)\n rxsiz = 0;\n }\n\n // Return the actual read length\n\n return rxsiz;\n }", "public void connect(File file, long position, long size) throws FileNotFoundException;", "@Test\n public void testBasicRead() throws IOException {\n String output = singleLineFileInit(file, Charsets.UTF_8);\n\n PositionTracker tracker = new DurablePositionTracker(meta, file.getPath());\n ResettableInputStream in = new ResettableFileInputStream(file, tracker);\n\n String result = readLine(in, output.length());\n assertEquals(output, result);\n\n String afterEOF = readLine(in, output.length());\n assertNull(afterEOF);\n\n in.close();\n }", "int getNumberOfLines(int offset, int length) throws BadLocationException;", "long getFileLength(String path) throws IOException;", "private static void readFile(File file) throws IOException {\n try (FileInputStream is = new FileInputStream(file)) {\n byte[] buf = new byte[CHUNK];\n int count = 0;\n long t = System.nanoTime();\n for (int i = 0; i < N/CHUNK; i++) {\n int c = is.read(buf);\n if (c == -1) {\n System.out.println(\"EOF\");\n break;\n } else if (c < 10) {\n System.out.println(\"PARTIAL\");\n break;\n }\n count += c;\n }\n System.out.println((System.nanoTime() - t) / 1_000_000 + \" ms \" + count + \" bytes\");\n }\n }", "public String getSrcLong(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[11];\n\t}", "@Test\n public void readFullFile() throws Exception {\n long checksumExpected = populateInputFile(((ReadHandlerTest.CHUNK_SIZE) * 10), 0, (((ReadHandlerTest.CHUNK_SIZE) * 10) - 1));\n mReadHandler.onNext(buildReadRequest(0, ((ReadHandlerTest.CHUNK_SIZE) * 10)));\n checkAllReadResponses(mResponses, checksumExpected);\n }", "public int read(byte[] p_bytes, int p_offset, int p_length);", "public void readFile();", "private void openAndReadFile() throws IOException {\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textreader = new BufferedReader(fr);\n\t\tString line;\n\t\tString[] parsedLine;\n\t\twhile ((line = textreader.readLine()) != null) {\n\t\t\tparsedLine = pattern.split(line);\n\t\t\tif (parsedLine.length == 2) {\n\t\t\t\tfileData.put(parsedLine[0], parsedLine[1]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Couldn't read line \" + line + \" in \" + path);\n\t\t\t}\n\t\t}\n\t\ttextreader.close();\n\t\tfr.close();\n\t}", "protected abstract void readFile();", "@Override\n public byte[] readBlock(long offset, int length) {\n\n if (length == 0) {\n return new byte[]{};\n }\n\n Range range = getRange(offset, length);\n\n byte[] block = new byte[length];\n ByteBuffer buffer = ByteBuffer.wrap(block);\n\n readWriteLock.readLock().lock();\n try {\n range.visitFiles(new RangeFileVisitor() {\n\n int offsetInBlock = 0;\n\n @Override\n public void visitFile(StorageUnit unit, long off, long lim) {\n\n long len = lim - off;\n if (len > Integer.MAX_VALUE) {\n throw new BtException(\"Too much data requested\");\n }\n\n if (((long) offsetInBlock) + len > Integer.MAX_VALUE) {\n // overflow -- isn't supposed to happen unless the algorithm in range is incorrect\n throw new BtException(\"Integer overflow while constructing block\");\n }\n\n buffer.position(offsetInBlock);\n buffer.limit(offsetInBlock + (int)len);\n unit.readBlock(buffer, off);\n offsetInBlock += len;\n }\n });\n } finally {\n readWriteLock.readLock().unlock();\n }\n\n return block;\n }", "private static int[] readData(int size, String filename) throws FileNotFoundException {\n\t\tint[] input = new int[size];\t\n\t\tScanner scanner = new Scanner(new File(filename));\n \n int i = 0;\n while (scanner.hasNext() && i < size)\n {\n \tinput[i] = Integer.parseInt(scanner.next());\n \ti++;\n }\n scanner.close();\n\t return input;\n\t}", "protected long readDataStartHeader() throws IOException {\n file.seek(DATA_START_HEADER_LOCATION);\n return file.readLong();\n }", "public void fileRead(String filename) throws IOException;", "private void fileRead(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// create file\n\t\t\tFile file = new File(path);\n\t\t\tFileInputStream fileStream = new FileInputStream(file);\n\t\t\t\n\t\t\t// data read\n\t\t\tthis.dataContent = new byte[(int)file.length()];\n\t\t\tint ret = fileStream.read(this.dataContent, 0, (int)file.length());\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File Not Found : \" + e.getMessage());\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed File Read : \" + e.getMessage());\n\t\t}\n\t\t\n\t}", "public LinkedList<Packet> readFile(int packetLength) throws FileNotFoundException {\r\n // create a new data file from default path\r\n LinkedList<Packet> packets = null;\r\n BufferedReader bufferedReader = null;\r\n\r\n FileReader fileReader = new FileReader(defaultPath + fileName);\r\n if (fileReader != null) {\r\n // store the content of the file\r\n StringBuilder contents = new StringBuilder();\r\n String line;\r\n\r\n try {\r\n bufferedReader = new BufferedReader(fileReader);\r\n // read the lines from the files and add it to content\r\n while ((line = bufferedReader.readLine()) != null) {\r\n contents.append(line + \"\\n\");\r\n }\r\n // once all data is present in content create the packets\r\n packets = buildPackets(fileName, contents.toString(), packetLength);\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n // close out the bufferedReader and fileReader\r\n if (bufferedReader != null)\r\n bufferedReader.close();\r\n if (fileReader != null)\r\n fileReader.close();\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }//end of finally try/catch block\r\n }//end of finally\r\n\r\n }//end of fileReader != null\r\n return packets;\r\n }", "public static void main(String[] args) throws IOException {\n\t\tRandomAccessFile file = new RandomAccessFile(\"C:/Users/Administrator/Desktop/cs.txt\", \"rw\");\n\t\tFileChannel channle = file.getChannel();\n\t\tByteBuffer buffer = ByteBuffer.allocate(10);\n\t\tint readByte = channle.read(buffer);\n\t\twhile (readByte > -1) {\n\t\t\tSystem.out.println(\"readLength:\" + readByte);\n\t\t\twhile (buffer.hasRemaining()) {\n\t\t\t\tSystem.out.println(buffer.get());\n\t\t\t}\n\t\t\tbuffer.clear();\n\t\t\treadByte = channle.read(buffer);\n\t\t}\n\t}", "public ByteBuffer read(int fileId) throws IOException {\n Assert.isPositive(fileId, \"File Id must be positive\");\n Assert.isTrue(fileId <= 0xFFFFFF, \"File Id is 3 bytes at most\");\n\n if(fileId * INDEX_BLOCK_LEN >= index.size()) {\n // We avoid slipping off the edge of the file and trying to access data that doesn't exist.\n // This isn't the only possible reason a file doesn't exist though!\n throw new FileNotFoundException(\"no such file (\" + fileId + \")\");\n }\n\n ByteBuffer entry = ByteBuffer.allocate(INDEX_BLOCK_LEN);\n index.read(entry, fileId * INDEX_BLOCK_LEN);\n entry.flip();\n\n int size = readTriByte(entry);\n int nextBlock = readTriByte(entry);\n\n if (nextBlock == 0) {\n throw new FileNotFoundException(\"no such file (\" + fileId + \") - it may have been erased or not initialised\");\n }\n\n ByteBuffer contents = ByteBuffer.allocate(size);\n ByteBuffer chunk = ByteBuffer.allocate(TOTAL_BLOCK_LEN);\n\n int chunkNumber = 0;\n while(contents.remaining() > 0) {\n data.read(chunk, nextBlock * TOTAL_BLOCK_LEN);\n chunk.flip();\n\n Assert.equal(fileId, chunk.getShort() & 0xFFFF);\n Assert.equal(chunkNumber, chunk.getShort() & 0xFFFF);\n\n nextBlock = readTriByte(chunk);\n Assert.equal(indexId, chunk.get());\n\n // We read as much of the chunk as we can, until the buffer is full. Once the buffer\n // is full, the rest of the chunk is garbage (and there should be no more chunks)\n int limit = chunk.limit();\n if(chunk.remaining() > contents.remaining()) {\n chunk.limit(chunk.position() + contents.remaining());\n }\n\n contents.put(chunk);\n chunk.limit(limit);\n\n chunk.flip();\n chunkNumber++;\n }\n\n contents.flip();\n\n return contents;\n }", "private void readBytesWrap(int toRead, int offset) {\n\t\tint bytesRead = 0;\n\t\ttry {\n\t\t\twhile (bytesRead < toRead) {\n\n\t\t\t\tint actualRead = 0;\n\t\t\t\tsynchronized (ais) {\n\t\t\t\t\tactualRead = ais.read(rawBytes, bytesRead + offset, toRead - bytesRead);\n\t\t\t\t}\n\t\t\t\tif (-1 == actualRead) {\n\t\t\t\t\tSystem.out.println(\"!!!!!!! Looping with numLoops \" + numLoops);\n\t\t\t\t\tsetMillisecondPosition(0);\n\t\t\t\t\tif (numLoops != CCSoundIO.LOOP_CONTINUOUSLY) {\n\t\t\t\t\t\tnumLoops--;\n\t\t\t\t\t}\n\t\t\t\t} else if (actualRead == 0) {\n\t\t\t\t\t// we want to prevent an infinite loop\n\t\t\t\t\t// but this will hopefully never happen because\n\t\t\t\t\t// we set the loop end point with a frame aligned byte\n\t\t\t\t\t// number\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tbytesRead += actualRead;\n\t\t\t\t\ttotalBytesRead += actualRead;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new CCSoundException(\"Error reading from the file - \" + ioe.getMessage(), ioe);\n\t\t}\n\t}", "public byte[] readFile(RAFFileEntry fileEntry) throws IOException {\n\t\tarchiveFile.setPosition(fileEntry.getDataOffset());\n\t\tif (fileEntry.getDataSize() > 0xFFFFFFFFL) throw new IOException(\"File too big.\");\n\t\tbyte[] data = archiveFile.readBytes((int) fileEntry.getDataSize());\n\t\treturn data;\n\t}", "private long read_long(RandomAccessFile file) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (file.readByte() & 0xFF)) << (8 * i);\n }\n return number;\n }", "public int streamRead(long offset, byte[] buffer, int bufferOffset, int nrOfBytes) throws VlException\n {\n VStreamReadable rfile = (VStreamReadable) (this);\n InputStream istr = rfile.getInputStream();\n\n if (istr==null)\n return -1; \n\n // implementation move to generic StreamUtil: \n return nl.uva.vlet.io.StreamUtil.syncReadBytes(istr,offset,buffer,bufferOffset,nrOfBytes); \n\n }", "private static ByteBuffer bufferFile(FileChannel fileChannel, long position, long maxLength) throws IOException {\n long mappingBytes = Math.min(fileChannel.size() - position, maxLength);\n\n MappedByteBuffer buffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, position, mappingBytes);\n buffer.load();\n\n /*\n if (mappingBytes >= Integer.MAX_VALUE)\n throw new IOException(\"Buffer for \" + mappingBytes + \" bytes cannot be allocated\");\n ByteBuffer buffer = ByteBuffer.allocateDirect((int)mappingBytes);\n if (fileChannel.read(buffer, position) < mappingBytes)\n throw new IOException(\"File channel provided less than \" + mappingBytes + \" bytes\");\n buffer.flip();\n */\n\n return buffer;\n }", "public Map<Integer, String> readData(String fileName, int numberOfBytes) {\n\t\t//Below variable will have sector index of directory which contain given file name in its directory listing entry\n\t\tDirDetailsForWrite dirDetailsForWrite = fileWithDirListingEntry(fileName, getRootDirectory(), 0); \n\t\tDirEntryDetails dirEntryDetails = dirDetailsForWrite.getDirEntryDetails();\n\t\t\n\t\tMap<Integer, String> returnData = new HashMap<Integer, String>();\n\t\t\n\t\tString dataRead = recursiveReadUserFile(dirEntryDetails.getLink(), numberOfBytes, \"\");\n\t\tif(!dataRead.isEmpty()) {\n\t\t\tif(dataRead.length() < numberOfBytes) {\n\t\t\t\treturnData.put(0, dataRead.substring(0, dataRead.length()));\n\t\t\t\treturnData.put(1, Constants.END_OF_FILE_IS_REACHED);\n\t\t\t} else {\n\t\t\t\treturnData.put(0, dataRead.substring(0, numberOfBytes));\n\t\t\t}\n\t\t\treturn returnData;\n\t\t}\n\t\treturn null;\n\t}", "void visitFile(StorageUnit unit, long off, long lim);", "public final String getStringFromFile(final int length) throws IOException {\r\n\r\n if (length <= 0) {\r\n return new String(\"\");\r\n }\r\n\r\n byte[] b = new byte[length];\r\n raFile.readFully(b);\r\n final String s = new String(b);\r\n b = null;\r\n return s;\r\n }", "public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);", "public static byte[] readBytes(RandomAccessFile raf, long offset, int length, String expectedHash) throws IOException {\n ByteArrayOutputStream bout = new ByteArrayOutputStream(); \n raf.seek(offset);\n readBytes(raf, bout, length, expectedHash);\n return bout.toByteArray();\n\n }", "public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }", "public void initializeFullRead() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n } else {\r\n return;\r\n }\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }", "private int[][][] readData(int startElement, int startLine, int endElement, int endLine) throws AreaFileException {\r\n// int[][][]myData = new int[numBands][dir[AD_NUMLINES]][dir[AD_NUMELEMS]];\r\n int numLines = endLine - startLine;\r\n int numEles = endElement - startElement;\r\n// System.out.println(\"linePrefixLength: \" + linePrefixLength);\r\n int[][][] myData = new int[numBands][numLines][numEles];\r\n \r\n if (! fileok) {\r\n throw new AreaFileException(\"Error reading AreaFile data\");\r\n }\r\n\r\n short shdata;\r\n int intdata;\r\n boolean isBrit = \r\n areaDirectory.getCalibrationType().equalsIgnoreCase(\"BRIT\"); \r\n long newPos = 0;\r\n\r\n for (int i = 0; i<numLines; i++) {\r\n newPos = datLoc + linePrefixLength + lineLength * (i + startLine) + startElement * dir[AD_DATAWIDTH];\r\n position = newPos;\r\n// System.out.println(position);\r\n try {\r\n af.seek(newPos);\r\n } catch (IOException e1) {\r\n e1.printStackTrace();\r\n }\r\n \r\n for (int k=0; k<numEles; k++) {\r\n for (int j = 0; j<numBands; j++) {\r\n try {\r\n if (dir[AD_DATAWIDTH] == 1) {\r\n myData[j][i][k] = (int)af.readByte();\r\n if (myData[j][i][k] < 0 && isBrit) {\r\n myData[j][i][k] += 256;\r\n } \r\n// position = position + 1;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 2) {\r\n shdata = af.readShort();\r\n if (flipwords) {\r\n myData[j][i][k] = (int) ( ((shdata >> 8) & 0xff) | \r\n ((shdata << 8) & 0xff00) );\r\n } else {\r\n myData[j][i][k] = (int) (shdata);\r\n }\r\n// position = position + 2;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 4) {\r\n intdata = af.readInt();\r\n if (flipwords) {\r\n myData[j][i][k] = ( (intdata >>> 24) & 0xff) | \r\n ( (intdata >>> 8) & 0xff00) | \r\n ( (intdata & 0xff) << 24 ) | \r\n ( (intdata & 0xff00) << 8);\r\n } else {\r\n myData[j][i][k] = intdata;\r\n }\r\n// position = position + 4;\r\n } \r\n } \r\n catch (IOException e) {\r\n myData[j][i][k] = 0;\r\n }\r\n }\r\n }\r\n }\r\n return myData;\r\n }", "public void readFromFile() {\n\n\t}", "public void expandFile(long length) throws IOException {\n\n\t}", "int getLineLength(int line) throws BadLocationException;", "String get(int offset, int length) throws BadLocationException;", "@Override\r\n\tpublic void read(IByteBuffer source, long offset) {\n\r\n\t}", "private byte[] readFile(String fileLocation){\n File myFile = new File(fileLocation);\n byte myByteArray[] = new byte[(int) myFile.length()];\n try {\n BufferedInputStream reader = new BufferedInputStream(new FileInputStream(myFile));\n reader.read(myByteArray,0,myByteArray.length);\n reader.close();\n }catch(FileNotFoundException e){\n System.out.println(\"The file has not been found: \"+e.getMessage());\n }catch(IOException e){\n System.out.println(\"problem with reading the file: \"+e.getMessage());\n }\n return myByteArray;\n }", "private String readFully(String filename) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filename));\n\t\tStringBuilder buf=new StringBuilder();\n\t\tchar[] data=new char[8192];\n\t\tint num=reader.read(data);\n\t\twhile(num>-1){\n\t\t\tbuf.append(data,0,num);\n\t\t\tnum=reader.read(data);\n\t\t}\n\t\treturn buf.toString();\n\t}", "private synchronized long readLong(int len) throws IOException {\n\t\tread(bytes, len);\n\t\treturn readLong(bytes, 0, len);\n\t}", "public synchronized int readBuf(String filename) {\n\t\t\n\t\t// find a buffer id that hasn't been used yet.\n\t\tint bufNum = 0;\n\t\twhile (_bufferMap.containsKey(bufNum))\n\t\t\tbufNum++;\n\n\t\t// add this buffer number to the map\n\t\t_bufferMap.put(bufNum, filename);\n\n\t\t// create and load the buffer\n\t\tsendMessage(\"/b_allocRead\", new Object[] { bufNum, filename });\n\t\tsendMessage(\"/sync\", new Object[]{bufNum + _bufferReadIdOffset});\n\t\treturn bufNum;\n\t}", "private byte[] readSampleData(String filePath) {\n File sampleFile = new File(filePath);\n byte[] buffer = new byte[(int) sampleFile.length()];\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(sampleFile);\n readFill(fis, buffer);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n try {\n fis.close();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return buffer;\n }", "private byte[] readFdocaBytes(int length) {\n\n checkForSplitRowAndComplete(length);\n\n byte[] b = new byte[length];\n dataBuffer_.readBytes(b);\n// System.arraycopy(dataBuffer_, position_, b, 0, length);\n// position_ += length;\n//\n return b;\n }", "public void readBytes(byte[] buffer, int offset, int length) throws IOException;", "private int loadData() {\n if (position >= numRecords * 2)\n return -1;\n int bufferPos = 0;\n int capacity = byteBuffer.capacity();\n while (bufferPos < capacity && position < numRecords * 2) {\n long curRecordAddress = sortedArray.get(position);\n int recordLen = Platform.getInt(null, curRecordAddress);\n // length + keyprefix + record length\n int length = Integer.BYTES + Long.BYTES + recordLen;\n if (length > capacity) {\n logger.error(\"single record size exceeds PMem read buffer. Please increase buffer size.\");\n }\n if (bufferPos + length <= capacity) {\n long curKeyPrefix = sortedArray.get(position + 1);\n if (length > bytes.length) {\n bytes = new byte[length];\n }\n Platform.putLong(bytes, Platform.BYTE_ARRAY_OFFSET, curKeyPrefix);\n Platform.copyMemory(null, curRecordAddress, bytes, Platform.BYTE_ARRAY_OFFSET + Long.BYTES, length - Long.BYTES);\n byteBuffer.put(bytes, 0, length);\n bufferPos += length;\n position += 2;\n } else {\n break;\n }\n }\n return bufferPos;\n }", "public void receiveData(){\n try {\n // setting up input stream and output stream for the data being sent\n fromClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n fileCount++;\n outputFile = new FileOutputStream(\"java_20/server/receivedFiles/receivedFile\"+fileCount+\".txt\");\n char[] receivedData = new char[2048];\n String section = null;\n\n //read first chuck of data and start timer\n int dataRead = fromClient.read(receivedData,0,2048);\n startTimer();\n\n //Read the rest of the files worth of data\n while ( dataRead != -1){\n section = new String(receivedData, 0, dataRead);\n outputFile.write(section.getBytes());\n\n dataRead = fromClient.read(receivedData, 0, 2048);\n }\n\n //stop timers\n endTimer();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }", "boolean getFileRange(String path, OutputStream stream, long startByteIndex, long endByteIndex) throws NotFoundException, IOException;", "public String readLine(int index, String filePath){\n String lineData = \"\";\n try{\n File myFile = new File(filePath);\n Scanner myReader = new Scanner(myFile);\n for(int i = 0; i < index; i++){\n myReader.nextLine();\n }\n lineData = myReader.nextLine();\n myReader.close();\n } catch(FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return lineData;\n }", "public void getFileData(int dLength,String charset) throws FileSystemUtilException\r\n\t{\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":getFileData()\");\r\n\t\tFileOutputStream fOut=null;\r\n\t\tByteArrayOutputStream bOut = null;\r\n\t\tFileSystemUtilsPlugin zu = new FileSystemUtilPluginFactory().getFileUtils(FileSystemTypeConstants.ZIP);\r\n\t\tlong fileLen = 0;\r\n\t\tlong dataLength = dLength;\r\n\t\tif(isSample)\r\n\t\t{\r\n\t\t\tbOut = new ByteArrayOutputStream();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tlogger.debug(\"Opening output stream to file \"+localFilePath);\r\n\t\t\t\tlogger.debug(\"localFilePath:\"+localFilePath);\r\n\t\t\t\tfOut=new FileOutputStream(\"temp.txt\");\r\n\t\t\t\tlogger.debug(\"Output stream to file \"+localFilePath+\" is opened\");\r\n\t\t\t} \r\n\t\t\tcatch(FileNotFoundException fnfEx) \r\n\t\t\t{ fnfEx.printStackTrace();\r\n\t\t\t\t logger.info(new Date()+\":: File not found on connecting with parameters, \" +\r\n\t\t\t\t\t\t\t\" username= \"+ username +\" , remotefilePath = \"+remoteFilePath +\", \" +\r\n\t\t\t\t\t\t\t\"localFilePath = \"+ localFilePath +\" , host= \"+ hostname +\" and port =\"+ port );\r\n\t\t\t\tthrow new FileSystemUtilException(\"ET0028\",null,Level.ERROR,fnfEx);\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\tString command = \"scp -f \"+remoteFilePath;\r\n\t\tObject[] ios= execCommand(command);\r\n\t\toutputstream=(OutputStream)ios[0];\r\n\t\tinputstream=(InputStream)ios[1];\r\n\t\tbyte[] buf = new byte[1024];\r\n\t\t// send '\\0'\r\n\t\tbuf[0] = 0;\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//returning acknowledgement\r\n\t\t\toutputstream.write(buf, 0, 1);\t\t\r\n\t\t\toutputstream.flush();\r\n\t\t\tcheckAcknowledgement(inputstream);\r\n\t\t\t//getting filesize\r\n\t\t\t// read '0644 '\r\n\t\t\tinputstream.read(buf, 0, 5);\r\n\t\t\twhile (true) \r\n\t\t\t{\r\n\t\t\t\tinputstream.read(buf, 0, 1);\r\n\t\t\t\tif (buf[0] == ' ')\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tfileLen = fileLen * 10 + (buf[0] - '0');\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tString file = null;\r\n\t\t\tfor (int i = 0;; i++) \r\n\t\t\t{\r\n\t\t\t\tinputstream.read(buf, i, 1);\r\n\t\t\t\tif (buf[i] == (byte) 0x0a) \r\n\t\t\t\t{\r\n\t\t\t\t\tfile = new String(buf, 0, i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"filesize=\"+fileLen+\", file=\"+file);\r\n\t\t\tif(dataLength == 0)\r\n\t\t\t{\r\n\t\t\t\tdataLength = fileLen;\r\n\t\t\t}\r\n\t\t\telse if(dataLength >= fileLen)\r\n\t\t\t{\r\n\t\t\t\tdataLength = fileLen;\r\n\t\t\t}else if(fileLen > dataLength * 10){\r\n\t\t\t\tdataLength = 1024 * 10;\r\n\t\t\t}\r\n\t\t\t// send '\\0'\r\n\t\t\tbuf[0] = 0;\r\n\t\t\toutputstream.write(buf, 0, 1);\r\n\t\t\toutputstream.flush();\r\n\t\t\tlong b=0;\r\n\t\t\tint l=0;\r\n\t\t\tint len=10240;\r\n\t\t\tif(len >= dataLength)\r\n\t\t\t{\r\n\t\t\t\tlen = (int)dataLength;\r\n\t\t\t}\r\n\t\t\tbyte[] barray = new byte[len];\r\n\t\t\tboolean noData = false;\r\n\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\twhile( b < dataLength)\r\n\t\t\t{\r\n\t\t\t\tl=inputstream.read(barray,0,len);\r\n\t\t\t\tif(l != -1)\r\n\t\t\t\t{\r\n\t\t\t\t noData = false;\r\n\t\t\t\t\tb=b+l;\r\n\t\t\t\t\tif(isSample)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbOut.write(barray,0,l);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//check whether the data is crossed fileLength\r\n\t\t\t\t\t\tif(b > dataLength)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tl = l - (int)(b - dataLength);\t\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\tfOut.write(barray,0,l);\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/* BUG-FIX thread hang due to network outage */\r\n\t\t\t\t //implementing readTImeout at client side.\r\n\t\t\t\t if(noData == false)\r\n\t\t\t\t {\r\n\t\t\t\t //this is first iteration with out data \r\n\t\t\t\t startTime = System.currentTimeMillis();\r\n\t\t\t\t noData = true;\r\n\t\t\t\t }\r\n\t\t\t\t else\r\n\t\t\t\t {\r\n\t\t\t\t //there is no data on prev iteration too\r\n\t\t\t\t if((System.currentTimeMillis()-startTime) >= this.readTimeOut)\r\n\t\t\t\t {\r\n\t\t\t\t throw new Exception(\"SCP fileDownload failed. readTimeout occured\");\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n //check stop flag, if true throw FileSystemUtilException with errorcode 999\r\n if(stop)\r\n {\r\n \tthrow new FileSystemUtilException(\"999\");\r\n }\r\n\t\t\t}\t\r\n\t\t\t// send '\\0'\r\n\t\t\tbuf[0] = 0;\r\n\t\t\toutputstream.write(buf, 0, 1);\r\n\t\t\toutputstream.flush();\r\n\t\t\tif(isSample)\r\n\t\t\t{\r\n\t\t\t\tString s=null;\r\n\t\t\t if(zu.isZip(remoteFilePath))\r\n\t\t\t {\r\n\t\t\t \tbyte [] stUnZip=bOut.toByteArray(); \r\n\t\t\t \tbyte [] sample = zu.streamUnZipper(stUnZip);\r\n\t\t\t \tbOut.reset();\r\n\t\t\t \tbOut.write(sample);\r\n\t\t\t //create a byte array stream with bOut\r\n\t\t\t //unzip the stream here and use that stream\r\n\t\t\t }\r\n\t\t\t if(true)/*if(!\"cp1252\".equalsIgnoreCase(charset))*/\r\n\t\t\t {\r\n\t\t\t \tsampleData = new String(bOut.toByteArray(),charset);\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t \tsampleData = new String(bOut.toByteArray());\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t\tlogger.debug(\"Sample data is : \"+sampleData);\r\n\t\t\t}else{\r\n\t\t\t\tsampleData = new String(barray,charset);\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch(UnsupportedEncodingException use)\r\n\t\t{\r\n\t\t\t logger.info(new Date()+\":: Unable to get data on connecting with parameters, \" +\r\n\t\t\t\t\t\t\" username= \"+ username +\" , remotefilePath = \"+remoteFilePath +\", \" +\r\n\t\t\t\t\t\t\"localFilePath = \"+ localFilePath +\" , host= \"+ hostname +\" and port =\"+ port );\r\n\t\t\tthrow new FileSystemUtilException(\"ET0564\",null,Level.ERROR,use);\r\n\t\t}\t\r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\tlogger.info(new Date()+\":: Unable to get data on connecting with parameters, \" +\r\n\t\t\t\t\t\" username= \"+ username +\" , remotefilePath = \"+remoteFilePath +\", \" +\r\n\t\t\t\t\t\"localFilePath = \"+ localFilePath +\" , host= \"+ hostname +\" and port =\"+ port );\r\n\t\t\tthrow new FileSystemUtilException(\"EL0004\",null,Level.ERROR,e);\r\n\t\t}\r\n\t\tcatch(FileSystemUtilException ebizEx)\r\n\t\t{\r\n //suppress if errorcode is 999\r\n\t\t\t\r\n if(!ebizEx.getErrorCode().equals(\"999\"))\r\n\t\t\t{\r\n \tlogger.info(new Date()+\":: Unable to get data on connecting with parameters, \" +\r\n \t\t\t\t\t\" username= \"+ username +\" , remotefilePath = \"+remoteFilePath +\", \" +\r\n \t\t\t\t\t\"localFilePath = \"+ localFilePath +\" , host= \"+ hostname +\" and port =\"+ port );\r\n\t\t\t\tthrow ebizEx;\r\n }\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tlogger.info(new Date()+\":: Unable to get data on connecting with parameters, \" +\r\n\t\t\t\t\t\" username= \"+ username +\" , remotefilePath = \"+remoteFilePath +\", \" +\r\n\t\t\t\t\t\"localFilePath = \"+ localFilePath +\" , host= \"+ hostname +\" and port =\"+ port );\r\n\t\t\tthrow new FileSystemUtilException(\"EL0360\",null,Level.ERROR,ex);\t\t\t\t\r\n\t\t}\r\n\t\tfinally \r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tif(fOut != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tfOut.flush(); \r\n\t\t\t\t\tfOut.close();\r\n\t\t\t\t\tfOut = null;\r\n\t\t\t\t}\r\n\t\t\t\tif(bOut != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbOut.flush(); \r\n\t\t\t\t\tbOut.close();\r\n\t\t\t\t\tbOut = null;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t} \r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\t//log warning\t\t\t\t\r\n\t\t\t}\t\t \r\n\t\t}\r\n\t\tlogger.debug(\"End: \"+getClass().getName()+\":getFileData()\");\r\n\t}", "public int read(String filename) {\n System.out.println(\"==== Processing data ====\");\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Read and interpret all the lines.\n int count = 0;\n String line = null;\n while (true) {\n try {\n line = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n line = line.trim();\n String[] splitedLine = line.split(\"[,\\\\s]+\");\n if (splitedLine.length != 3) {\n continue;\n }\n String instructionType = splitedLine[0];\n MemRef.MemRefType refType =null;\n if (instructionType.equals(\"I\")) {\n refType = MemRef.MemRefType.INSTR_FETCH;\n } else if (instructionType.equals(\"S\")) {\n refType = MemRef.MemRefType.STORE;\n } else if (instructionType.equals(\"L\")) {\n refType = MemRef.MemRefType.FETCH;\n } else if (instructionType.equals(\"M\")) {\n refType = MemRef.MemRefType.UPDATE;\n } else {\n continue;\n }\n if (refType == null) {\n continue;\n }\n\n Long address = Long.parseLong(splitedLine[1], 16);\n int size = Integer.parseInt(splitedLine[2]);\n MemRef r = new MemRef(refType, address, size);\n count ++;\n runMemoryReference(r);\n }\n return count;\n }", "public void beginSlice() throws IOException {}", "int getLineOfOffset(int offset) throws BadLocationException;", "long getSize() throws IOException;", "public byte[] getContents(long offset, int len) throws VlException\n {\n byte bytes[] = new byte[len];\n\n int ret = read(offset, bytes,0,len); \n\n // since a specific amount a bytes is requested, return only that\n // amount if it can be read\n\n if (ret != len)\n throw new VlIOException(\"Couldn't read requested number of bytes\");\n\n return bytes;\n }", "@Override\n\tpublic int read(byte[] dst, int dstIndex, int length) throws IOException {\n\t\tint available = available();\n if (available == 0) {\n return -1;\n }\n\n length = Math.min(available, length);\n buf.readBytes(dst, dstIndex, length);\n return length;\n\n\t}", "private static ByteBuffer internalReadFileAsByteArray(String path) throws IOException {\n ByteBuffer byteBuffer = null;\n Path filePath = FileSystems.getDefault().getPath(path);\n try (\n FileChannel fileChannel = FileChannel.open(filePath, StandardOpenOption.READ);) {\n Long size = fileChannel.size();\n if (size > Integer.MAX_VALUE) {\n throw new IOException(MessageFormat.format(\n \"File {0} is too large. Its size is {1,number,integer} bytes which is larger \" +\n \"then this method could handle ( {2,number,integer})\", path, size, Integer.MAX_VALUE));\n }\n byteBuffer = ByteBuffer.allocate(size.intValue());\n int readBytes = 0;\n int totalReadBytes = 0;\n int failureCounter = 0;\n while ((readBytes = fileChannel.read(byteBuffer)) >= 0 && totalReadBytes < size.intValue()) {\n if (readBytes > 0) {\n totalReadBytes += readBytes;\n if (failureCounter > 0) {\n failureCounter = 0;\n }\n } else {\n if (++failureCounter >= MAX_READ_FAILURES) {\n throw new IOException(MessageFormat.format(\"File {0} could not be read for unknown reason\", path));\n }\n }\n }\n }\n return (ByteBuffer) byteBuffer.flip();\n }", "public synchronized long readRecords(int locusLength, List<SAMRecord> targetList){\n targetList.clear();\n this.curLocus += locusLength; // read with coordinate less than this will be put into targetList\n int curLocus = this.curLocus;\n\n // put reads in buffer whose coordinate is before curLocus into target\n // reads not in range keep in readBuffer.\n ArrayList<SAMRecord> swapBuffer = new ArrayList<SAMRecord>();\n for(SAMRecord record : readBuffer){\n int coordinate = record.getReadNegativeStrandFlag() ? record.getUnclippedEnd() : record.getUnclippedStart();\n if(coordinate <= curLocus){\n targetList.add(record);\n }\n else{\n swapBuffer.add(record);\n }\n }\n readBuffer.clear();\n readBuffer = swapBuffer;\n\n // scan the file to see new reads\n try {\n final CloseableIterator<SAMRecord> iterator = samHeaderAndIterator.iterator;\n while (iterator.hasNext()) {\n SAMRecord record = iterator.next();\n readFileIndex++;\n if (record.getReadUnmappedFlag() || record.isSecondaryOrSupplementary())\n continue;\n int thisCoordinate = record.getReadNegativeStrandFlag() ? record.getUnclippedEnd() : record.getUnclippedStart();\n record.setAttribute(ReadEnds.FILE_INDEX_TAG, Long.toString(readFileIndex));\n\n int contigIdx = record.getReferenceIndex();\n if (contigIdx != curContigIdx) { // Finish this method and jump to next contig.\n curContigIdx = contigIdx;\n this.curLocus = record.getAlignmentStart(); // mark as the start as it always larger than alignmentEnd\n readBuffer.add(record);\n return targetList.size();\n }\n if (thisCoordinate <= curLocus) { // if in the region, just add into the target\n targetList.add(record);\n } else { // if not in the region, see if is negative read.\n if (record.getReadNegativeStrandFlag()) { // if so, there may still have positive read following, so store it in buffer.\n readBuffer.add(record);\n } else {\n readBuffer.add(record); // if not, there's no reads in this position, just cut off.\n return targetList.size();\n }\n }\n }\n iterator.close(); // may close many times\n }catch (AssertionError e){ // iterator has been closed\n return -1;\n }\n if(readBuffer.size() == 0) { // if no reads left, return -1 to represent.\n return -1;\n }\n return targetList.size();\n }", "public synchronized void read(StyxFileClient client, long offset, int count, int tag)\n throws StyxException\n {\n try\n {\n // Open a new FileChannel for reading\n FileChannel chan = new FileInputStream(this.file).getChannel();\n\n // Get a ByteBuffer from MINA's pool. This becomes part of the Rread\n // message and is automatically released when the message is sent\n ByteBuffer buf = ByteBuffer.allocate(count);\n // Make sure the position and limit are set correctly (remember that\n // the actual buffer size might be larger than requested)\n buf.position(0).limit(count);\n\n // Read from the channel. If no bytes were read (due to EOF), the\n // position of the buffer will not have changed\n int numRead = chan.read(buf.buf(), offset);\n log.debug(\"Read \" + numRead + \" bytes from \" + this.file.getPath());\n // Close the channel\n chan.close();\n\n buf.flip();\n this.replyRead(client, buf, tag);\n }\n catch(FileNotFoundException fnfe)\n {\n // The file does not exist\n if (mustExist)\n {\n log.debug(\"The file \" + this.file.getPath() +\n \" has been removed by another process\");\n // Remove the file from the Styx server\n this.remove();\n throw new StyxException(\"The file \" + this.name + \" was removed.\");\n }\n else\n {\n // Simply return EOF\n this.replyRead(client, new byte[0], tag);\n }\n }\n catch(IOException ioe)\n {\n throw new StyxException(\"An error of class \" + ioe.getClass() + \n \" occurred when trying to read from \" + this.getFullPath() +\n \": \" + ioe.getMessage());\n }\n }", "public void read() throws IOException {\n\t\tString path = \"/Users/amit/Documents/songs/A.mp3\";\n\t\tFile file = new File(path);\n\t\tfinal int EOF = -1;\n\t\t\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"Exist...\");\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tBufferedInputStream bs = new BufferedInputStream(fs);\n\t\tlong startTime = System.currentTimeMillis();\n\t\tint singleByte = bs.read(); // read single byte\n\t\twhile(singleByte!=EOF) {\n\t\t\t//System.out.print((char)singleByte);\n\t\t\t singleByte = bs.read();\n\t\t}\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Total Time Taken \"+(endTime-startTime)+\"ms\");\n\t\tbs.close();\n\t\tfs.close();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"File Not Exist\");\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\n FileInputStream fis=new FileInputStream(\"g:/data/info.txt\");\r\n //step-2 (read the data from stream)\r\n int n=fis.available(); //it gives you no of bytes available for reading in stream\r\n System.out.println(\"Total Bytes Available : \"+n);\r\n byte b[]=new byte[n];\r\n fis.read(b); //will take 1st byte from stream and store to b[0], 2nd to b[1], 3rd to b[2]\r\n //converting bytes to String\r\n String st=new String(b);\r\n System.out.println(st);\r\n //step-3 (close the stream)\r\n fis.close();\r\n }", "public int read(byte[] obuf, int offset, int len) throws IOException {\n\n\t\tint total = 0;\n\n\t\twhile (len > 0) {\n\n\t\t\t// Use just the buffered I/O to get needed info.\n\n\t\t\tint xlen = super.read(obuf, offset, len);\n\t\t\tif (xlen <= 0) {\n\t\t\t\tif (total == 0) {\n\t\t\t\t\tthrow new EOFException();\n\t\t\t\t} else {\n\t\t\t\t\treturn total;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlen -= xlen;\n\t\t\t\ttotal += xlen;\n\t\t\t\toffset += xlen;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\n\t}", "abstract void read();", "RandomAccessData(File f,String mode) throws FileNotFoundException {\n super(f,mode);\n }" ]
[ "0.64502853", "0.6387598", "0.6321386", "0.62571335", "0.6148316", "0.61401176", "0.59920776", "0.5967241", "0.5957105", "0.5955157", "0.5946362", "0.5941444", "0.5926006", "0.5883421", "0.58477914", "0.58281183", "0.5822214", "0.5819515", "0.580796", "0.57920176", "0.5784784", "0.57694334", "0.5752506", "0.574291", "0.57425517", "0.5721374", "0.5712624", "0.5707407", "0.57012796", "0.56763184", "0.56719494", "0.5630032", "0.56262535", "0.5623304", "0.5621655", "0.5621531", "0.5599297", "0.5597467", "0.55928606", "0.55898345", "0.55894864", "0.55853844", "0.5576142", "0.5573762", "0.5552732", "0.5544278", "0.55387485", "0.5536507", "0.5521463", "0.5518555", "0.55143344", "0.5502219", "0.54905784", "0.54788697", "0.54778314", "0.54744804", "0.54557645", "0.5450017", "0.5448819", "0.5445728", "0.5436242", "0.54308146", "0.542845", "0.5427594", "0.5427053", "0.5426851", "0.5423185", "0.54212666", "0.5420862", "0.54185295", "0.5417476", "0.54162186", "0.5415029", "0.5397386", "0.5387285", "0.5376221", "0.53728783", "0.5360185", "0.53552306", "0.5349468", "0.53384024", "0.53301334", "0.53254503", "0.5318644", "0.5317565", "0.5315907", "0.5306272", "0.5305688", "0.5303619", "0.5296597", "0.5293013", "0.52895755", "0.52847517", "0.527679", "0.5273717", "0.5270431", "0.52641004", "0.5261829", "0.5260598", "0.525132" ]
0.6321402
2
Read all the data from a tfs file
public byte[] readall(String filePath) throws IOException { int ret; TFSClientFile file = getFileFromCache(filePath); if (file == null) { // cannot find the file, try to get file info from the master ret = getFileInfo(filePath); if (ret != OK) return null; else { file = getFileFromCache(filePath); assert(file != null); } } // now the file info is ready // pick-up a chunkserver to read from List<String> servers = new LinkedList<String>(); for (String server : file.getChunkServers()) servers.add(server); Random rand = new Random(); int index = 0; while (!servers.isEmpty()) { index = rand.nextInt(servers.size()); String[] strs = servers.get(index).split(" "); servers.remove(index); SocketIO sockIO = new SocketIO(strs[0], Integer.parseInt(strs[1])); sockIO.write((READALL + " " + filePath + "\r\n").getBytes()); sockIO.flush(); String line = sockIO.readLine(); if (line.startsWith(STR_OK)) { strs = line.split(" "); int length = Integer.parseInt(strs[1]); byte[] data = new byte[length]; sockIO.read(data); sockIO.close(); return data; } else { sockIO.close(); return null; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromFile() {\n\n\t}", "TraceList read(File file) throws IOException;", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}", "abstract public Entity[] getWorkDataFromFile(String filename)\n \tthrows IOException, InvalidStatusException;", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "private static void readFileOnClient(FileStore.Client client) throws SystemException, TException {\n String fileName = \"sample.txt\";\n NodeID nodeId = client.findSucc(getSHA(fileName));\n TTransport transport = new TSocket(nodeId.getIp(), nodeId.getPort());\n transport.open();\n\n TProtocol protocol = new TBinaryProtocol(transport);\n FileStore.Client readFileClient = new FileStore.Client(protocol);\n\n RFile rFile = readFileClient.readFile(fileName);\n System.out.println(\"Filename - \" + rFile.getMeta().getFilename());\n System.out.println(\"Version Number - \" + rFile.getMeta().getVersion());\n System.out.println(\"Content - \" + rFile.getContent());\n transport.close();\n }", "List readFile(String pathToFile);", "public static void main(String[] args) throws FileNotFoundException, IOException {\n FileInputStream fis=new FileInputStream(\"g:/data/info.txt\");\r\n //step-2 (read the data from stream)\r\n int n=fis.available(); //it gives you no of bytes available for reading in stream\r\n System.out.println(\"Total Bytes Available : \"+n);\r\n byte b[]=new byte[n];\r\n fis.read(b); //will take 1st byte from stream and store to b[0], 2nd to b[1], 3rd to b[2]\r\n //converting bytes to String\r\n String st=new String(b);\r\n System.out.println(st);\r\n //step-3 (close the stream)\r\n fis.close();\r\n }", "public void readFile() {\n try\n {\n tasksList.clear();\n\n FileInputStream file = new FileInputStream(\"./tasksList.txt\");\n ObjectInputStream in = new ObjectInputStream(file);\n\n boolean cont = true;\n while(cont){\n Task readTask = null;\n try {\n readTask = (Task)in.readObject();\n } catch (Exception e) {\n }\n if(readTask != null)\n tasksList.add(readTask);\n else\n cont = false;\n }\n\n if(tasksList.isEmpty()) System.out.println(\"There are no todos.\");\n in.close();\n file.close();\n }\n\n catch(IOException ex)\n {\n ex.printStackTrace();\n }\n }", "public abstract T readDataFile(String fileLine);", "public Stack<Entry> readNodeEntries() {\n FileLocation thisNode = null;\n Stack<Entry> nodeEntries = new Stack<Entry>();\n try {\n int port = FileApp.getMyPort();\n thisNode = new FileLocation(port);\n } catch (UnknownHostException ex) {\n System.err.println(\"Mapper.read node entries uknown host exception\");\n }\n Stack<Integer> nodeHashes = FileApp.getHashes();\n while (!nodeHashes.empty()) {\n nodeEntries.push(new Entry(nodeHashes.pop(), thisNode));\n }//while (!nodeHashes.empty()\n printAct(\">scanned my node's files\");\n return nodeEntries;\n }", "private static void read(Client client,String user,String filename) throws SystemException, TException {\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\t\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\t// predIP = \"127.0.0.1\";\n\t\tint predPort = succNode.port;\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tchord_auto_generated.FileStore.Client client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Reading file location : \" + predPort + \" File :\"+filename+\"Owner : \"+user);\n\t\t\tRFile rFile = new RFile();\n\t\t\trFile = client1.readFile(filename, user);\n\t\t\tSystem.out.println(rFile.getContent());\n\t\t\tSystem.out.println(rFile.getMeta().getVersion());\n\t\t\tSystem.out.println(rFile.getMeta().getContentHash());\n\t\t\tSystem.out.println(\"Reading file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "private Object[] fetchTextFile(String filePathString){\n try (Stream<String> stream = Files.lines(Paths.get(filePathString))) {\n return stream.toArray();\n }\n catch (IOException ioe){\n System.out.println(\"Could not find file at \" + filePathString);\n return null;\n }\n\n }", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "public void readFile();", "public void readFiles() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open BufferedReader to open connection to tipslocation URL and read file\n\t\t\tBufferedReader reader1 = new BufferedReader(new InputStreamReader(tipsLocation.openStream()));\n\t\t\t\n\t\t\t// Create local variable to parse through the file\n\t String tip;\n\t \n\t // While there are lines in the file to read, add lines to tips ArrayList\n\t while ((tip = reader1.readLine()) != null) {\n\t tips.add(tip);\n\t }\n\t \n\t // Close the BufferedReader\n\t reader1.close();\n\t \n\t \n\t // Open BufferedReader to open connection to factsLocation URL and read file\n\t BufferedReader reader2 = new BufferedReader(new InputStreamReader(factsLocation.openStream()));\n\t \n\t // Create local variable to parse through the file\n\t String fact;\n\t \n\t // While there are lines in the file to read: parses the int that represents\n\t // the t-cell count that is associated with the line, and add line and int to \n\t // tCellFacts hashmap\n\t while ((fact = reader2.readLine()) != null) {\n\t \t\n\t \tint tCellCount = Integer.parseInt(fact);\n\t \tfact = reader2.readLine();\n\t \t\n\t tCellFacts.put(tCellCount, fact);\n\t }\n\t \n\t // Close the second BufferedReader\n\t reader2.close();\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Error loading files\"); e.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void fileRead(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// create file\n\t\t\tFile file = new File(path);\n\t\t\tFileInputStream fileStream = new FileInputStream(file);\n\t\t\t\n\t\t\t// data read\n\t\t\tthis.dataContent = new byte[(int)file.length()];\n\t\t\tint ret = fileStream.read(this.dataContent, 0, (int)file.length());\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File Not Found : \" + e.getMessage());\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed File Read : \" + e.getMessage());\n\t\t}\n\t\t\n\t}", "public List<String> readFileContents(String filePath) throws APIException;", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "String readText(FsPath path);", "public File getDataFile();", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "public Vector<String> read(String path) throws FileNotFoundException, IOException {\n file = new File(path);\n fread = new FileReader(file);\n buf = new BufferedReader(fread);\n\n String temp;\n Vector<String> working = new Vector<String>();\n\n while (true) {\n temp = buf.readLine();\n\n if (temp == null) {\n break;\n } else {\n working.add(temp);\n }\n }\n\n return working;\n }", "public void readFromFile() {\n FileInputStream fis = null;\n try {\n //reaad object\n fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n TravelAgent travelAgent = (TravelAgent)ois.readObject();\n travelGUI.setTravelAgent(travelAgent);\n ois.close();\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }", "public void readAll() throws FileNotFoundException{ \n b = new BinaryIn(this.filename);\n this.x = b.readShort();\n this.y = b.readShort();\n \n int count = (x * y) / (8 * 8);\n this.blocks = new double[count][8][8][3];\n \n Node juuri = readTree();\n readDataToBlocks(juuri);\n }", "@Override\n public void parse() {\n if (file == null)\n throw new IllegalStateException(\n \"File cannot be null. Call setFile() before calling parse()\");\n\n if (parseComplete)\n throw new IllegalStateException(\"File has alredy been parsed.\");\n\n FSDataInputStream fis = null;\n BufferedReader br = null;\n\n try {\n fis = fs.open(file);\n br = new BufferedReader(new InputStreamReader(fis));\n\n // Go to our offset. DFS should take care of opening a block local file\n fis.seek(readOffset);\n records = new LinkedList<T>();\n\n LineReader ln = new LineReader(fis);\n Text line = new Text();\n long read = readOffset;\n\n if (readOffset != 0)\n read += ln.readLine(line);\n\n while (read < readLength) {\n int r = ln.readLine(line);\n if (r == 0)\n break;\n\n try {\n T record = clazz.newInstance();\n record.fromString(line.toString());\n records.add(record);\n } catch (Exception ex) {\n LOG.warn(\"Unable to instantiate the updateable record type\", ex);\n }\n read += r;\n }\n\n } catch (IOException ex) {\n LOG.error(\"Encountered an error while reading from file \" + file, ex);\n } finally {\n try {\n if (br != null)\n br.close();\n\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n LOG.error(\"Can't close file\", ex);\n }\n }\n\n LOG.debug(\"Read \" + records.size() + \" records\");\n }", "private static List<String> loadGenericDfFile(String file) throws IOException{\n\t\tList<String> lines = new ArrayList<String>();\n\t\t\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), \"UTF-8\"));\n\t\ttry {\n\t\t\tString str;\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tlines.add(str);\n\t\t\t}\n\t\t} finally {\n\t\t\tin.close();\n\t\t}\n\n\t\treturn lines;\n\t}", "public void readEntries() throws FileAccessException;", "public void readTextFile(String path) throws IOException {\n FileReader fileReader=new FileReader(path);\n BufferedReader bufferedReader=new BufferedReader(fileReader);\n String value=null;\n while((value=bufferedReader.readLine())!=null){\n System.out.println(value);\n }\n }", "public static void read7() {\n //read file into stream, try-with-resources\n try (Stream<String> stream = Files.lines(Paths.get(filePath))) {\n\n stream.forEach(System.out::println);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public List<Object> readFile(File file) {\n Scanner scanner = createScanner(file);\n if (Objects.isNull(scanner)) {\n return Collections.emptyList();\n }\n List<Object> readingDTOList = new ArrayList<>();\n scanner.nextLine();\n List<List<String>> allLines = new ArrayList<>();\n while (scanner.hasNext()) {\n List<String> line = parseLine((scanner.nextLine()));\n if (!line.isEmpty()) {\n allLines.add(line);\n }\n }\n if (!allLines.isEmpty()) {\n for (List<String> line : allLines) {\n String sensorId = line.get(0);\n String dateTime = line.get(1);\n String value = line.get(2);\n String unit = line.get(3);\n LocalDateTime readingDateTime;\n if (sensorId.contains(\"RF\")) {\n LocalDate readingDate = LocalDate.parse(dateTime, DateTimeFormatter.ofPattern(\"dd/MM/uuuu\"));\n readingDateTime = readingDate.atStartOfDay();\n } else {\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(dateTime);\n readingDateTime = zonedDateTime.toLocalDateTime();\n }\n double readingValue = Double.parseDouble(value);\n ReadingDTO readingDTO = ReadingMapper.mapToDTOwithIDandUnits(sensorId, readingDateTime, readingValue, unit);\n readingDTOList.add(readingDTO);\n }\n }\n return readingDTOList;\n }", "@Override\n public Collection<FsContent> visit(FileSystem fs) {\n\n SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();\n\n String query = \"SELECT * FROM tsk_files WHERE fs_obj_id = \" + fs.getId()\n + \" AND (meta_type = \" + TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType()\n + \") AND (size > 0)\";\n try {\n ResultSet rs = sc.runQuery(query);\n List<FsContent> contents = sc.resultSetToFsContents(rs);\n Statement s = rs.getStatement();\n rs.close();\n if (s != null) {\n s.close();\n }\n return contents;\n } catch (SQLException ex) {\n logger.log(Level.WARNING, \"Couldn't get all files in FileSystem\", ex);\n return Collections.emptySet();\n }\n }", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "private void readRootData() {\n String[] temp;\n synchronized (this.mRootDataList) {\n this.mRootDataList.clear();\n File file = getRootDataFile();\n if (!file.exists()) {\n HiLog.error(RootDetectReport.HILOG_LABEL, \"readRootData file NOT exist!\", new Object[0]);\n return;\n }\n try {\n FileInputStream fileInputStream = new FileInputStream(file);\n InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n StringBuffer sb = new StringBuffer((int) MAX_STR_LEN);\n while (true) {\n int intChar = reader.read();\n if (intChar == -1) {\n break;\n } else if (sb.length() >= MAX_STR_LEN) {\n break;\n } else {\n sb.append((char) intChar);\n }\n }\n for (String str : sb.toString().split(System.lineSeparator())) {\n this.mRootDataList.add(str);\n }\n reader.close();\n inputStreamReader.close();\n fileInputStream.close();\n } catch (FileNotFoundException e) {\n HiLog.error(RootDetectReport.HILOG_LABEL, \"file root result list cannot be found\", new Object[0]);\n } catch (IOException e2) {\n HiLog.error(RootDetectReport.HILOG_LABEL, \"Failed to read root result list\", new Object[0]);\n }\n }\n }", "private void loadXtreemFSData() {\n IndexedContainer xtreemFSData = createFields();\n\n // Die IDs werden zum Verschieben von Dateien gebraucht.\n VaadinXtreemFSSession.setDirectoryIds(new ArrayList<Object>());\n\n if (getVolume() != null) {\n try {\n int i = 1;\n\n // Alle Elemente einfügen\n String currentDir = getCurrentDir();\n for (DirectoryEntry e : listEntries(currentDir)) {\n // .. im Home-Dir ausblenden\n if (getHomeDir() == null\n || getHomeDir() != null\n && (currentDir != null && !currentDir.equals(mergePaths(getHomeDir(), \"\")))\n || !e.getName().equals(\"..\")) {\n createItems(xtreemFSData, e.getName(), XtreemFSConnect.isDirectory(e), e.getStbuf(), i++);\n }\n }\n\n } catch (IOException e) {\n if (e.getMessage().contains(\"access denied\")) {\n showNotification(\"Error\", \"You don't have the rights to access '\"+getCurrentDir()+\"'.\", Notification.TYPE_ERROR_MESSAGE, e);\n }\n else {\n showNotification(\"Error\", e.toString(), Notification.TYPE_ERROR_MESSAGE, e);\n }\n }\n }\n\n this.table.setContainerDataSource(xtreemFSData);\n this.autocompleteFilter.setContainerDataSource(xtreemFSData);\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }", "public abstract void readFromFile( ) throws Exception;", "protected abstract void readFile();", "public void streamData(String pathToFile) throws IOException;", "public static void demoReadAll(){\n try{\n //Read entire file bytes. Return in byte format. Don't need to close() after use. \n byte[] b = Files.readAllBytes(Paths.get(\"country.txt\"));\n String s = new String(b);\n System.out.println(s);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }", "void readGraphFromFile();", "public CompletionStage<String> readFile() {\n\n CompletableFuture<String> future = new CompletableFuture<>();\n StringBuffer sb = new StringBuffer();\n\n vertx.fileSystem().rxReadFile(path)\n .flatMapObservable(buffer -> Observable.fromArray(buffer.toString().split(\"\\n\")))\n .skip(1)\n .map(s -> s.split(\",\"))\n .map(data-> new Customer(Integer.parseInt(data[0]),data[1],data[2]))\n .subscribe(\n data -> sb.append(data.toString()),\n error -> System.err.println(error),\n () -> future.complete(sb.toString()));\n\n\n return future;\n\n }", "public static List<List<String>> readFile() {\r\n List<List<String>> out = new ArrayList<>();\r\n File dir = new File(\"./tmp/data\");\r\n dir.mkdirs();\r\n File f = new File(dir, \"storage.txt\");\r\n try {\r\n f.createNewFile();\r\n Scanner s = new Scanner(f);\r\n while (s.hasNext()) {\r\n String[] tokens = s.nextLine().split(\"%%%\");\r\n List<String> tokenss = new ArrayList<>(Arrays.asList(tokens));\r\n out.add(tokenss);\r\n }\r\n return out;\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }", "public String readFileContents(String filename) {\n return null;\n\n }", "private String[] readFile(InputStream stream) throws StorageException {\r\n try {\r\n return readFile(new BufferedReader(new InputStreamReader(stream)));\r\n } catch (Exception exception) {\r\n throw new StorageException(\"Cannot read file \");\r\n }\r\n }", "@Test\n void test() throws Exception {\n File file = new File(\"test-data/diagram/test.vsdx\");\n\n try (InputStream stream = new PushbackInputStream(new FileInputStream(file), 100000)) {\n handleFile(stream, file.getPath());\n }\n\n handleExtracting(file);\n }", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void readFridgeData() throws FileNotFoundException, InvalidDateException,\n InvalidQuantityException, EmptyDescriptionException,\n RepetitiveFoodIdentifierException, InvalidFoodCategoryException, InvalidFoodLocationException {\n File file = new File(DATA_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n populateFridge(line);\n }\n scanner.close();\n }", "public UserInfo readData()\n\t{\n\t\t\n\t\tIterator<UserInfo> itr= iterator();\n\t\tUserInfo info;\n\t\tSystem.out.println(\"file has been read!\");\n\t\twhile(itr.hasNext()) {\n\t\t\t\n\t\t\tinfo= itr.next();\n\t\t\tif( info.getUrl().equalsIgnoreCase(file)) {\n\t\t\t\t\n\t\t\t\treturn info;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private ByteList fread(RubyThread thread, int length) throws IOException, BadDescriptorException {\n Stream stream = openFile.getMainStreamSafe();\n int rest = length;\n waitReadable(stream);\n ByteList buf = blockingFRead(stream, thread, length);\n if (buf != null) {\n rest -= buf.length();\n }\n while (rest > 0) {\n waitReadable(stream);\n openFile.checkClosed(getRuntime());\n stream.clearerr();\n ByteList newBuffer = blockingFRead(stream, thread, rest);\n if (newBuffer == null) {\n // means EOF\n break;\n }\n int len = newBuffer.length();\n if (len == 0) {\n // TODO: warn?\n // rb_warning(\"nonblocking IO#read is obsolete; use IO#readpartial or IO#sysread\")\n continue;\n }\n if (buf == null) {\n buf = newBuffer;\n } else {\n buf.append(newBuffer);\n }\n rest -= len;\n }\n if (buf == null) {\n return ByteList.EMPTY_BYTELIST.dup();\n } else {\n return buf;\n }\n }", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public List<Task> readFile() throws FileNotFoundException, DukeException {\n List<Task> output = new ArrayList<>();\n Scanner sc = new Scanner(file);\n while (sc.hasNext()) {\n output.add(readTask(sc.nextLine()));\n }\n return output;\n }", "public abstract <T> void read(String path, ValueCollector<T> collector) throws ValueReadingException;", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "private void getExtractWithFiles(){\n\t\ttry{\n\t\t\t\n\t\t\tFileInputStream fStream = new FileInputStream(tfile);\n\t\t\tfileBytes = new byte[(int)tfile.length()];\n\t\t\t\n\t\t\tfStream.read(fileBytes, 0, fileBytes.length);\n\t\t\tfileSize = fileBytes.length;\n\t\t}catch(Exception ex){\n\t\t\tSystem.err.println(\"File Packet \"+ex.getMessage());\n\t\t}\n\t}", "public abstract void readFromFile(String key, String value);", "public boolean readDataFile();", "Set<String> readData();", "public void readFile(String name)\n\t{\n\t\tFileInputStream fis = null;\n\t\tObjectInputStream in = null;\n\t\ttry\n\t\t{\n\t\t\tfis = new FileInputStream(name);\n\t\t\tin = new ObjectInputStream(fis);\n\t\t\t// ind = (WebIndexer)in.readObject();\n\t\t\tTree xcd = (Tree)in.readObject();\n\t\t\tind = new WebIndexer(xcd);\n\t\t\tin.close();\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch(ClassNotFoundException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\t\t\n\t}", "public synchronized void readLog() {\n MemoryCache instance = MemoryCache.getInstance();\n try (Stream<String> stream = Files.lines(Paths.get(path)).skip(instance.getSkipLine())) {\n stream.forEach(s -> {\n Result result = readEachLine(s);\n instance.putResult(result);\n instance.setSkipLine(instance.getSkipLine() + 1);\n });\n } catch (IOException e) {\n logger.error(\"error during reading file \" + e.getMessage());\n }\n }", "public abstract List<T> readObj(String path);", "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "@Override\n public Collection<AbstractFile> visit(FileSystem fs) {\n \n SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();\n \n StringBuilder queryB = new StringBuilder();\n queryB.append(\"SELECT * FROM tsk_files WHERE (fs_obj_id = \").append(fs.getId());\n queryB.append(\") AND (size > 0)\");\n queryB.append(\" AND ( (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType());\n queryB.append(\") OR (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_DIR.getMetaType());\n queryB.append( \"AND (name != '.') AND (name != '..')\");\n queryB.append(\") )\");\n if (getUnallocatedFiles == false) {\n queryB.append( \"AND (type = \");\n queryB.append(TskData.TSK_DB_FILES_TYPE_ENUM.FS.getFileType());\n queryB.append(\")\");\n }\n \n try {\n final String query = queryB.toString();\n logger.log(Level.INFO, \"Executing query: \" + query);\n ResultSet rs = sc.runQuery(query);\n List<AbstractFile> contents = sc.resultSetToAbstractFiles(rs);\n Statement s = rs.getStatement();\n rs.close();\n if (s != null) {\n s.close();\n }\n return contents;\n } catch (SQLException ex) {\n logger.log(Level.WARNING, \"Couldn't get all files in FileSystem\", ex);\n return Collections.emptySet();\n }\n }", "private static void readUsingEagerness(FileService fileService) {\n\t\tSystem.out.println(\"readUsingEagerness called\");\n\t\ttry {\n\t\t\tMono<String> data = Mono.just(fileService.readFile());\n\t\t\t\n\t\t\t//even if we do not subscribe the data is prepared for publisher\n//\t\t\tdata.subscribe(MonoStreamsUtils :: printOnNext,\n//\t\t\t\t\tMonoStreamsUtils :: printOnError,\n//\t\t\t\t\tMonoStreamsUtils :: printOnComplete\n//\t\t\t\t\t);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}", "private void readMetaFile() throws Exception, ErrorMessageException {\n System.out.println(\"Read Meta File\");\n DataInputStream dis = new DataInputStream(is);\n metaFilesPeer = new MetaFilesPeer();\n while (true) {\n /* read parent */\n String parent = dis.readUTF();\n if (parent.equals(\"//\")) {\n break;\n }\n String name = dis.readUTF();\n boolean isfile = dis.readBoolean();\n byte[] sha = null;\n if (isfile) {\n String shaBase64 = dis.readUTF();\n sha = Util.convertBase64ToBytes(shaBase64);\n }\n long timeadded = dis.readLong();\n metaFilesPeer.addMetaFile(parent, name, isfile, sha, timeadded);\n }\n }", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void readMetadata() throws IOException {\n\t\t/*int magicNumber = */ metadataFile.readInt();\n\t\t/*int formatVersion = */ metadataFile.readInt();\n\t\t/*int managerIndex = */ metadataFile.readInt();\n\t\tfileListOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\tpathListOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\n\t\tmetadataFile.setPosition(fileListOffset);\n\t\treadFileList();\n\t}", "@Override\n public void readDataFromTxtFile()\n throws NumberFormatException, DepartmentCreationException, EmployeeCreationException {\n\n }", "@Override\n\tprotected InputStream getData(GFile file, TaskMonitor monitor)\n\t\t\tthrows IOException, CancelledException, CryptoException {\n\n\t\tISO9660Directory dir = fileToDirectoryMap.get(file);\n\t\tInputStream inputStream = dir.getDataBytes(provider, logicalBlockSize);\n\n\t\treturn inputStream;\n\t}", "private void readFile(File filename) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filename);\n\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF-8\");\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tSimpleFieldSet fs = new SimpleFieldSet(br, false, true);\n\t\tbr.close();\n\t\t// Read contents\n\t\tString[] udp = fs.getAll(\"physical.udp\");\n\t\tif((udp != null) && (udp.length > 0)) {\n\t\t\tfor(int i=0;i<udp.length;i++) {\n\t\t\t\t// Just keep the first one with the correct port number.\n\t\t\t\tPeer p;\n\t\t\t\ttry {\n\t\t\t\t\tp = new Peer(udp[i], false, true);\n\t\t\t\t} catch (HostnameSyntaxException e) {\n\t\t\t\t\tLogger.error(this, \"Invalid hostname or IP Address syntax error while loading opennet peer node reference: \"+udp[i]);\n\t\t\t\t\tSystem.err.println(\"Invalid hostname or IP Address syntax error while loading opennet peer node reference: \"+udp[i]);\n\t\t\t\t\tcontinue;\n\t\t\t\t} catch (PeerParseException e) {\n\t\t\t\t\tthrow (IOException)new IOException().initCause(e);\n\t\t\t\t}\n\t\t\t\tif(p.getPort() == crypto.portNumber) {\n\t\t\t\t\t// DNSRequester doesn't deal with our own node\n\t\t\t\t\tnode.ipDetector.setOldIPAddress(p.getFreenetAddress());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tcrypto.readCrypto(fs);\n\t}", "public void readDataFromFile(){\n try {\n weatherNow.clear();\n // Open File\n Scanner scan = new Scanner(context.openFileInput(fileSaveLoc));\n\n // Find all To Do items\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n\n // if line is not empty it is data, add item.\n if (!line.isEmpty()) {\n // first is the item name and then the item status.\n String[] readList = line.split(\",\");\n String city = readList[0];\n String countryCode = readList[1];\n double temp = Double.parseDouble(readList[2]);\n String id = readList[3];\n String description = readList[4];\n\n weatherNow.add(new WeatherNow(city,countryCode, temp, id, description));\n }\n }\n\n // done\n scan.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@PostConstruct\n private List<String> loadFortunesFile() {\n System.out.println(\">> FileFortuneService: inside method 'loadFortunesFile'.\");\n\n try {\n String fileName = \"src/com/luv2code/springdemo/fortune_data.txt\";\n BufferedReader reader = new BufferedReader(new FileReader(fileName));\n String line = null;\n while ( (line = reader.readLine()) != null) {\n fortunes.add(line);\n }\n } catch (IOException e) {\n System.out.println(\"An error occurred during file-stream: \");\n e.printStackTrace();\n }\n return fortunes;\n\n }", "public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }", "List<T> readAll();", "public void getRawField(String path){\n\t\tString info; // content of each node\n\t\tArrayList<String> fileContent = new ArrayList<>();\n\t\tNodeList documentList = getDocumentsTagsPubmed(path);\n\t\tfor (int s = 0; s < documentList.getLength(); s++) { //transform document nodes in elements\n\t\t\tNode fstNode = documentList.item(s);\n\t\t\tElement element = (Element) fstNode;\n\t\t\tNodeList nodeList2 = element.getElementsByTagName(\"str\");\n\t\t\tfor (int j = 0; j < nodeList2.getLength(); j++) {\n\t\t\t\tNode text = nodeList2.item(j);\n\t\t\t\treadPubmedElements(fileContent,text);\n\t\t\t\tif(fileContent.get(0)!=null){\n\t\t\t\t\t//\tgetWindowSentences(List<String> tokenizedText, T, int window, fileContent.get(0));\n\t\t\t\t\tsaveContenttoFile(fileContent, \"Files\\\\result.txt\");\n\t\t\t\t\tfileContent.removeAll(fileContent);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private RandomAccessFile getDataFile(int eIndex, int tIndex) throws IOException {\n\n String dataFilePath = gradsDDF.getFileName(eIndex, tIndex);\n if (!gradsDDF.isTemplate()) { // we only have one file\n if (dataFile != null) {\n return dataFile;\n }\n }\n if (dataFile != null) {\n String path = dataFile.getLocation();\n if (path.equals(dataFilePath)) {\n return dataFile;\n } else {\n dataFile.close();\n }\n }\n dataFile = RandomAccessFile.acquire(dataFilePath);\n dataFile.order(getByteOrder());\n return dataFile;\n }", "@Override\n public BufferedReader requestContentTxtFile(Context context) throws IOException{\n InputStream ins = context.getResources().openRawResource(R.raw.timferris);\n BufferedReader reader = new BufferedReader(new InputStreamReader(ins));\n Log.d(\"teste leitura\", \"Model return after reading has been reached\");\n\n return reader;\n }", "public List<Task> load() throws DukeException {\n List<Task> tasks = new ArrayList<>();\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\n String line;\n while ((line = reader.readLine()) != null) {\n String[] tokens = line.split(\"\\\\|\");\n\n Task task = StorageSerializer.deserialize(tokens);\n tasks.add(task);\n }\n\n reader.close();\n } catch (FileNotFoundException e) {\n throw new IoDukeException(\"Error opening task file for reading\");\n } catch (IOException e) {\n throw new IoDukeException(\"Error closing file reader\");\n } catch (ParseException e) {\n throw new IoDukeException(\"Error parsing date in task file\");\n }\n\n return tasks;\n }", "public void loadFlights(InputStream stream) throws StorageException {\r\n // Get the file contents\r\n String[] lines = readFile(stream);\r\n // Parse and save flights from lines found\r\n parseFlights(lines);\r\n }", "public ArrayList<Task> loadData() throws IOException {\n DateTimeFormatter validFormat = DateTimeFormatter.ofPattern(\"MMM dd yyyy HH:mm\");\n ArrayList<Task> orderList = new ArrayList<>();\n\n try {\n File dataStorage = new File(filePath);\n Scanner s = new Scanner(dataStorage);\n while (s.hasNext()) {\n String curr = s.nextLine();\n String[] currTask = curr.split(\" \\\\| \");\n assert currTask.length >= 3;\n Boolean isDone = currTask[1].equals(\"1\");\n switch (currTask[0]) {\n case \"T\":\n orderList.add(new Todo(currTask[2], isDone));\n break;\n case \"D\":\n orderList.add(new Deadline(currTask[2],\n LocalDateTime.parse(currTask[3], validFormat), isDone));\n break;\n case \"E\":\n orderList.add(new Event(currTask[2],\n LocalDateTime.parse(currTask[3], validFormat), isDone));\n break;\n }\n }\n } catch (FileNotFoundException e) {\n if (new File(\"data\").mkdir()) {\n System.out.println(\"folder data does not exist yet.\");\n } else if (new File(filePath).createNewFile()) {\n System.out.println(\"File duke.txt does not exist yet.\");\n }\n }\n return orderList;\n\n }", "private void readFileAndStoreData_(String fileName) {\n In in = new In(fileName);\n int numberOfTeams = in.readInt();\n int teamNumber = 0;\n while (!in.isEmpty()) {\n assignTeam_(in, teamNumber);\n assignTeamInfo_(in, numberOfTeams, teamNumber);\n teamNumber++;\n }\n }", "public void readDataFromFile() {\n System.out.println(\"Enter address book name: \");\n String addressBookFile = sc.nextLine();\n Path filePath = Paths.get(\"C:\\\\Users\\\\Muthyala Aishwarya\\\\git\" + addressBookFile + \".txt\");\n try {\n Files.lines(filePath).map(line -> line.trim()).forEach(line -> System.out.println(line));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public List<Tailor> read();", "private void getDataLists(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile file = new File(path);\n\t\t\tfile.createNewFile();\n\t\t\tBufferedReader fileReader = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\tString str = null;\n\t\t\twhile((str = fileReader.readLine()) != null)\n\t\t\t{\n\t\t\t\tthis.dataList.push(str);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed : data list read\");\n\t\t}\n\t}", "Future<File> processDataFile(File dataFile);", "public byte[] requestRTT() throws RemoteException {\n File f = new File(\"/home/ubuntu/RTTFile.txt\");\n byte[] arr = new byte[1000];\n\n try {\n FileInputStream is = new FileInputStream(f);\n is.read(arr, 0, 1000);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return arr;\n }", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(contents)) != -1) {\n\t\t\t\tsnippets.add(new String(contents));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "private List<String> readFile(String path) throws IOException {\n return Files.readAllLines (Paths.get (path), StandardCharsets.UTF_8);\n }", "private List<Task> readFromFile() {\n if (file.exists()) {\n try {\n return objectmapper.readValue(file,TaskList.class);\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n } else {\n return new ArrayList<>();\n }\n }", "public void loadFlights(String path) throws StorageException {\r\n // Get the file contents\r\n String[] lines = readFile(path);\r\n parseFlights(lines);\r\n }", "public static void reader() throws FileNotFoundException {\n\t\tSystem.out.println(\"Estamos calculando sua rota. Por favor aguarde...\");\n\t\tstops = GTFSReader.loadStops(\"bin/arquivos/stops.txt\");\n\t\tMap<String,Route>routes = GTFSReader.loadRoutes(\"bin/arquivos/routes.txt\");\n\t\tMap<String,Shape> shapes = GTFSReader.loadShapes(\"bin/arquivos/shapes.txt\");\n\t\tMap<String,Service> calendar = GTFSReader.loadServices(\"bin/arquivos/calendar.txt\");\n\t\ttrips = GTFSReader.loadTrips(\"bin/arquivos/trips.txt\",routes,calendar,shapes);\n\t\tGTFSReader.loadStopTimes(\"bin/arquivos/stop_times.txt\", trips, stops);\n\t\tSystem.out.println(\"Rota calculada!\\n\");\n\t}", "public byte[] getContents() throws VlException\n {\n long len = getLength();\n // 2 GB files cannot be read into memory !\n\n // zero size optimization ! \n\n if (len==0) \n {\n return new byte[0]; // empty buffer ! \n }\n\n if (len > ((long) VRS.MAX_CONTENTS_READ_SIZE))\n throw (new ResourceToBigException(\n \"Cannot read complete contents of a file greater then:\"\n + VRS.MAX_CONTENTS_READ_SIZE));\n\n int intLen = (int) len;\n return getContents(intLen);\n\n }", "private static Trajectory readFile(String name) {\n\t\ttry {\n\t\t\tFile file = new File(cacheDirectory + name);\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tTrajectory t = (Trajectory) ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t\treturn t;\n\t\t}\n\t\tcatch (Exception e) { return null; }\n\t}", "public static void readFiles () throws FileNotFoundException{\n try {\n data.setFeatures(data.readFeatures(\"features.txt\"));\n data.setUnknown(data.readFeatures(\"unknown.txt\"));\n data.setTargets(data.readTargets(\"targets.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"Document not found\");\n }\n }" ]
[ "0.63610107", "0.6294116", "0.61367553", "0.59502476", "0.58760273", "0.58577865", "0.58399546", "0.5804985", "0.5794708", "0.57912445", "0.5761381", "0.575239", "0.5706549", "0.56934047", "0.56887203", "0.5685119", "0.56794494", "0.56779385", "0.5672464", "0.56693876", "0.56587607", "0.5650293", "0.5628188", "0.562196", "0.5602651", "0.56019545", "0.5597471", "0.5557791", "0.55537164", "0.5534128", "0.553151", "0.5531447", "0.55203927", "0.5519585", "0.55134773", "0.5502593", "0.5491934", "0.54777586", "0.54672146", "0.54641306", "0.54388374", "0.54328966", "0.54247475", "0.5399538", "0.53991437", "0.5388081", "0.53829485", "0.53729975", "0.5371588", "0.53660065", "0.5364677", "0.536103", "0.53498876", "0.5344635", "0.53380334", "0.5334843", "0.5321762", "0.53171146", "0.531596", "0.5312914", "0.53129023", "0.53110343", "0.5309026", "0.5304176", "0.5302754", "0.53009933", "0.5300619", "0.52977127", "0.52966994", "0.5292896", "0.5273948", "0.5273746", "0.52726245", "0.5266246", "0.52396935", "0.52365", "0.5233268", "0.5232073", "0.5231615", "0.5225739", "0.52231693", "0.5218908", "0.5218508", "0.5215324", "0.5213398", "0.52077246", "0.52031845", "0.52030444", "0.52023613", "0.51932263", "0.5189037", "0.5182826", "0.5182325", "0.5182165", "0.5168082", "0.5167349", "0.51652944", "0.51614904", "0.5159337", "0.515922" ]
0.54539824
40
Counting the number of data item for this file
public int count(String filePath) throws IOException { int ret; TFSClientFile file = getFileFromCache(filePath); if (file == null) { // cannot find the file, try to get file info from the master ret = getFileInfo(filePath); if (ret != OK) return -1; else { file = getFileFromCache(filePath); assert(file != null); } } // now the file info is ready // pick-up a chunkserver to read from List<String> servers = new LinkedList<String>(); for (String server : file.getChunkServers()) servers.add(server); Random rand = new Random(); int index = 0; while (!servers.isEmpty()) { index = rand.nextInt(servers.size()); String[] strs = servers.get(index).split(" "); servers.remove(index); SocketIO sockIO = new SocketIO(strs[0], Integer.parseInt(strs[1])); sockIO.write((COUNT + " " + filePath + "\r\n").getBytes()); sockIO.flush(); String line = sockIO.readLine(); if (line.startsWith(STR_OK)) { strs = line.split(" "); return Integer.parseInt(strs[1]); } else { return -1; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "@Override\n\tpublic int countNumberOfDatas() {\n\t\treturn 0;\n\t}", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "int getFileCount();", "public int getCountOfData (){\n return getData() == null ? 0 : getData().size();\n }", "private int infoCount() {\n return data.size();\n }", "int getFileInfoCount();", "public Number getFileCount() {\r\n\t\treturn (this.fileCount);\r\n\t}", "public int dataCount() {\n return this.root.dataCount();\n }", "public int getCount() {\n\t\t\treturn data.size();\n\t\t}", "public int getCount() {\n\t\treturn data.size();\r\n\t}", "public Vector<file> count()\n {\n Vector<Model.file> files = new Vector<>();\n try\n {\n pw.println(11);\n\n files = (Vector<Model.file>) ois.readObject();\n\n }\n catch (ClassNotFoundException | IOException e)\n {\n System.out.println(e.getMessage());\n }\n return files ;\n }", "int getFilesCount();", "int getFilesCount();", "public int getFileRecordCount() {\n\t\treturn fileRecordCount;\n\t}", "public int getDataCount() {\n if (dataBuilder_ == null) {\n return data_.size();\n } else {\n return dataBuilder_.getCount();\n }\n }", "public int getDataCount() {\n if (dataBuilder_ == null) {\n return data_.size();\n } else {\n return dataBuilder_.getCount();\n }\n }", "public int getCount() {\n if(data.size()<=0) return 1;\n return data.size();\n }", "@Override\n\tpublic int getDataCount() {\n\t\treturn list_fr.size();\n\t}", "public long countEntries() {\n\t\tlong entries=0;\n\t\ttry {\n\t\t\tentries=Files.lines(new File(PAYROLL_FILE_NAME).toPath()).count();\n\t\t}catch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn entries;\n\t}", "public int size()\r\n\t{\r\n\t\treturn data.size();\r\n\t}", "public long getNumDefinedData();", "@Test\n\tpublic void testCountItems() {\n\t\tFile test = new File(\"X:\\\\Documents\\\\PS9 Test\");\n\t\tassertEquals(13,Explorer.countItems(test));\n\t}", "int getStatMetadataCount();", "public int size()\n\t{\n\t\treturn data.length;\n\t}", "public long getItemCount() {\n\t\treturn this.getSize(data);\n\t}", "public int getFileCount() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList)\n return ((JList)list).getModel().getSize();\n else if(list instanceof JTable)\n return ((JTable)list).getModel().getRowCount();\n else\n throw new IllegalStateException(\"Wrong component type\");\n }", "public int size()\n\t{\n\t\treturn _data.size();\n\t}", "public int size() {\r\n return theData.size();\r\n }", "int getFileNamesCount();", "int getFileNamesCount();", "@Override\n\tpublic int getNumberOfFiles() {\n\t\tIterator<FileSystemItem> it = this.content.iterator();\n\t\tint numberOfFiles = 0;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\tif(it.next().isDirectory() == false) {\n\t\t\t\tnumberOfFiles++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn numberOfFiles;\n\t}", "public int getCount() {\n return _data.size();\n }", "public int size() {\n return data.size();\n }", "public int getCount() {\n\t\t\treturn dataList.size();\r\n\t\t}", "int countFile(File file) {\n return readFile(file).length;\n }", "int getContentsCount();", "@Override\r\n\tpublic int size() {\r\n\r\n\t\treturn data.size();\r\n\t}", "public int size() {\n\t\treturn data.length;\n\t}", "@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }", "public int size() {\n return data.length;\n }", "public int getDataSize() {\n\t\treturn (int)this.getSize(data);\n\t}", "public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}", "int getImgDataCount();", "int size() {\n return data.size();\r\n }", "int docValueCount() throws IOException;", "public synchronized int getCount()\n\t{\n\t\treturn count;\n\t}", "public int getFileInfoCount() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.size();\n } else {\n return fileInfoBuilder_.getCount();\n }\n }", "int getRecordCount();", "int countFile(String path) {\n return readFile(path).length;\n }", "@Override\r\n\tpublic int dataCount(Map<String, Object> map) {\n\t\treturn 0;\r\n\t}", "public static int calculateRecordCount(Hashtable data) {\r\n int r = 0;\r\n Enumeration keys = data.keys();\r\n while (keys.hasMoreElements()) {\r\n Object oKey = keys.nextElement();\r\n Object v = data.get(oKey);\r\n if ((v != null) && (v instanceof Vector)) {\r\n r = ((Vector) v).size();\r\n break;\r\n }\r\n }\r\n return r;\r\n }", "public int getCount() {\n\t\t\treturn mlistData.size();\n\t\t}", "public int size(){\n int size = 0;\n for(LinkedList<E> item : this.data){\n size += item.size();\n }\n return size;\n }", "public int dataSize() {\n\t\treturn data.size();\n\t}", "public static int dataNum(File file) {\n int lineCount = 0; // Start line count at 0\n\n try { // Try catch\n Scanner scan = new Scanner(file); // Scans file that was specified\n while(scan.hasNextLine()) { // While loop runs until there are no more lines to read\n String line = scan.nextLine(); // Line read is stored as a string\n if (Character.isDigit(line.charAt(4))) { // Sees if the 4th character in the line is a integer\n lineCount++; // If it is an integer, it counts that line\n }\n }\n return lineCount; // Returns the line count\n } catch (FileNotFoundException e) { // If error occurs\n System.out.println(\"An error has occured\"); // Print that error has occured\n }\n return 0; // In case there is no lineCount return and to get rid of errors\n }", "public int getFileNamesCount() {\n return fileNames_.size();\n }", "@Override\n public int getItemCount() {\n if (addedHeader()) {\n return getData() == null ? 0 : (getData().size() + 1);\n } else {\n return getData() == null ? 0 : getData().size();\n }\n }", "public int size() {\n return dataSize;\n }", "public int numberOfEntries();", "public int getNumberOfEntries();", "public int sizeOfDataChckArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACHCK$14);\n }\n }", "public int sizeOfSourceDataArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(SOURCEDATA$0);\r\n }\r\n }", "@Override\n\tpublic int getSize() {\n\t\treturn datas.size();\n\t}", "public int getFileNamesCount() {\n return fileNames_.size();\n }", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "public int getCount() {\n return datalist.size();\n }", "public int count() {\n\t\treturn count;\n\t}", "int getInfoCount();", "int getInfoCount();", "int getInfoCount();", "public long getCount() {\n return count_;\n }", "public double getNumFiles(){\n\t\treturn (this.num_files);\n\t}", "public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }", "public int getNumberOfEntries() ;", "public void incFileCount(){\n\t\tthis.num_files++;\n\t}", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "public int getnumFiles() {\r\n\t\t//initialize the variable numFiles \r\n\t\tthis.numFiles=0;\r\n\r\n\t\t/*An enhanced for loop is used to iterate through the arraylist.\r\n\t\t * An if statement checks in the object at the \"item\" index is of type file\r\n\t\t * If it is the numFiles variable is incremented by 1.\r\n\t\t * Otherwise, it is a directory, and the the getnumFiles is called recursively to search\r\n\t\t * for files in the folder.\r\n\t\t */\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tif(item instanceof File){\r\n\t\t\t\tthis.numFiles ++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.numFiles += item.getnumFiles();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn numFiles;\r\n\t}", "@java.lang.Override\n public int getFilesCount() {\n return files_.size();\n }", "public int numberOfBytes() {\n return this.data.size();\n }", "@Override\r\n\tpublic int countData(PageCriteria pCri) throws Exception {\n\t\treturn ss.selectOne(\"countData\", pCri);\r\n\t}", "public int getCount() {\n\t\treturn _mData.size();\n\t}", "public long getCount()\n\t{\n\t\treturn count;\n\t}", "public int count() {\n return this.count;\n }", "public int count() {\r\n return count;\r\n }", "public long getCount() {\n return count_;\n }", "public int getNumberOfItemObjects() {\r\n\t\treturn itemFileVersions.size();\r\n\t}" ]
[ "0.74888366", "0.74888366", "0.74888366", "0.74888366", "0.74888366", "0.73780966", "0.7343445", "0.7343445", "0.7343445", "0.7343445", "0.7343445", "0.7297137", "0.722646", "0.722646", "0.7193004", "0.71425736", "0.71127313", "0.699477", "0.69942594", "0.6949488", "0.6859081", "0.68448216", "0.6795877", "0.6771257", "0.6771257", "0.6751064", "0.67346495", "0.67346495", "0.67346287", "0.6692108", "0.6680983", "0.66788244", "0.6647624", "0.6642088", "0.6630699", "0.6630153", "0.66245264", "0.6615243", "0.66092193", "0.66032505", "0.65942246", "0.65942246", "0.6546309", "0.6545559", "0.6532224", "0.652757", "0.6524634", "0.6513533", "0.65065277", "0.6501731", "0.6494997", "0.64926505", "0.6480196", "0.6466831", "0.6464492", "0.6451331", "0.64376783", "0.64322025", "0.64209104", "0.641619", "0.6413454", "0.6404308", "0.63820285", "0.63796175", "0.63751894", "0.63621503", "0.63617545", "0.63608277", "0.6346585", "0.6326882", "0.63144827", "0.631175", "0.6311135", "0.63082004", "0.62983155", "0.6296301", "0.62950987", "0.6284141", "0.62780607", "0.62758946", "0.62758946", "0.62758946", "0.6271383", "0.62684333", "0.6265584", "0.6264298", "0.6263079", "0.6244814", "0.6244814", "0.6244814", "0.6244814", "0.6241202", "0.623803", "0.6236855", "0.62364763", "0.6235801", "0.62347335", "0.62253255", "0.6225011", "0.6212126", "0.62055624" ]
0.0
-1
shared preferences for Android context classes
@Provides @Singleton SharedPreferences provideSharedPreferences(Application application) { return PreferenceManager.getDefaultSharedPreferences(application); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static SharedPreferences getSharedPreference(Context context){\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "private static SharedPreferences getSharedPreferences(Context context) {\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "private static SharedPreferences getSharedPreferences() {\n Context ctx = AppUtils.getAppContext();\n return ctx.getSharedPreferences(\"pref_user_session_data\", Context.MODE_PRIVATE);\n }", "private SharedPreferences getSharedPrefs() {\n return Freelancer.getContext().getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n }", "public SharePref(Context context) {\n sPrefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);\n }", "private static SharedPreferences getSharedPreferences(Context context) {\n return context.getSharedPreferences(SMILE_PREFERENCES, Context.MODE_PRIVATE);\n }", "private SharedPreferences GetPreferences( Context context )\n\t{\n\t\treturn context.getSharedPreferences( CACHE_NAME, Context.MODE_PRIVATE );\n\t}", "private static SharedPreferences getSharedPrefs(final Context context) {\n final String prefsName = context.getString(R.string.sharedprefs_name);\n return context.getSharedPreferences(prefsName, Context.MODE_PRIVATE);\n }", "public Prefs(Activity context){\n this.preferences = context.getSharedPreferences(prefContext, Context.MODE_PRIVATE);\n this.context = context;\n\n }", "public PreferencesHelper(Context context) {\n\t\tthis.sharedPreferences = context.getSharedPreferences\n\t\t\t\t(APP_SHARED_PREFS, Activity.MODE_PRIVATE);\n\t\tthis.editor = sharedPreferences.edit();\n\t}", "public SharedPreferences prefs() {\n\n SharedPreferences prefs = context.getSharedPreferences(APP_IDS_PREFS_NAME, Context.MODE_PRIVATE); // Private because it can still be accessed from other apps with the same User ID\n return prefs;\n }", "public interface PreferencesHelper {\r\n\r\n int getUserLoggedInMode();\r\n\r\n void setUserLoggedInMode(DataManager.LoggedInMode mode);\r\n\r\n String getUserName();\r\n\r\n void setUserName(String userName);\r\n\r\n String getAccessToken();\r\n\r\n void setAccessToken(String accessToken);\r\n\r\n String getUserProfilePicUrl();\r\n\r\n void setUserProfilePicUrl(String profilePicUrl);\r\n\r\n String getStoredProfilePicPath();\r\n\r\n void setStoredProfilePicPath(String profilePicPath);\r\n\r\n}", "static synchronized SharedPreferences m45630a(Context context) {\n synchronized (C7529d.class) {\n if (Build.VERSION.SDK_INT >= 11) {\n f31839a = context.getSharedPreferences(\".tpush_mta\", 4);\n } else {\n f31839a = context.getSharedPreferences(\".tpush_mta\", 0);\n }\n if (f31839a == null) {\n f31839a = PreferenceManager.getDefaultSharedPreferences(context);\n }\n return f31839a;\n }\n }", "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }", "SharedPreferences mo117960a();", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "public SharedPreferences getPrefs() { return this.prefs; }", "public HLSAppSharedPreferences(Context context, String strName) {\n\n mContext = context;\n mPreference = context.getSharedPreferences(strName, Activity.MODE_PRIVATE);\n mEditor = mPreference.edit();\n }", "public static SharedPreferences getCommonSharedPrefs(Context context) {\r\n return context.getSharedPreferences(AppConstants.SP_COMMON, Context.MODE_MULTI_PROCESS);\r\n }", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }", "@Api(1.0)\n @NonNull\n private SharedPreferences getSharedPreferences() {\n return mContext.getSharedPreferences(mPreferencesId, Context.MODE_PRIVATE);\n }", "protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}", "public synchronized static void init(Context ctx) {\n context = ctx;\n prefs = context.getSharedPreferences(APP, Context.MODE_PRIVATE);\n editor = prefs.edit();\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "public static SharedPreferences getSharedPreferences(Context ctx) {\n return ctx.getSharedPreferences(Const.SHARED_PREFERENCES_FILE_NAME, Context.MODE_PRIVATE);\n }", "public abstract SharedPreferences getStateSettings();", "private void initSharedPreference(){\n mSharedPreferences = Configuration.getContext().getSharedPreferences(\"SessionManager\", Context.MODE_PRIVATE) ;\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tthis.prefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t/*\n\t\t * Each app has its own shared preferences available to all components\n\t\t * of the app and this loads the default preferences that are saved on\n\t\t * the phone\n\t\t */\n\t\tthis.prefs.registerOnSharedPreferenceChangeListener(this);\n\t\t/*\n\t\t * Each user can change preferences. So this listener is a mechanism to\n\t\t * notify this activity that the old values are stale\n\t\t */\n\t}", "public static SharedPreferences getSharedPrefs() {\n return App.getAppContext().getSharedPreferences(PREFS_LABEL, Context.MODE_PRIVATE);\n }", "public SPHandler(Context context){\n this.context = context;\n sharedPref = context.getSharedPreferences(\n prefName, Context.MODE_PRIVATE);\n\n }", "@Provides\n @Singleton\n UtilsPrefs providesUtilsPrefs(SharedPreferences sharedPreferences) {\n UtilsPrefs utilsPrefs = new UtilsPrefs(sharedPreferences);\n return utilsPrefs;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.preferences);\n\n SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\n //String ip = SP.getString(\"ip\", \"NULL\");\n // Config.ip = SP.getString(\"ip\", \"NULL\");\n // Log.e(\"IP\",Config.ip );\n String language = SP.getString(\"language\",\"NULL\");\n // Toast.makeText(getApplicationContext(),Config.ip,Toast.LENGTH_SHORT).show();\n //Toast.makeText(getApplicationContext(),language,Toast.LENGTH_SHORT).show();\n }", "protected abstract IPreferenceStore getPreferenceStore();", "public void setContext(Context ctx) {\n\t\tprefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tupdateNextIdx();\n\t}", "private void GetSharedPrefs()\n {\n// SharedPreferences pref = getActivity().getSharedPreferences(\"LoginPref\", 0);\n// UserId = pref.getInt(\"user_id\", 0);\n// Mobile = pref.getString(\"mobile_number\",DEFAULT);\n// Email = pref.getString(\"email_id\",DEFAULT);\n// Username = pref.getString(\"user_name\",DEFAULT);\n// Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n\n SharedPreferences pref = getActivity().getSharedPreferences(\"RegPref\", 0); // 0 - for private mode\n UserId = pref.getInt(\"user_id\", 0);\n Mobile = pref.getString(\"mobile_number\",DEFAULT);\n Email = pref.getString(\"email_id\",DEFAULT);\n Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n CallOnGoingRideAPI();\n }", "public SharedPreferenceStorage(Context context, String prefName) {\n prefs = context.getSharedPreferences(prefName == null ?\n SharedPreferenceStorage.class.getCanonicalName() : prefName, MODE_PRIVATE);\n }", "private SharedPreferencesManager(){}", "public static synchronized SharedPreferencesManager getInstance(Context context){\n if(INSTANCE == null){\n // Initialize shared preferences and its editor\n sharedPreferences = context.getSharedPreferences(context.getPackageName(), Activity.MODE_PRIVATE);\n editor = sharedPreferences.edit();\n\n INSTANCE = new SharedPreferencesManager();\n }\n\n return INSTANCE;\n }", "@Provides\n @Singleton\n SharedPreferences providesDefaultSharedPreferences(Application application) {\n return PreferenceManager.getDefaultSharedPreferences(application);\n }", "public SharedPreferenceStorage(Context context) {\n this(context, null);\n }", "public static void init(Context context) {\n prefs = context.getSharedPreferences(\"ERS_Prefs\", Context.MODE_PRIVATE);\n }", "private void initPreferences(Context context) {\n\n if (DEBUG) LogUtils.d(TAG, \"initPreferences: mPreferences \" + mPreferences);\n }", "public interface GeneralPreferenceHelper {\n String PREF_USER_NAME = \"pref_name_user\";\n String PREF_ENABLE_SOCIAL = \"pref_social_recomendation\";\n}", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "public static final SharedPreferences get(Context context) {\r\n return context.getSharedPreferences(\"gcm\", Context.MODE_PRIVATE);\r\n }", "public void mo23013a(Context context) {\n this.f26122b = context.getSharedPreferences(\"com.judi.base.PREFERENCE_FILE_KEY\", 0);\n }", "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }", "public static SharePref getInstance(Context context) {\n if (instance == null) {\n instance = new SharePref(context);\n }\n return instance;\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "public interface PreferenceHelper {\r\n // Preference Name\r\n String PREFERENCE_NAME = \"Embedded_Downloads_preference\";\r\n // Preference mode\r\n int PRIVATE_MODE = 0;\r\n String INITIAL_START = \"initial_start\";\r\n String WALLET_ADDRESS = \"wallet_address\";\r\n String WALLET_NAME = \"wallet_name\";\r\n String TRANSACTION_WALLET_ADDRESS = \"transaction_wallet_address\";\r\n String WALLET_POSITION =\"wallet_position\";\r\n String CALL_TRANSACTION_STATUS = \"call_transaction_status\";\r\n String CALL_INCOMING = \"call_incoming\";\r\n String CALL_OUTGOING = \"call_outgoing\";\r\n}", "public SharedPreferencesModule(){\n //this.application = application;\n }", "public static String getSharedPrefs() {\n return SHARED_PREFS;\n }", "public SessionController(Context context) {\n this.context = context;\n sharedPref = this.context.getSharedPreferences(PREFERENCE_FILE, Context.MODE_PRIVATE);\n spEditor = sharedPref.edit();\n }", "protected static SharedPreferences m94913b(Context context) {\n return PreferenceManager.m3260a(context);\n }", "public static PreferenceHelper getInstance(Context context){\n if(mSpHelper == null){\n synchronized (PreferenceHelper.class){\n if(mSpHelper == null){\n mSpHelper = new PreferenceHelper(context);\n }\n }\n }\n return mSpHelper;\n }", "public SharedPreferences GetSettings() {\n return mSettings;\n }", "@Provides\n @NonNull\n // Safe here as it is a module provider\n @SuppressWarnings(\"unused\")\n static PreferencesUtils providePreferencesUtils(@NonNull ChilindoWeatherApplication context) {\n return new PreferencesUtils(context);\n }", "protected void saveMisc(Context context) {\n\t\tif (context == null) return;\n\t\t\n\t\t//Create json\n\t\tJSONObject JSON = new JSONObject();\n\t\ttry {\n\t\t\t//Save\n\t\t\tJSON.put(JSON_LOGIN, m_Login);\n\t\t} catch (JSONException e) {}\n\t\t\n\t\t//Get access to preference\n\t\t/*SharedPreferences Preference \t= context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tSharedPreferences.Editor Editor\t= Preference.edit();\n\t\t\n\t\t//Save\n\t\tEditor.putString(KEY_MISC, JSON.toString());\n\t\tEditor.commit();*/\n\t}", "static void initializeConfiguration(Context context) {\n SharedPreferences sharedPref = context.getSharedPreferences(\n context.getString(R.string.app_name_prefs), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n\n for (int[] elem : FEAT_ID_ARRAY) {\n int id = elem[1];\n int def_val = elem[2];\n\n if (!sharedPref.contains(context.getString(id))) {\n editor.putInt(context.getString(id), def_val);\n }\n }\n\n editor.apply();\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "public static SharedPreferences getSharedPreferences(@NonNull Context ctx, String preferName) {\n if (processFlag.get() == 0) {\n Bundle bundle = ctx.getContentResolver().call(PreferenceUtil.URI, PreferenceUtil.METHOD_QUERY_PID, \"\", null);\n int pid = 0;\n if (bundle != null) {\n pid = bundle.getInt(PreferenceUtil.KEY_VALUES);\n }\n //Can not get the pid, something wrong!\n if (pid == 0) {\n return getFromLocalProcess(ctx, preferName);\n }\n processFlag.set(Process.myPid() == pid ? 1 : -1);\n return getSharedPreferences(ctx, preferName);\n } else if (processFlag.get() > 0) {\n return getFromLocalProcess(ctx, preferName);\n } else {\n return getFromRemoteProcess(ctx, preferName);\n }\n }", "private void getPreferences() {\n\n if(sharedpreferences.getBoolean(\"usaGPU\", true)) {\n mUtilizzoGPU.setChecked(true);\n }\n else{\n mUtilizzoGPU.setChecked(false);\n }\n\n }", "private SharedPreferences m4028a() {\n SharedPreferences sharedPreferences;\n synchronized (Preferences.class) {\n if (this.f5334b == null) {\n this.f5334b = this.f5333a.getSharedPreferences(\"androidx.work.util.preferences\", 0);\n }\n sharedPreferences = this.f5334b;\n }\n return sharedPreferences;\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tmWindowManager = (WindowManager) getSystemService(Context.WINDOW_SERVICE);\n\t\tsp = getSharedPreferences(Constants.PREFERENCES_NAME,\n\t\t\t\tContext.MODE_PRIVATE);\n\t}", "public interface IContextPreferenceProvider {\n\n\t/**\n\t * Returns a specific storage. \n\t * @return\n\t */\n\tpublic IPreferenceStore getPreferenceStore(String name);\n\t\n}", "private static SharedPreferences.Editor getEditor(Context context) {\n SharedPreferences preferences = getSharedPreferences(context);\n return preferences.edit();\n }", "private static void storeActivation(Context context) {\n\t\t//securely store in shared preference\n\t\tSharedPreferences secureSettings = new SecurePreferences(context);\n\t\tString account = UserEmailFetcher.getEmail(context);\n\n\t\t//update preference\n\t\tSharedPreferences.Editor secureEdit = secureSettings.edit();\n\t\tsecureEdit.putBoolean(account + \"_paid\", true);\n\t\tsecureEdit.apply();\n\t}", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "public static void savePreferences(Context context, String strKey, String strValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(strKey, strValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n\n }\n }", "public String getCurrentIdentity(){\n mSharedPreference = mContext.getSharedPreferences( mContext.getString(R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n if(mSharedPreference.contains(\"zzxxyz\")) {\n\n return mSharedPreference.getString(\"zzxxyz\", \"\");\n }\n else\n return \"\";\n}", "private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tPreferenceManager prefMgr = getPreferenceManager();\n\t\tprefMgr.setSharedPreferencesName(\"appPreferences\");\n\t\t\n\t\taddPreferencesFromResource(R.xml.mappreference);\n\t}", "@Override\n protected void onResume() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.registerOnSharedPreferenceChangeListener(this);\n super.onResume();\n }", "@Override\n protected void onResume() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.registerOnSharedPreferenceChangeListener(this);\n super.onResume();\n }", "public void setAuthentication(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.putString(\"userid\", mUserId);\n preferencesEditor.putString(\"areaid\", mAreaId);\n preferencesEditor.commit();\n }", "public void setSharedPreferencesMode(int sharedPreferencesMode) { throw new RuntimeException(\"Stub!\"); }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_home);\n\n preferences = getSharedPreferences(\"CurrentUser\", MODE_PRIVATE);\n }", "private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"PseudoName\", psedoName).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"Pseudodescription\", profiledescription).commit();\r\n\t}", "public SharedPref() {\n super();\n }", "public Preferences getPrefs() {\n return _prefs;\n }", "public static SharedPreferences getGlobalSharedPreferences() {\n return mGlobalSharedPreferences;\n }", "public interface PreferencesView {\n\n /**\n * Update the distance view formatted in Kilometers\n *\n * @param distanceInKm Distance in Kilometers\n */\n void setDistanceInKm(float distanceInKm);\n\n /**\n * Update the distance view formatted in Meters\n *\n * @param distanceInM Distance in Meters\n */\n void setDistanceInM(int distanceInM);\n\n /**\n * Simple method to update the selected distance with what ever the user did set before\n *\n * @param distance The distance selected by the user\n */\n void updateDistance(int distance);\n\n /**\n * The logout was completed successfully.\n */\n void logoutSuccessful();\n\n /**\n * Show an error message\n *\n * @param message A string representing an error.\n */\n void showError(String message);\n\n /**\n * Get a {@link android.content.Context}.\n */\n Context context();\n}", "private void getPrefs() {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(getBaseContext());\n \n int size = prefs.getInt(\"textsizePref\", 20);\n int color = Integer.valueOf(prefs.getString(\"textcolorPref\", \"7f070006\"),16);\n int bakcolor = Integer.valueOf(prefs.getString(\"backgroundcolorPref\", \"1\"));\n int font = Integer.valueOf(prefs.getString(\"fontPref\", \"1\"));\n mQuoteTxt.setTextColor(getResources().getColor(color));\n \n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n Editor editor = sp.edit();\n switch (bakcolor) {\n case 1: \t\n \tmScrollview.setBackgroundColor(getResources().getColor(R.color.white));\n \tif (color == 1) {\n \t\tmQuoteTxt.setTextColor(getResources().getColor(R.color.black));\n \t\teditor.putString(\"textcolorPref\", \"2\");\n \t} \t\t\n \tmHeader.setTextColor(getResources().getColor(R.color.black));\n \tbreak;\n case 2:\n \tmScrollview.setBackgroundColor(getResources().getColor(R.color.black));\n \tif (color == 2) {\n \t\tmQuoteTxt.setTextColor(getResources().getColor(R.color.white));\n \t\teditor.putString(\"textcolorPref\", \"1\");\n \t} \t\t\n \tmHeader.setTextColor(getResources().getColor(R.color.white));\n break;\n } \n editor.commit();\n switch (font) {\n case 1:\n \tmQuoteTxt.setTypeface(Typeface.DEFAULT);\n \tbreak;\n case 2:\n \tmQuoteTxt.setTypeface(Typeface.SANS_SERIF);\n \tbreak;\n case 3:\n \tmQuoteTxt.setTypeface(Typeface.SERIF);\n \tbreak;\n case 4:\n \tmQuoteTxt.setTypeface(Typeface.MONOSPACE);\n \tbreak;\n }\n mQuoteTxt.setTextSize((float) size);\n \n }", "public static void savePreferences(Context context, String strKey, int intValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(strKey, intValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n }\n }", "private void loadSettings(){\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(SHARED_PREF, Context.MODE_PRIVATE);\n notificationSwtich = sharedPreferences.getBoolean(SWITCH, false);\n reminderOnOff.setChecked(notificationSwtich);\n }", "public static void initPrefs(){\n prefs = context.getSharedPreferences(PREFS_FILE, 0);\n SharedPreferences.Editor editor = prefs.edit();\n editor.remove(Constants.IS_FIRST_RUN);\n editor.putBoolean(Constants.ACTIVITY_SENSE_SETTING,false);\n editor.commit();\n }", "public void getLocal(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n user = preferences.getString(\"Username\", \"\");\n email = preferences.getString(\"Email\", \"\").replace(\".\", \",\");\n role = preferences.getString(\"Role\", \"\");\n }", "public void storePreferences(String userid, String token, JSONArray settings) throws JSONException {\n SharedPreferences sharedPreferences = getApplicationContext().getSharedPreferences(\"ca.gc.inspection.scoop\", Context.MODE_PRIVATE);\n\n JSONObject setting = settings.getJSONObject(0);\n Iterator<String> keys = setting.keys();\n while(keys.hasNext()){\n String settingKey = keys.next();\n if (settingKey.equals(useridStr)){ continue;}\n sharedPreferences.edit().putString(settingKey, setting.getString(settingKey)).apply();\n }\n\n // storing the token into shared preferences\n sharedPreferences.edit().putString(\"token\", token).apply();\n Config.token = token;\n\n // storing the user id into shared preferences\n sharedPreferences.edit().putString(useridStr, userid).apply();\n Config.currentUser = userid;\n\n // change activities once register is successful\n if(Config.token != null && Config.currentUser != null) registerSuccess();\n }", "private void loadpreferences() {\n\t\t\tSharedPreferences mySharedPreferences = context.getSharedPreferences(MYPREFS,mode);\n\t\t\tlogin_id = mySharedPreferences.getInt(\"login_id\", 0);\n\t\t\t\n\t\t\tLog.d(\"Asynctask\", \"\" + login_id);\n\t\t\tsubId = mySharedPreferences.getString(\"SubcriptionID\", \"\");\n\t\t\tLog.d(\"SubcriptionID inASYNTASK******************\", \"\" + subId);\n\n\t\t}", "public static java.lang.String getDefaultSharedPreferencesName(android.content.Context context) { throw new RuntimeException(\"Stub!\"); }", "public static void setShared(Context context, String name, String value) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(name, value);\n editor.commit();\n }", "private final SharedPreferences m43714a() {\n SharedPreferences sharedPreferences = this.f35814a.getSharedPreferences(\"LastActivityDatePreferencesRepository_last_activity_date\", 0);\n C2668g.a(sharedPreferences, \"context.getSharedPrefere…EF, Context.MODE_PRIVATE)\");\n return sharedPreferences;\n }", "@SuppressLint(\"CommitPrefEdits\")\n public HaloPreferencesStorageEditor(SharedPreferences preferences) {\n mPreferencesEditor = preferences.edit();\n }", "public static void saveToPrefs(Context context,String key, String value) {\n SharedPreferences prefs = getSettings();\n final SharedPreferences.Editor editor = prefs.edit();\n editor.putString(key, value);\n editor.apply();\n }", "public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }", "private void loadPreferences() {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n boolean lm = sp.getBoolean(getString(R.string.live_match), true);\n boolean ls = sp.getBoolean(getString(R.string.live_score), true);\n\n if(lm) live_match.setChecked(true);\n else live_match.setChecked(false);\n\n if(ls) live_score.setChecked(true);\n else live_score.setChecked(false);\n }", "public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }" ]
[ "0.7575499", "0.7420455", "0.73035115", "0.72845167", "0.727551", "0.72565675", "0.7237191", "0.7210083", "0.7209554", "0.7135718", "0.7101633", "0.7075193", "0.695197", "0.69497526", "0.6880462", "0.6848837", "0.6831098", "0.68052053", "0.67938626", "0.67936224", "0.67596054", "0.6726497", "0.67122245", "0.6710384", "0.6697893", "0.6694461", "0.667279", "0.66655844", "0.6647442", "0.6618995", "0.65951437", "0.6582325", "0.65666753", "0.6546598", "0.6546404", "0.6539011", "0.65315187", "0.6506302", "0.64897865", "0.6472516", "0.645928", "0.64419836", "0.6430501", "0.6399227", "0.6399227", "0.6399227", "0.6399227", "0.63658357", "0.63585365", "0.6325067", "0.63232815", "0.6317232", "0.62831897", "0.62655675", "0.62602454", "0.62510765", "0.6240965", "0.6224837", "0.6222512", "0.62169385", "0.62162924", "0.62121093", "0.6211493", "0.6191881", "0.61846393", "0.61660516", "0.61605555", "0.6146794", "0.61363405", "0.6128007", "0.61188054", "0.611499", "0.61060554", "0.6086742", "0.60754365", "0.60700595", "0.60700595", "0.60637337", "0.60587513", "0.6048468", "0.60413575", "0.6040022", "0.60387594", "0.6037322", "0.60337895", "0.6022341", "0.6021662", "0.60202694", "0.6015854", "0.601367", "0.60116106", "0.6006647", "0.5994893", "0.5981391", "0.5960354", "0.59566116", "0.59416413", "0.59283584", "0.5921923", "0.592101" ]
0.6903198
14
Instantiates a new competence.
public Competence() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Competence(){\n this(1,new BigValue(Constant.EXP_CHAR));\n }", "public Produit() {\n }", "public Produto() {}", "public Potencial() {\r\n }", "public Produit() {\n\t\tsuper();\n\t}", "public Partage() {\n }", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Prova() {}", "public Clade() {}", "Classroom() {}", "public CCuenta()\n {\n }", "public Cohete() {\n\n\t}", "public Crate(){}", "public Candidatura (){\n \n }", "public Commune() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "private Concert createConcertInstance(String newArtistName, String newVenueName, Date newDate){\n long id = concertList.size(); // Usually covered by the database.\n Artist artist = new Artist(id, newArtistName);\n Venue venue = new Venue(id, newVenueName, \"Gaston Geenslaan 14, 3001 Leuven, Belgium\");\n return new Concert(id, artist, venue, newDate);\n }", "public Commande() {\n }", "public Chant(){}", "public Classroom() {\n\t}", "public CircleCADTool() {\r\n }", "Compleja createCompleja();", "public Lanceur() {\n\t}", "public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }", "public Requisition() {\n\n }", "public Loyalty() {}", "public Comercial(String nombre, String apellido, int edad, double salario, double comision)\n {\n \tsuper(nombre, apellido, edad, salario);\n \tthis.comision=comision;\n }", "public Investment() {\r\n\t\t\r\n\t}", "public Contato() {\n }", "public Course() {}", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public DABeneficios() {\n }", "public Equipas() {\r\n\t\t\r\n\t}", "public Course() {\n\n\t}", "public Company( String name, String description, LocalTime startTime, LocalTime endTime, double budget, double prestigePoints)throws GameException\r\n {\r\n \tif(name==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument name==null\");\r\n \t}\r\n \t\r\n \tif(description==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argumen description==null\");\r\n \t}\r\n \t\r\n \tif(startTime==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument startTime==null\");\r\n \t}\r\n \t\r\n \tif(endTime==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument endTime\");\r\n \t}\r\n \t\r\n \tif(startTime.equals(endTime) || startTime.isAfter(endTime))\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument startTime is equal or after endTime\");\r\n \t}\r\n \t\r\n \tif(budget<=0)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument budget<=0\");\r\n \t}\r\n \t\r\n \t_lockObject = new ReentrantLock();\r\n _prestigePoints = prestigePoints;\r\n _name = name;\r\n\t\t_startTime=startTime;\r\n\t\t_endTime=endTime;\r\n\t\t_description=description;\r\n\t\t_budget=budget;\r\n\t\t_itDepartment = new Department();\r\n\t\t_lastPaymentDateTime=new DateTime();\r\n }", "public Giocatore(String nome, Casella c, Pedina p) {\r\n\t\tsetNome(nome);\r\n\t\tsetPedina(p);\r\n\t\tcasella = c;\r\n\t\tdado = new Dado();\r\n\t\t\r\n\t\tpunt_carta = punteggioIniziale;\r\n\t\tpunt_plastica = punteggioIniziale;\r\n\t\tpunt_vetro = punteggioIniziale;\r\n\t\tpunt_metallo = punteggioIniziale;\r\n\t\tpunt_indifferenziata = punteggioIniziale;\r\n\t\tpunt_organica = punteggioIniziale;\r\n\t}", "public Corso() {\n\n }", "Compuesta createCompuesta();", "public Coche() {\n super();\n }", "public Professor()\n\t{\n\t\t//stuff\n\t}", "public PurchaseExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public MMCAgent() {\n\n\t}", "public TutorIndustrial() {}", "public Championship() {\n }", "public Classe() {\r\n }", "public CDoorExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Laboratorio() {}", "public CPRCommand()\r\n {\r\n }", "public OVChipkaart() {\n\n }", "public PersistenciaCMT() {\n\n }", "public Community()\r\n {\r\n //\r\n }", "public CorreoElectronico() {\n }", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "public CD() {}", "public Particle() {\n\t}", "public ChoixEntreprise() {\n\n }", "public Course() {\n }", "public Course() {\n }", "public Comercial(String nombre ,int edad,double salario,double comision){\r\n\t\tsuper(nombre,edad,salario);\r\n\t\tthis.Comision=comision;\r\n\t}", "public PSRelation()\n {\n }", "public PedometerEntity() {\n }", "Vaisseau_estOrdonneeCouverte createVaisseau_estOrdonneeCouverte();", "public MPaciente() {\r\n\t}", "Oracion createOracion();", "public Chauffeur() {\r\n\t}", "public ChoixCombat(Monstre[] monstres, Competences[] competences)\r\n\t{\r\n\t\tthis.competences = competences;\r\n\t\tthis.monstres = monstres;\r\n\t\t\r\n\t\tthis.choixMenu = 1;\r\n\t\tthis.choixMonstre = -1; // Desactive la variable\r\n\t\tthis.choixMonstreAAfficher = -1;\r\n\t\tthis.choixCompetence = -1;\r\n\t\tthis.choixMouvement = 0;\r\n\t}", "public CarteCaisseCommunaute() {\n super();\n }", "public BlusterCritter (int c) {\n super();\n courage = c;\n }", "public Pacman() {\n int life = 50;\n int repro = 20;\n int maxCal = 500;\n int burn = 5;\n int strength = 50;\n myInfo = BasicMatrixModel.createCritterInfoInstance(this,life,repro,maxCal,burn,strength);\n }", "private Recommendation() {\r\n }", "public Carrier() {\n }", "public ExpertiseEntity() {\n }", "public PConductor() {\n initComponents();\n PNew();\n PGetConductor(TxtBusqueda.getText(), \"T\");\n \n }", "public Chick() {\n\t}", "public PromotionDetail() {\r\n\t}", "public Cbuilding() { }", "public Conversation() {}", "public CD (double principal, double interest, int maturity, String compMode)\n {\n // initialize instance var's\n this.compMode = compMode;\n this.interest = interest;\n this.maturity = maturity;\n this.principal = principal;\n }", "Cancion createCancion();", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Expense(){\n\n }", "public LecturaPorEvento() \r\n {\r\n }", "public Vehicle(){}", "public ContraventionComplaints(String contravention, String decision, String responsible, String nameDriver, String drivingLicense, String plateNumber, String complaint, Date savedDate) {\n this.contravention = contravention;\n this.name = nameDriver;\n this.drivingLicense = drivingLicense;\n // this.offenceName = offenceName;\n this.responsible = responsible;\n this.complaint = complaint;\n this.decision = decision;\n this.plateNumber = plateNumber;\n this.savedDate = savedDate;\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public FicheConnaissance() {\r\n }", "public Cilindro(int idCilindro, int idCombustible, double longitud, double radio, String codigo, String combustible, double volumenFijo) {\r\n this.idCilindro = idCilindro;\r\n this.idCombustible = idCombustible;\r\n this.longitud = longitud;\r\n this.radio = radio;\r\n this.codigo = codigo;\r\n this.combustible = combustible;\r\n this.volumenFijo = volumenFijo;\r\n }", "public Coupon() {\n }", "public Vehicle() {}", "public GoodsTradeExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Carrera(){\n }", "public Facturacion() {\n }", "public Ctacliente() {\n\t}", "public ControladorCoche() {\n\t}", "public PromoBonusImpl() {\n }", "public RentExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public Party() {\n // empty constructor\n }", "@Override\n\tpublic void createConseille(Conseille c) {\n\t\t\n\t}", "public SysSkillConferpo()\n {\n }", "Community() {}" ]
[ "0.68863136", "0.63049144", "0.625045", "0.6145671", "0.60280615", "0.5980589", "0.59373236", "0.5909663", "0.5880115", "0.5879505", "0.58691555", "0.5837404", "0.582282", "0.5808053", "0.5801025", "0.57999146", "0.5794422", "0.5785753", "0.5769217", "0.5758324", "0.5730193", "0.5728756", "0.5726368", "0.57157", "0.5708835", "0.5707835", "0.5705532", "0.5703818", "0.5666843", "0.5649761", "0.56496847", "0.564451", "0.56421095", "0.56389016", "0.5620056", "0.56195253", "0.5619453", "0.5617792", "0.56069225", "0.55915", "0.5585865", "0.55840194", "0.5579638", "0.5567318", "0.5565566", "0.5564174", "0.55620605", "0.5561228", "0.55596834", "0.5544566", "0.55442727", "0.55303884", "0.5527403", "0.55262405", "0.55235475", "0.5520165", "0.5520165", "0.55190647", "0.5514211", "0.551196", "0.5507534", "0.5504787", "0.549536", "0.54917806", "0.5485646", "0.54811543", "0.54737085", "0.54674447", "0.5466464", "0.54659665", "0.5465015", "0.5460145", "0.5457885", "0.5457618", "0.545712", "0.54562265", "0.5452032", "0.5449138", "0.5442068", "0.54392654", "0.54356855", "0.5423036", "0.54230267", "0.5421985", "0.54210883", "0.54191244", "0.5415287", "0.54090863", "0.54052955", "0.54015476", "0.53974944", "0.53947896", "0.53920007", "0.5383594", "0.5382446", "0.53813255", "0.53803253", "0.53797686", "0.5375859", "0.53703517" ]
0.77795565
0
Instantiates a new competence.
public Competence(String ref, String description, String cycle, AbstractDomaine abstractDomaine) { super(ref, description, cycle, abstractDomaine); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Competence() {\r\n\t\tsuper();\r\n\t}", "public Competence(){\n this(1,new BigValue(Constant.EXP_CHAR));\n }", "public Produit() {\n }", "public Produto() {}", "public Potencial() {\r\n }", "public Produit() {\n\t\tsuper();\n\t}", "public Partage() {\n }", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Prova() {}", "public Clade() {}", "Classroom() {}", "public CCuenta()\n {\n }", "public Cohete() {\n\n\t}", "public Crate(){}", "public Candidatura (){\n \n }", "public Commune() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "private Concert createConcertInstance(String newArtistName, String newVenueName, Date newDate){\n long id = concertList.size(); // Usually covered by the database.\n Artist artist = new Artist(id, newArtistName);\n Venue venue = new Venue(id, newVenueName, \"Gaston Geenslaan 14, 3001 Leuven, Belgium\");\n return new Concert(id, artist, venue, newDate);\n }", "public Commande() {\n }", "public Chant(){}", "public Classroom() {\n\t}", "public CircleCADTool() {\r\n }", "Compleja createCompleja();", "public Lanceur() {\n\t}", "public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }", "public Requisition() {\n\n }", "public Loyalty() {}", "public Comercial(String nombre, String apellido, int edad, double salario, double comision)\n {\n \tsuper(nombre, apellido, edad, salario);\n \tthis.comision=comision;\n }", "public Investment() {\r\n\t\t\r\n\t}", "public Contato() {\n }", "public Course() {}", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public DABeneficios() {\n }", "public Equipas() {\r\n\t\t\r\n\t}", "public Course() {\n\n\t}", "public Company( String name, String description, LocalTime startTime, LocalTime endTime, double budget, double prestigePoints)throws GameException\r\n {\r\n \tif(name==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument name==null\");\r\n \t}\r\n \t\r\n \tif(description==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argumen description==null\");\r\n \t}\r\n \t\r\n \tif(startTime==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument startTime==null\");\r\n \t}\r\n \t\r\n \tif(endTime==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument endTime\");\r\n \t}\r\n \t\r\n \tif(startTime.equals(endTime) || startTime.isAfter(endTime))\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument startTime is equal or after endTime\");\r\n \t}\r\n \t\r\n \tif(budget<=0)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument budget<=0\");\r\n \t}\r\n \t\r\n \t_lockObject = new ReentrantLock();\r\n _prestigePoints = prestigePoints;\r\n _name = name;\r\n\t\t_startTime=startTime;\r\n\t\t_endTime=endTime;\r\n\t\t_description=description;\r\n\t\t_budget=budget;\r\n\t\t_itDepartment = new Department();\r\n\t\t_lastPaymentDateTime=new DateTime();\r\n }", "public Giocatore(String nome, Casella c, Pedina p) {\r\n\t\tsetNome(nome);\r\n\t\tsetPedina(p);\r\n\t\tcasella = c;\r\n\t\tdado = new Dado();\r\n\t\t\r\n\t\tpunt_carta = punteggioIniziale;\r\n\t\tpunt_plastica = punteggioIniziale;\r\n\t\tpunt_vetro = punteggioIniziale;\r\n\t\tpunt_metallo = punteggioIniziale;\r\n\t\tpunt_indifferenziata = punteggioIniziale;\r\n\t\tpunt_organica = punteggioIniziale;\r\n\t}", "public Corso() {\n\n }", "Compuesta createCompuesta();", "public Coche() {\n super();\n }", "public Professor()\n\t{\n\t\t//stuff\n\t}", "public PurchaseExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public MMCAgent() {\n\n\t}", "public TutorIndustrial() {}", "public Championship() {\n }", "public Classe() {\r\n }", "public CDoorExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Laboratorio() {}", "public CPRCommand()\r\n {\r\n }", "public OVChipkaart() {\n\n }", "public PersistenciaCMT() {\n\n }", "public Community()\r\n {\r\n //\r\n }", "public CorreoElectronico() {\n }", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "public CD() {}", "public Particle() {\n\t}", "public ChoixEntreprise() {\n\n }", "public Course() {\n }", "public Course() {\n }", "public Comercial(String nombre ,int edad,double salario,double comision){\r\n\t\tsuper(nombre,edad,salario);\r\n\t\tthis.Comision=comision;\r\n\t}", "public PSRelation()\n {\n }", "public PedometerEntity() {\n }", "Vaisseau_estOrdonneeCouverte createVaisseau_estOrdonneeCouverte();", "public MPaciente() {\r\n\t}", "Oracion createOracion();", "public Chauffeur() {\r\n\t}", "public ChoixCombat(Monstre[] monstres, Competences[] competences)\r\n\t{\r\n\t\tthis.competences = competences;\r\n\t\tthis.monstres = monstres;\r\n\t\t\r\n\t\tthis.choixMenu = 1;\r\n\t\tthis.choixMonstre = -1; // Desactive la variable\r\n\t\tthis.choixMonstreAAfficher = -1;\r\n\t\tthis.choixCompetence = -1;\r\n\t\tthis.choixMouvement = 0;\r\n\t}", "public CarteCaisseCommunaute() {\n super();\n }", "public BlusterCritter (int c) {\n super();\n courage = c;\n }", "public Pacman() {\n int life = 50;\n int repro = 20;\n int maxCal = 500;\n int burn = 5;\n int strength = 50;\n myInfo = BasicMatrixModel.createCritterInfoInstance(this,life,repro,maxCal,burn,strength);\n }", "private Recommendation() {\r\n }", "public Carrier() {\n }", "public ExpertiseEntity() {\n }", "public PConductor() {\n initComponents();\n PNew();\n PGetConductor(TxtBusqueda.getText(), \"T\");\n \n }", "public Chick() {\n\t}", "public PromotionDetail() {\r\n\t}", "public Cbuilding() { }", "public Conversation() {}", "public CD (double principal, double interest, int maturity, String compMode)\n {\n // initialize instance var's\n this.compMode = compMode;\n this.interest = interest;\n this.maturity = maturity;\n this.principal = principal;\n }", "Cancion createCancion();", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Expense(){\n\n }", "public LecturaPorEvento() \r\n {\r\n }", "public Vehicle(){}", "public ContraventionComplaints(String contravention, String decision, String responsible, String nameDriver, String drivingLicense, String plateNumber, String complaint, Date savedDate) {\n this.contravention = contravention;\n this.name = nameDriver;\n this.drivingLicense = drivingLicense;\n // this.offenceName = offenceName;\n this.responsible = responsible;\n this.complaint = complaint;\n this.decision = decision;\n this.plateNumber = plateNumber;\n this.savedDate = savedDate;\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public FicheConnaissance() {\r\n }", "public Cilindro(int idCilindro, int idCombustible, double longitud, double radio, String codigo, String combustible, double volumenFijo) {\r\n this.idCilindro = idCilindro;\r\n this.idCombustible = idCombustible;\r\n this.longitud = longitud;\r\n this.radio = radio;\r\n this.codigo = codigo;\r\n this.combustible = combustible;\r\n this.volumenFijo = volumenFijo;\r\n }", "public Coupon() {\n }", "public Vehicle() {}", "public GoodsTradeExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Carrera(){\n }", "public Facturacion() {\n }", "public Ctacliente() {\n\t}", "public ControladorCoche() {\n\t}", "public PromoBonusImpl() {\n }", "public RentExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public Party() {\n // empty constructor\n }", "@Override\n\tpublic void createConseille(Conseille c) {\n\t\t\n\t}", "public SysSkillConferpo()\n {\n }", "Community() {}" ]
[ "0.77795565", "0.68863136", "0.63049144", "0.625045", "0.6145671", "0.60280615", "0.5980589", "0.59373236", "0.5909663", "0.5880115", "0.5879505", "0.58691555", "0.5837404", "0.582282", "0.5808053", "0.5801025", "0.57999146", "0.5794422", "0.5785753", "0.5769217", "0.5758324", "0.5730193", "0.5728756", "0.5726368", "0.57157", "0.5708835", "0.5707835", "0.5705532", "0.5703818", "0.5666843", "0.5649761", "0.56496847", "0.564451", "0.56421095", "0.56389016", "0.5620056", "0.56195253", "0.5619453", "0.5617792", "0.56069225", "0.55915", "0.5585865", "0.55840194", "0.5579638", "0.5567318", "0.5565566", "0.5564174", "0.55620605", "0.5561228", "0.55596834", "0.5544566", "0.55442727", "0.55303884", "0.5527403", "0.55262405", "0.55235475", "0.5520165", "0.5520165", "0.55190647", "0.5514211", "0.551196", "0.5507534", "0.5504787", "0.549536", "0.54917806", "0.5485646", "0.54811543", "0.54737085", "0.54674447", "0.5466464", "0.54659665", "0.5465015", "0.5460145", "0.5457885", "0.5457618", "0.545712", "0.54562265", "0.5452032", "0.5449138", "0.5442068", "0.54392654", "0.54356855", "0.5423036", "0.54230267", "0.5421985", "0.54210883", "0.54191244", "0.5415287", "0.54090863", "0.54052955", "0.54015476", "0.53974944", "0.53947896", "0.53920007", "0.5383594", "0.5382446", "0.53813255", "0.53803253", "0.53797686", "0.5375859", "0.53703517" ]
0.0
-1
Returns the first element of the list.
public static <T> T getFirst(List<T> list) { return list != null && !list.isEmpty() ? list.get(0) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getFirst() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\treturn get(1);\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getFirst on an empty list\");\r\n\t\t}\r\n\t}", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }", "public static <C> C FIRST(LIST<C> L) {\n if ( isNull( L ) ) {\n return null;\n }\n if ( L.iter != null ) {\n if ( L.iter.hasNext() ) {\n return L.iter.next();\n } else {\n L.iter = null;\n return null;\n }\n }\n return L.list.getFirst();\n }", "public Object firstElement();", "protected T getFirstValue(List<T> list) {\n\t\treturn list != null && !list.isEmpty() ? list.get(0) : null;\n\t}", "public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }", "public int getFirstElement() {\n\t\tif( head == null) {\n\t\t\tSystem.out.println(\"List is empty\");\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse {\n\t\t\treturn head.data;\n\t\t}\n\t}", "public E first() {\n if (isEmpty()) return null;\n return first.item;\n }", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }", "public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}", "public E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }", "int getFirst(int list) {\n\t\treturn m_lists.getField(list, 0);\n\t}", "@Override\r\n\tpublic Object first(){\r\n\t\tcheck();\r\n\t\treturn head.value;\r\n\t}", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "public T getFirst() {\n\t\t//if the head is not empty\n\t\tif (head!= null) {\n\t\t\t//return the data in the head node of the list\n\t\t\treturn head.getData();\n\t\t}\n\t\t//otherwise return null\n\t\telse { return null; }\n\t}", "public U getFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(0);\r\n\t }", "public E getFirst(){\n return head.getNext().getElement();\n }", "@Override\n\tpublic Object peek() {\n\t\treturn list.getFirst();\n\t}", "public T first() throws EmptyCollectionException;", "public T first() throws EmptyCollectionException;", "public Object getFirst()\n {\n if (first == null)\n {\n throw new NoSuchElementException();\n }\n else\n return first.getValue();\n }", "public Item getFirst();", "public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}", "public static <T> T getFirstElement(final Iterable<T> elements) {\n\t\treturn elements.iterator().next();\n\t}", "@Override\n public E getFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[head];\n }", "public T pollFirst() {\n if (!isEmpty()) {\n T polled = (T) list[startIndex];\n startIndex++;\n if (isEmpty()) {\n startIndex = 0;\n nextindex = 0;\n }\n return polled;\n }\n return null;\n }", "public E getFirst() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}", "public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }", "public T getFirst();", "public T getFirst();", "public Unit first()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn iterator().next();\n\t}", "public E getFirst();", "public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }", "public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }", "public T peek() throws NoSuchElementException\n\t{\n\t\tcheckEmpty();\n\t\treturn list.get(0);\n\t}", "public Optional<T> getFirstItem() {\n return getData().stream().findFirst();\n }", "public E getFirst() {\n return peek();\n }", "@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}", "public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }", "public T first(int x)throws EmptyCollectionException, \n InvalidArgumentException;", "@Test\r\n\tvoid testFirst() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(3);\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\tint output = test.first();\r\n\t\tassertEquals(10, output);\r\n\t}", "public Object firstElement() {\n return _queue.firstElement();\n }", "public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public E peek()\n {\n return arrayList.get(0);\n }", "public Object getFirst()\n {\n if(first == null){\n throw new NoSuchElementException();}\n \n \n \n return first.data;\n }", "public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "@Override\r\n\tpublic E getFirst() {\n\t\treturn null;\r\n\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "String getFirstElementOfArrayList( ArrayList arrayList ) {\n\n \tString firstElement = new String(\"\");\n \tfor ( Object e : arrayList ) {\n \t\tfirstElement = (String) e;\n \t\tbreak;\n \t}\n \treturn firstElement;\n }", "public E peek() {\n if(head == null) {\n // The list is empty\n throw new NoSuchElementException();\n } else {\n return head.item;\n }\n }", "@Nullable\n public T firstOrNull() {\n return Query.firstOrNull(iterable);\n }", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "public T getFirst()\n\t{\n\t\treturn head.getData();\n\t}", "public int getFirst();", "public Object getFirstObject()\n {\n \tcurrentObject = firstObject;\n\n if (firstObject == null)\n \treturn null;\n else\n \treturn AL.get(0);\n }", "public Item getFirst() {\n Node removed = head.next;\n head.next = removed.next;\n removed.next = null;\n size--;\n return removed.item;\n }", "public synchronized T get(){\n if (list.isEmpty()) return null;\n return list.remove(0);\n }", "T first();", "public synchronized DoubleLinkedListNodeInt getFirst() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\treturn head.getNext();\n\t}", "public E peekFirst() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\treturn mHead.next.data;\n\t}", "ArrayList<String> firstElements(ArrayList<String> myList);", "public StringListIterator first()\n {\n\treturn new StringListIterator(head);\n }", "int getFirstList() {\n\t\treturn m_list_of_lists;\n\t}", "public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}", "Object front()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call front() on empty List\");\n\t\t}\n\t\treturn front.data;\n\t}", "@Override\n public Persona First() {\n return array.get(0);\n }", "public Node<E> getFirst(){\n Node<E> toReturn = head.getNext();\n return toReturn == tail ? null: toReturn;\n }", "public T peek()\n\t{\n\t\tT ret = list.removeFirst();\n\t\tlist.addFirst(ret);\n\t\treturn ret;\n\t}", "public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}", "public Position getFirst() {\n return positions[0];\n }", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public A getFirst() { return first; }", "public T getMin() {\n\t\tif (heapSize > 0) {\n\t\t\treturn lstEle.get(0);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public E element() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return (E) array[0];\n }", "public int getFirst() {\n if (size > 0)\n return 0;\n else\n return NO_ELEMENT;\n }", "@Override\r\n\tpublic T first() {\n\t\treturn head.content;\r\n\t}", "public T getFirst()\n\t{\n\t\treturn getFirstNode().getData();\n\t}", "public static Object first(Object o) {\n log.finer(\"getting first of list expression: \" + o);\n validateType(o, SPair.class);\n return ((SPair)o).getCar();\n }", "public Object getFirst()\n {\n return ((Node)nodes.elementAt(0)).data;\n }", "public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "public T1 getFirst() {\n\t\treturn first;\n\t}", "public T getMin()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn array[0];\n\t}", "public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }", "public LinkedListNode<T> getFirstNode() {\n\t\t//return the head node of the list\n\t\treturn head;\t\t\n\t}", "@NotNull\n public F getFirst() {\n return first;\n }", "public A first() {\n return first;\n }", "public static <T> T getFirstOrNull(final Collection<T> collection) {\n\n if (isEmpty(collection)) {\n return null;\n }\n if (collection instanceof List) {\n return ((List<T>) collection).get(0);\n } else {\n return collection.iterator().next();\n }\n }", "public int getFirst() {\n\t\treturn first;\n\t}", "public int getFirst() {\n return first;\n }", "public T removeFirst() throws EmptyCollectionException\n //PRE: list is not empty\n //POS: first node is removed / list has one less node\n //TAS: remove first element and return it\n \n //if (count == 1)\n //{\n // T result = head.getElement();\n // head = null;\n // tail = null;\n // return result;\n //}\n //else {\n // T result = head.getElement();\n // head = head.getNext();\n // count--;\n // return result;\n // }\n \n }\n {\n T result = null;\n\n if(isEmpty()){\n throw new EmptyCollectionException(\"list\");\n }\n\n result = front.getElement();\n front = front.getNext();\n count--;\n\n if(isEmpty()){\n // reset rear after removing the last node\n rear = null;\n }\n\n return result;\n }", "public Object front() {\n ListNode p = this.l.start;\n while(p.next!=null)\n {\n p = p.next;\n }\n\t\treturn (Object) p.item;\n\t}", "public LinkedListItr first( )\n {\n return new LinkedListItr( header.next );\n }" ]
[ "0.8146124", "0.8112738", "0.77573156", "0.77506304", "0.7700142", "0.76570886", "0.7622286", "0.7586902", "0.7581074", "0.7559773", "0.75595623", "0.7455288", "0.74141467", "0.7366526", "0.7242606", "0.72201276", "0.7210038", "0.7195026", "0.7170118", "0.7168016", "0.71406513", "0.71406513", "0.7137214", "0.71370745", "0.7131366", "0.71306825", "0.7118968", "0.70927566", "0.7087236", "0.70741767", "0.70491487", "0.70491487", "0.7046727", "0.704253", "0.702723", "0.700018", "0.699053", "0.6961209", "0.69429094", "0.69270957", "0.6897183", "0.6893692", "0.6865434", "0.68630856", "0.68583125", "0.6843478", "0.68394285", "0.6811718", "0.680594", "0.6797434", "0.6781463", "0.6762787", "0.6762787", "0.6737556", "0.6729218", "0.6719151", "0.67148036", "0.67147374", "0.6707769", "0.66902065", "0.66797835", "0.66577554", "0.6648292", "0.6642909", "0.66356987", "0.6626413", "0.66238475", "0.659794", "0.65805924", "0.6568162", "0.65657735", "0.65581447", "0.6556641", "0.6555497", "0.6543497", "0.6533921", "0.6523909", "0.65211636", "0.6517119", "0.65115094", "0.65097004", "0.6506514", "0.64965516", "0.6486232", "0.6468676", "0.64647734", "0.6456529", "0.6452956", "0.6435077", "0.6430725", "0.6423737", "0.6416043", "0.63986844", "0.63912725", "0.63724726", "0.6370403", "0.63627696", "0.6359579", "0.6357668", "0.6340784" ]
0.80282
2